update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Q_unified): New variable.
4         (Q_unified_from): New variable.
5         (Fput_char_attribute): Add code for `->unified'.
6         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
7         XEmacs CHISE.
8
9 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
10
11         * mule-charset.c (decode_ccs_conversion): New function.
12         (decode_defined_char): Use `decode_ccs_conversion'.
13         (decode_builtin_char): Likewise.
14
15 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * char-ucs.h: Change some charset-ids of private coded-charsets.
18
19 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
22         (char_encode_as_entity_reference): Likewise.
23         (decode_coding_big5): Modify for `decode_defined_char' and
24         `DECODE_CHAR'.
25         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
26         avoid compiler warning.
27         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
28
29         * mule-charset.c (decode_defined_char): Add new argument
30         `without_inheritance'.
31         (Fdecode_char): Add new optional argument `without_inheritance'.
32         (Fdecode_builtin_char): Modify for `Fdecode_char'.
33
34         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
35         (simplify_char_spec): Likewise.
36
37         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
38         setting.
39
40         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
41         (map_char_table): Likewise.
42         (Fdefine_char): Use `Fdecode_char' without inheritance.
43         (Ffind_char): Modify for `Fdecode_char'.
44
45         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
46
47         * char-ucs.h (decode_defined_char): Add new argument
48         `without_inheritance'.
49         (DECODE_CHAR): Likewise.
50         (MAKE_CHAR): Modify for `DECODE_CHAR'.
51
52 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
53
54         * chartab.c (Vchise_system_db_directory): New variable.
55         (vars_of_chartab): Add new variable `chise-system-db-directory'.
56
57 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * chartab.c: EXFUN `Fmount_char_attribute_table'.
60         (print_chartab_range): Don't define when `UTF2000' is defined.
61         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
62         `CHISE_DS_open'.
63
64 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
67         and optional argument `rehash' is specified, call
68         `open_chise_data_source_maybe' before
69         `chise_ds_foreach_char_feature_name' is called.
70
71 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * chartab.c (char_attribute_list_reset_map_func): New function
74         when HAVE_LIBCHISE is defined.
75         (Fchar_attribute_list): Add new optional argument `rehash' when
76         HAVE_LIBCHISE is defined.
77         (open_chise_data_source_maybe): Use "chise-db" instead of
78         "char-db".
79         (char_attribute_system_db_file): Likewise.
80         (Fload_char_attribute_table): Use
81         `chise_feature_foreach_char_with_value' instead of
82         `chise_char_feature_value_iterate'.
83
84 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * chartab.c (Vchise_db_directory): New variable.
87         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
88
89 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
90
91         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
92         instead of HAVE_CHISE to specify using with libchise.
93
94         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
95
96         * chartab.h: Don't use HAVE_CHISE_CLIENT.
97
98         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
99         defined or HAVE_LIBCHISE_LIBCHISE is defined.
100         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
101         is defined.
102         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
103         HAVE_CHISE to specify using with libchise.
104         (syms_of_chartab): Don't define symbol `system-char-id' when
105         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
106
107 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
110         specify CHISE DB support.
111         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
112         of `char_attribute_system_db_file' to check feature DB file.
113
114         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
115         HAVE_CHISE_CLIENT to specify CHISE DB support.
116
117         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
118         specify CHISE DB support.
119         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
120         not defined.
121         (Freset_char_attribute_table): Use `chise_feature_setup_db'
122         instead of `char_attribute_system_db_file' to check feature DB
123         file.
124
125 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
128         `HAVE_CHISE_CLIENT'.
129
130 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
133         (Fsave_charset_mapping_table): Don't use
134         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
135
136         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
137         (HAVE_LIBCHISE): New macro.
138
139         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
140
141         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
142         (Fsave_char_attribute_table): Don't use
143         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
144
145 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
148         defined.
149         (save_uint16_byte_table): Likewise.
150         (save_byte_table): Likewise.
151         (char_table_get_db): Use `chise_ds_load_char_feature_value'
152         instead of `chise_char_load_feature_value'.
153         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
154
155 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * chartab.h (struct Lisp_Char_Table): Delete member
158         `feature_table' if CHISE is defined.
159
160         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
161         (Fcopy_char_table): Likewise.
162         (char_table_open_db_maybe): Likewise.
163         (char_table_close_db_maybe): Likewise.
164         (char_table_get_db): Likewise.
165         (Fmount_char_attribute_table): Likewise.
166         (Fload_char_attribute_table): Likewise.
167
168 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * mule-charset.c (load_char_decoding_entry_maybe): Use
171         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
172         `chise_ccs_decode'.
173
174 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
175
176         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
177         instead of `chise_open_data_source'.
178         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
179         `chise_ds_close'.
180
181 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
184         instead of `chise_ds_open_feature_table'.
185         (char_table_close_db_maybe): Don't use `chise_ft_close'.
186
187 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * mule-charset.c (Fsave_charset_mapping_table): Use
190         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
191         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
192         `chise_ccs_sync' instead of `chise_ccst_close'.
193         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
194
195         * chartab.c (open_chise_data_source_maybe): Modify for
196         `chise_open_data_source'.
197         (char_table_open_db_maybe): Modify for
198         `chise_ds_open_feature_table'.
199
200 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
201
202         * mule-charset.c (load_char_decoding_entry_maybe): Use
203         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
204         `chise_ccst_close'.
205
206 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
207
208         * mule-charset.c (Fsave_charset_mapping_table): Use
209         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
210         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
211         `chise_dt_put_char' and `chise_dt_close'.
212         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
213         `chise_ccs_decode' and `chise_ccst_close' instead of
214         `chise_ds_open_decoding_table', `chise_dt_get_char' and
215         `chise_dt_close'.
216
217         * chartab.c (char_table_get_db): Use
218         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
219         (load_char_attribute_table_map_func): Modify for
220         `chise_char_feature_value_iterate'.
221         (Fload_char_attribute_table): Use
222         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
223
224 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
227
228 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
229
230         * chartab.c (put_char_table): Modify for inherited coded-charsets
231         in XEmacs CHISE.
232
233 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
234
235         * chartab.c (Fput_char_table_map_function): Fixed.
236         (word_boundary_p): Don't check charset in XEmacs CHISE.
237
238 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
239
240         * mule-charset.c (Fsave_charset_mapping_table): Use
241         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
242         instead of `chise_open_decoding_table'; refer
243         `default_chise_data_source'; use `chise_dt_close' instead of
244         `chise_close_decoding_table'.
245         (load_char_decoding_entry_maybe): Likewise.
246
247         * chartab.c (default_chise_data_source): New variable when `CHISE'
248         is defined.
249         (Fcopy_char_table): `ct->ds' is deleted.
250         (open_chise_data_source_maybe): New function.
251         (Fclose_char_data_source): New function.
252         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
253         use `chise_ds_open_feature_table' instead of
254         `chise_open_feature_table'.
255         (char_table_close_db_maybe): Use `chise_ft_close' instead of
256         `chise_close_feature_table'; `cit->ds' is deleted.
257         (syms_of_chartab): Add new builtin function
258         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
259
260         * chartab.h (default_chise_data_source): New extern variable.
261         (open_chise_data_source_maybe): New prototype.
262         (struct Lisp_Char_Table): Delete `ds'.
263
264 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
265
266         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
267         `CHISE' is defined.
268
269 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
270
271         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
272         not defined; add code for non-libchise setting.
273         (char_table_close_db_maybe): Likewise.
274         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
275         defined.
276         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
277         even if `CHISE' is not defined.
278         (Freset_char_attribute_table): Likewise.
279         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
280         `char_table_close_db_maybe' even if `CHISE' is not defined; use
281         `char_table_get_db'.
282         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
283         `char_table_close_db_maybe' even if `CHISE' is not defined.
284
285 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
286
287         * chartab.c (char_table_open_db_maybe): New function.
288         (char_table_close_db_maybe): New function.
289         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
290         (Freset_char_attribute_table): Likewise.
291         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
292         `char_table_close_db_maybe'.
293         (Fload_char_attribute_table): Likewise.
294
295 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
296
297         * chartab.c: Don't include <chise.h> because it is included in
298         chartab.h.
299         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
300         defined.
301         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
302         `CHISE' is defined.
303         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
304         `CHISE' is defined.
305         (Fclose_char_attribute_table): Close `ct->feature_table' and
306         `ct->ds' when `CHISE' is defined.
307         (Freset_char_attribute_table): Likewise.
308         (load_char_attribute_maybe): Use `cit->ds' and
309         `cit->feature_table' when `CHISE' is defined.
310         (Fload_char_attribute_table): Likewise.
311
312         * chartab.h: Include <chise.h> when `CHISE' is defined.
313         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
314         when `CHISE' is defined.
315
316 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
317
318         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
319         is defined.
320         (char_table_description): Likewise.
321         (Fmake_char_table): Likewise.
322         (Fcopy_char_table): Likewise.
323         (Fmount_char_attribute_table): Likewise.
324         (Fclose_char_attribute_table): Likewise.
325         (Freset_char_attribute_table): Likewise.
326         (load_char_attribute_maybe): Likewise.
327         (Fload_char_attribute_table): Likewise.
328
329         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
330         defined.
331
332 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
333
334         * chartab.c (load_char_attribute_table_map_func): New function
335         when CHISE is defined.
336         (Qload_char_attribute_table_map_function): Don't define when CHISE
337         is defined.
338         (Fload_char_attribute_table_map_function): Likewise.
339         (Fload_char_attribute_table): Use libchise when `CHISE' is
340         defined.
341         (syms_of_chartab): Don't define
342         `load-char-attribute-table-map-function' when CHISE is defined.
343
344 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
345
346         * chartab.c: Include <chise.h> when `CHISE' is defined.
347         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
348
349 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
350
351         * mule-charset.c (charset_code_point): Fix problem when searching
352         in mother CCS fails with `defined_only' mode.
353
354 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
355
356         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
357         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
358         (put_char_composition): Likewise.
359         (Fput_char_attribute): Likewise.
360         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
361
362 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
363
364         * chartab.c (Q_ucs): Deleted.
365         (Fput_char_attribute): Don't refer `->ucs'.
366         (Fdefine_char): Likewise.
367         (Ffind_char): Likewise.
368         (syms_of_chartab): Delete `->ucs'.
369
370 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
371
372         * mule-charset.c (Qmap_cns11643_2): Renamed from
373         `Qchinese_cns11643_2'.
374         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
375         `chinese-cns11643-2'.
376         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
377         `=cns11643-2'.
378
379 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
380
381         * mule-charset.c (Qmap_cns11643_1): Renamed from
382         `Qchinese_cns11643_1'.
383         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
384         `chinese-cns11643-1'.
385         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
386         `=cns11643-1'.
387
388 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
391         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
392         `chinese-gb12345'.
393         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
394         `=gb12345'.
395
396 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
397
398         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
399         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
400         `chinese-gb2312'.
401         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
402         `=gb2312'.
403
404 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
405
406         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
407         (syms_of_mule_charset): Add new symbol `=big5' instead of
408         `chinese-big5'.
409         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
410
411 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
414         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
415         `korean-ksc5601'.
416         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
417         `=ks-x1001'.
418
419 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
420
421         * mule-charset.c (Qmap_jis_x0212): Renamed from
422         `Qjapanese_jisx0212'.
423         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
424         `japanese-jisx0212'.
425         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
426         `=jis-x0212'.
427
428 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
429
430         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
431         `Qjapanese_jisx0208'.
432         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
433         of `japanese-jisx0208'.
434         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
435         `=jis-x0208-1983'.
436
437 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
440         `Qjapanese_jisx0208_1978'.
441         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
442         of `japanese-jisx0208-1978'.
443         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
444         `=jis-x0208-1978'.
445
446 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
447
448         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
449         only for XEmacs CHISE.
450
451 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
452
453         * char-ucs.h: Compact non-ISO-IR charset-ids.
454         (LEADING_BYTE_UCS): Changed to -177.
455         (LEADING_BYTE_CONTROL_1): Changed to -77.
456         (LEADING_BYTE_UCS_BMP): Changed to -176.
457         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
458
459 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * mule-charset.c (Qiso_ir): New variable.
462         (Fmake_charset): Recognise new property `iso-ir'.
463         (syms_of_mule_charset): Add new symbol `iso-ir'.
464
465 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
466
467         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
468         n to -n; charset-id of non ISO-IR sets are changed to positive
469         numbers.
470
471 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
472
473         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
474         for &MCS-XXXXXXXX; values.
475
476 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
477
478         * mule.c (Vxemacs_chise_version): Renamed from
479         `Vutf_2000_version'.
480         (vars_of_mule): Add new variable `xemacs-chise-version'; define
481         `utf-2000-version' as an alias for `xemacs-chise-version'.
482
483 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
484
485         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
486         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
487         defined.
488
489         * config.h.in (CHISE): New macro.
490
491 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
492
493         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
494         of `ucs'.
495         (Qmap_ucs): New variable.
496         (syms_of_mule_charset): Add new symbol `=ucs'.
497         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
498
499         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
500         (simplify_char_spec): Likewise.
501
502         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
503
504         * char-ucs.h (Qmap_ucs): New extern variable.
505
506 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
509         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
510         don't define it when UTF2000 is not defined.
511         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
512         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
513         when UTF2000 is not defined.
514         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
515         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
516
517 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
520
521         * mule-charset.c (Vcharset_ucs_gb): Deleted.
522         (Qucs_gb): Deleted.
523         (syms_of_mule_charset): Delete `ucs-gb'.
524         (complex_vars_of_mule_charset): Likewise.
525
526 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
527
528         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
529
530         * mule-charset.c (Vcharset_ucs_cns): Deleted.
531         (Qucs_cns): Deleted.
532         (syms_of_mule_charset): Delete `ucs-cns'.
533         (complex_vars_of_mule_charset): Likewise.
534
535 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
536
537         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
538
539         * mule-charset.c (Vcharset_ucs_jis): Deleted.
540         (Qucs_jis): Deleted.
541         (syms_of_mule_charset): Delete `ucs-jis'.
542         (complex_vars_of_mule_charset): Likewise.
543
544 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
545
546         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
547
548         * mule-charset.c (Vcharset_ucs_ks): Deleted.
549         (Qucs_ks): Deleted.
550         (syms_of_mule_charset): Delete `ucs-ks'.
551         (complex_vars_of_mule_charset): Likewise.
552
553 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
556         (Qideograph_daikanwa_2): Deleted.
557         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
558         (complex_vars_of_mule_charset): Likewise.
559
560         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
561         (LEADING_BYTE_DAIKANWA_1): Deleted.
562         (LEADING_BYTE_DAIKANWA_2): Deleted.
563         (MIN_CHAR_DAIKANWA): Deleted.
564         (MAX_CHAR_DAIKANWA): Deleted.
565
566 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
567
568         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
569         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
570         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
571
572         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
573         (Vcharset_ideograph_daikanwa): Deleted.
574         (Qideograph_hanziku_{1..12}): Deleted.
575         (Qideograph_daikanwa): Deleted.
576         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
577         Vcharset_ideograph_daikanwa.
578         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
579         `ideograph-hanziku-{1..12}'.
580         (complex_vars_of_mule_charset): Likewise.
581
582 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
585
586         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
587         (Qideograph_gt_pj_{1..11}): Deleted.
588         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
589         (complex_vars_of_mule_charset): Likewise.
590
591 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
592
593         * mule-charset.c (Vcharset_ucs_big5): Deleted.
594         (Vcharset_ideograph_gt): Deleted.
595         (Qucs_big5): Deleted.
596         (Qideograph_gt): Deleted.
597         (syms_of_mule_charset): Delete symbol `ucs-big5' and
598         `ideograph-gt'.
599         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
600         and `ideograph-gt'.
601
602         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
603         (LEADING_BYTE_GT): Deleted.
604         (MIN_CHAR_GT): Deleted.
605         (MAX_CHAR_GT): Deleted.
606
607 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
608
609         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
610
611 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
614         (save_uint16_byte_table): Likewise.
615         (save_byte_table): Likewise; convert values by it.
616         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
617         for `ideographic-structure'.
618         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
619         as the filter for `ideographic-structure'.
620
621 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
622
623         * chartab.c (put_char_composition): New function.
624         (Fput_char_attribute): Use `put_char_composition'; use
625         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
626
627         * fns.c (simplify_char_spec): New function.
628         (char_ref_simplify_spec): New function.
629         (Fchar_refs_simplify_char_specs): New function.
630         (syms_of_fns): Add new builtin function
631         `char-refs-simplify-char-specs'.
632
633 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
634
635         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
636         (Qideograph_cbeta): Deleted.
637         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
638         (complex_vars_of_mule_charset): Likewise.
639
640         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
641         (MIN_CHAR_CBETA): Comment out.
642         (MAX_CHAR_CBETA): Likewise.
643
644 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
645
646         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
647         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
648         CHISE client feature.
649
650 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
651
652         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
653
654 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
655
656         * mule-charset.c (charset_lookup_description_1): Use
657         `NUM_LEADING_BYTES' in UTF-2000.
658
659 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
660
661         * char-ucs.h (GC_CHARSETP): Deleted.
662
663 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * char-ucs.h (MAX_CHAR_GT): Updated.
666
667 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
668
669         * text-coding.c: Sync with XEmacs 21.4.10.
670
671 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
672
673         * mule-charset.c (Vcharset_china3_jef): Deleted.
674         (Qchina3_jef): Deleted.
675         (syms_of_mule_charset): Don't define `china3-jef'.
676         (complex_vars_of_mule_charset): Likewise.
677
678         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
679         (MIN_CHAR_CHINA3_JEF): Comment out.
680         (MAX_CHAR_CHINA3_JEF): Comment out.
681
682 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * mule-charset.c (Vcharset_ucs_gb): New variable.
685         (Qucs_gb): New variable.
686         (syms_of_mule_charset): Add new symbol `ucs-gb'.
687         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
688
689         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
690
691 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (charset_code_point): if a coded-charset has a
694         final-byte, don't inherit the builtin range of the mother CCS.
695
696 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * mule-charset.c (charset_code_point): Fix problem about
699         inheritance.
700
701 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * mule-charset.c (decode_builtin_char): Reorganized.
704
705 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * text-coding.c (char_encode_as_entity_reference): Modify for
708         `charset_code_point'.
709         (char_encode_shift_jis): Likewise.
710         (char_encode_big5): Likewise.
711         (char_encode_utf8): Likewise.
712         (char_encode_iso2022): Likewise.
713
714         * mule-charset.c (charset_code_point): Add new argument
715         `defined_only'.
716         (Fencode_char): Add new optional argument `defined_only'.
717
718         * chartab.c (put_char_table): Modify for `charset_code_point'.
719
720         * char-ucs.h (charset_code_point): Add new argument
721         `defined_only'.
722         (encode_char_1): Modify for `charset_code_point'.
723
724 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
727         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
728
729 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
732         (Qjis_x0208): Likewise.
733         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
734         XCHARSET_FINAL(charset).
735         (charset_code_point): Modify condition for final-byte based
736         builtin-chars.
737         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
738         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
739         in UTF-2000; specify `=jis-x0208' as the mother of
740         `japanese-jisx0208-1978', `japanese-jisx0208' and
741         `japanese-jisx0208-1990' in UTF-2000.
742
743 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
744
745         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
746
747 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * text-coding.c (decode_coding_utf16): Support UTF-16.
750         (char_encode_utf16): Fixed.
751
752 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * text-coding.c (Qutf16): New variable in MULE.
755         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
756         (Fcoding_system_type): Add `utf-16' in MULE.
757         (struct detection_state): Add a structure for utf16 in MULE.
758         (detect_coding_type): Setup st->utf16.mask in MULE.
759         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
760         MULE.
761         (reset_encoding_stream): Use `char_encode_utf16' and
762         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
763         (detect_coding_utf16): New function [incomplete].
764         (decode_coding_utf16): New function [support only UCS-2].
765         (char_encode_utf16): New function.
766         (char_finish_utf16): New function.
767         (syms_of_file_coding): Add new symbol `utf-16'; setup
768         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
769
770         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
771         UTF-2000.
772         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
773         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
774
775 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
776
777         * chartab.c (put_char_table): When a charset is specified as a
778         range in UTF-2000, don't support builtin characters.
779
780 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
781
782         * mule-charset.c (decode_defined_char): Don't refer external
783         database if Qunbound or Qnil are found.
784         (Fsave_charset_mapping_table): Don't define it if
785         HAVE_CHISE_CLIENT is not defined.
786         (Freset_charset_mapping_table): New function.
787         (load_char_decoding_entry_maybe): Store Qnil if a character is not
788         found in external database.
789         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
790         if HAVE_CHISE_CLIENT is not defined; add new builtin function
791         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
792
793 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
794
795         * text-coding.c (decode_coding_utf8): Check CCS is specified or
796         not.
797
798 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
799
800         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
801         Q_lowercase, Q_uppercase in UTF-2000.
802
803         * chartab.c (get_char_table): Add special code for the standard
804         case table to use character attribute `->downcase' and
805         `->uppercase' for case operations in UTF-2000.
806
807         * casetab.c (Qflippedcase): New variable in UTF-2000.
808         (Q_lowercase): Likewise.
809         (Q_uppercase): Likewise.
810         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
811         and `->uppercase' in UTF-2000.
812         (complex_vars_of_casetab): Assign attribute name `downcase' to
813         downcase and CANON table of Vstandard_case_table in UTF-2000;
814         assign attribute name `flippedcase' to upcase and EQV table of
815         Vstandard_case_table in UTF-2000.
816
817 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
818
819         * text-coding.c (decode_add_er_char): Support isolated-chars.
820         (char_encode_as_entity_reference): Likewise.
821
822 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
823
824         * emacs.c (Vutf_2000_lisp_directory): New variable.
825         (Vconfigure_utf_2000_lisp_directory): Likewise.
826         (complex_vars_of_emacs): Add new variable
827         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
828
829 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
830
831         * char-ucs.h (DECODE_CHAR): Delete special code for
832         `chinese-big5-1' and `chinese-big5-2'.
833
834         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
835         (Qbig5_2): Likewise.
836         (decode_defined_char): Support CONVERSION_BIG5_1 and
837         CONVERSION_BIG5_2.
838         (decode_builtin_char): Likewise.
839         (charset_code_point): Likewise.
840         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
841         'conversion in UTF-2000.
842         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
843         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
844         `chinese-big5-2' as children of `chinese-big5'.
845
846         * char-ucs.h (CONVERSION_BIG5_1): New macro.
847         (CONVERSION_BIG5_2): New macro.
848
849 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
850
851         * text-coding.c (char_encode_big5): Support entity-reference.
852
853 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
854
855         * text-coding.c (char_encode_as_entity_reference): New function.
856         (char_encode_utf8): Use `char_encode_as_entity_reference'.
857
858 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
859
860         * text-coding.c (decode_coding_big5): Support entity-reference
861         decoding feature.
862
863 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * text-coding.c (allocate_coding_system): Initialize initial
866         charsets for CODESYS_UTF8.
867         (Fmake_coding_system): Accept charset-g0, charset-g1 and
868         charset-g2 for CODESYS_UTF8.
869         (decode_coding_utf8): Use charset-g0.
870         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
871         to force variants to map to UCS.
872
873 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * text-coding.c (Qutf_8_mcs): New variable.
876         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
877         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
878         instead of `utf-8' in UTF-2000.
879
880 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
881
882         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
883         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
884         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
885         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
886         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
887         CONVERSION_96x96x96x96 are introduced.
888         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
889         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
890         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
891
892         * char-ucs.h (CONVERSION_94): New macro.
893         (CONVERSION_96): New macro.
894         (CONVERSION_94x94): New macro.
895         (CONVERSION_96x96): New macro.
896         (CONVERSION_94x94x94): New macro.
897         (CONVERSION_96x96x96): New macro.
898         (CONVERSION_94x94x94x60): New macro.
899         (CONVERSION_94x94x94x94): New macro.
900         (CONVERSION_96x96x96x96): New macro.
901
902 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
903
904         * chartab.c (Vcharacter_variant_table): Deleted.
905         (Fchar_variants): Use character-attribute `->ucs-variants' instead
906         of `Vcharacter_variant_table'.
907         (Fput_char_attribute): Likewise.
908         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
909         (complex_vars_of_chartab): Likewise.
910
911 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
912
913         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
914
915         * fns.c (Qideographic_structure): New variable.
916         (Qkeyword_char): New variable.
917         (ids_format_unit): New function.
918         (Fideographic_structure_to_ids): New function.
919         (syms_of_fns): Add new symbols `ideographic-structure' and
920         `:char'; add new builtin function `ideographic-structure-to-ids'.
921
922         * data.c (Fchar_ref_p): New function.
923         (syms_of_data): Add new builtin function `char-ref-p'.
924
925         * chartab.h: Add an EXFUN for `Ffind_char'.
926
927 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * text-coding.c (Vcharacter_composition_table): Deleted.
930         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
931         in every UTF-2000.
932
933         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
934         UTF-2000.
935         (Vcharacter_composition_table): Deleted.
936         (Fget_composite_char): Use the implementation for external-DB
937         support in every UTF-2000.
938         (Fput_char_attribute): Likewise.
939         (char_attribute_system_db_file): Don't define if external-DB
940         feature is not available.
941         (Fsave_char_attribute_table): Likewise.
942         (Fmount_char_attribute_table): Likewise.
943         (Fclose_char_attribute_table): Likewise.
944         (Freset_char_attribute_table): Likewise.
945         (Fload_char_attribute_table): Likewise.
946         (syms_of_chartab): Don't define `save-char-attribute-table',
947         `mount-char-attribute-table', `reset-char-attribute-table',
948         `close-char-attribute-table' and `load-char-attribute-table' if
949         external-DB feature is not available.
950         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
951
952 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
953
954         * text-coding.c (Qcomposition): Add extern if external-DB feature
955         is supported.
956         (Vcharacter_composition_table): Don't add extern if external-DB
957         feature is supported.
958         (COMPOSE_ADD_CHAR): Modify for new data-representation of
959         character composition rule if external-DB feature is supported.
960
961         * chartab.c (Vcharacter_composition_table): Don't define if
962         external-DB feature is supported.
963         (Qcomposition): New variable.
964         (Fget_composite_char): New implementation for external-DB support.
965         (Fput_char_attribute): Use `composition' property of each
966         character instead of `Vcharacter_composition_table' to store
967         character-composition rules if external-DB feature is supported.
968         (syms_of_chartab): Add new symbol `composition'.
969         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
970         external-DB feature is supported.
971
972 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
973
974         * chartab.c (Vchar_db_stingy_mode): New variable.
975         (load_char_attribute_maybe): Close database if
976         Vchar_db_stingy_mode is not NIL.
977         (Fload_char_attribute_table_map_function): Use
978         `get_char_id_table_0' instead of `get_char_id_table'.
979         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
980
981         * chartab.h (get_char_id_table_0): New inline function.
982         (get_char_id_table): Use `get_char_id_table_0'.
983
984 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
985
986         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
987         and `COMPOSE_ADD_CHAR'.
988         (decode_coding_iso2022): Use `decode_flush_er_chars'.
989
990 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
991
992         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
993         instead of `DECODE_ADD_UCS_CHAR'.
994         (COMPOSE_ADD_CHAR): Likewise.
995
996 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
997
998         * text-coding.c (decode_flush_er_chars): New inline function.
999         (decode_add_er_char): New function.
1000         (decode_coding_utf8): Use `decode_flush_er_chars' and
1001         `decode_add_er_char'.
1002
1003 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1004
1005         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1006         done before `decode_output_utf8_partial_char'.
1007
1008         * mule-charset.c (complex_vars_of_mule_charset): Specify
1009         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1010         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1011
1012 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1013
1014         * mule-charset.c (decode_defined_char): New function; search
1015         mother.
1016         (decode_builtin_char): Don't search mother if
1017         XCHARSET_MAX_CODE(charset) == 0.
1018         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1019         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1020         (Fdecode_char): Use `decode_defined_char' instead of
1021         `DECODE_DEFINED_CHAR'.
1022         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1023         mother of `Vcharset_ucs_jis'.
1024
1025         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1026         instead of `DECODE_DEFINED_CHAR'.
1027
1028         * char-ucs.h (decode_defined_char): Renamed from
1029         `DECODE_DEFINED_CHAR'; changed to normal function.
1030         (DECODE_CHAR): Use `decode_defined_char' instead of
1031         `DECODE_DEFINED_CHAR'.
1032
1033         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1034
1035 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036
1037         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1038
1039         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1040         variable.
1041         (Quse_entity_reference): New variable.
1042         (Qd): New variable.
1043         (Qx): New variable.
1044         (QX): New variable.
1045         (coding_system_description): Add description for
1046         `ccs_priority_list'.
1047         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1048         (allocate_coding_system): Initialize `ccs_priority_list' in
1049         UTF-2000.
1050         (Fmake_coding_system): Add description about
1051         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1052         (codesys).
1053         (Fcoding_system_property): Accept `disable-composition' and
1054         `use-entity-reference' in UTF-2000.
1055         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1056         in UTF-2000.
1057         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1058         (decode_coding_utf8): Decode entity-reference if
1059         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1060         (char_encode_utf8): Encode non-Unicode characters as
1061         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1062         (str->codesys).
1063         (syms_of_file_coding): Add new symbols `use-entity-reference',
1064         `d', `x', `X'.
1065         (vars_of_file_coding): Add new variable
1066         `coded-charset-entity-reference-alist'.
1067         (complex_vars_of_file_coding): Declare `disable-composition' and
1068         `use-entity-reference' to be coding-system-properties in UTF-2000.
1069
1070         * file-coding.h (struct Lisp_Coding_System): Add new member
1071         `use_entity_reference' and `ccs_priority_list'.
1072         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1073         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1074         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1075
1076 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1077
1078         * chartab.c (save_uint8_byte_table): Don't clear the table.
1079         (save_uint16_byte_table): Likewise.
1080         (save_byte_table): Likewise.
1081         (Fmount_char_attribute_table): New function.
1082         (syms_of_chartab): Add new builtin function
1083         `mount-char-attribute-table'.
1084
1085 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086
1087         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1088         "w+" mode.
1089         (load_char_decoding_entry_maybe): Open database as read-only mode.
1090
1091         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1092         open database as "w+" mode.
1093         (load_char_attribute_maybe): Open database as read-only mode.
1094         (Fload_char_attribute_table): Likewise.
1095
1096 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1099         (char_table_description): Delete member `db_file'.
1100         (Fmake_char_table): Don't refer `ct->db_file'.
1101         (Fcopy_char_table): Likewise.
1102         (Fsave_char_attribute_table): Likewise.
1103         (Fclose_char_attribute_table): Likewise.
1104         (Freset_char_attribute_table): Likewise.
1105         (load_char_attribute_maybe): Likewise.
1106         (Fload_char_attribute_table): Likewise.
1107
1108         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1109
1110 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1113         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1114         `ct->db' is living.
1115         (load_char_attribute_maybe): Likewise.
1116         (Fload_char_attribute_table): Likewise.
1117
1118 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1119
1120         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1121         `ct->db_file' unconditionally.
1122
1123 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1124
1125         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1126         UTF-2000.
1127         (char_table_description): Add description for `db_file' and `db'
1128         in UTF-2000.
1129         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1130         UTF-2000.
1131         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1132         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1133         (Fclose_char_attribute_table): New function.
1134         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1135         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1136         and `cit->db'.
1137         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1138         (syms_of_chartab): Add new builtin function
1139         `Fclose_char_attribute_table'.
1140
1141 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1142
1143         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1144         `db' in UTF-2000.
1145         (load_char_attribute_maybe): Change interface.
1146         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1147
1148 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1149
1150         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1151
1152 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1155         instead of `DECODE_CHAR' for mother; don't use special code for
1156         chinese-big5 to use code space of chinese-big5-1 and
1157         chinese-big5-2.
1158         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1159         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1160
1161         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1162         (MAX_CHAR_BIG5_CDP): Revival.
1163
1164 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1165
1166         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1167         the XLFD registry-encoding name of `chinese-big5'.
1168
1169 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1170
1171         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1172         (Qchinese_big5_cdp): Deleted.
1173         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1174         (complex_vars_of_mule_charset): Delete coded-charset
1175         `chinese-big5-cdp'.
1176
1177         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1178         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1179         `CHARSET_ID_OFFSET - n' for private CCS.
1180         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1181         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1182         of `MIN_LEADING_BYTE'.
1183         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1184         `(CHARSET_ID_OFFSET - 97)'.
1185         (MIN_CHAR_BIG5_CDP): Deleted.
1186         (MAX_CHAR_BIG5_CDP): Deleted.
1187
1188 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1189
1190         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1191
1192 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1195         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1196         chartab.c].
1197
1198         * chartab.c (Vutf_2000_version): Moved to mule.c.
1199         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1200
1201 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1202
1203         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1204         when HAVE_CHISE_CLIENT is not defined.
1205
1206         * mule.c (vars_of_mule): Provide feature `chise' when
1207         HAVE_CHISE_CLIENT is defined.
1208
1209 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1210
1211         * config.h.in (UTF2000): Add comment.
1212         (HAVE_CHISE_CLIENT): New macro.
1213
1214 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1217         CONSP.
1218         (Fput_char_attribute): Likewise.
1219         (char_attribute_system_db_file): Encode file-name of attribute.
1220         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1221         the initial value.
1222
1223 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1226         (Fsave_charset_mapping_table): Use
1227         `char_attribute_system_db_file'.
1228         (load_char_decoding_entry_maybe): Likewise.
1229
1230         * chartab.h (Qsystem_char_id): New external variable.
1231         (char_attribute_system_db_file): New prototype.
1232
1233         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1234         (char_attribute_system_db_file): New function.
1235         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1236         (Freset_char_attribute_table): Likewise.
1237         (load_char_attribute_maybe): Likewise.
1238         (Fload_char_attribute_table): Likewise.
1239         (syms_of_chartab): Add new symbol `system-char-id'.
1240
1241 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1242
1243         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1244         `XCHARSET_GRAPHIC(ccs)'.
1245
1246 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1247
1248         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1249
1250 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * chartab.c (Q_ucs_variants): New variable.
1253         (syms_of_chartab): Add new symbol `->ucs-variants'.
1254         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1255         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1256         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1257
1258         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1259
1260         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1261         `HAVE_DATABASE' is defined.
1262         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1263         `HAVE_DATABASE' is defined.
1264
1265 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1266
1267         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1268         attribute-table.
1269         (Freset_char_attribute_table): New function.
1270         (syms_of_chartab): Add new builtin function
1271         `reset-char-attribute-table'.
1272
1273 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1274
1275         * chartab.c (load_char_attribute_maybe): Don't make directories.
1276
1277 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1278
1279         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1280
1281         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1282         for decoding-table.
1283
1284 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1285
1286         * mule-charset.c (Fsave_charset_mapping_table): Use
1287         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1288
1289         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1290         instead of `XCHARSET_CHARS'.
1291
1292 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1293
1294         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1295         (XCHARSET_BYTE_SIZE): Likewise.
1296
1297         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1298         mule-charset.c].
1299         (XCHARSET_BYTE_SIZE): Likewise.
1300
1301 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1302
1303         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1304         data-directory to store database.
1305         (Fsave_char_attribute_table): Likewise.
1306         (load_char_attribute_maybe): Likewise.
1307         (Fload_char_attribute_table): Likewise.
1308
1309 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1310
1311         * mule-charset.c (Fsave_charset_mapping_table): New function.
1312         (syms_of_mule_charset): Add new builtin function
1313         `save-charset-mapping-table'.
1314
1315 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1316
1317         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1318         (get_ccs_octet_table): New inline function.
1319         (put_ccs_octet_table): Likewise.
1320         (decoding_table_put_char): Use `get_ccs_octet_table' and
1321         `put_ccs_octet_table'.
1322         (decoding_table_remove_char): Use `decoding_table_put_char'.
1323         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1324
1325         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1326         into encoding_table.
1327         (make_charset): Use Qunbound instead Qnil as initial value of
1328         decoding_table.
1329
1330 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1331
1332         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1333         element is Qunloaded.
1334         (map_over_uint16_byte_table): Likewise.
1335         (map_over_byte_table): Likewise.
1336         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1337         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1338         database support, load encoding-table of the specified
1339         coded-charset if it is not loaded yet.
1340         (save_uint8_byte_table): New function of UTF-2000 with external
1341         database support.
1342         (save_uint16_byte_table): Likewise.
1343         (save_byte_table): Likewise.
1344         (Fput_char_attribute): Don't store value into external database
1345         even if the external database feature is supported in UTF-2000;
1346         set `attribute' as name of char-table if the external database
1347         feature is supported.
1348         (Fsave_char_attribute_table): New function in UTF-2000.
1349         (syms_of_chartab): Add new builtin function
1350         `save-char-attribute-table' in UTF-2000.
1351
1352 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1353
1354         * chartab.c (char_attribute_table_to_put): New variable in
1355         UTF-2000.
1356         (Qput_char_table_map_function): Likewise.
1357         (value_to_put): Likewise.
1358         (Fput_char_table_map_function): New function in UTF-2000.
1359         (put_char_table): Use `Fmap_char_attribute' for
1360         CHARTAB_RANGE_CHARSET in UTF-2000.
1361         (Fput_char_attribute): Store symbol instead of string in
1362         `XCHAR_TABLE_NAME (table)'.
1363         (load_char_attribute_maybe): Likewise.
1364         (syms_of_chartab): Add new symbol/function
1365         `put-char-table-map-function'.
1366
1367 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * database.h: Add new EXFUN for `Fmap_database'.
1370
1371         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1372         (syms_of_database): Likewise.
1373
1374         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1375         UTF-2000.
1376         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1377         (XCHAR_TABLE_UNLOADED): Likewise.
1378
1379         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1380         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1381         HAVE_DATABASE is defined.
1382         (char_attribute_table_to_load): New variable of UTF-2000 with
1383         external database support.
1384         (Qload_char_attribute_table_map_function): Likewise.
1385         (Fload_char_attribute_table_map_function): New function of
1386         UTF-2000 with external database support.
1387         (Fload_char_attribute_table): New function of UTF-2000.
1388         (Fmap_char_attribute): Call Fload_char_attribute_table if
1389         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1390         (syms_of_chartab): Add new symbol and function
1391         `load-char-attribute-table-map-function' in UTF-2000 with external
1392         database support; add new function `load-char-attribute-table' in
1393         UTF-2000.
1394
1395 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * chartab.h (load_char_attribute_maybe): New prototype for
1398         UTF-2000 with DATABASE support.
1399         (get_char_id_table): Use `load_char_attribute_maybe' if
1400         HAVE_DATABASE is defined.
1401
1402         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1403         with DATABASE support.
1404
1405 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * chartab.c (Fput_char_attribute): Use S-expression as key of
1408         external database.
1409
1410         * chartab.h (get_char_id_table): Use S-expression as key of
1411         external database.
1412
1413 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1416         if an element is not loaded, load the corresponding attributes
1417         from an external database.
1418         (map_over_uint16_byte_table): Likewise.
1419         (map_over_byte_table): Likewise.
1420         (map_char_table): Modify for `map_over_uint8_byte_table',
1421         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1422         element is not loaded, load the corresponding attributes from an
1423         external database.
1424         (Fput_char_attribute): Change initial values to Qunloaded.
1425
1426         * chartab.h (get_char_id_table): If a character attribute is not
1427         loaded and the attribute value is not found in an external
1428         database, store Qunbound as the attribute value.
1429
1430 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * chartab.c (BT_UINT8_unloaded): New macro.
1433         (UINT8_VALUE_P): Accept Qunloaded.
1434         (UINT8_ENCODE): Likewise.
1435         (UINT8_DECODE): Likewise.
1436         (BT_UINT16_unloaded): New macro.
1437         (UINT16_VALUE_P): Accept Qunloaded.
1438         (UINT16_ENCODE): Likewise.
1439         (UINT16_DECODE): Likewise.
1440         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1441         BT_UINT16_unloaded.
1442         (mark_char_table): Mark `ct->name' in UTF-2000.
1443         (char_table_description): Add `name' in UTF-2000.
1444         (Fmake_char_table): Initialize `ct->name'.
1445         (Fcopy_char_table): Copy `ct->name'.
1446         (Fput_char_attribute): Store value into an external database if
1447         HAVE_DATABASE is defined.
1448
1449         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1450         UTF-2000.
1451         (CHAR_TABLE_NAME): New macro in UTF-2000.
1452         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1453         (get_char_id_table): Try to read an external database if Qunloaded
1454         is stored in a table.
1455
1456         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1457         Qunloaded.
1458
1459 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1460
1461         * database.h: Add EXFUN definitions for Fopen_database,
1462         Fput_database, Fget_database and Fclose_database.
1463
1464         * data.c (Qunloaded): New variable in UTF-2000.
1465
1466         * lisp.h (Qunloaded): New variable in UTF-2000.
1467
1468 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * mule-charset.c (put_char_ccs_code_point): Modify for
1471         `decoding_table_remove_char' and `decoding_table_put_char'.
1472         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1473
1474         * char-ucs.h (decoding_table_remove_char): Change arguments to
1475         hide decoding_table vector.
1476         (decoding_table_put_char): Likewise.
1477
1478 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1479
1480         * mule-charset.c (decoding_table_remove_char): Moved to
1481         char-ucs.h.
1482         (decoding_table_put_char): Likewise.
1483
1484         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1485         from mule-charset.c].
1486         (decoding_table_remove_char): New inline function [moved from
1487         mule-charset.c].
1488         (decoding_table_put_char): Likewise.
1489
1490 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1493         extension.
1494
1495 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * mule-charset.c (decode_builtin_char): Support mother charsets.
1498
1499 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1500
1501         * mule-charset.c (Q94x94x60): New variable.
1502         (charset_code_point): Support conversion `94x94x60'.
1503         (Fmake_charset): Likewise.
1504         (syms_of_mule_charset): Add new symbol `94x94x60'.
1505
1506         * char-ucs.h (CONVERSION_94x94x60): New macro.
1507
1508 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1509
1510         * mule-charset.c (charset_code_point): Unify code about
1511         `code-offset'.
1512
1513 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1514
1515         * mule-charset.c (charset_code_point): Merge code about builtin
1516         characters into code about mother charsets; don't use
1517         `range_charset_code_point'.
1518         (range_charset_code_point): Deleted.
1519
1520 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (Qcode_offset): New variable.
1523         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1524         `max-code'; accept new property `code-offset'.
1525         (syms_of_mule_charset): Add new symbol `code-offset'.
1526
1527 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528
1529         * mule-charset.c (range_charset_code_point): Fixed.
1530
1531 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * mule-charset.c (decode_builtin_char): Change semantics of
1534         code-offset of coded-charset.
1535         (charset_code_point): Likewise.
1536         (range_charset_code_point): Likewise.
1537         (complex_vars_of_mule_charset): Modify for the change.
1538
1539 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1540
1541         * mule-charset.c (Fencode_char): Reverse arguments.
1542
1543         * mule-charset.c (charset_code_point): Fixed.
1544
1545 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * mule-charset.c (Vcharset_mojikyo): Deleted.
1548         (Vcharset_mojikyo_2022_1): Deleted.
1549         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1550         (Qmin_code): New variable in UTF-2000.
1551         (Qmax_code): Likewise.
1552         (Qmother): Likewise.
1553         (Qconversion): Likewise.
1554         (Q94x60): Likewise.
1555         (Qmojikyo): Deleted.
1556         (Qmojikyo_2022_1): Deleted.
1557         (Qmojikyo_pj_{1..22}): Deleted.
1558         (mark_charset): Mark `cs->mother'.
1559         (charset_description): Add description for `mother'.
1560         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1561         new arguments `mother' and `conversion'; use
1562         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1563         (charset_code_point): Moved from char-ucs.h; support `mother'
1564         charset feature.
1565         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1566         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1567         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1568         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1569         allow 2 as the value of `graphic' in UTF-2000; add new properties
1570         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1571         require `final' in UTF-2000; modify for `make_charset'.
1572         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1573         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1574         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1575         (Fencode_char): New function.
1576         (syms_of_mule_charset): Add new builtin function `encode-char' in
1577         UTF-2000; add new symbols `min-code', `max-code', `mother',
1578         `conversion' and `94x60'; delete symbols `mojikyo',
1579         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1580         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1581         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1582         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1583
1584         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1585         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1586
1587         * char-ucs.h (Vcharset_mojikyo): Deleted.
1588         (Vcharset_mojikyo_2022_1): Deleted.
1589         (LEADING_BYTE_MOJIKYO): Deleted.
1590         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1591         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1592         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1593         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1594         add new member `mother'; add new member `conversion'.
1595         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1596         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1597         (CHARSET_MOTHER): New macro.
1598         (CHARSET_CONVERSION): New macro.
1599         (CONVERSION_IDENTICAL): New macro.
1600         (CONVERSION_94x60): New macro.
1601         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1602         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1603         (XCHARSET_MOTHER): New macro.
1604         (XCHARSET_CONVERSION): New macro.
1605         (MIN_CHAR_MOJIKYO): Deleted.
1606         (MAX_CHAR_MOJIKYO): Deleted.
1607         (DECODE_MOJIKYO_2022): Deleted.
1608         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1609         (charset_code_point): Changed to non-inline function.
1610         (encode_char_1): Use `charset_code_point'.
1611         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1612
1613 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614
1615         * lread.c (read_compiled_function): Fix prototype.
1616         (read_vector): Likewise.
1617
1618 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * lrecord.h (struct lrecord_header): Delete `older'.
1621         (set_lheader_implementation): Delete code for `older'.
1622         (set_lheader_older_implementation): Deleted.
1623         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1624         (OLDER_RECORD_P): Deleted.
1625         (OLDER_RECORD_HEADER_P): Deleted.
1626         (alloc_older_lcrecord): Deleted.
1627         (alloc_older_lcrecord_type): Deleted.
1628
1629         * alloc.c (all_older_lcrecords): Deleted.
1630         (alloc_older_lcrecord): Deleted.
1631         (disksave_object_finalization_1): Delete code for older objects.
1632         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1633         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1634
1635 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1636
1637         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1638         instead of `make_older_vector'.
1639         (put_char_ccs_code_point): Likewise.
1640         (mark_charset): Mark `cs->decoding_table'.
1641         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1642
1643         * lisp.h (make_older_vector): Deleted.
1644         (make_vector_newer): Deleted.
1645
1646         * config.h.in (HAVE_GGC): Deleted.
1647
1648         * alloc.c (make_older_vector): Deleted.
1649         (make_vector_newer_1): Deleted.
1650         (make_vector_newer): Deleted.
1651
1652 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1655         (Qideograph_daikanwa_2): New variable.
1656         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1657         (complex_vars_of_mule_charset): Add new coded-charset
1658         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1659         `LEADING_BYTE_DAIKANWA'.
1660
1661         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1662         (LEADING_BYTE_DAIKANWA_1): New macro.
1663         (LEADING_BYTE_DAIKANWA_2): New macro.
1664         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1665
1666 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * mule-charset.c (complex_vars_of_mule_charset): Change
1669         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1670         the second revised version.
1671
1672 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673
1674         * mule-charset.c (Vcharset_ucs_smp): New variable.
1675         (Vcharset_ucs_sip): New variable.
1676         (Qucs_smp): New variable.
1677         (Qucs_sip): New variable.
1678         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1679         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1680         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1681         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1682         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1683         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1684
1685         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1686         (LEADING_BYTE_UCS_SIP): New macro.
1687         (MIN_CHAR_SMP): New macro.
1688         (MAX_CHAR_SMP): New macro.
1689         (MIN_CHAR_SIP): New macro.
1690         (MAX_CHAR_SIP): New macro.
1691
1692 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1693
1694         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1695         utf-2000.
1696
1697 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1698
1699         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1700         value; don't store value into `encoding_table' of `Lisp_Charset'.
1701         (mark_charset): `encoding_table' was deleted.
1702         (charset_description): Likewise.
1703         (make_charset): Likewise.
1704         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1705         `put_char_ccs_code_point'.
1706
1707         * chartab.h (Fput_char_attribute): New EXFUN.
1708
1709         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1710         is unified with normal symbol space.
1711         (Fget_char_attribute): Likewise.
1712         (Fput_char_attribute): Likewise; behavior of
1713         `put_char_ccs_code_point' is changed.
1714
1715         * char-ucs.h: Include "elhash.h".
1716         (Vchar_attribute_hash_table): New external variable.
1717         (struct Lisp_Charset): Delete `encoding_table'.
1718         (CHARSET_ENCODING_TABLE): New implementation; refer
1719         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1720         `Lisp_Charset'.
1721
1722 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1723
1724         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1725         (cs) == 0.
1726
1727 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1728
1729         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1730         `chinese-big5'.
1731
1732 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1733
1734         * chartab.c (uint8_byte_table_description): New constant.
1735         (uint8-byte-table): Use `uint8_byte_table_description'.
1736         (uint16_byte_table_description): New constant.
1737         (uint16-byte-table): Use `uint16_byte_table_description'.
1738
1739 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1742         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1743
1744 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745
1746         * mule-charset.c (Vcharset_ucs_ks): New variable.
1747         (Qucs_ks): New variable.
1748         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1749         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1750
1751         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1752
1753 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1756         (Fdecode_char): Likewise.
1757
1758         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1759         chartab.h.
1760         (Fdefine_char): Modify for Fdecode_char.
1761         (Ffind_char): Likewise.
1762
1763         * mule-charset.c (Fdecode_char): Add new optional argument
1764         `defined-only'.
1765         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1766
1767 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1768
1769         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1770         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1771         (allocate_coding_system): Initialize initial-charsets of
1772         CODESYS_BIG5 in XEmacs UTF-2000.
1773         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1774         CODESYS_BIG5 in XEmacs UTF-2000.
1775         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1776         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1777
1778         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1779         variables.
1780         (Qideograph_hanziku_{1 .. 12}): Likewise.
1781         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1782         .. 12}'.
1783         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1784         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1785         `ideograph-hanziku-{1 .. 12}'.
1786
1787         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1788         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1789         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1790         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1791         (DECODE_DEFINED_CHAR): New inline function.
1792         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1793
1794 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1795
1796         * mule-charset.c (Vcharset_china3_jef): Renamed from
1797         `Vcharset_japanese_jef_china3'.
1798         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1799         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1800         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1801         (syms_of_mule_charset): Rename `china3-jef' from
1802         `japanese-jef-china3'.
1803         (complex_vars_of_mule_charset): Likewise; rename
1804         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1805
1806         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1807         `LEADING_BYTE_JEF_CHINA3'.
1808         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1809         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1810
1811 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1812
1813         * mule-charset.c (encode_builtin_char_1): Comment out special code
1814         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1815
1816         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1817         (MAX_CHAR_MOJIKYO_0): Comment out.
1818         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1819         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1820         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1821         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1822
1823 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1826         (Qideograph_cbeta): New variable.
1827         (encode_builtin_char_1): Comment out special code for
1828         coded-charset `mojikyo' and `japanese-jef-china3'.
1829         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1830         (complex_vars_of_mule_charset): Add new coded-charset
1831         `ideograph-cbeta'.
1832
1833         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1834         (MIN_CHAR_CBETA): New macro.
1835         (MAX_CHAR_CBETA): New macro.
1836
1837 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1840         (LEADING_BYTE_JEF_CHINA3): New macro.
1841         (MIN_CHAR_JEF_CHINA3): New macro.
1842         (MAX_CHAR_JEF_CHINA3): Likewise.
1843         (DECODE_CHAR): Fixed.
1844
1845 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1848         (Qjapanese_jef_china3): New variable.
1849         (encode_builtin_char_1): Support `japanese-jef-china3'.
1850         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1851         (complex_vars_of_mule_charset): Add new coded-charset
1852         `japanese-jef-china3'.
1853
1854 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855
1856         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1857         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1858         94^4, 96^3, 96^4, 128^n and 256^n set.
1859         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1860         (map_char_table): Likewise.
1861
1862 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1863
1864         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1865         UTF-2000.
1866
1867 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1868
1869         * chartab.h (get_char_id_table): New inline function.
1870
1871         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1872         function.
1873
1874 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1875
1876         * chartab.h (decode_char_table_range): New prototype in XEmacs
1877         UTF-2000.
1878         (put_char_id_table): New inline function in XEmacs UTF-2000.
1879
1880         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1881         function.
1882         (decode_char_table_range): Delete static declaration in XEmacs
1883         UTF-2000.
1884
1885 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1886
1887         * chartab.c (put_char_id_table): Use `put_char_table'.
1888
1889 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1892         (map_over_uint16_byte_table): Likewise.
1893         (map_over_byte_table): Likewise.
1894         (map_char_table): Modify for `map_over_uint8_byte_table',
1895         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1896         UTF-2000.
1897
1898 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1899
1900         * chartab.c (struct map_char_table_for_charset_arg): New
1901         structure.
1902         (map_char_table_for_charset_fun): New function.
1903         (map_char_table): Use `map_char_table' for encoding_table of
1904         `range->charset'.
1905
1906 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * chartab.c (map_char_table): Check a character is found in
1909         range->charset instead of non default value is defined in
1910         char-table when range is CHARTAB_RANGE_ROW.
1911
1912 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * chartab.c (map_char_id_table): Deleted.
1915         (Fmap_char_attribute): Use `map_char_table' instead of
1916         `map_char_id_table'.
1917
1918 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919
1920         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1921         UTF-2000.
1922         (update_syntax_table): Deleted in XEmacs UTF-2000.
1923
1924         * syntax.c (find_defun_start): Use `syntax_table' instead of
1925         `mirror_syntax_table' in XEmacs UTF-2000.
1926         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1927         UTF-2000.
1928         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1929         XEmacs UTF-2000.
1930         (Fmatching_paren): Likewise.
1931         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1932         in XEmacs UTF-2000.
1933         (find_start_of_comment): Likewise.
1934         (find_end_of_comment): Likewise.
1935         (Fforward_comment): Likewise.
1936         (scan_lists): Likewise.
1937         (char_quoted): Likewise.
1938         (Fbackward_prefix_chars): Likewise.
1939         (scan_sexps_forward): Likewise.
1940         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1941         (update_syntax_table): Likewise.
1942
1943         * search.c (skip_chars): Use `syntax_table' instead of
1944         `mirror_syntax_table' in XEmacs UTF-2000.
1945         (wordify): Likewise.
1946         (Freplace_match): Likewise.
1947
1948         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1949         `mirror_syntax_table' in XEmacs UTF-2000.
1950         (WORDCHAR_P_UNSAFE): Likewise.
1951         (re_match_2_internal): Likewise.
1952
1953         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1954         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1955
1956         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1957         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1958
1959         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1960         XEmacs UTF-2000.
1961
1962         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1963         UTF-2000.
1964         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1965         (char_table_description): Delete `mirror_table' in XEmacs
1966         UTF-2000.
1967         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1968         UTF-2000.
1969         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1970         (Fcopy_char_table): Likewise.
1971         (put_char_table): Don't call `update_syntax_table' in XEmacs
1972         UTF-2000.
1973
1974         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1975         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1976         (casify_region_internal): Likewise.
1977
1978         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1979
1980         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1981         `mirror_syntax_table' in XEmacs UTF-2000.
1982
1983         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1984         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1985         (Fexpand_abbrev): Likewise.
1986
1987 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1990
1991 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1994         (map_over_uint16_byte_table): Likewise.
1995         (map_over_byte_table): Likewise.
1996         (get_char_id_table): Refer `cit->default_value'.
1997         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1998         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1999         of character-id ranges.
2000         (mark_char_table): Mark `ct->default_value'.
2001         (char_table_description): Add `default_value'.
2002         (fill_char_table): Use `default_value'.
2003         (decode_char_table_range): Decode `nil' as
2004         `CHARTAB_RANGE_DEFAULT'.
2005         (get_char_id_table): Refer `cit->default_value'.
2006         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2007         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2008         temporary hack; check value of char-table is bound or not.
2009         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2010
2011         * chartab.h (struct Lisp_Char_Table): Add new member
2012         `default_value' in XEmacs UTF-2000.
2013         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2014         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2015         UTF-2000.
2016
2017 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2018
2019         * chartab.h (Lisp_Char_ID_Table): Deleted.
2020
2021         * chartab.c (char_table_description): Fix typo.
2022         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2023         `Lisp_Char_ID_Table'.
2024
2025 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2026
2027         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2028         `CHAR_ID_TABLE_P'.
2029
2030         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2031         `CHAR_ID_TABLE_P'.
2032
2033         * chartab.h (XCHAR_ID_TABLE): Deleted.
2034         (XSETCHAR_ID_TABLE): Deleted.
2035         (CHAR_ID_TABLE_P): Deleted.
2036
2037         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2038         `CHAR_ID_TABLE_P'.
2039         (Fget_composite_char): Likewise.
2040         (put_char_table): Likewise.
2041         (add_char_attribute_alist_mapper): Fixed.
2042         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2043         `CHAR_ID_TABLE_P'.
2044         (Fget_char_attribute): Likewise.
2045         (Fget_char_attribute): Likewise.
2046         (Fmap_char_attribute): Likewise.
2047
2048         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2049         `CHAR_ID_TABLE_P'.
2050         (encode_char_1): Likewise.
2051
2052 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2053
2054         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2055         `XCHAR_ID_TABLE'.
2056
2057         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2058         instead of `XCHAR_ID_TABLE'.
2059         (remove_char_ccs): Likewise.
2060
2061         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2062         `XCHAR_ID_TABLE'.
2063         (Fget_composite_char): Likewise.
2064         (Fchar_variants): Likewise.
2065         (put_char_table): Likewise.
2066         (add_char_attribute_alist_mapper): Likewise.
2067         (Fchar_attribute_alist): Likewise.
2068         (Fget_char_attribute): Likewise.
2069         (Fput_char_attribute): Likewise.
2070         (Fmap_char_attribute): Likewise.
2071         (Fmap_char_attribute): Likewise.
2072
2073         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2074         `XCHAR_ID_TABLE'.
2075         (encode_char_1): Likewise.
2076
2077 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2080         `Lisp_Char_ID_Table'.
2081         (mark_char_id_table): Deleted.
2082         (print_char_id_table): Likewise.
2083         (char_id_table_equal): Likewise.
2084         (char_id_table_hash): Likewise.
2085         (char_id_table_description): Likewise.
2086         (char_id_table): Likewise.
2087         (make_char_id_table): Use `Fmake_char_table' and
2088         `fill_char_table'.
2089         (get_char_id_table): Use `Lisp_Char_Table' instead of
2090         `Lisp_Char_ID_Table'.
2091         (put_char_id_table): Likewise.
2092         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2093         `XCHAR_ID_TABLE'.
2094         (Fremove_char_attribute): Likewise.
2095         (syms_of_chartab): Don't define type `char-id-table'.
2096
2097         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2098         (char_id_table): Likewise.
2099         (GC_CHAR_ID_TABLE_P): Likewise.
2100         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2101         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2102         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2103         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2104         (get_char_id_table): Use `Lisp_Char_Table' instead of
2105         `Lisp_Char_ID_Table'.
2106         (put_char_id_table_0): Likewise.
2107         (put_char_id_table): Likewise.
2108
2109 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2110
2111         * chartab.h: Lisp_Byte_Table related codes are moved from
2112         chartab.h.
2113
2114         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2115
2116 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2117
2118         * chartab.h: Don't include "chartab.h".
2119         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2120         (Lisp_Char_ID_Table): Likewise.
2121         (char_id_table): Likewise.
2122         (XCHAR_ID_TABLE): Likewise.
2123         (XSETCHAR_ID_TABLE): Likewise.
2124         (CHAR_ID_TABLE_P): Likewise.
2125         (GC_CHAR_ID_TABLE_P): Likewise.
2126         (get_char_id_table): Likewise.
2127
2128         * char-ucs.h: Include "chartab.h".
2129         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2130         (Lisp_Char_ID_Table): Likewise.
2131         (char_id_table): Likewise.
2132         (XCHAR_ID_TABLE): Likewise.
2133         (XSETCHAR_ID_TABLE): Likewise.
2134         (CHAR_ID_TABLE_P): Likewise.
2135         (GC_CHAR_ID_TABLE_P): Likewise.
2136         (get_char_id_table): Likewise.
2137
2138 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2139
2140         * chartab.c (copy_uint8_byte_table): New function.
2141         (copy_uint16_byte_table): New function.
2142         (copy_byte_table): New function.
2143         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2144         characters to call.
2145         (map_over_uint16_byte_table): Likewise.
2146         (map_over_byte_table): Likewise.
2147         (get_byte_table): Move prototype to chartab.h.
2148         (put_byte_table): Likewise.
2149         (put_char_id_table_0): Moved to chartab.h.
2150         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2151         (char_table_entry_equal): Likewise.
2152         (char_table_entry_hash): Likewise.
2153         (char_table_entry_description): Likewise.
2154         (char_table_entry): Likewise.
2155         (make_char_table_entry): Likewise.
2156         (copy_char_table_entry): Likewise.
2157         (get_non_ascii_char_table_value): Likewise.
2158         (map_over_charset_ascii): Likewise.
2159         (map_over_charset_control_1): Likewise.
2160         (map_over_charset_row): Likewise.
2161         (map_over_other_charset): Likewise.
2162         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2163         (print_char_table): Likewise.
2164         (char_table_equal): Likewise.
2165         (char_table_hash): Likewise.
2166         (char_table_description): Likewise.
2167         (fill_char_table): Likewise.
2168         (Fcopy_char_table): Likewise.
2169         (get_char_table): Likewise.
2170         (Fget_range_char_table): Likewise.
2171         (put_char_table): Likewise.
2172         (map_char_table): Likewise.
2173         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2174         UTF-2000.
2175
2176 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2177
2178         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2179         `Vauto_fill_chars' in XEmacs UTF-2000.
2180
2181         * chartab.h (get_byte_table): New prototype [moved from
2182         chartab.c].
2183         (put_byte_table): Likewise [moved from chartab.c].
2184         (put_char_id_table_0): New inline function [moved from chartab.c].
2185         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2186         (Lisp_Char_Table_Entry): Likewise.
2187         (char_table_entry): Likewise.
2188         (XCHAR_TABLE_ENTRY): Likewise.
2189         (XSETCHAR_TABLE_ENTRY): Likewise.
2190         (CHAR_TABLE_ENTRYP): Likewise.
2191         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2192         (NUM_ASCII_CHARS): Likewise.
2193         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2194         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2195
2196 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * chartab.c (get_char_id_table): Change interface.
2199         (put_char_id_table_0): New function.
2200         (put_char_id_table): Change interface; new implementation.
2201         (Fget_composite_char): Modify for interface change of
2202         `get_char_id_table'.
2203         (Fchar_variants): Likewise.
2204         (add_char_attribute_alist_mapper): Likewise.
2205         (Fchar_attribute_alist): Likewise.
2206         (Fget_char_attribute): Likewise.
2207         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2208         as same as character as the first argument like `put-char-table';
2209         modify for interface change of `put_char_id_table'.
2210         (Fremove_char_attribute): Modify for interface change of
2211         `put_char_id_table'.
2212
2213 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214
2215         * text-coding.c: Sync up with XEmacs 21.2.41.
2216         (COMPOSE_ADD_CHAR): Modify for interface change of
2217         `get_char_id_table'.
2218
2219         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2220         change of `put_char_id_table'.
2221         (remove_char_ccs): Likewise.
2222
2223         * chartab.h (put_char_id_table): Change interface.
2224
2225         * char-ucs.h (get_char_id_table): Change interface.
2226         (charset_code_point): Modify for interface change of
2227         `get_char_id_table'.
2228         (encode_char_1): Likewise.
2229
2230 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2233         argument `ccs'.
2234         (map_over_uint16_byte_table): Likewise.
2235         (map_over_byte_table): Likewise.
2236         (map_char_id_table): Add new argument `range' like
2237         `map_char_table'.
2238         (Fmap_char_attribute): Add new argument `range' like
2239         `Fmap_char_table'.
2240
2241 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * chartab.c (map_over_uint8_byte_table): Change interface of
2244         mapping function to use struct chartab_range instead of Emchar.
2245         (map_over_uint16_byte_table): Likewise.
2246         (map_over_byte_table): Likewise.
2247         (map_char_id_table): Likewise.
2248         (struct slow_map_char_id_table_arg): Deleted.
2249         (slow_map_char_id_table_fun): Deleted.
2250         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2251         function `slow_map_char_table_fun' instead of struct
2252         `slow_map_char_id_table_arg' and function
2253         `slow_map_char_id_table_fun'.
2254
2255 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2256
2257         * mule-charset.c: Move char-it-table related codes to chartab.c.
2258         (Vutf_2000_version): Moved to chartab.c.
2259         (Fdefine_char): Likewise.
2260         (Ffind_char): Likewise.
2261         (syms_of_mule_charset): Move types `uint8-byte-table',
2262         `uint16-byte-table', `byte-table' and `char-id-table' to
2263         chartab.c; move functions `char_attribute_list,
2264         `find_char_attribute_table, `char_attribute_alist,
2265         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2266         `map_char_attribute, `define_char, `find_char, `char_variants and
2267         `get_composite_char to chartab.c; move symbols `=>ucs',
2268         `->decomposition', `compat', `isolated', `initial', `medial',
2269         `final', `vertical', `noBreak', `fraction', `super', `sub',
2270         `circle', `square', `wide', `narrow', `small' and `font' to
2271         chartab.c.
2272         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2273         setting codes for `Vcharacter_composition_table' and
2274         `Vcharacter_variant_table' to chartab.c.
2275         (complex_vars_of_mule_charset): Move setting code for
2276         `Vchar_attribute_hash_table' to chartab.c.
2277
2278         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2279         (make_char_id_table): New prototype.
2280         (put_char_id_table): Likewise.
2281         (Fget_char_attribute): Likewise.
2282
2283         * chartab.c: Move char-id-table related code from mule-charset.c.
2284         (Vutf_2000_version): Moved from mule-charset.c.
2285
2286         * char-ucs.h (Qucs): New external variable.
2287         (put_char_ccs_code_point): New prototype.
2288         (remove_char_ccs): Likewise.
2289
2290 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2291
2292         * mule-charset.c (Vcharset_ucs_jis): New variable.
2293         (Qucs_jis): Likewise.
2294         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2295         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2296
2297         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2298
2299 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * mule-charset.c (map_over_uint8_byte_table): New function.
2302         (map_over_uint16_byte_table): Likewise.
2303         (map_over_byte_table): Likewise.
2304         (map_char_id_table): Likewise.
2305         (slow_map_char_id_table_fun): Likewise.
2306         (Fmap_char_attribute): Likewise.
2307         (syms_of_mule_charset): Add new function `map-char-attribute'.
2308
2309 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310
2311         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2312         (syms_of_mule_charset): Add new function `find-char'.
2313
2314 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2315
2316         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2317         XEmacs UTF-2000.
2318         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2319         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2320         XEmacs UTF-2000.
2321         (complex_vars_of_mule_charset): Add new coded-charset
2322         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2323         `ideograph-gt-pj-*'.
2324
2325         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2326
2327 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * mule-charset.c (encode_builtin_char_1): Purge codes about
2330         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2331         {MIN|MAX}_CHAR_HEBREW.
2332         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2333         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2334
2335         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2336         (MAX_CHAR_GREEK): Purged.
2337         (MIN_CHAR_CYRILLIC): Purged.
2338         (MAX_CHAR_CYRILLIC): Purged.
2339         (MIN_CHAR_HEBREW): Commented out.
2340         (MAX_CHAR_HEBREW): Likewise.
2341
2342 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2343
2344         * mule-charset.c (Qto_ucs): New variable.
2345         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2346         (Fdefine_char): Likewise.
2347         (syms_of_mule_charset): Add new symbol `=>ucs'.
2348
2349 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * mule-charset.c (Fdecode_char): Fixed.
2352
2353 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2354
2355         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2356         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2357         "tcvn5712-1".
2358
2359 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360
2361         * mule-charset.c (Vcharset_ucs_big5): New variable.
2362         (Qucs_big5): Likewise.
2363         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2364         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2365
2366         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2367
2368 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2369
2370         * mule-charset.c (decode_builtin_char): Check Big5 code range
2371         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2372
2373 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2376         (Qchinese_gb12345): Likewise.
2377         (Fdecode_builtin_char): Fixed.
2378         (syms_of_mule_charset): Add `chinese-gb12345'.
2379         (complex_vars_of_mule_charset): Add coded-charset
2380         `chinese-gb12345'.
2381
2382         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2383         (LEADING_BYTE_CHINESE_GB12345): New macro.
2384
2385 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2386
2387         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2388         and `latin-viscii-upper' for `latin-viscii'.
2389
2390 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2391
2392         * mule-charset.c (Fdecode_builtin_char): Comment out
2393         regularization code for ISO-IR GR representation.
2394
2395 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2396
2397         * mule-charset.c (decode_builtin_char): New function; renamed from
2398         `make_builtin_char'; return -1 instead of signal.
2399         (Fdecode_builtin_char): Use `decode_builtin_char'.
2400
2401         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2402         `make_builtin_char'.
2403         (DECODE_CHAR): Use `decode_builtin_char' instead of
2404         `make_builtin_char'; use mapping table of `chinese-big5' for
2405         `chinese-big5-{1,2}'.
2406
2407 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2408
2409         * text-coding.c (char_encode_big5): New function.
2410         (char_finish_big5): Likewise.
2411         (reset_encoding_stream): Use `char_encode_big5' and
2412         `char_finish_big5' for CODESYS_BIG5.
2413         (mule_encode): Don't use `encode_coding_big5'.
2414         (encode_coding_big5): Deleted.
2415
2416 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2417
2418         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2419         0x81- in XEmacs UTF-2000.
2420         (detect_coding_big5): Likewise.
2421
2422 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423
2424         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2425         generate character-id if the CCS property does not have
2426         corresponding predefined character.
2427         (make_builtin_char): Return -1 if corresponding predefined
2428         character is not found.
2429         (Fdecode_char): Return nil if corresponding character is not
2430         found.
2431         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2432         don't map to builtin ucs space.
2433
2434 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2435
2436         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2437         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2438
2439 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2440
2441         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2442         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2443         (Qideograph_gt): Likewise.
2444         (Qideograph_gt_pj_{1..11}): Likewise.
2445         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2446         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2447         `ideograph-gt-pj-11'.
2448         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2449         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2450         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2451
2452         * char-ucs.h (LEADING_BYTE_GT): New macro.
2453         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2454         (MIN_CHAR_GT): Likewise.
2455         (MAX_CHAR_GT): Likewise.
2456
2457 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458
2459         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2460         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2461
2462         * doprnt.c (unsigned_int_converters): Add `c'.
2463         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2464
2465         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2466         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2467         `MIN_CHAR_MOJIKYO'.
2468         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2469         (MAX_CHAR_MOJIKYO_0): New macro.
2470         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2471
2472 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2473
2474         * mule-charset.c (Fdefine_char): Delete cemented out code.
2475         (encode_builtin_char_1): Modify for new allocation of builtin
2476         Mojikyo characters.
2477
2478         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2479
2480 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2481
2482         * mule-charset.c (Vcharset_ucs_cns): New variable.
2483         (Qucs_cns): New variable.
2484         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2485         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2486
2487 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2490
2491 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2492
2493         * search.c (search_buffer): Make `charset_base_code' as
2494         character-id >> 6 to eliminate the corresponding last byte in
2495         UTF-8 representation [I'm not sure it is right thing].
2496         (boyer_moore): Likewise.
2497
2498 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2499
2500         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2501         representation in MULE.
2502
2503 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2504
2505         * text-coding.c (Fmake_coding_system): Use
2506         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2507         `EXTERNAL_PROPERTY_LIST_LOOP'.
2508
2509 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2510
2511         * text-coding.c (decode_output_utf8_partial_char): New function.
2512         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2513
2514 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2515
2516         * text-coding.c (decode_coding_utf8): Output original byte
2517         sequence if it is broken; change order of conditions.
2518
2519         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2520         of conditions.
2521
2522         * mb-multibyte.h (BYTE_ASCII_P):
2523         Use bit ops for char-signedness safety.
2524         (BYTE_C0_P): Use bit ops for char-signedness safety.
2525         (BYTE_C1_P): Use bit ops for char-signedness safety.
2526
2527         * character.h: (XCHAR_OR_CHAR_INT):
2528         Always use inline function.
2529         Remove redundant type checking assert() - XINT will abort quite
2530         nicely.
2531
2532 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2533
2534         * text-coding.c: (Fencode_shift_jis_char):
2535         (Fencode_big5_char):
2536         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2537         Replace 0 with '\0' when working with bytes.
2538         Replace initial "(" with "\(" in docstrings.
2539
2540         (Fmake_coding_system):
2541         When type is ccl and value is vector, register it with a proper
2542         symbol.  And checks whether the given ccl program is valid.
2543         (mule_decode): When calling ccl_driver, if src indicates
2544         NULL pointer, set an empty string instead.
2545         (mule_encode): Likewise.
2546
2547         (detect_eol_type):
2548         (detect_coding_sjis):
2549         (decode_coding_sjis):
2550         (detect_coding_big5):
2551         (decode_coding_big5):
2552         (detect_coding_ucs4):
2553         (decode_coding_ucs4):
2554         (detect_coding_utf8):
2555         (decode_coding_utf8):
2556         (detect_coding_iso2022):
2557         (decode_coding_iso2022):
2558         (decode_coding_no_conversion):
2559         (mule_decode):
2560         Make all detecting and decoding functions take an Extbyte * arg.
2561         (text_encode_generic):
2562         (encode_coding_big5):
2563         (encode_coding_no_conversion):
2564         (mule_encode):
2565         Make all encoding functions take a Bufbyte * arg.
2566         Use size_t instead of unsigned int for memory sizes.
2567         Only cast to unsigned char whenever dereferencing Extbyte *.
2568
2569         (struct lrecord_description fcd_description_1): Use countof.
2570         (complex_vars_of_file_coding):
2571         Use countof instead of sizeof.
2572         Use CHECK_NATNUM instead of CHECK_INT.
2573
2574 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * mule-charset.c (Fget_char_attribute): Add new optional argument
2577         `default-value'.
2578         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2579         (remove_char_ccs): Likewise.
2580
2581 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582
2583         * text-coding.c (char_encode_shift_jis): New implementation in
2584         UTF-2000.
2585         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2586         ...)'.
2587
2588         * mule-charset.c (Vcharset_chinese_big5): New variable in
2589         UTF-2000.
2590         (Qchinese_big5): New variable in UTF-2000.
2591         (BIG5_SAME_ROW): New macro in UTF-2000.
2592         (make_builtin_char): Use builtin characters of
2593         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2594         characters of `Vcharset_chinese_big5'.
2595         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2596         (complex_vars_of_mule_charset): Add new coded-charset
2597         `chinese-big5' in UTF-2000.
2598
2599         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2600         (Vcharset_chinese_big5): New external variable declaration.
2601         (Vcharset_japanese_jisx0208_1990): Likewise.
2602
2603 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2606         function.
2607         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2608
2609 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2612         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2613         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2614         `mojikyo-pj-*'.
2615
2616 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2617
2618         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2619
2620 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2623         to 0.17.
2624
2625 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626
2627         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2628         for `CHARSET_BY_ATTRIBUTES'.
2629         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2630         `CHARSET_BY_ATTRIBUTES'.
2631
2632         * text-coding.c (struct decoding_stream): Rename member `CH' to
2633         `CPOS'.
2634         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2635         (decode_coding_sjis): Likewise.
2636         (decode_coding_big5): Likewise.
2637         (decode_coding_ucs4): Likewise.
2638         (decode_coding_utf8): Likewise.
2639         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2640         `CHARSET_BY_ATTRIBUTES'.
2641         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2642         `str->counter'; decode 3, 4 bytes sets.
2643         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2644         sets.
2645         (decode_coding_no_conversion): Use `str->cpos' instead of
2646         `str->ch'.
2647
2648         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2649         (Qmojikyo_2022_1): New variable.
2650         (make_charset): Don't use `CHARSET_TYPE_*'.
2651         (range_charset_code_point): Support coded-charset
2652         `mojikyo-2022-1'.
2653         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2654         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2655         `CHARSET_BY_ATTRIBUTES'.
2656         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2657         `CHARSET_BY_ATTRIBUTES'.
2658         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2659         (complex_vars_of_mule_charset): Add new coded-charset
2660         `mojikyo-2022-1'.
2661
2662         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2663         interface; changed to inline function.
2664
2665         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2666         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2667         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2668         (CHARSET_TYPE_94): Deleted.
2669         (CHARSET_TYPE_94X94): Deleted.
2670         (CHARSET_TYPE_96): Deleted.
2671         (CHARSET_TYPE_96X96): Deleted.
2672         (CHARSET_TYPE_128): Deleted.
2673         (CHARSET_TYPE_128X128): Deleted.
2674         (CHARSET_TYPE_256): Deleted.
2675         (CHARSET_TYPE_256X256): Deleted.
2676         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2677         to inline function.
2678         (DECODE_MOJIKYO_2022): New inline function.
2679         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2680         `Vcharset_mojikyo_2022_1'.
2681
2682 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2683
2684         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2685         instead of `EQ'.
2686         (put_byte_table): Likewise.
2687         (char_id_table_equal): Use `get_byte_table' [new implementation].
2688
2689 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2690
2691         * mule-charset.c: Include <limits.h> in UTF-2000.
2692         (BT_UINT8_MIN): New macro in UTF-2000.
2693         (BT_UINT8_MAX): New macro in UTF-2000.
2694         (BT_UINT8_t): New macro in UTF-2000.
2695         (BT_UINT8_nil): New macro in UTF-2000.
2696         (BT_UINT8_unbound): New macro in UTF-2000.
2697         (INT_UINT8_P): New inline function in UTF-2000.
2698         (UINT8_VALUE_P): New inline function in UTF-2000.
2699         (UINT8_ENCODE): New inline function in UTF-2000.
2700         (UINT8_DECODE): New inline function in UTF-2000.
2701         (mark_uint8_byte_table): New function in UTF-2000.
2702         (print_uint8_byte_table): New function in UTF-2000.
2703         (uint8_byte_table_equal): New function in UTF-2000.
2704         (uint8_byte_table_hash): New function in UTF-2000.
2705         (make_uint8_byte_table): New function in UTF-2000.
2706         (uint8_byte_table_same_value_p): New function in UTF-2000.
2707         (BT_UINT16_MIN): New macro in UTF-2000.
2708         (BT_UINT16_MAX): New macro in UTF-2000.
2709         (BT_UINT16_t): New macro in UTF-2000.
2710         (BT_UINT16_nil): New macro in UTF-2000.
2711         (BT_UINT16_unbound): New macro in UTF-2000.
2712         (INT_UINT16_P): New inline function in UTF-2000.
2713         (UINT16_VALUE_P): New inline function in UTF-2000.
2714         (UINT16_ENCODE): New inline function in UTF-2000.
2715         (UINT16_DECODE): New inline function in UTF-2000.
2716         (UINT8_TO_UINT16): New inline function in UTF-2000.
2717         (mark_uint16_byte_table): New function in UTF-2000.
2718         (print_uint16_byte_table): New function in UTF-2000.
2719         (uint16_byte_table_equal): New function in UTF-2000.
2720         (uint16_byte_table_hash): New function in UTF-2000.
2721         (make_uint16_byte_table): New function in UTF-2000.
2722         (uint16_byte_table_same_value_p): New function in UTF-2000.
2723         (print_byte_table): New function in UTF-2000.
2724         (byte-table): Use `print_byte_table' as printer.
2725         (make_byte_table): Delete second argument `older'.
2726         (byte_table_same_value_p): New function in UTF-2000.
2727         (copy_byte_table): Deleted.
2728         (get_byte_table): New function in UTF-2000.
2729         (put_byte_table): New function in UTF-2000.
2730         (print_char_id_table): New function in UTF-2000.
2731         (char-id-table): Use `print_char_id_table' as printer.
2732         (make_char_id_table): Delete second argument `older'.
2733         (get_char_id_table): Use `get_byte_table [new implementation].
2734         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2735         implementation].
2736         (Ffind_char_attribute_table): New function in UTF-2000.
2737         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2738         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2739         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2740         (syms_of_mule_charset): Add new function
2741         `find-char-attribute-table' in UTF-2000.
2742
2743         * lrecord.h (enum lrecord_type): Add
2744         `lrecord_type_uint16_byte_table' and
2745         `lrecord_type_uint8_byte_table'.
2746
2747         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2748         (Lisp_Uint8_Byte_Table): New type.
2749         (XUINT8_BYTE_TABLE): New macro.
2750         (XSETUINT8_BYTE_TABLE): New macro.
2751         (UINT8_BYTE_TABLE_P): New macro.
2752         (GC_UINT8_BYTE_TABLE_P): New macro.
2753         (struct Lisp_Uint16_Byte_Table): New structure.
2754         (Lisp_Uint16_Byte_Table): New type.
2755         (XUINT16_BYTE_TABLE): New macro.
2756         (XSETUINT16_BYTE_TABLE): New macro.
2757         (UINT16_BYTE_TABLE_P): New macro.
2758         (GC_UINT16_BYTE_TABLE_P): New macro.
2759
2760 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2763         (Vcharacter_ideographic_strokes_table): Deleted.
2764         (Vcharacter_total_strokes_table): Deleted.
2765         (Vcharacter_morohashi_daikanwa_table): Deleted.
2766         (Vcharacter_decomposition_table): Deleted.
2767         (Qname): Deleted because it is duplicated.
2768         (Qideographic_radical): Deleted.
2769         (Qideographic_strokes): Deleted.
2770         (Qtotal_strokes): Deleted.
2771         (Qmorohashi_daikanwa): Deleted.
2772         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2773         `ideographic-radical', `ideographic-strokes', `total-strokes',
2774         `morohashi-daikanwa' and `->decomposition'.
2775         (Fget_char_attribute): Likewise.
2776         (Fput_char_attribute): Likewise; use `make-vector' instead of
2777         `make_older_vector' for `->decomposition' value.
2778         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2779         `ideograph-daikanwa'.
2780         (syms_of_mule_charset): Delete builtin symbols `name',
2781         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2782         `morohashi-daikanwa'.
2783         (vars_of_mule_charset): Don't setup
2784         `Vcharacter_ideographic_radical_table',
2785         `Vcharacter_ideographic_strokes_table',
2786         `Vcharacter_total_strokes_table',
2787         `Vcharacter_morohashi_daikanwa_table' and
2788         `Vcharacter_decomposition_table'.
2789
2790 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2791
2792         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2793         `make_older_vector', `make_vector_newer_1' and
2794         `make_vector_newer'.
2795
2796         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2797         `make_older_vector' and `make_vector_newer'.
2798
2799         * config.h.in (HAVE_GGC): New macro.
2800
2801 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * mule-charset.c (struct char_attribute_list_closure): New
2804         structure in UTF-2000.
2805         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2806         (Fchar_attribute_list): Likewise.
2807         (Fset_charset_mapping_table): Use `make_vector_newer'.
2808         (Fdecode_builtin_char): New function in UTF-2000.
2809         (syms_of_mule_charset): Add new function `char-attribute-list' and
2810         `decode-builtin-char' in UTF-2000.
2811
2812         * lisp.h (make_vector_newer): New prototype.
2813
2814         * alloc.c (make_vector_newer_1): New function.
2815         (make_vector_newer): New function.
2816
2817 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2818
2819         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2820         50100)'.
2821
2822 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2823
2824         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2825         (Vcharacter_attribute_table): Deleted.
2826         (Vcharacter_name_table): Deleted.
2827         (put_char_attribute): Deleted.
2828         (remove_char_attribute): Deleted.
2829         (struct char_attribute_alist_closure): New structure.
2830         (add_char_attribute_alist_mapper): New function.
2831         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2832         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2833         (Fget_char_attribute): Likewise.
2834         (Fput_char_attribute): Likewise.
2835         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2836         of `remove_char_attribute'.
2837         (Fdefine_char): Return character.
2838         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2839         and `Vcharacter_name_table'.
2840         (complex_vars_of_mule_charset): Likewise
2841         `Vchar_attribute_hash_table'.
2842
2843 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2844
2845         * character.h (CHARC_CHARSET): New macro.
2846         (CHARC_CHARSET_ID): New macro.
2847         (CHARC_CODE_POINT): New macro.
2848         (CHARC_COLUMNS): New macro.
2849         (CHARC_TO_CHAR): New inline function.
2850         (CHARC_EQ): New inline function.
2851         (CHARC_ASCII_EQ): New inline function.
2852         (CHARC_IS_SPACE): New inline function.
2853         (ASCII_TO_CHARC): New inline function.
2854
2855         * char-ucs.h (encode_char_2): Deleted.
2856         (ENCODE_CHAR): Use `encode_char_1' again.
2857         (breakup_char_1): Likewise.
2858         (CHAR_TO_CHARC): New inline function.
2859
2860         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2861
2862 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2865         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2866         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2867         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2868         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2869         `CHARC_IS_SPACE'.
2870         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2871
2872         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2873         `CHARC_CODE_POINT'.
2874         (x_output_display_block): Use `CHARC_CHARSET' and
2875         `CHARC_ASCII_EQ'.
2876
2877         * redisplay-tty.c (tty_output_display_block): Use
2878         `CHARC_ASCII_EQ'.
2879         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2880
2881         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2882
2883         * insdel.c (find_charsets_in_charc_string): Use
2884         `CHARC_CHARSET_ID'.
2885         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2886         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2887         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2888         (convert_charc_string_into_malloced_string): Likewise.
2889
2890 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2891
2892         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2893         instead of <Emchar_dynarr *> for buf; use
2894         `convert_bufbyte_string_into_charc_dynarr' instead of
2895         `convert_bufbyte_string_into_emchar_dynarr'; use
2896         `find_charsets_in_charc_string' instead of
2897         `find_charsets_in_emchar_string'.
2898
2899         * redisplay.h:
2900         - Include "character.h".
2901         (struct rune): New member `cglyph'; delete member `chr'.
2902
2903         * redisplay.c (redisplay_text_width_charc_string): New function;
2904         delete `redisplay_text_width_emchar_string'.
2905         (rtw_charc_dynarr): New variable; renamed from
2906         `rtw_emchar_dynarr'.
2907         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2908         `rtw_emchar_dynarr'; use
2909         `convert_bufbyte_string_into_charc_dynarr' instead of
2910         `convert_bufbyte_string_into_emchar_dynarr'; use
2911         `redisplay_text_width_charc_string' instead of
2912         `redisplay_text_width_emchar_string'.
2913         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2914         instead of `rtw_emchar_dynarr'; use
2915         `convert_bufbyte_string_into_charc_dynarr' instead of
2916         `convert_bufbyte_string_into_emchar_dynarr'.
2917         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2918         `redisplay_text_width_charc_string' instead of
2919         `redisplay_text_width_emchar_string'.
2920         (create_text_block): Modify for <struct rune> change.
2921         (generate_formatted_string_db): Likewise.
2922         (create_string_text_block): Likewise.
2923         (pixel_to_glyph_translation): Likewise.
2924
2925         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2926         instead of <const Emchar *>.
2927         (x_text_width): Likewise.
2928         (x_output_display_block): Use <Charc_dynarr *> instead
2929         <Emchar_dynarr *>; modify for <structure rune> change.
2930         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2931         *>.
2932
2933         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2934         <const Emchar *>; use `charc_string_displayed_columns' instead of
2935         `emchar_string_displayed_columns'.
2936         (tty_output_display_block): Use <Charc_dynarr *> instead of
2937         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2938         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2939         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2940         `tty_output_emchar_dynarr_dynarr'.
2941         (tty_output_charc_dynarr): New function; delete
2942         `tty_output_charc_dynarr'.
2943
2944         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2945         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2946         <Emchar_dynarr *> for buf; use
2947         `convert_bufbyte_string_into_charc_dynarr' instead of
2948         `convert_bufbyte_string_into_emchar_dynarr'.
2949
2950         * frame.c (title_string_charc_dynarr): New variable; renamed from
2951         `title_string_emchar_dynarr'.
2952         (generate_title_string): Use `title_string_charc_dynarr' instead
2953         of `title_string_emchar_dynarr'; use
2954         `convert_charc_string_into_malloced_string' instead of
2955         `convert_emchar_string_into_malloced_string'.
2956         (init_frame): Use `title_string_charc_dynarr' instead of
2957         `title_string_emchar_dynarr'.
2958
2959         * console.h:
2960         - Include "character.h".
2961         (struct console_methods): Use <const Charc *> instead of <const
2962         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2963         <Emchar_dynarr *> in output_string_method.
2964
2965         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2966         <Emchar_dynarr *>.
2967
2968         * console-stream.c (stream_text_width): Use <const Charc *>
2969         instead of <const Emchar *>.
2970
2971         * character.h (Charc_dynarr): New type.
2972
2973         * char-ucs.h (structure Charc): New structure; define new type
2974         `Charc'.
2975
2976         * char-lb.h (DECODE_CHAR): New inline function.
2977         (encode_char_1): New inline function.
2978         (ENCODE_CHAR): New macro.
2979         (structure Charc): New structure; define new type `Charc'.
2980
2981         * char-1byte.h (Vcharset_control_1): New macro.
2982         (Vcharset_latin_iso8859_1): New macro.
2983         (DECODE_CHAR): New inline function.
2984         (encode_char_1): New inline function.
2985         (ENCODE_CHAR): New macro.
2986         (structure Charc): New structure; define new type `Charc'.
2987
2988         * insdel.c (find_charsets_in_charc_string): New function; delete
2989         `find_charsets_in_emchar_string'.
2990         (charc_string_displayed_columns): New function; delete
2991         `emchar_string_displayed_columns'.
2992         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2993         `convert_bufbyte_string_into_emchar_dynarr'.
2994         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2995         `convert_charc_string_into_bufbyte_dynarr'.
2996         (convert_charc_string_into_malloced_string): New function; delete
2997         `convert_charc_string_into_malloced_string'.
2998
2999         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3000         `find_charsets_in_emchar_string'.
3001         (charc_string_displayed_columns): New prototype; delete
3002         `emchar_string_displayed_columns'.
3003         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3004         `convert_charc_string_into_bufbyte_dynarr'.
3005         (convert_charc_string_into_malloced_string): New prototype; delete
3006         `convert_charc_string_into_malloced_string'.
3007
3008 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3009
3010         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3011
3012 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3013
3014         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3015
3016         * char-ucs.h: Use <short> for <Charset_ID>.
3017
3018         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3019         <Charset_ID>.
3020
3021 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3022
3023         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3024         to 0.16.
3025
3026 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3027
3028         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3029         variable.
3030         (Qmorohashi_daikanwa): New variable.
3031         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3032         for `morohashi-daikanwa' attribute.
3033         (Fget_char_attribute): Likewise.
3034         (Fput_char_attribute): Likewise.
3035         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3036         has the same value of `ideograph-daikanwa'.
3037         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3038         (vars_of_mule_charset): Setup
3039         `Vcharacter_morohashi_daikanwa_table'.
3040
3041 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3042
3043         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3044         attributes.
3045         (add_charset_to_list_mapper): Add `key' instead of
3046         `XCHARSET_NAME (value)' to return aliases.
3047
3048 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3049
3050         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3051         variable.
3052         (Vcharacter_ideographic_strokes_table): New variable.
3053         (Qideographic_radical): New variable.
3054         (Qideographic_strokes): New variable.
3055         (Fchar_attribute_alist): Use
3056         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3057         attribute; use `Vcharacter_ideographic_strokes_table' for
3058         `ideographic-strokes' attribute.
3059         (Fget_char_attribute): Likewise.
3060         (Fput_char_attribute): Likewise.
3061         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3062         `ideographic-strokes'.
3063         (vars_of_mule_charset): Setup
3064         `Vcharacter_ideographic_radical_table' and
3065         `Vcharacter_ideographic_strokes_table'.
3066
3067 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3068
3069         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3070         (Qtotal_strokes): New variable.
3071         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3072         `total-strokes' attribute.
3073         (Fget_char_attribute): Likewise.
3074         (Fput_char_attribute): Likewise.
3075         (syms_of_mule_charset): Add new symbol `total-strokes'.
3076         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3077
3078 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3079
3080         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3081         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3082         are found.
3083         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3084         `->decomposition' attribute.
3085         (Fput_char_attribute): Likewise.
3086         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3087
3088 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3089
3090         * mule-charset.c (decoding_table_check_elements): New function.
3091         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3092
3093 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3094
3095         * mule-charset.c (Fset_charset_mapping_table): Use
3096         `put_char_ccs_code_point'.
3097
3098 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3099
3100         * mule-charset.c (decoding_table_put_char): New inline function.
3101         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3102
3103 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3104
3105         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3106         (XCHARSET_BYTE_SIZE): New macro.
3107         (decoding_table_remove_char): New inline function.
3108         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3109         `decoding_table_remove_char'.
3110         (remove_char_ccs): Use `decoding_table_remove_char'.
3111         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3112
3113 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3114
3115         * mule-charset.c (Vcharacter_name_table): New variable.
3116         (Qname): New variable.
3117         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3118         attribute.
3119         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3120         `Vcharacter_name_table' for `name' attribute.
3121         (Fremove_char_attribute): Use function `remove_char_ccs'.
3122         (put_char_ccs_code_point): New function.
3123         (remove_char_ccs): New function.
3124         (syms_of_mule_charset): Add new symbol `name'.
3125         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3126
3127 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3128
3129         * mule-charset.c (make_byte_table): Add new argument `older'.
3130         (make_char_id_table): Likewise.
3131         (copy_char_id_table): Comment out because it is not used.
3132         (put_char_id_table): Modify for `make_byte_table'.
3133         (Fput_char_attribute): Make encoding_table as older object;
3134         inherit older bit of `Vcharacter_composition_table'.
3135         (mark_charset): Don't mark `cs->encoding_table'.
3136         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3137         normal object; make `Vcharacter_composition_table' as an older
3138         object; delete staticpro for `Vcharacter_composition_table'; make
3139         `Vcharacter_variant_table' as a normal object.
3140
3141         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3142         (mark_object): Don't check older object in UTF-2000.
3143
3144         * lrecord.h (struct lrecord_header): Add new member `older' in
3145         UTF-2000.
3146         (set_lheader_implementation): Setup `SLI_header->older' in
3147         UTF-2000.
3148         (set_lheader_older_implementation): New macro in UTF-2000.
3149         (OLDER_RECORD_P): New macro in UTF-2000.
3150         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3151         (alloc_older_lcrecord): New prototype in UTF-2000.
3152         (alloc_older_lcrecord_type): New macro in UTF-2000.
3153
3154 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3155
3156         * mule-charset.c (byte_table_description): Use
3157         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3158         (char_id_table_description): Delete bogus `, 1'.
3159         (Fget_char_attribute): Refer encoding_table of each coded-charset
3160         to get value of coded-charset attribute of a character.
3161         (Fput_char_attribute): Use `make_older_vector' instead of
3162         `make_vector'; use encoding_table of each coded-charset to store
3163         value of coded-charset attribute of a character.
3164         (Fremove_char_attribute): Use encoding_table of each coded-charset
3165         to store value of coded-charset attribute of a character.
3166         (mark_charset): Mark `cs->encoding_table'; don't mark
3167         `cs->decoding_table'.
3168         (charset_description): Add description of new member
3169         `encoding_table'.
3170         (make_charset): Initialize `encoding_table'.
3171
3172         * char-ucs.h (struct Lisp_Charset): Add new member
3173         `encoding_table'.
3174         (CHARSET_ENCODING_TABLE): New macro.
3175         (XCHARSET_ENCODING_TABLE): New macro.
3176         (charset_code_point): New implementation.
3177         (encode_char_1): Likewise.
3178
3179         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3180         (disksave_object_finalization_1): Call finalizers of
3181         `all_older_lcrecords' in UTF-2000.
3182         (make_older_vector): New function in UTF-2000.
3183         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3184         UTF-2000.
3185
3186         * lisp.h (make_older_vector): New prototype in UTF-2000.
3187
3188 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3189
3190         * lrecord.h (enum lrecord_type): Rename
3191         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3192
3193         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3194         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3195         `get_char_code_table'.
3196
3197         * mule-charset.c (mark_char_id_table): Renamed from
3198         `mark_char_code_table'.
3199         (char_id_table_equal): Renamed from `char_code_table_equal'.
3200         (char_id_table_hash): Renamed from `char_code_table_hash'.
3201         (make_char_id_table): Renamed from `make_char_code_table'.
3202         (copy_char_id_table): Renamed from `copy_char_code_table'.
3203         (get_char_id_table): Renamed from `get_char_code_table'.
3204         (put_char_id_table): Renamed from `put_char_code_table'.
3205         (to_char_id): Renamed from `to_char_code'.
3206
3207         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3208         `Lisp_Char_Code_Table'.
3209         (char_id_table): Renamed from `char_code_table'.
3210         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3211         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3212         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3213         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3214         (get_char_id_table): Renamed from `get_char_code_table'.
3215
3216 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3217
3218         * lrecord.h (enum lrecord_type): Rename
3219         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3220
3221         * mule-charset.c (mark_byte_table): Renamed from
3222         `mark_char_byte_table'.
3223         (byte_table_equal): Renamed from `char_byte_table_equal'.
3224         (byte_table_hash): Renamed from `byte_table_hash'.
3225         (make_byte_table): Renamed from `make_byte_table'.
3226         (copy_byte_table): Renamed from `copy_char_byte_table'.
3227
3228         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3229         `Lisp_Char_Byte_Table'.
3230         (byte_table): Renamed from `char_byte_table'.
3231         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3232         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3233         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3234         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3235
3236 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3237
3238         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3239         (dfc_convert_to_internal_format): Likewise.
3240         
3241         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3242         * text-coding.c (Fcoding_system_alias_p): New function.
3243         * text-coding.c (Fcoding_system_aliasee): New function.
3244         * text-coding.c (append_suffix_to_symbol): New function.
3245         * text-coding.c (dangling_coding_system_alias_p): New function.
3246         * text-coding.c (Ffind_coding_system):
3247         * text-coding.c (Fcopy_coding_system):
3248         * text-coding.c (encode_coding_no_conversion):
3249         * text-coding.c (syms_of_file_coding):
3250         * text-coding.c (vars_of_file_coding):
3251         Rewrite coding system alias code.
3252         Allow nested aliases, like symbolic links.
3253         Allow redefinition of coding system aliases.
3254         Prevent existence of dangling coding system aliases.
3255         Eliminate convert_to_external_format.
3256         Eliminate convert_to_internal_format.
3257         
3258         * text-coding.c: Change enum eol_type to eol_type_t.
3259
3260 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3261
3262         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3263         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3264
3265         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3266         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3267
3268 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3269
3270         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3271         `ideograph-daikanwa'.
3272
3273         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3274         (Vcharset_ucs_bmp): Likewise.
3275         (Vcharset_mojikyo): Add new extern variable definition.
3276         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3277         (Vcharset_latin_iso8859_3): Likewise.
3278         (Vcharset_latin_iso8859_4): Likewise.
3279         (Vcharset_latin_iso8859_9): Likewise.
3280         (Vcharset_latin_viscii_lower): Likewise.
3281         (Vcharset_latin_viscii_upper): Likewise.
3282         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3283         `mojikyo' code-point is used to decode.
3284         (encode_char_2): New function [to convert `mojikyo' code-point to
3285         Mojikyo font encoding].
3286         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3287         (breakup_char_1): Likewise.
3288         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3289
3290 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3291
3292         * text-coding.c (Fmake_coding_system): Add document about
3293         `disable-composition' property.
3294
3295 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3296
3297         * text-coding.c (Qdisable_composition): New variable; delete
3298         `Qcomposite'.
3299         (Fmake_coding_system): Add new property `disable-composite';
3300         delete property `composite'.
3301         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3302         instead of `!CODING_SYSTEM_COMPOSITE'.
3303         (syms_of_file_coding): Add new symbol `disable-composition';
3304         delete symbol `composite'.
3305
3306         * file-coding.h (struct Lisp_Coding_System): Add
3307         `disable_composition'; delete `enable_composition'.
3308         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3309         `CODING_SYSTEM_COMPOSITE'.
3310         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3311         `XCODING_SYSTEM_COMPOSITE'.
3312
3313 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314
3315         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3316         to 0.15.
3317
3318 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3319
3320         * text-coding.c (Qcomposite): New variable.
3321         (Fmake_coding_system): Add new property `composite'.
3322         (struct decoding_stream): Add `combined_char_count',
3323         `combined_chars' and `combining_table' in UTF-2000.
3324         (COMPOSE_FLUSH_CHARS): New macro.
3325         (COMPOSE_ADD_CHAR): New macro.
3326         (reset_decoding_stream): Reset `str->combined_char_count' and
3327         `str->combining_table' in UTF-2000.
3328         (decode_coding_iso2022): Modify for character-decomposition.
3329         (syms_of_file_coding): Add new symbol `composite'.
3330
3331 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3332
3333         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3334         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3335         of `Vcharacter_composition_table' if `->decomposition' property
3336         has only 1 element.
3337         (Qlatin_tcvn5712): New variable.
3338         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3339         (complex_vars_of_mule_charset): Add new coded-charset
3340         `latin-tcvn5712'.
3341
3342         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3343
3344 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3345
3346         * file-coding.h (struct Lisp_Coding_System): Add
3347         `enable_composition'.
3348         (CODING_SYSTEM_COMPOSITE): New macro.
3349         (XCODING_SYSTEM_COMPOSITE): New macro.
3350
3351 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3352
3353         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3354
3355 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3356
3357         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3358         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3359
3360 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3361
3362         * mule-charset.c (Vcharset_mojikyo): New variable.
3363         (Fdefine_char): Don't use coded-charset which does not have
3364         non-builtin character range to allocate character-id.
3365         (Qmojikyo): New variable.
3366         (syms_of_mule_charset): Add new symbol `mojikyo'.
3367         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3368
3369         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3370         (LEADING_BYTE_MOJIKYO): New macro.
3371         (MIN_CHAR_MOJIKYO): New macro.
3372         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3373         (MAX_CHAR_MOJIKYO): New macro.
3374
3375 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3376
3377         * mule-charset.c (remove_char_attribute): Fixed.
3378
3379 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3380
3381         * mule-charset.c (remove_char_attribute): New function.
3382         (Fremove_char_attribute): New function.
3383         (encode_builtin_char_1): Comment out builtin-support for
3384         greek-iso8859-7 and cyrillic-iso8859-5.
3385         (Fdecode_char): Check `code' is an integer.
3386         (syms_of_mule_charset): Add `remove-char-attribute'.
3387         (MIN_CHAR_GREEK): Deleted.
3388         (MAX_CHAR_GREEK): Likewise.
3389         (MIN_CHAR_CYRILLIC): Likewise.
3390         (MAX_CHAR_CYRILLIC): Likewise.
3391         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3392         MAX_CHAR_GREEK for `greek-iso8859-7'.
3393
3394         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3395         (MAX_CHAR_GREEK): Likewise.
3396         (MIN_CHAR_CYRILLIC): Likewise.
3397         (MAX_CHAR_CYRILLIC): Likewise.
3398
3399 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3400
3401         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3402         format is used without `ucs' property.
3403         (Fdecode_char): Fix problem with GR representation.
3404         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3405         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3406
3407 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3408
3409         * mule-charset.c (make_builtin_char): New function.
3410         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3411         (Fset_charset_mapping_table): Modify for new representation of
3412         code-point.
3413         (Fdecode_char): New function.
3414         (syms_of_mule_charset): Add new builtin function `decode-char' in
3415         UTF-2000.
3416
3417         * char-ucs.h (make_builtin_char): New prototype.
3418         (DECODE_CHAR): New inline function.
3419         (MAKE_CHAR): Use `DECODE_CHAR'.
3420
3421 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3422
3423         * text-coding.c (parse_charset_conversion_specs): Use
3424         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3425         `XCHARSET_TYPE'.
3426         (iso2022_designate): Likewise.
3427
3428         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3429         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3430
3431         * mule-charset.c (Vcharset_ucs): New variable.
3432         (print_charset): Change design; use `CHARSET_CHARS' and
3433         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3434         (make_charset): Change signature to specify `chars' and
3435         `dimension' instead of `type'.
3436         (range_charset_code_point): Modify for 256^n-set.
3437         (encode_builtin_char_1): Encode as `ucs' in default.
3438         (Fmake_charset): Modify for `make_charset'.
3439         (Fmake_reverse_direction_charset): Likewise.
3440         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3441         UTF-2000.
3442         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3443         for `make_charset'.
3444
3445         * char-ucs.h (Vcharset_ucs): New variable.
3446         (LEADING_BYTE_UCS): New macro.
3447         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3448         and `chars' to `unsigned short' from `unsigned int'.
3449         (CHARSET_TYPE): Deleted.
3450         (XCHARSET_TYPE): Deleted.
3451
3452 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3453
3454         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3455
3456         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3457         (ENCODE_CHAR): New macro.
3458
3459 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3460
3461         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3462         to 0.14 (Kawachi-Katakami).
3463
3464 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3465
3466         * text-coding.c (char_encode_shift_jis): Modify for
3467         `charset_code_point'.
3468         (char_encode_iso2022): Likewise.
3469
3470         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3471         (integer) instead of list of <Lisp_Object>s (integers) as the
3472         format of code-point of a coded-charset.
3473         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3474         (encode_builtin_char_1): New function; delete
3475         `split_builtin_char'.
3476         (charset_code_point): Return <int> instead of <Lisp_Object>.
3477         (Fsplit_char): Don't use `SPLIT_CHAR'.
3478
3479         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3480         prototype for `split_builtin_char'.
3481         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3482         (charset_code_point): Likewise.
3483         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3484         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3485
3486 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3487
3488         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3489         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3490
3491 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3492
3493         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3494
3495         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3496         (MAX_CHAR_OBS_94x94): Deleted.
3497
3498 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3499
3500         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3501
3502         * char-ucs.h (MAX_CHAR_BMP): New macro.
3503
3504 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3505
3506         * text-coding.c: Sync with r21-2-24.
3507
3508 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3509
3510         * file-coding.c: Modify for UTF-2000.
3511
3512 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3513
3514         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3515         to 0.13 (Takaida).
3516
3517 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3518
3519         * mule-charset.c (split_builtin_char): Delete builtin support for
3520         `katakana-jisx0201'.
3521         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3522         BMP area in builtin representation.
3523
3524         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3525         `Vcharset_katakana_jisx0201'.
3526
3527 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3528
3529         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3530         (Qisolated): New variable.
3531         (Qinitial): New variable.
3532         (Qmedial): New variable.
3533         (Qfinal): New variable.
3534         (Qvertical): New variable.
3535         (Qsmall): New variable.
3536         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3537         `Qvertical' and `Qsmall'.
3538         (Qmojikyo_pj_[1 .. 21]): New variable.
3539         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3540         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3541         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3542         .. 21]'.
3543
3544 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3545
3546         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3547         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3548         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3549
3550 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3551
3552         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3553         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3554         BMP.
3555         (Qjapanese_jisx0208_1990): New variable.
3556         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3557         (complex_vars_of_mule_charset): Add new coded-charset
3558         `japanese-jisx0208-1990'.
3559
3560         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3561         (MIN_CHAR_JIS_X0208_1990): New macro.
3562         (MAX_CHAR_JIS_X0208_1990): New macro.
3563
3564 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3565
3566         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3567         coded-charset is not found.
3568
3569 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3570
3571         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3572         (Fdefine_char): Use `Fmake_char'.
3573
3574 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3575
3576         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3577         (Vcharset_hiragana_jisx0208): Deleted.
3578         (Vcharset_katakana_jisx0208): Deleted.
3579         (Qideograph_daikanwa): New variable.
3580         (Qhiragana_jisx0208): Deleted.
3581         (Qkatakana_jisx0208): Deleted.
3582         (split_builtin_char): Split `ideograph-daikanwa'.
3583         (Fsplit_char): New implementation for UTF-2000.
3584         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3585         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3586         (complex_vars_of_mule_charset): Add new coded-charset
3587         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3588         `katakana-jisx0208'.
3589
3590         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3591         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3592         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3593         (MIN_CHAR_DAIKANWA): New macro.
3594         (MAX_CHAR_DAIKANWA): New macro.
3595
3596 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3597
3598         * data.c (Fstring_to_number): Don't recognize floating point if
3599         base is not 10.
3600
3601 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3602
3603         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3604
3605 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3606
3607         * mule-charset.c (Qsquare): New variable.
3608         (to_char_code): Add `Qsquare'.
3609         (syms_of_mule_charset): Add new symbol `square'.
3610
3611 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3612
3613         * mule-charset.c (Qcircle): New variable.
3614         (to_char_code): Add `Qcircle'.
3615         (syms_of_mule_charset): Add new symbol `circle'.
3616
3617 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3618
3619         * mule-charset.c (Qfont): New variable.
3620         (to_char_code): Add `Qfont'.
3621         (syms_of_mule_charset): Add new symbol `font'.
3622
3623 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3624
3625         * mule-charset.c (Qsub): New variable.
3626         (to_char_code): Add `Qsub'.
3627         (syms_of_mule_charset): Add new symbol `sub'.
3628
3629 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3630
3631         * mule-charset.c (Fput_char_attribute): Convert each element of
3632         VALUE to GL position if ATTRIBUTE is a GR-set,
3633
3634 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3635
3636         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3637         coded-charset is a GR-set.
3638
3639 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3640
3641         * mule-charset.c (Fput_char_attribute): Check each element of
3642         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3643
3644 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3645
3646         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3647         UTF-2000.
3648         (Qethiopic_ucs): New variable in UTF-2000.
3649         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3650         (complex_vars_of_mule_charset): Add new coded-charset
3651         `ethiopic-ucs' in UTF-2000.
3652
3653         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3654         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3655         9)'.
3656         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3657         10)'.
3658         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3659
3660 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3661
3662         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3663         `ascii'.
3664
3665 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3666
3667         * mule-charset.c (Vcharacter_variant_table): New variable.
3668         (Q_ucs): New variable.
3669         (Fchar_variants): New function.
3670         (Fput_char_attribute): Register `->ucs' value to
3671         `Vcharacter_variant_table'.
3672         (syms_of_mule_charset): Add new function `char-variants' and new
3673         symbol `->ucs'.
3674         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3675
3676 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3677
3678         * mule-charset.c (get_char_code_table): Allow negative character
3679         code.
3680         (put_char_code_table): Likewise.
3681         (Vcharacter_composition_table): New variable.
3682         (Q_decomposition): New variable.
3683         (Qwide): New variable.
3684         (Qnarrow): New variable.
3685         (Qcompat): New variable.
3686         (QnoBreak): New variable.
3687         (Qsuper): New variable.
3688         (Qfraction): New variable.
3689         (to_char_code): New function.
3690         (Fget_composite_char): New function.
3691         (Fput_char_attribute): Register `->decomposition' value to
3692         `Vcharacter_composition_table'.
3693         (syms_of_mule_charset): Add new function `get-composite-char', new
3694         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3695         `super' and `fraction'.
3696         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3697
3698 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3699
3700         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3701         character; copy the return value.
3702
3703 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3704
3705         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3706
3707         * mule-charset.c (range_charset_code_point): Must use make_int.
3708         (split_builtin_char): New function.
3709
3710 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3711
3712         * mule-charset.c (char_byte_table): Change name from
3713         "char-code-table" to "char-byte-table".
3714         (mark_char_code_table): New function.
3715         (char_code_table_equal): New function.
3716         (char_code_table_hash): New function.
3717         (char_code_table_description): New constant.
3718         (char_code_table): New type.
3719         (make_char_code_table): New function.
3720         (copy_char_code_table): New function.
3721         (get_char_code_table): Modify for `char_code_table' type.
3722         (put_char_code_table): Likewise.
3723         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3724         (Kashiwara).
3725
3726         * char-ucs.h (char_code_table): New type.
3727         (XCHAR_CODE_TABLE): New macro.
3728         (XSETCHAR_CODE_TABLE): New macro.
3729         (CHAR_CODE_TABLE_P): New macro.
3730         (GC_CHAR_CODE_TABLE_P): New macro.
3731         (struct Lisp_Char_Code_Table): New structure.
3732
3733 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3734
3735         * mule-charset.c (Fmake_charset): Setup byte_offset for
3736         {94|96}^n-set.
3737
3738 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3739
3740         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3741         character.
3742
3743 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3744
3745         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3746         is found.
3747
3748 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3749
3750         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3751         charset, it is regarded as a charset.
3752         (put_char_attribute): New function in UTF-2000.
3753         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3754         charset, mapping-table of the charset is modified.
3755         (Fdefine_char): New function in UTF-2000.
3756         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3757         `Fput_char_attribute'.
3758         (syms_of_mule_charset): Add new function `define-char' and new
3759         symbol `ucs' in UTF-2000.
3760         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3761
3762 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3763
3764         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3765         non-UTF-2000 configuration.
3766
3767 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3768
3769         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3770         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3771
3772         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3773         deleted.
3774         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3775         (Fset_charset_mapping_table): Likewise.
3776
3777         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3778         (CHARSET_ENCODING_TABLE): Delete.
3779         (XCHARSET_ENCODING_TABLE): Delete.
3780         (charset_code_point): New interface.
3781
3782 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3783
3784         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3785         instead of `charset_get_byte1' and `charset_get_byte2'.
3786
3787         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3788         (charset_get_byte2): Deleted.
3789
3790 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3791
3792         * char-ucs.h (SPLIT_CHAR): New inline function.
3793         (breakup_char_1): Use `SPLIT_CHAR'.
3794
3795         * mule-charset.c (range_charset_code_point): New function.
3796         (charset_code_point): New function.
3797
3798         * char-ucs.h (range_charset_code_point): New interface.
3799         (breakup_char_1): Use `range_charset_code_point'.
3800
3801 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3802
3803         * mule-charset.c (Fmake_charset): Delete unused local variable
3804         `code_offset'.
3805
3806         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3807         (breakup_char_1): Find a charset and code-point in
3808         `Vcharacter_attribute_table'.
3809
3810 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3811
3812         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3813         to 0.10 (Yao).
3814
3815 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3816
3817         * mule-charset.c (Vcharacter_attribute_table): New variable.
3818         (Fchar_attribute_alist): New function.
3819         (Fget_char_attribute): New function.
3820         (Fput_char_attribute): New function.
3821         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3822         too.
3823         (syms_of_mule_charset): Add new function `char-attribute-alist',
3824         `get-char-attribute' and `put-char-attribute'.
3825         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3826
3827 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * mule-charset.c (Fmake_charset): Just use
3830         `get_unallocated_leading_byte'.
3831
3832         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3833         sets; don't use final-byte based number for private sets.
3834
3835 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3836
3837         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3838         integer.
3839
3840 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3841
3842         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3843         to 0.9.
3844
3845 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3846
3847         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3848         of `CHAR_LEADING_BYTE' in UTF-2000.
3849
3850         * insdel.c (find_charsets_in_bufbyte_string): Use
3851         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3852         (find_charsets_in_emchar_string): Likewise.
3853
3854         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3855         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3856
3857         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3858         (CHAR_CHARSET_ID): New macro.
3859
3860 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3861
3862         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3863         charset-id - MIN_LEADING_BYTE.
3864         (put_char_table): Likewise.
3865
3866 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3867
3868         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3869         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3870         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3871         (CHARSET_ID_OFFSET): New macro.
3872         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3873         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3874         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3875         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3876         4).
3877         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3878         5).
3879         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3880         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3881         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3882         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3883         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3884
3885 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3886
3887         * mule-charset.c (next_allocated_leading_byte): New variable in
3888         UTF-2000.
3889         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3890         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3891         (get_unallocated_leading_byte): Simply use
3892         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3893         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3894         UTF-2000.
3895
3896         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3897         (MAX_LEADING_BYTE_PRIVATE): New macro.
3898         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3899         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3900
3901 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3902
3903         * mule-charset.c (Fmake_charset): Allocate final-byte based
3904         charset-id for 94-set, 96-set and 94x94-set.
3905
3906 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3907
3908         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3909         ambiguous `else'.
3910         (Fmake_charset): Likewise.
3911         (complex_vars_of_mule_charset): Modify the font registry of
3912         `ucs-bmp' not to match `Ethiopic-Unicode'.
3913
3914 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3915
3916         * mule-charset.c (complex_vars_of_mule_charset): Add font
3917         registory of `ucs-bmp'.
3918
3919 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3920
3921         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3922         coded-charsets in `default-coded-charset-priority-list' when
3923         breaking up a character.
3924
3925         * mule-charset.c (Vcharset_latin_viscii): New variable.
3926         (Qlatin_viscii): New variable.
3927         (make_charset): Don't use `decoding_table'.
3928         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3929         byte_offset.
3930         (Fset_charset_mapping_table): New implementation.
3931         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3932         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3933         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3934         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3935         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3936         charset `latin_viscii'.
3937
3938         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3939         (CHARSET_TYPE_94X94): Change to 1 from 2.
3940         (CHARSET_TYPE_96): Change to 2 from 1.
3941         (CHARSET_TYPE_128): New macro.
3942         (CHARSET_TYPE_128X128): Change to 5 from 4.
3943         (CHARSET_TYPE_256): New macro.
3944         (CHARSET_TYPE_256X256): Change to 7 from 5.
3945         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3946
3947 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3948
3949         * text-coding.c (char_encode_shift_jis): Refer
3950         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3951         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3952
3953         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3954         (char_byte_table_equal): New function in UTF-2000.
3955         (char_byte_table_hash): New function in UTF-2000.
3956         (char_byte_table_description): New constant in UTF-2000.
3957         (char_byte_table): New type in UTF-2000.
3958         (make_char_byte_table): New function in UTF-2000.
3959         (copy_char_byte_table): New function in UTF-2000.
3960         (make_char_code_table): New macro in UTF-2000.
3961         (get_char_code_table): New function in UTF-2000.
3962         (put_char_code_table): New function in UTF-2000.
3963         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3964         (charset_description): Add setting in UTF-2000.
3965         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3966         `CHARSET_TO_BYTE1_TABLE(cs)'.
3967         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3968         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3969         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3970         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3971         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3972         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3973         `CHARSET_TO_BYTE2_TABLE(cs)'.
3974
3975         * char-ucs.h (char_byte_table): New type.
3976         (XCHAR_BYTE_TABLE): New macro.
3977         (XSETCHAR_BYTE_TABLE): New macro.
3978         (CHAR_BYTE_TABLE_P): New macro.
3979         (GC_CHAR_BYTE_TABLE_P): New macro.
3980         (struct Lisp_Char_Byte_Table): New structure.
3981         (get_char_code_table): New interface.
3982         (Emchar_to_byte_table): Deleted.
3983         (get_byte_from_character_table): Deleted.
3984         (struct Lisp_Charset): Add `encoding_table'; delete
3985         `to_byte1_table' and `to_byte2_table'.
3986         (CHARSET_ENCODING_TABLE): New macro.
3987         (CHARSET_TO_BYTE1_TABLE): Deleted.
3988         (CHARSET_TO_BYTE2_TABLE): Deleted.
3989         (XCHARSET_ENCODING_TABLE): New macro.
3990         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3991         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3992
3993 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3994
3995         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3996         `vietnamese-viscii-*'.
3997
3998 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3999
4000         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4001         (Qvietnamese_viscii_upper): New variable.
4002         (Fdefine_charset_alias): New function.
4003         (syms_of_mule_charset): Add new function `define-charset-alias'.
4004         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4005         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4006         `latin-viscii-*'.
4007
4008 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4009
4010         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4011         (MAX_CHAR_OBS_94x94): New macro.
4012         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4013         for 94x94 sets.
4014
4015         * mule-charset.c (put_byte_from_character_table): Change unit size
4016         from 128 to 256.
4017         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4018         not defined.
4019         (Fmake_reverse_direction_charset): Modify dummy argument of
4020         `make_charset' for non-UTF-2000 environment.
4021
4022 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4023
4024         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4025
4026         * mule-charset.c (destroy_byte_from_character_table): New macro.
4027         (latin_jisx0201_to_ucs): Deleted.
4028         (latin_iso8859_2_to_ucs): Deleted.
4029         (latin_iso8859_3_to_ucs): Deleted.
4030         (latin_iso8859_4_to_ucs): Deleted.
4031         (latin_iso8859_9_to_ucs): Deleted.
4032         (latin_viscii_lower_to_ucs): Deleted.
4033         (latin_viscii_upper_to_ucs): Deleted.
4034         (mark_charset): Mark `cs->decoding_table'.
4035         (Fcharset_mapping_table): Fix DOC-string.
4036         (Fset_charset_mapping_table): New function.
4037         (syms_of_mule_charset): Add nwe function
4038         `set-charset-mapping-table'.
4039         (complex_vars_of_mule_charset): Don't setup and use
4040         `latin_*_to_ucs'.
4041
4042 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4043
4044         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4045         charset.
4046
4047 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4048
4049         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4050         (Vcharset_katakana_jisx0208): New variable.
4051         (Qhiragana_jisx0208): New variable.
4052         (Qkatakana_jisx0208): New variable.
4053         (make_charset): Add new argument `byte_offset'.
4054         (charset_get_byte1): Modify for new coded-charset definition; use
4055         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4056         `XCHARSET_BYTE_OFFSET'.
4057         (Fmake_charset): Modify for `make_charset'.
4058         (Fmake_reverse_direction_charset): Likewise.
4059         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4060         `katakana-jisx0208'.
4061         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4062         `.'  in font registry of charset `katakana-jisx0201',
4063         `latin-jisx0201', `vietnamese-viscii-lower' and
4064         `vietnamese-viscii-upper'; modify DOC-string of charset
4065         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4066         registry of charset `japanese-jisx0208' not to use font for JIS
4067         X0208:1990; add new charset `hiragana-jisx0208' and
4068         `katakana-jisx0208'.
4069
4070         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4071         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4072         (struct Lisp_Charset): Add `byte_offset'.
4073         (CHARSET_BYTE_OFFSET): New macro.
4074         (XCHARSET_UCS_MIN): New macro.
4075         (XCHARSET_UCS_MAX): New macro.
4076         (XCHARSET_CODE_OFFSET): New macro.
4077         (XCHARSET_BYTE_OFFSET): New macro.
4078         (MIN_CHAR_HIRAGANA): New macro.
4079         (MAX_CHAR_HIRAGANA): New macro.
4080         (MIN_CHAR_KATAKANA): New macro.
4081         (MAX_CHAR_KATAKANA): New macro.
4082         (MAKE_CHAR): Modify for new coded-charset definition; use
4083         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4084         `XCHARSET_BYTE_OFFSET'.
4085
4086 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4087
4088         * mule-charset.c (CHAR96): Deleted.
4089         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4090         <Lisp_Object>.
4091         (latin_iso8859_2_to_ucs): Likewise.
4092         (latin_iso8859_3_to_ucs): Likewise.
4093         (latin_iso8859_4_to_ucs): Likewise.
4094         (latin_iso8859_9_to_ucs): Likewise.
4095         (latin_viscii_lower_to_ucs): Likewise.
4096         (latin_viscii_upper_to_ucs): Likewise.
4097         (latin_tcvn5712_to_ucs): Commented out.
4098         (make_charset): Change type of argument `decoding_table' from
4099         <Emchar*> to <Lisp_Object> [vector of characters].
4100         (Fmake_charset): Modify for `make_charset'.
4101         (Fmake_reverse_direction_charset): Likewise.
4102         (Fcharset_mapping_table): New function in UTF-2000.
4103         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4104         UTF-2000.
4105         (complex_vars_of_mule_charset): Modify for type change of
4106         `*_to_ucs'; modify for `make_charset'.
4107
4108         * char-ucs.h (struct Lisp_Charset): Change type of
4109         `decoding_table' from <Emchar*> to <Lisp_Object>.
4110         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4111
4112 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4113
4114         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4115         error with non-UTF-2000-Mule.
4116
4117 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4118
4119         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4120         in lisp again].
4121         (Vcharset_chinese_cns11643_4): Likewise.
4122         (Vcharset_chinese_cns11643_5): Likewise.
4123         (Vcharset_chinese_cns11643_6): Likewise.
4124         (Vcharset_chinese_cns11643_7): Likewise.
4125         (Qchinese_cns11643_3): Likewise.
4126         (Qchinese_cns11643_4): Likewise.
4127         (Qchinese_cns11643_5): Likewise.
4128         (Qchinese_cns11643_6): Likewise.
4129         (Qchinese_cns11643_7): Likewise.
4130         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4131         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4132         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4133         (complex_vars_of_mule_charset): Likewise.
4134
4135 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4136
4137         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4138         96-set.
4139         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4140         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4141
4142 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4143
4144         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4145         0xFF60.
4146         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4147         (breakup_char_1): Likewise.
4148
4149         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4150         one of them includes the specified character.
4151
4152 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4153
4154         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4155
4156 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4157
4158         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4159
4160 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4161
4162         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4163         definition for non-UTF-2000 Mule.
4164         (latin_iso8859_3_to_ucs): Likewise.
4165         (latin_iso8859_4_to_ucs): Likewise.
4166         (latin_iso8859_9_to_ucs): Likewise.
4167         (latin_jisx0201_to_ucs): Likewise.
4168         (MIN_CHAR_THAI): Likewise.
4169         (MAX_CHAR_THAI): Likewise.
4170         (MIN_CHAR_GREEK): Likewise.
4171         (MAX_CHAR_GREEK): Likewise.
4172         (MIN_CHAR_HEBREW): Likewise.
4173         (MAX_CHAR_HEBREW): Likewise.
4174         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4175         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4176         (MIN_CHAR_CYRILLIC): Likewise.
4177         (MAX_CHAR_CYRILLIC): Likewise.
4178
4179 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4180
4181         * char-ucs.h (breakup_char_1): Use
4182         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4183         thai-tis620 and katakana-jisx0201 area.
4184
4185 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4186
4187         * char-ucs.h (breakup_char_1): Use
4188         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4189         area.
4190
4191         * text-coding.c (reset_encoding_stream): Fixed.
4192         (char_encode_ucs4): Delete `& 255'.
4193
4194         * char-ucs.h (breakup_char_1): Use
4195         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4196
4197 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4198
4199         * file-coding.c (Fmake_coding_system): Don't set up
4200         `codesys->fixed.size'.
4201         (encode_coding_no_conversion): Don't refer
4202         `str->codesys->fixed.size'.
4203
4204 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4205
4206         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4207         (latin_a_char_to_byte1): Deleted.
4208         (latin_a_char_to_byte2): Deleted.
4209
4210 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4211
4212         * mule-charset.c (make_charset): Add new argument `ucs_min',
4213         `ucs_max' and `code_offset'.
4214         (charset_get_byte1): New implementation [delete specific charset
4215         depended implementations].
4216         (Fmake_charset): Modify for `make_charset'.
4217         (Fmake_reverse_direction_charset): Likewise.
4218         (complex_vars_of_mule_charset): Likewise.
4219
4220         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4221         `code_offset'.
4222         (CHARSET_UCS_MIN): New macro.
4223         (CHARSET_UCS_MAX): New macro.
4224         (CHARSET_CODE_OFFSET): New macro.
4225         (MAKE_CHAR): Delete charset depended definitions [except
4226         katakana-jisx0201].
4227
4228 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4229
4230         * char-ucs.h (breakup_char_1): Use
4231         `Vdefault_coded_charset_priority_list' for C0-Controls,
4232         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4233
4234 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4235
4236         * char-ucs.h (charset_get_byte1): New function.
4237         (XCHARSET_GET_BYTE1): Deleted.
4238         (charset_get_byte2): New function.
4239         (XCHARSET_GET_BYTE2): Deleted.
4240         (Vdefault_coded_charset_priority_list): New external variable.
4241         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4242         `Vdefault_preferred_coded_charset_list'.
4243
4244         * mule-charset.c (charset_get_byte1): New function.
4245         (charset_get_byte2): New function.
4246         (Vdefault_coded_charset_priority_list): New variable.
4247         (vars_of_mule_charset): Add new variable
4248         `default-coded-charset-priority-list'.
4249
4250 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4251
4252         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4253         (XCHARSET_GET_BYTE2): New inline function.
4254         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4255         `XCHARSET_GET_BYTE2'.
4256
4257 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4258
4259         * mule-charset.c (make_charset): Initialize
4260         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4261         NULL if table is not defined.
4262
4263 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4264
4265         * text-coding.c (char_encode_shift_jis): Use
4266         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4267         `ucs_to_latin_jisx0201'.
4268
4269         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4270         (ucs_to_latin_iso8859_2): Deleted.
4271         (ucs_to_latin_iso8859_3): Deleted.
4272         (ucs_to_latin_iso8859_4): Deleted.
4273         (ucs_to_latin_iso8859_9): Deleted.
4274         (ucs_to_latin_viscii_lower): Deleted.
4275         (ucs_to_latin_viscii_upper): Deleted.
4276         (ucs_to_latin_tcvn5712): Deleted.
4277         (make_charset): Add new argument `decoding_table'; set up
4278         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4279         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4280         `decoding_table' is defined in UTF-2000.
4281         (Fmake_charset): Modify for `make_charset'.
4282         (Fmake_reverse_direction_charset): Likewise.
4283         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4284         and `GENERATE_96_SET'.
4285
4286         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4287         (ucs_to_latin_jisx0201): Deleted.
4288         (latin_iso8859_2_to_ucs): Deleted.
4289         (ucs_to_latin_iso8859_2): Deleted.
4290         (latin_iso8859_3_to_ucs): Deleted.
4291         (ucs_to_latin_iso8859_3): Deleted.
4292         (latin_iso8859_4_to_ucs): Deleted.
4293         (ucs_to_latin_iso8859_4): Deleted.
4294         (latin_iso8859_9_to_ucs): Deleted.
4295         (ucs_to_latin_iso8859_9): Deleted.
4296         (latin_viscii_lower_to_ucs): Deleted.
4297         (ucs_to_latin_viscii_lower): Deleted.
4298         (latin_viscii_upper_to_ucs): Deleted.
4299         (ucs_to_latin_viscii_upper): Deleted.
4300         (struct Lisp_Charset): Renamed `encoding_table' to
4301         `to_byte1_table'; add `to_byte2_table'.
4302         (CHARSET_DECODING_TABLE): New macro.
4303         (CHARSET_TO_BYTE1_TABLE): New macro.
4304         (CHARSET_TO_BYTE2_TABLE): New macro.
4305         (XCHARSET_DECODING_TABLE): New macro.
4306         (XCHARSET_TO_BYTE1_TABLE): New macro.
4307         (XCHARSET_TO_BYTE2_TABLE): New macro.
4308         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4309         tables.
4310         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4311         don't use `ucs_to_*' tables.
4312
4313 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4314
4315         * text-coding.c (Fmake_coding_system): Don't set up
4316         `codesys->fixed.size'.
4317         (encode_coding_no_conversion): Use `if' instead of `switch'.
4318
4319         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4320
4321 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4322
4323         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4324         (Fmake_charset): Modify for `make_charset'.
4325         (Fmake_reverse_direction_charset): Likewise.
4326         (complex_vars_of_mule_charset): Likewise.
4327
4328 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4329
4330         * text-coding.c (char_encode_shift_jis): Use table
4331         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4332
4333 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4334
4335         * text-coding.c (text_encode_generic): Use `if' instead of
4336         `switch'.
4337         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4338         decode JIS-Latin.
4339
4340 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4341
4342         * text-coding.c (encode_coding_sjis): Deleted.
4343         (char_encode_shift_jis): New function.
4344         (char_finish_shift_jis): New function.
4345         (reset_encoding_stream): Set up `encode_char' and `finish' for
4346         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4347         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4348         (char_encode_utf8): Treat `eol_type'.
4349
4350 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4351
4352         * file-coding.c (decode_coding_iso2022): Use
4353         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4354
4355 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4356
4357         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4358         to 0.7 (Hirano).
4359
4360 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4361
4362         * char-lb.h (CHAR_COLUMNS): New macro.
4363
4364 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4365
4366         * text-coding.c (char_encode_ucs4): New function.
4367         (char_finish_ucs4): New function.
4368         (encode_coding_ucs4): Deleted.
4369         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4370         (text_encode_generic): Delete local variable `charset' and `half'.
4371         (ucs_to_mule_table): Deleted.
4372         (mule_to_ucs_table): Deleted.
4373         (Fset_ucs_char): Deleted.
4374         (ucs_to_char): Deleted.
4375         (Fucs_char): Deleted.
4376         (Fset_char_ucs): Deleted.
4377         (Fchar_ucs): Deleted.
4378         (decode_ucs4): Deleted.
4379         (mule_char_to_ucs4): Deleted.
4380         (encode_ucs4): Deleted.
4381         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4382         (decode_coding_utf8): Likewise.
4383         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4384         (char_encode_iso2022): Fixed.
4385         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4386         `Fset_char_ucs' and `Fchar_ucs'.
4387         (complex_vars_of_file_coding): Don't initialize
4388         `ucs_to_mule_table'.
4389
4390         * objects-tty.c (tty_initialize_font_instance): Don't use
4391         `XCHARSET_COLUMNS'.
4392
4393         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4394         UTF-2000.
4395
4396         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4397         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4398
4399         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4400         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4401         (emchar_string_displayed_columns): Likewise.
4402
4403         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4404         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4405         (string_column_at_point): Likewise.
4406         (Fmove_to_column): Likewise.
4407
4408         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4409         `encoding_table' and `decoding_table'.
4410         (CHARSET_REP_BYTES): Deleted.
4411         (XCHARSET_REP_BYTES): Deleted.
4412         (XCHARSET_COLUMNS): Deleted.
4413         (CHAR_COLUMNS): New macro.
4414         (lookup_composite_char): Deleted unconditionally.
4415         (composite_char_string): Likewise.
4416
4417 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4418
4419         * char-ucs.h (Emchar_to_byte_table): New type.
4420         (get_byte_from_character_table): New function interface.
4421         (Vcharset_latin_jisx0201): New variable.
4422         (latin_jisx0201_to_ucs): New variable.
4423         (ucs_to_latin_jisx0201): New variable.
4424         (Vcharset_latin_iso8859_2): New variable.
4425         (latin_iso8859_2_to_ucs): New variable.
4426         (ucs_to_latin_iso8859_2): New variable.
4427         (Vcharset_latin_iso8859_3): New variable.
4428         (latin_iso8859_3_to_ucs): New variable.
4429         (ucs_to_latin_iso8859_3): New variable.
4430         (Vcharset_latin_iso8859_4): New variable.
4431         (latin_iso8859_4_to_ucs): New variable.
4432         (ucs_to_latin_iso8859_4): New variable.
4433         (Vcharset_latin_iso8859_9): New variable.
4434         (latin_iso8859_9_to_ucs): New variable.
4435         (ucs_to_latin_iso8859_9): New variable.
4436         (Vcharset_latin_viscii_lower): New variable.
4437         (latin_viscii_lower_to_ucs): New variable.
4438         (ucs_to_latin_viscii_lower): New variable.
4439         (Vcharset_latin_viscii_upper): New variable.
4440         (latin_viscii_upper_to_ucs): New variable.
4441         (ucs_to_latin_viscii_upper): New variable.
4442         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4443         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4444         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4445         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4446         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4447         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4448         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4449         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4450         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4451         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4452
4453         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4454         (Vcharset_latin_viscii_upper): New variable.
4455         (make_byte_from_character_table): New function.
4456         (put_byte_from_character_table): New function.
4457         (get_byte_from_character_table): New function.
4458         (CHAR96): New macro.
4459         (ucs_to_latin_jisx0201): New variable.
4460         (latin_jisx0201_to_ucs): New variable.
4461         (ucs_to_latin_iso8859_2): New variable.
4462         (latin_iso8859_2_to_ucs): New variable.
4463         (ucs_to_latin_iso8859_3): New variable.
4464         (latin_iso8859_3_to_ucs): New variable.
4465         (ucs_to_latin_iso8859_4): New variable.
4466         (latin_iso8859_4_to_ucs): New variable.
4467         (ucs_to_latin_iso8859_9): New variable.
4468         (latin_iso8859_9_to_ucs): New variable.
4469         (ucs_to_latin_viscii_lower): New variable.
4470         (latin_viscii_lower_to_ucs): New variable.
4471         (ucs_to_latin_viscii_upper): New variable.
4472         (latin_viscii_upper_to_ucs): New variable.
4473         (ucs_to_latin_tcvn5712): New variable.
4474         (latin_tcvn5712_to_ucs): New variable.
4475         (Qlatin_viscii_lower): New variable.
4476         (Qlatin_viscii_upper): New variable.
4477         (syms_of_mule_charset): Set up new symbol
4478         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4479         (complex_vars_of_mule_charset): Set up new charset
4480         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4481         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4482         `ucs_to_<CHARSET>' tables.
4483
4484 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4485
4486         * text-coding.c: New file.
4487
4488 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4489
4490         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4491
4492         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4493         (MAKE_CHAR): Modify for `ucs-bmp'.
4494         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4495         non-MULE characters of BMP.
4496
4497 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4498
4499         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4500         to 0.6.
4501
4502 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4503
4504         * lstream.h:
4505         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4506         - Include character.h for `CHAR_ASCII_P'.
4507
4508         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4509
4510         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4511         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4512
4513         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4514         (BYTE_C0_P): Likewise.
4515         (BYTE_C1_P): Likewise.
4516         (Lstream_get_emchar_1): Likewise.
4517         (Lstream_fput_emchar): Likewise.
4518         (Lstream_funget_emchar): Likewise.
4519         (copy_internal_to_external): Likewise.
4520         (copy_external_to_internal): Likewise.
4521
4522         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4523         (BYTE_C0_P): Likewise.
4524         (BYTE_C1_P): Likewise.
4525         (Lstream_get_emchar_1): Likewise.
4526         (Lstream_fput_emchar): Likewise.
4527         (Lstream_funget_emchar): Likewise.
4528         (copy_internal_to_external): Likewise.
4529         (copy_external_to_internal): Likewise.
4530
4531         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4532         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4533
4534         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4535         (BYTE_ASCII_P): Moved to mb-1byte.h.
4536
4537 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4538
4539         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4540
4541         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4542         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4543         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4544         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4545         (VALIDATE_CHARPTR_FORWARD): Likewise.
4546         (simple_charptr_emchar): Moved to mb-multibyte.h.
4547         (simple_set_charptr_emchar): Likewise.
4548         (simple_charptr_copy_char): Likewise.
4549         (non_ascii_charptr_emchar): Likewise.
4550         (non_ascii_set_charptr_emchar): Likewise.
4551         (non_ascii_charptr_copy_char): Likewise.
4552         (charptr_emchar): Moved to mb-*byte.h.
4553         (set_charptr_emchar): Likewise.
4554         (charptr_copy_char): Likewise.
4555
4556         * mb-1byte.h, mb-multibyte.h: New files.
4557
4558 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4559
4560         * mb-utf-8.h (MULTIBYTE): New macro.
4561         (MAX_EMCHAR_LEN): Moved from buffer.h.
4562         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4563
4564         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4565
4566         * mb-lb.h, multibyte.h: New files.
4567
4568         * char-1byte.h (Charset_ID): Moved from buffer.h.
4569         (MIN_LEADING_BYTE): Likewise.
4570         (LEADING_BYTE_ASCII): Likewise.
4571         (NUM_LEADING_BYTES): Likewise.
4572         (CHARSETP): Likewise.
4573         (CHARSET_BY_LEADING_BYTE): Likewise.
4574         (XCHARSET_LEADING_BYTE): Likewise.
4575         (XCHARSET_GRAPHIC): Likewise.
4576         (XCHARSET_COLUMNS): Likewise.
4577         (XCHARSET_DIMENSION): Likewise.
4578         (CHAR_CHARSET): Likewise.
4579         (CHAR_LEADING_BYTE): Likewise.
4580         (BREAKUP_CHAR): Likewise.
4581         (Vcharset_ascii): Likewise.
4582
4583         * buffer.h: Include multibyte.h unconditionally.
4584         (VALID_CHARPTR_P): Moved to multibyte.h.
4585         (ASSERT_VALID_CHARPTR): Likewise.
4586         (REAL_INC_CHARPTR): Likewise.
4587         (REAL_INC_CHARBYTIND): Likewise.
4588         (REAL_DEC_CHARPTR): Likewise.
4589         (INC_CHARPTR): Likewise.
4590         (INC_CHARBYTIND): Likewise.
4591         (DEC_CHARPTR): Likewise.
4592         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4593         (VALIDATE_CHARPTR_FORWARD): Likewise.
4594         (charptr_n_addr): Likewise.
4595         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4596         (simple_charptr_emchar): Moved to multibyte.h.
4597         (simple_set_charptr_emchar): Likewise.
4598         (simple_charptr_copy_char): Likewise.
4599         (non_ascii_charptr_emchar): Likewise.
4600         (non_ascii_set_charptr_emchar): Likewise.
4601         (non_ascii_charptr_copy_char): Likewise.
4602         (charptr_emchar): Likewise.
4603         (set_charptr_emchar): Likewise.
4604         (charptr_copy_char): Likewise.
4605         (charptr_emchar_n): Likewise.
4606         (Charset_ID): Moved to char-1byte.h.
4607         (Vcharset_ascii): Likewise.
4608         (CHAR_CHARSET): Likewise.
4609         (CHAR_LEADING_BYTE): Likewise.
4610         (LEADING_BYTE_ASCII): Likewise.
4611         (NUM_LEADING_BYTES): Likewise.
4612         (MIN_LEADING_BYTE): Likewise.
4613         (CHARSETP): Likewise.
4614         (CHARSET_BY_LEADING_BYTE): Likewise.
4615         (XCHARSET_LEADING_BYTE): Likewise.
4616         (XCHARSET_GRAPHIC): Likewise.
4617         (XCHARSET_COLUMNS): Likewise.
4618         (XCHARSET_DIMENSION): Likewise.
4619         (BREAKUP_CHAR): Likewise.
4620
4621 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4622
4623         * character.h: Add document about interface for characters.
4624
4625         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4626         (MAKE_CHAR): Delete comment about
4627         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4628         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4629         (BREAKUP_CHAR): Modify name of arguments.
4630         (CHAR_CHARSET): Modify name of argument.
4631
4632         * buffer.h: Delete document about Emchar accessors.
4633
4634 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4635
4636         * character.h (CHAR_INTP): Moved from buffer.h
4637         (CHAR_OR_CHAR_INTP): Likewise.
4638         (XCHAR_OR_CHAR_INT): Likewise.
4639         (CHECK_CHAR_COERCE_INT): Likewise.
4640
4641         * buffer.h (CHAR_INTP): Moved to character.h
4642         (CHAR_OR_CHAR_INTP): Likewise.
4643         (XCHAR_OR_CHAR_INT): Likewise.
4644         (CHECK_CHAR_COERCE_INT): Likewise.
4645
4646 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4647
4648         * character.h:
4649         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4650         - Include char-1byte.h, char-lb.h or char-ucs.h.
4651
4652         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4653
4654         * buffer.h: Include character unconditionally.
4655         (valid_char_p): Moved to char-*.h.
4656         (non_ascii_valid_char_p): Moved to char-lb.h.
4657
4658         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4659
4660 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4661
4662         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4663         in UTF-2000 because it is not ported yet and not to use
4664         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4665         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4666         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4667
4668         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4669         (CHAR_ASCII_P): Moved from character.h.
4670
4671         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4672         (CHAR_ASCII_P): Likewise.
4673         (CHAR_FIELD1_MASK): Deleted.
4674         (CHAR_FIELD2_MASK): Deleted.
4675         (CHAR_FIELD3_MASK): Deleted.
4676         (MAX_CHAR_BASIC_LATIN): New macro.
4677         (CHAR_FIELD1): Deleted.
4678         (CHAR_FIELD2_INTERNAL): Deleted.
4679         (CHAR_FIELD3_INTERNAL): Deleted.
4680         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4681         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4682         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4683         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4684         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4685         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4686         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4687         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4688         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4689         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4690         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4691         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4692         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4693         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4694         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4695         (MIN_CHAR_COMPOSITION): Deleted.
4696         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4697         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4698
4699 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4700
4701         * buffer.h: Include mb-utf-8.h in UTF-2000.
4702
4703         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4704
4705         * mb-utf-8.h: New file.
4706
4707 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4708
4709         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4710         instead of `int'.
4711
4712         * mule-charset.h, buffer.h (Charset_ID): New type.
4713
4714 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4715
4716         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4717         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4718         instead of `MULE_CHAR_PRIVATE_OFFSET',
4719         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4720         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4721         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4722
4723         * character.h (Vcharset_japanese_jisx0212): New variable
4724         definition.
4725
4726 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4727
4728         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4729         (charset_by_attributes): Delete array about direction.
4730         (latin_a_char_to_charset): New variable in UTF-2000.
4731         (latin_a_char_to_byte1): New variable in UTF-2000.
4732         (latin_a_char_to_byte2): New variable in UTF-2000.
4733         (Qucs_bmp): New variable.
4734         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4735         `Bufbyte'.
4736         (next_allocated_2_byte_leading_byte): Likewise.
4737         (non_ascii_set_charptr_emchar): Likewise.
4738         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4739         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4740         `charset_by_attributes'.
4741         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4742         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4743         and `CHARSET_BY_LEADING_BYTE'.
4744         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4745         `utf-2000-version' to `vars_of_mule_charset'.
4746         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4747         define `leading-code-private-11' in UTF-2000; move setting of
4748         `utf-2000-version' from `syms_of_mule_charset'.
4749         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4750         UTF-2000.
4751
4752         * character.h (Charset_ID): New type.
4753         (LEADING_BYTE_UCS_BMP): New macro.
4754         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4755         (CHARSET_ID_OFFSET_94): New macro.
4756         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4757         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4758         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4759         final-byte.
4760         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4761         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4762         (CHARSET_ID_OFFSET_96): New macro.
4763         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4764         CHARSET_ID_OFFSET_96 and final-byte.
4765         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4766         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4767         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4768         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4769         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4770         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4771         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4772         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4773         (LEADING_BYTE_THAI_TIS620): Likewise.
4774         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4775         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4776         (CHARSET_ID_OFFSET_94x94): New macro.
4777         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4778         CHARSET_ID_OFFSET_94x94 and final-byte.
4779         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4780         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4781         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4782         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4783         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4784         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4785         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4786         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4787         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4788         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4789         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4790         (CHARSET_TYPE_128X128): New macro.
4791         (CHARSET_TYPE_256X256): New macro.
4792         (XCHARSET_PRIVATE_P): Delete unconditionally.
4793         (charset_by_attributes): Delete array about direction.
4794         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4795         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4796         (MIN_CHAR_94): New macro.
4797         (MAX_CHAR_94): New macro.
4798         (MIN_CHAR_96): New macro.
4799         (MAX_CHAR_96): New macro.
4800         (MIN_CHAR_94x94): New macro.
4801         (MAX_CHAR_94x94): New macro.
4802         (MIN_CHAR_96x96): New macro.
4803         (MAX_CHAR_96x96): New macro.
4804         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4805         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4806         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4807         - 32)'.
4808         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4809         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4810         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4811         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4812         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4813         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4814         `XCHARSET_LEADING_BYTE' to make code-point.
4815         (latin_a_char_to_charset): New variable.
4816         (latin_a_char_to_byte1): New variable.
4817         (latin_a_char_to_byte2): New variable.
4818         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4819         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4820         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4821
4822         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4823         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4824         (find_charsets_in_emchar_string): Likewise.
4825         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4826
4827         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4828         `int'.
4829         (decode_coding_iso2022): Likewise.
4830
4831         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4832         of `unsigned char'.
4833
4834         * redisplay.c (redisplay_text_width_emchar_string): Use
4835         `Charset_ID' instead of `unsigned char'.
4836         (redisplay_frame_text_width_string): Likewise.
4837
4838         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4839         `unsigned char'.
4840
4841         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4842         instead of `unsigned char'.
4843         (face_cachel_charset_font_metric_info): Likewise.
4844
4845         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4846         (get_non_ascii_char_table_value): Likewise.
4847         (get_char_table): Likewise.
4848         (put_char_table): Likewise.
4849         (map_over_other_charset): Likewise.
4850         (map_char_table): Likewise.
4851
4852         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4853         instead of `unsigned char'.
4854
4855 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4856
4857         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4858         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4859
4860         * mule-charset.c (leading_code_private_11): Don't define in
4861         UTF-2000.
4862
4863         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4864         in UTF-2000 because it is not ported yet and not to use
4865         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4866
4867 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4868
4869         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4870
4871 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4872
4873         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4874         in UTF-2000.
4875
4876         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4877         of unsigned char to store leading-byte.
4878
4879         * chartab.c (get_non_ascii_char_table_value): Don't use
4880         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4881
4882         * file-coding.c (encode_coding_big5): Delete bogus implementation
4883         in UTF2000.
4884
4885         * character.h (LEADING_BYTE_*): Delete definition for
4886         non-UTF-2000.
4887         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4888         (LEADING_BYTE_PREFIX_P): Deleted.
4889         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4890         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4891         (BUFBYTE_LEADING_BYTE_P): Deleted.
4892         (CHARSET_PRIVATE_P): Deleted unconditionally.
4893         (rep_bytes_by_first_byte): Deleted unconditionally.
4894         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4895         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4896         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4897         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4898         (CHAR_FIELD2): Deleted.
4899         (CHAR_FIELD3): Deleted.
4900         (MAKE_CHAR): Delete definition for non-UTF-2000.
4901         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4902         (breakup_char_1): New implementation.
4903         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4904         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4905
4906 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4907
4908         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4909         condition.
4910
4911 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4912
4913         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4914         (CHARSET_PRIVATE_P): Likewise.
4915         (XCHARSET_PRIVATE_P): Likewise.
4916         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4917
4918         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4919         UTF2000.
4920         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4921
4922 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4923
4924         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4925         (NUM_LEADING_BYTES): Changed from 128 to 256.
4926         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4927         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4928         UTF2000.
4929         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4930
4931         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4932         UTF2000.
4933         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4934         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4935         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4936         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4937         (Qchinese_cns11643_3): New variable in UTF2000.
4938         (Qchinese_cns11643_4): New variable in UTF2000.
4939         (Qchinese_cns11643_5): New variable in UTF2000.
4940         (Qchinese_cns11643_6): New variable in UTF2000.
4941         (Qchinese_cns11643_7): New variable in UTF2000.
4942         (syms_of_mule_charset): Define `chinese-cns11643-3',
4943         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4944         and `chinese-cns11643-7' in UTF2000.
4945         (vars_of_mule_charset): Initialize
4946         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4947         + 1 in UTF2000.
4948         (complex_vars_of_mule_charset): Setup charset
4949         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4950         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4951
4952 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4953
4954         * mule-charset.c: Move setting for `leading-code-private-11' from
4955         `syms_of_mule_charset' to `vars_of_mule_charset'.
4956
4957 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4958
4959         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4960         and `NUM_LEADING_BYTES' in assert.
4961
4962 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4963
4964         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4965         instead of 128.
4966         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4967         `NUM_LEADING_BYTES' instead of 128.
4968
4969 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4970
4971         * mule-charset.h (charset_by_leading_byte): Use
4972         `NUM_LEADING_BYTES' instead of 128.
4973         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4974
4975         * mule-charset.c (charset_by_leading_byte): Use
4976         `NUM_LEADING_BYTES' instead of 128.
4977         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4978
4979         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4980         128.
4981
4982 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4983
4984         * mule-charset.c (syms_of_mule_charset): Update to
4985         0.4 (Shin-Imamiya).
4986
4987 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4988
4989         * file-coding.c (encode_coding_sjis): New implementation for
4990         UTF2000.  (decode_coding_sjis): Ditto.
4991
4992 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4993
4994         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4995         Don't define in UTF2000.
4996
4997         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4998         defined.
4999
5000         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5001         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5002         MULE.
5003
5004 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5005
5006         * config.h.in (CHAR_IS_UCS4): New macro.
5007
5008         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5009         conventional MULE representation.
5010         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5011
5012         * mule-charset.h: Reverted to original.
5013
5014         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5015         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5016         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5017
5018         * character.h: New file.
5019
5020         * file-coding.c (Fmake_coding_system): Set 1 to
5021         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5022         defined.
5023         (encode_coding_no_conversion): New implementation for UTF2000.
5024
5025         * file-coding.h (struct Lisp_Coding_System): Add new member
5026         `fixed.size'.
5027
5028 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5029
5030         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5031         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5032         (encode_coding_iso2022): New implementation for UTF2000.
5033
5034 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5035
5036         * mule-canna.c (c2mu): New implementation for UTF2000.
5037         (m2c): Likewise.
5038
5039 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5040
5041         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5042
5043 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5044
5045         * file-coding.c (reset_encoding_stream): Set 0 to
5046         `str->iso2022.current_char_boundary' in UTF2000.
5047         (encode_utf8): Don't define in UTF2000.
5048         (encode_coding_utf8): New implementation for UTF-8 representation
5049         of UTF2000.
5050         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5051
5052 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5053
5054         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5055
5056         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5057         UTF2000.
5058         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5059
5060         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5061
5062         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5063         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5064         as UTF-8 in UTF2000.
5065         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5066         (non_ascii_valid_char_p): Don't define in UTF2000.
5067         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5068         (Lstream_get_emchar_1): Likewise.
5069         (utf-2000-version): New variable in UTF2000.
5070
5071         * lread.c (read_escape): Add new reader `u'.
5072
5073         * insdel.c (three_to_one_table): Don't define in UTF2000.
5074         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5075         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5076         UTF2000.
5077         (bytind_to_bufpos_func): Likewise.
5078         (buffer_mule_signal_inserted_region): Likewise.
5079         (vars_of_insdel): Don't initialize `three_to_one_table'.
5080         (init_buffer_text): Use `buf->text->mule_size' instead of
5081         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5082         UTF2000.
5083
5084         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5085         UTF-8 representation in UTF2000.
5086         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5087         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5088         (decode_coding_iso2022): Don't define local variable `lb' in
5089         UTF2000; don't use LEADING_BYTE in UTF2000; use
5090         `DECODE_ADD_UCS_CHAR' in UTF2000.
5091         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5092
5093         * config.h.in (UTF2000): New macro.
5094
5095         * buffer.h (struct buffer_text): Add new member `mule_size' and
5096         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5097         (valid_char_p): Return always 1 in UTF2000.
5098         (MAX_EMCHAR_LEN): 6 in UTF2000.
5099         (three_to_one_table): Don't define in UTF2000.
5100         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5101         UTF2000.
5102         (real_bytind_to_bufpos): Likewise.
5103
5104         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5105
5106 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5107
5108         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5109         representation change.
5110         (Vutf_2000_version): New variable.
5111         (leading_code_private_11): New variable.
5112         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5113         `leading-code-private-11'.
5114
5115         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5116         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5117         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5118         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5119         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5120         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5121         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5122         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5123         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5124         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5125         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5126         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5127         (MIN_CHAR_GREEK): New macro.
5128         (MAX_CHAR_GREEK): New macro.
5129         (MIN_CHAR_CYRILLIC): New macro.
5130         (MAX_CHAR_CYRILLIC): New macro.
5131         (MIN_CHAR_HEBREW): New macro.
5132         (MAX_CHAR_HEBREW): New macro.
5133         (MIN_CHAR_THAI): New macro.
5134         (MAX_CHAR_THAI): New macro.
5135         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5136         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5137         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5138         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5139         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5140         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5141         (CHAR_FIELD2): New inline function.
5142         (CHAR_FIELD3): New inline function.
5143         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5144         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5145         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5146         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5147         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5148         (MIN_CHAR_COMPOSITION): Likewise.
5149         (CHAR_LEADING_BYTE): Modified for character representation change.
5150         (MAKE_CHAR): Likewise.
5151
5152         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5153         (Vcharset_greek_iso8859_7): Likewise.
5154         (Vcharset_cyrillic_iso8859_5): Likewise.
5155         (Vcharset_hebrew_iso8859_8): Likewise.
5156         (Vcharset_thai_tis620): Likewise.
5157         (Vcharset_katakana_jisx0201): Likewise.
5158
5159 2003-09-03  Vin Shelton <acs@xemacs.org>
5160
5161         * XEmacs 21.4.14 is released
5162
5163 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5164
5165         * config.h.in (REGEX_MALLOC): Make it configure'able.
5166
5167 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5168
5169         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5170         linking.
5171         * sysdll.c (dll_init):
5172         * sysdll.c (dll_open):
5173         * sysdll.c (dll_close):
5174         * sysdll.c (dll_function):
5175         * sysdll.c (dll_variable):
5176         * sysdll.c (dll_error):
5177         Add support for loading bundles using Darwin/MacOSX
5178         native API.
5179
5180 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5181
5182         * process.c (start-process-internal): Document coding systems.
5183
5184 2003-07-30  Jerry James  <james@xemacs.org>
5185
5186         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5187
5188 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5189
5190         * event-msw.c (mswindows_enqueue_mouse_button_event):
5191         * event-msw.c (mswindows_wnd_proc):
5192           enqueue button event when scrollwheel event isn't handled by 
5193           mswindows_handle_mousewheel_event, such as when the scrollbars
5194           are not showing.
5195
5196 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5197
5198         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5199
5200 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5201
5202         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5203
5204 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5205
5206         * regex.c (re_match_2_internal): Fix matching degenerate word
5207         boundaries.
5208
5209 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5210
5211         * XEmacs 21.4.13 is released
5212
5213 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5214
5215         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5216         * lisp.h (<inttypes.h>):
5217         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5218         the definition.
5219
5220 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5221
5222         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5223         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5224         Result: "temacs can only be run in -batch mode."
5225         Fix: Check xemacs executable candidate for directory-ness.
5226
5227 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5228
5229         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5230           they conflict with <sys/types.h>.
5231
5232 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5233
5234         * database.c: Berkeley DB wants __STDC__ to be defined.
5235
5236 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5237
5238         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5239
5240 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5241
5242         * process-unix.c (unix_send_process): Fix C++ compile error.
5243
5244 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5245
5246         * Added .dylib as an acceptable shared library file extension
5247         * to support MacOSX.
5248
5249 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5250
5251         * EmacsFrameP.h (EmacsFramePart):
5252         Kludge to allow compiling with Motif1, but linking with Motif2.
5253
5254 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5255
5256         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5257
5258
5259 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5260
5261         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5262
5263 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5264
5265         * sysdll.c: Included lisp.h to define needed alloca_array.
5266
5267 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5268
5269         Make XEmacs redisplay 10 times faster.
5270         If, that is, you're using a slow X connection and MoveOpaque.
5271         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5272         Use compress_motion = TRUE.
5273         * EmacsFrame.c (emacsFrameClassRec): 
5274         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5275         * EmacsManager.c (emacsManagerClassRec):
5276         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5277
5278 2003-01-30  Vin Shelton  <acs@xemacs.org>
5279
5280         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5281
5282 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5283
5284         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5285         Patch by Martin Buchholz.
5286
5287 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5288
5289         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5290         Thanks to icc for warning and Martin Buchholz for reporting.
5291
5292 2003-01-29  Vin Shelton <acs@xemacs.org>
5293
5294         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5295
5296         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5297         remember to multiply by the element size.
5298
5299 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5300
5301         * XEmacs 21.4.12 "Portable Code" is released.
5302
5303 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5304
5305         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5306         * s/cygwin.sc: new linker file.
5307
5308 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5309
5310         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5311
5312         * redisplay-x.c (x_output_string): Use X11-specified types.
5313         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5314         * emacs.c (__free_hook): Use typeof with Intel compiler.
5315         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5316
5317 2003-01-08  Andy Piper  <andy@xemacs.org>
5318
5319         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5320         reserve size during unexec().
5321
5322 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5323
5324         * process-unix.c (unix_create_process): Don't let outchannel block.
5325
5326 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5327
5328         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5329         Needed for IsBadReadPtr().
5330
5331 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5332
5333         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5334
5335 2002-12-14  Ben Wing  <ben@xemacs.org>
5336
5337         * callint.c: Declaration error.
5338         * dumper.c (pdump):
5339         * dumper.c (pdump_load): Warning fix.
5340         * process.c: GCPRO error.
5341         * glyphs.c (unmap_subwindow):
5342         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5343         * event-stream.c (maybe_kbd_translate): Wrong argument to
5344         character_to_event().
5345
5346         * alloc.c (garbage_collect_1):
5347         * emacs.c:
5348         * emacs.c (debug_can_access_memory):
5349         * emacs.c (fatal_error_signal):
5350         * emacs.c (mswindows_handle_hardware_exceptions):
5351         * emacs.c (main_1):
5352         * emacs.c (main):
5353         * emacs.c (assert_failed):
5354         * emacs.c (syms_of_emacs):
5355         * lisp.h:
5356         * print.c:
5357         * print.c (std_handle_out_va):
5358         * print.c (write_string_to_stdio_stream):
5359         * print.c (write_fmt_string):
5360         * print.c (printing_badness):
5361         * print.c (printing_major_badness):
5362         * print.c (print_internal):
5363         * print.c (debug_print_no_newline):
5364         * print.c (debug_backtrace):
5365         Be more defensive in handling bad values when printing.  Add code
5366         from trunk involving inhibit_non_essential_printing_operations.
5367         When going down or in debug_print(), don't do external conversion
5368         and such and try really, really hard when printing to avoid core
5369         dumping.  Add force-debugging-signal, debug_break().
5370
5371 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5372
5373         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5374         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5375
5376 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5377
5378         * database.c: Fix open_database. Berkeley DB API has changed in
5379         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5380
5381 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5382
5383         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5384
5385 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5386
5387         * event-Xt.c (Xt_timeout):
5388         (Xt_timeout_callback):
5389         (emacs_Xt_add_timeout):
5390         (emacs_Xt_remove_timeout):
5391         (Xt_timeout_to_emacs_event):
5392         Turn completed_timeouts from a stack into a queue.  Fixes
5393         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5394
5395 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5396
5397         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5398         * emacs.c (main): Assert that mmap'd allocation is disabled.
5399
5400 2002-10-14  Andy Piper  <andy@xemacs.org>
5401
5402         * glyphs-widget.c (layout_query_geometry): add in fiddle
5403         factor. Include border text in width layout calculation.
5404         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5405
5406 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5407
5408         * XEmacs 21.4.10 "Military Intelligence" is released.
5409
5410 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5411
5412         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5413         using the NAS private array SoundFileInfo that no longer exists in
5414         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5415         and earlier.  This is broken for some versions between 1.5a and
5416         1.5f.
5417
5418 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5419
5420         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5421
5422         * emacs.c (shut_down_emacs): Improve crash message.
5423
5424 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5425
5426         * file-coding.c (determine_real_coding_system): Check for coding
5427         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5428         shebangs and Python PEP 263.
5429
5430 2002-10-08  Andy Piper  <andy@xemacs.org>
5431
5432         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5433         if static sizes haven't been set.
5434
5435 2002-08-30  Mike Alexander  <mta@arbortext.com>
5436
5437         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5438         to close a socket.
5439
5440 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5441
5442         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5443
5444 2002-09-20  Mike Sperber <mike@xemacs.org>
5445
5446         (This partially gets back my patch from 2002-07-20 without the
5447         bug.)
5448         * callproc.c (child_setup): Remove Ben's comment noting confusion
5449         over the file descriptors >= 3: close_process_descs() doesn't
5450         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5451         * process-unix.c (unix_create_process): Call
5452         begin_dont_check_for_quit to inhibit unwanted interaction (and
5453         thus breaking of X event synchronicity) in the child.
5454
5455 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5456
5457         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5458         widget.
5459
5460 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5461
5462         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5463         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5464         the xemacs process did not exit, but looped infinitely here.  This
5465         fixes that problem.
5466
5467 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5468
5469         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5470         (find_context): Improve comments.
5471
5472         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5473         (re_match_2): An XCHAR_TABLE operation was missing.
5474
5475         Many of the following changes were inspired by Andy Piper's (now
5476         obsolete) patch to make syntax-table text property lookup optional.
5477
5478         [Documentation]
5479
5480         * syntax.h (top level): Document semantics of syntax flags.
5481         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5482         * syntax.c, syntax.h (top level): Document syntax cache better in
5483         comments.
5484
5485         [Instrument syntax caching (temporary change)]
5486
5487         * syntax.h (enum syntax_cache_statistics_functions, struct
5488         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5489         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5490         * syntax.c (scan_words, Fforward_comment, scan_lists,
5491         Fbackward_prefix_characters):
5492         * font-lock.c (find_context):
5493         Use them to instrument syntax caching. 
5494         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5495         syntax_cache_statistics_function_names): New type and variables.
5496         * syntax.c (update_syntax_cache): Update and report statistics.
5497
5498         [Major syntax cache optimizations]
5499
5500         syntax.c (lookup_syntax_properties): Default off.
5501
5502         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5503         * syntax.c (update_syntax_cache):
5504         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5505
5506         [Minor syntax cache optimizations and code clarifications]
5507
5508         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5509         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5510         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5511         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5512         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5513         (Code clarification.)
5514
5515         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5516         scan_lists): Compute code from syncode, use Boolean macros instead
5517         of redundant masking operations.  (Code clarification; any decent
5518         compiler can do this optimization.)
5519
5520         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5521         for clarity.
5522
5523         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5524         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5525         use F*_single_property_change instead of F*_extent_change.
5526         Currently F*_single_property_change is _much_ less efficient.
5527
5528         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5529         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5530         syntax_cache.object properly, don't leave Qt or Qnil.
5531         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5532         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5533         tests for Qt or Qnil.
5534
5535 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5536
5537         * redisplay.c (point_in_line_start_cache): 
5538         * extents.c (print_extent_1):
5539         Fix warnings.
5540
5541         * extents.c (Fset_extent_property): Document `syntax-table' property.
5542
5543         * extents.h (Fnext_single_property_change): EXFUN it.
5544
5545 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5546
5547         * search.c (clear_unused_search_regs): New static function.
5548         (search_buffer): 
5549         (simple_search): 
5550         (boyer_moore):
5551         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5552         Minor clarifications in comments.
5553
5554         * regex.c (re_match_2_internal): Ensure no stale submatches.
5555
5556 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5557
5558         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5559
5560 2002-08-29  Jerry James  <james@xemacs.org>
5561
5562         * lisp.h: structrures -> structures.
5563
5564 2002-06-03  Andy Piper  <andy@xemacs.org>
5565
5566         * frame.c (frame_conversion_internal): add conversion appropriate
5567         for setting frame dimensions in pixels.
5568
5569         * console.h (struct console_methods): add device-specific widget
5570         layout functions.
5571
5572         * emacs.c (main_1): initialize glyph vars.
5573
5574         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5575         (handle_focus_event_2): new function. Allow focus to
5576         be set to a particular window and widget.
5577         (enqueue_focus_event): new function. Create a
5578         synthetic focus event.
5579         (emacs_Xt_handle_magic_event): call
5580         handle_focus_event_2.
5581
5582         * frame.c (Fset_frame_pixel_height): new function. Allow
5583         pixel-based sizing. Does the right thing on character-oriented
5584         displays.
5585         (Fset_frame_pixel_width): ditto.
5586         (Fset_frame_pixel_size): ditto.
5587         (syms_of_frame): declare.
5588
5589         * general-slots.h: add :vertically-justify and
5590         :horizontally-justify.
5591
5592         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5593         (mswindows_widget_border_width): new function.
5594         (mswindows_combo_box_instantiate): set border widths.
5595         (console_type_create_glyphs_mswindows): declare.
5596
5597         * glyphs-widget.c:
5598         (check_valid_justification): allow vertical and horizontal
5599         justification.
5600         (widget_border_width): new function. Call device methods.
5601         (widget_instance_border_width): ditto.
5602         (logical_unit_height): new function. Determine the height of a
5603         logical-unit. Logical units are intended to provide grid-like
5604         layout for subcontrols in a layout. If the layout is
5605         :vertically-justify top then subcontrols will be positioned on
5606         logical-unit boundaries, thus allowing adjacent subcontrols to
5607         line up.
5608         (widget_logical_unit_height): ditto for widgets.
5609         (redisplay_widget): misc cleanup.
5610         (widget_spacing): new function. Call device specific
5611         methods. Intended to be the default gap between adjacent widgets.
5612         (widget_query_geometry): use new spacing functions to determine
5613         appropriate geometry.
5614         (initialize_widget_image_instance): initialize horizontal and
5615         vertical justification.
5616         (widget_instantiate): use logica-units where appropriate for
5617         sizing large widgets.
5618         (button_query_geometry): use widget_instance_border_width.
5619         (tree_view_query_geometry): ditto.
5620         (tab_control_query_geometry): ditto.
5621         (edit_field_query_geometry): new function.
5622         (layout_update): pick up :justify, :horizontally-justify and
5623         :vertically-justify none of which worked previously. :justify is
5624         used as a fallback for both horizontal and vertical justification.
5625         (layout_query_geometry): use logical units to size appropriately.
5626         (layout_layout): ditto.
5627         (Fwidget_logical_to_character_width): new function. Allow users to
5628         convert from logical units to characters so that frame sizes can
5629         be set appropriately.
5630         (Fwidget_logical_to_character_height): ditto.
5631         (syms_of_glyphs_widget): declare.
5632         (image_instantiator_edit_fields): add edit_field_query_geometry.
5633         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5634         :horizontally-justify.
5635         (specifier_vars_of_glyphs_widget): new function. Declare
5636         Vwidget_border_width which is not yet used.
5637
5638         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5639         (x_widget_border_width): new function.
5640         (x_widget_instantiate): create a sensible name for widgets.
5641         (console_type_create_glyphs_x): declare x_widget_border_width.
5642
5643         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5644         (struct Lisp_Image_Instance): add :vertically-justify and
5645         :horizontally-justify.
5646         (LAYOUT_JUSTIFY_TOP): new.
5647         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5648         (ROUND_UP): new macro. Round argument up to next integral
5649         interval.
5650
5651         * redisplay-output.c (redisplay_output_layout): misc formatting.
5652
5653         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5654
5655 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5656
5657         * XEmacs 21.4.9 "Informed Management" is released.
5658
5659 2002-08-19  Andy Piper  <andy@xemacs.org>
5660
5661         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5662         win32 format.
5663
5664         * realpath.c (xrealpath): normalize drive spec also so that dir
5665         sep chars are not mixed on cygwin.
5666
5667 2002-08-06  Jerry James  <james@xemacs.org>
5668
5669         * window.c (Fsplit_window): Count only half of the divider width
5670         against the left window when splitting horizontally. 
5671
5672 2002-06-24  Andy Piper  <andy@xemacs.org>
5673
5674         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5675         toolbar was cleared.
5676
5677         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5678         function. Split out from mswindows_output_frame_toolbars.
5679         (mswindows_output_frame_toolbars): move clear pieces to
5680         mswindows_output_frame_toolbars.
5681
5682         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5683         out from gtk_output_frame_toolbars.
5684         (gtk_output_frame_toolbars): move clear pieces to
5685         gtk_clear_frame_toolbars.
5686
5687         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5688         the frame is cleared. How this ever worked before is a mystery.
5689         (x_output_frame_toolbars): Only output toolbars.
5690         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5691
5692         * gutter.c (update_gutter_geometry):
5693         Mark frame layout changed.
5694         (update_frame_gutter_geometry, update_frame_gutters):
5695         Respect frame_layout_changed.
5696
5697         * console.h (struct console_methods): add
5698         clear_frame_toolbars_method.
5699
5700         * redisplay.c (redisplay_frame): call
5701         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5702
5703         * toolbar.h: declare update_frame_toolbars_geometry.
5704
5705         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5706         out from update_frame_toolbars.  Call clear_frame_toolbars.
5707         (update_frame_toolbars): only output, do not change geometry.
5708
5709         * redisplay.c: add frame_layout_changed.
5710
5711         * redisplay.h: add frame_layout_changed.
5712         (CLASS_RESET_CHANGED_FLAGS): set it.
5713         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5714         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5715         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5716
5717         * device.h (struct device): add frame_layout_changed.
5718         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5719
5720         * frame.h (struct frame): add frame_layout_changed.
5721         (MARK_FRAME_LAYOUT_CHANGED): new.
5722
5723 2002-06-30  Mike Alexander  <mta@arbortext.com>
5724
5725         * event-msw.c (mswindows_need_event): Don't wait for a new message
5726         if the queue is not empty.  Suggested by Paul Moore.
5727
5728 2002-06-12  Andy Piper  <andy@xemacs.org>
5729
5730         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5731         for printing on accurately.
5732
5733 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5734
5735         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5736         WM_ACTIVATE message. Make sure that the frame is visible if the
5737         window is visible. This seemss to fix the problem where XEmacs
5738         appears to freeze after switching desktops with certain virtual
5739         window managers.
5740         (debug_output_mswin_message): Added code to output message
5741         parameters for WM_WINDOWPOSCHANGED, 
5742         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5743
5744 2002-05-25  Andy Piper  <andy@xemacs.org>
5745
5746         * select-x.c (vars_of_select_x): Fix docstring of
5747         x-selection-strict-motif-ownership
5748
5749 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5750
5751         * keymap.c (get_keymap):
5752         Add comment about do_autoload GCPROs own args.
5753
5754 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5755
5756         * bytecode.c (execute_optimized_program): check_opcode ifdef
5757         ERROR_CHECK_BYTE_CODE.
5758
5759 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5760
5761         Thanks to Ben Wing and Michael Sperber.
5762
5763         * eval.c (Fcommand_execute):
5764         (Feval):
5765         (Ffuncall):
5766         (Fmacroexpand_internal):
5767         (function_argcount):
5768         callint.c (Fcall_interactively):
5769         Add comment about do_autoload GCPROs own args.
5770
5771         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5772
5773         * eval.c (Ffuncall): Extra braces to placate GCC.
5774
5775 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5776
5777         * backtrace.h (grow_specpdl):
5778         (SPECPDL_RESERVE):
5779         * EmacsFrame.c (EmacsFrameSetValues):
5780         * eval.c (grow_specpdl):
5781         * ExternalShell.c (hack_event_masks_1):
5782         * glyphs-x.c (convert_EImage_to_XImage): 
5783         (x_finalize_image_instance):
5784         * ralloc.c (page_size):
5785         (r_alloc_sbrk):
5786         * xgccache.c (gc_cache_hash):
5787         Fix unsigned comparison warnings.
5788
5789 2002-07-29  Jerry James  <james@xemacs.org>
5790
5791         * lread.c (locate_file): Any nonnegative return value indicates
5792         success if MODE is nonnegative.
5793
5794 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5795
5796         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5797         argument. 
5798
5799 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5800
5801         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5802
5803         * dumper.c (pdump_get_indirect_count):
5804         (pdump_scan_by_alignment):
5805         (pdump_dump_root_struct_ptrs):
5806         (pdump_dump_rtables):
5807         (pdump_dump_root_objects):
5808         (pdump):
5809         * nas.c (WaveOpenDataForReading):
5810         * fns.c (print_bit_vector):
5811         * font-lock.c (SINGLE_SYNTAX_STYLE):
5812         * glyphs.c (check_for_ignored_expose):
5813         (find_matching_subwindow):
5814         * glyphs-eimage.c:
5815         * imgproc.c (get_histogram):
5816         * redisplay.c (point_in_line_start_cache):
5817         * redisplay-output.c (redisplay_unmap_subwindows):
5818         * symbols.c (defsymbol_massage_name_1):
5819         (defkeyword_massage_name):
5820         (deferror_massage_name_and_message):
5821         * redisplay-x.c (x_output_string): 
5822         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5823         * frame.h (struct frame):
5824         * filelock.c (current_lock_owner):
5825         * doprnt.c (emacs_doprnt_1):
5826         * lisp.h (struct Lisp_Bit_Vector):
5827         (DO_REALLOC):
5828         Fix warnings.
5829
5830 2002-02-13  Ben Wing  <ben@xemacs.org>
5831
5832         * event-stream.c (reset_key_echo):
5833         * event-stream.c (reset_this_command_keys):
5834         * event-stream.c (execute_command_event):
5835         If console is dead as a result of C-x 5 0, then post-command stuff
5836         needs to be careful and do only non-console-specific stuff.
5837
5838 2002-07-01  Mike Sperber <mike@xemacs.org>
5839
5840         * process-unix.c (unix_send_process): Mark coding_outstream as
5841         non-open upon SIGPIPE.
5842
5843         * event-stream.c (Fnext_event): Reorder switch cases to something
5844         that makes sense.
5845
5846 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5847
5848         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5849         Don't bogusly reinitialize ascii_character property.
5850
5851 2002-07-08  Mike Sperber <mike@xemacs.org>
5852
5853         * process.c (Fstart_process_internal): Do error checking before we
5854         fork off the child, so the child can't muck with the state of the
5855         parent.
5856
5857 2002-07-08  Mike Sperber <mike@xemacs.org>
5858
5859         * ralloc.c (init_ralloc): Allocate properly for pdump.
5860
5861 2002-06-12  Andy Piper  <andy@xemacs.org>
5862
5863         * glyphs.c (query_string_geometry): check the string.
5864
5865         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5866         widget names.
5867
5868 2002-06-17  Jerry James  <james@xemacs.org>
5869
5870         * sysdll.c: Remove RTLD_GLOBAL initialization.
5871         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5872
5873 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5874
5875         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5876
5877 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5878
5879         * sysdep.c (sys_rename): Make sys_rename work for the case where
5880         Windows rename sets errno to EACCES if target file exists.
5881
5882 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5883
5884         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5885         Fix detection of metric units to work on Win95
5886
5887 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5888
5889         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5890
5891 2002-04-25  Andy Piper  <andy@xemacs.org>
5892
5893         * redisplay.c (create_text_block): Remove extra comment trailer.
5894
5895 2002-04-24  Andy Piper  <andy@xemacs.org>
5896
5897         * redisplay.c (create_text_block): Don't actually add propagation
5898         data if the line ends after we have added a glyph.
5899
5900 2002-04-22  Andy Piper  <andy@xemacs.org>
5901
5902         * extents.c (extent_fragment_update): check for glyphs we have
5903         previously displayed.
5904         * extents.c (print_extent_1): warning removal.
5905         * extents.h: change prototype.
5906         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5907         widths correctly for wide glyphs.
5908         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5909         * redisplay.c (prop_type): add PROP_GLYPH.
5910         * redisplay.c (struct prop_block): add glyph type
5911         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5912         to the propagation data.
5913         * redisplay.c (create_text_block): if there is a glyph in the
5914         propagation data use it to salt extent_fragment_update.
5915         * redisplay.c (create_string_text_block): ditto.
5916
5917 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5918
5919         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5920         * redisplay-output.c (compare_runes): Compare them.
5921         * redisplay.c: Update copyright date.
5922         * redisplay.c (pos_data): Add need_baseline_computation field.
5923         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5924         need_baseline_computation; zero yoffset. Set max_pixmap_height
5925         for all pixmaps, not just automatically positioned ones.
5926         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5927         * redisplay.c (calculate_baseline): New, compute textual baseline.
5928         * redisplay.c (add_glyph_rune): Call them.
5929         * redisplay.c (create_text_block): Likewise.
5930         * redisplay.c (create_overlay_glyph_block): Likewise.
5931         * redisplay.c (add_margin_runes): Likewise.
5932         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5933
5934         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5935         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5936         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5937         * redisplay-msw.c (mswindows_output_string): Likewise.
5938         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5939         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5940         * redisplay-x.c (x_output_display_block): Likewise.
5941
5942 2002-03-28  Ben Wing  <ben@xemacs.org>
5943
5944         * redisplay.c: Fixed bug in redisplay
5945         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5946         and down of the lines, since they're bigger than the line
5947         size. (It was seen most obviously when there's a horizontal scroll
5948         bar, e.g. do C-h a glyph or something like that.) The problem was
5949         that the glyph-contrib-p setting on glyphs was ignored even if it
5950         was set properly, which it wasn't until now.
5951
5952 2002-04-24  Andy Piper  <andy@xemacs.org>
5953
5954         * lisp.h (Dynarr_end): Fix definition.
5955
5956 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5957
5958         * redisplay.c (mark_redisplay): Remove call to
5959         update_frame_window_mirror.
5960
5961 2001-11-15  Andy Piper  <andy@xemacs.org>
5962
5963         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5964         cygwin (again).
5965
5966 2002-02-13  Andy Piper  <andy@xemacs.org>
5967
5968         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5969         we did in fact enqueue the XM_MAPFRAME event.
5970
5971 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5972
5973         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5974         to fix problem switching between virtual desktops under virtuawin
5975         virtual window manager.
5976
5977 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5978
5979         * event-msw.c: Typo fix.
5980         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5981         magic XM_MAPFRAME event has been sent.
5982
5983 2001-11-23  Andy Piper  <andy@xemacs.org>
5984
5985         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5986
5987 2001-11-21  Andy Piper  <andy@xemacs.org>
5988
5989         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5990         mouse events outside the frame.
5991
5992 2002-03-20  Andy Piper  <andy@xemacs.org>
5993
5994         * menubar-msw.c (mswindows_popup_menu): warning removal.
5995         * dialog-msw.c (dialog_popped_down): ditto.
5996
5997 2001-12-11  Andy Piper  <andy@xemacs.org>
5998
5999         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6000         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6001         popup_up_p.
6002         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6003         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6004         * menubar-msw.c (mswindows_popup_menu): ditto.
6005
6006 2001-10-29  Andy Piper  <andy@xemacs.org>
6007
6008         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6009         cancels.
6010
6011 2002-01-03  Andy Piper  <andy@xemacs.org>
6012
6013         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6014         letters.
6015         (xrealpath): ditto.
6016
6017 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6018
6019         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6020         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6021         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6022         Detect and handle case where machine is set up for metric units
6023
6024 2002-04-02  Andy Piper  <andy@xemacs.org>
6025
6026         * dired-msw.c (mswindows_get_files): 
6027         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6028         completely handled by XEmacs. Suggested by Thomas Vogler
6029         <mail@thomas-vogler.de>.
6030
6031 2001-11-14  Andy Piper  <andy@xemacs.org>
6032
6033         * nt.c (REG_ROOT): change registry key to XEmacs.
6034
6035 2002-04-27  Andy Piper  <andy@xemacs.org>
6036
6037         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6038
6039 2002-04-26  Andy Piper  <andy@xemacs.org>
6040
6041         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6042         behavior.
6043
6044 2002-03-14  Mike Alexander  <mta@arbortext.com>
6045
6046         * event-msw.c (mswindows_unwait_process): New, remove process from
6047         wait list
6048         * process-nt.c (nt_finalize_process_data): Call
6049         mswindows_unwait_process
6050         * console-msw.h: Declare mswindows_unwait_process
6051
6052 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6053
6054         * editfns.c (Fdecode_time):
6055         (Fformat_time_string):
6056         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6057         (make_time): Warning elimination (change arg name).
6058
6059 2001-11-24  Andy Piper  <andy@xemacs.org>
6060
6061         * window.c (Fsplit_window): Doc return type.
6062
6063 2002-04-01  Andy Piper  <andy@xemacs.org>
6064
6065         * emacs.c (Fkill_emacs): Only output message box in interactive
6066         mode.
6067
6068 2002-04-26  Andy Piper  <andy@xemacs.org>
6069  
6070         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6071         cygwin.
6072
6073 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6074
6075         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6076         bit platform.
6077
6078 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6079
6080         * XEmacs 21.4.8 "Honest Recruiter" is released.
6081
6082 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6083
6084         Supersedes 2002-04-17 patch.
6085
6086         * process.h (PROCESS_LIVE_P): Use the process status as
6087         evidence of health, not the state of the input stream.
6088         (PROCESS_READABLE_P): Say if the process is readable
6089         from. (It may be dead nonetheless.)
6090         (CHECK_READABLE_PROCESS): Test for that condition.
6091
6092         * process.c (create_process): Use PROCESS_READABLE_P.
6093         (read_process_output, set_process_filter): Likewise.
6094
6095         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6096         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6097
6098         This code is #if 0'd, this is not the time to add new functions:
6099
6100         * process.c (Fprocess_readable_p): Report readability status.
6101         * process.c (Qprocess_readable_p): New, associated symbol...
6102         * process.c (syms_of_process): ... initialize it.
6103
6104 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6105
6106         * XEmacs 21.4.7 "Economic Science" is released.
6107
6108 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6109
6110         * process.h (PROCESS_LIVE_P): Use the process status as
6111         evidence of health, not the state of the input stream.
6112
6113 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6114
6115         * sysdep.c (sys_siglist): change "signum" to "signal"
6116
6117 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6118
6119         * s/darwin.h: New file.
6120         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6121         
6122 2002-04-23  Andreas Jaeger  <aj@suse.de>
6123
6124         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6125         which use lib64 for 64-bit libs.
6126         (START_FILES): Likewise.
6127
6128 2002-02-11  Mike Sperber  <mike@xemacs.org>
6129
6130         * device-x.c: 
6131         (x_IO_error_handler):
6132         (x_init_device): Temporarily keep device in static variable
6133         `device_being_initialized' so we can recover gracefully from
6134         internal XOpenDevice failure.  (XOpenDevice is documented to
6135         return NULL on failure, but sometimes calls the IO error handler
6136         instead.)
6137
6138 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6139
6140         * dired.c (Ffile_name_all_completions): Change documentation --
6141         remove reference to completion-ignored-extensions.
6142         * dired.c (vars_of_dired): Change documentation for
6143         completion-ignored-extensions -- remove reference to
6144         file-name-all-completions.
6145
6146 2002-03-06  Jerry James  <james@xemacs.org>
6147
6148         * emodules.c (emodules_load): Fix multiple loading of same module.
6149
6150 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6151         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6152         RTLD_LAZY to avoid incorrect symbol binding when using nested
6153         shared libraries on Solaris.
6154
6155 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6156
6157         * fileio.c (Ffind_file_name_handler): Improve docstring.
6158
6159 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6160
6161         * fns.c (Fmapconcat): Improve docstring.
6162
6163 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6164
6165         * device-gtk.c: Add prototype for
6166         emacs_gtk_selection_clear_event_handle.
6167         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6168         selection.  Setup signal handler for "selection_clear_event"
6169         (emacs_gtk_selection_clear_event_handle).
6170
6171         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6172         other applications owning the clipboard (based on
6173         x_handle_selection_clear).
6174
6175 2001-12-23  William M. Perry  <wmperry@gnu.org>
6176
6177         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6178         
6179 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6180
6181         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6182
6183 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6184
6185         * XEmacs 21.4.6 "Common Lisp" is released.
6186
6187 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6188
6189         * search.c (Freplace_match): Add missing sub-expression functionality.
6190
6191         * buffer.c (decode_buffer): Add a check for pointer type to
6192         decode_buffer, before gcc's CSE optimization reorders a
6193         dereference in front of the allow_string test.
6194
6195 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6196
6197         * window.c (window_loop): Fix bug that sometimes prevented
6198         window_loop() from iterating across multiple devices.  Also, at
6199         Ben's request, changed infloop-detecting code to abort() instead
6200         of silently terminating window_loop().
6201
6202 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6203
6204         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6205         * editfns.c (make_time): New function.
6206         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6207         * lisp.h (make_time): Prototype and comment it.
6208         * dired.c (wasteful_word_to_lisp): Deprecate.
6209         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6210
6211 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6212
6213         * fileio.c (auto_save_1): Use current coding system, not
6214         escape-quoted.
6215
6216 2001-11-13  Ben Wing  <ben@xemacs.org>
6217
6218         * window.c:
6219         * window.c (window_truncation_on):
6220         * window.c (syms_of_window):
6221         truncate-partial-width-windows should respect the buffer being
6222         displayed, like other redisplay vars.
6223
6224 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6225
6226         * event-stream.c (Fread_key_sequence): save current buffer.
6227
6228 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6229
6230         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6231
6232 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6233
6234         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6235
6236 2001-10-26  Mike Alexander  <mta@arbortext.com>
6237
6238         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6239
6240 2001-10-25  Andy Piper  <andy@xemacs.org>
6241
6242         * ChangeLog:
6243         * dialog-msw.c (handle_directory_proc): new function.
6244          (handle_directory_dialog_box): new fucntion.
6245          (handle_file_dialog_box): use new directory dialog support.
6246          (mswindows_make_dialog_box_internal): ditto.
6247         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6248         handling.
6249         (mswindows_find_frame): make global.
6250         * fileio.c (Fexpand_file_name): build fix.
6251         * general-slots.h: add Qdirectory.
6252         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6253         handling.
6254         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6255         cygwin not leaving win32 paths unchanged.
6256         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6257         cygwin runtime to do path conversion.
6258         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6259         (syms_of_win32): add new function.
6260         * window.c (window_loop): build fix.
6261
6262 2001-10-15  Andy Piper  <andy@xemacs.org>
6263
6264         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6265
6266 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6267
6268         * XEmacs 21.4.5 "Civil Service" is released.
6269
6270 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6271
6272         * glyphs-x.c: Force buffer-tab highlight update when moving the
6273         buffer, avoiding an ugly black border, used for keyboard focus
6274         indication, on a widget that can never have keyboard focus, the
6275         buffer tab.
6276
6277 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6278
6279         * process-unix.c (unix_open_multicast_group): Remove too much
6280         conversion between host and network byte order.
6281
6282 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6283
6284         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6285         before replacing them.
6286
6287         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6288         operation.
6289
6290         * src/window.c (undedicate_windows): Use it.
6291         * src/window.h: Add prototype.
6292
6293 2001-09-17  Ben Wing  <ben@xemacs.org>
6294
6295         * fileio.c (normalize_filename):
6296         * fileio.c (Fexpand_file_name):
6297         Fix various C++ compile errors in Andy's recent code.
6298         
6299         * callint.c (Fcall_interactively):
6300         * editfns.c (Ftemp_directory):
6301         * editfns.c (Fuser_full_name):
6302         * emacs.c (argmatch):
6303         * lread.c (locate_file_map_suffixes):
6304         * redisplay-x.c (x_ring_bell):
6305         Fix sign-compare warnings.
6306         
6307 2001-09-08  Andy Piper  <andy@xemacs.org>
6308
6309         * fileio.c (normalize_filename): copied from nt.c
6310         * (Ffile_name_directory): enable win32 paths under cygwin.
6311         * (Ffile_name_nondirectory): ditto.
6312         * (directory_file_name): ditto.
6313         * (Fexpand_file_name): ditto.
6314         * (Ffile_truename): ditto.
6315         * (Fsubstitute_in_file_name): ditto.
6316         * (Ffile_name_absolute_p): ditto.
6317         * (Ffile_readable_p): ditto.
6318
6319 2001-09-08  Andy Piper  <andy@xemacs.org>
6320
6321         * device-msw.c (mswindows_finish_init_device): remove dde
6322         initialization.
6323         * device-msw.c (mswindows_init_dde): factor out from
6324         mswindows_finish_init_device()
6325         * device-msw.c (init_mswindows_very_early): new function
6326         initialize but don't enable dde.
6327         * emacs.c (main_1): call init_mswindows_very_early.
6328         * event-msw.c:
6329         * event-msw.c (mswindows_dde_callback): only execute when we are
6330         ready.
6331         * symsinit.h: declare init_mswindows_very_early.
6332
6333 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6334
6335         [sjt: This has been in 21.5 for months with no complaints.]
6336
6337         * console.h (struct console_methods): Added flags member.
6338         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6339         (CONMETH_IMPL_FLAG):
6340         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6341         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6342
6343         * device.c (window_system_pixelated_geometry): Use the above macros.
6344
6345         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6346         implememntation flag.
6347         * device.h (DEVICE_DISPLAY_P): Use it.
6348
6349         * frame.c (delete_frame_internal): Use the above macro.
6350
6351         * redisplay.c (redisplay_device): Use it.
6352         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6353         (redisplay_frame): Ditto.
6354
6355         * device-msw.c (mswindows_device_implementation_flags): Removed.
6356         (msprinter_device_implementation_flags): Removed.
6357         (console_type_create_device_mswindows): Removed references to
6358         implementation_flags methods, set implementation flags here.
6359         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6360
6361         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6362         (console_type_create_device_gtk): Removed method declaration.
6363         Added commented out statement which semantically matches the
6364         commented out statement in the above removed method.
6365
6366 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6367
6368         The attached patch fixes a few warnings. 
6369
6370         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6371         * src/frame-gtk.c: guard against GNOME calls in GTK only
6372         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6373         * src/select-gtk.c: prototype lisp_to_time
6374
6375 2001-06-08  Ben Wing  <ben@xemacs.org>
6376
6377         ------ gc-in-window-procedure fixes ------
6378         
6379         * alloc.c:
6380         * alloc.c (struct post_gc_action):
6381         * alloc.c (register_post_gc_action):
6382         * alloc.c (run_post_gc_actions):
6383         * alloc.c (garbage_collect_1):
6384         Create "post-gc actions", to avoid those dreaded "GC during window
6385         procedure" problems.
6386
6387         * event-msw.c:
6388         Abort, clean and simple, when GC in window procedure.  We want
6389         to flush these puppies out.
6390
6391         * glyphs-msw.c:
6392         * glyphs-msw.c (finalize_destroy_window):
6393         * glyphs-msw.c (mswindows_finalize_image_instance):
6394         Use a post-gc action when destroying subwindows.
6395
6396         * lisp.h:
6397         Declare register_post_gc_action().
6398
6399         * scrollbar-msw.c:
6400         * scrollbar-msw.c (unshow_that_mofo):
6401         Use a post-gc action when unshowing scrollbar windows, if in gc.
6402
6403         * redisplay.c (mark_redisplay):
6404         Add comment about the utter evilness of what's going down here.
6405
6406         ------ cygwin setitimer fixes ------
6407         
6408         * Makefile.in.in (sheap_objs):
6409         * Makefile.in.in (profile_objs):
6410         * Makefile.in.in (objs):
6411         Compile profile.c only when HAVE_SETITIMER.
6412         
6413         * nt.c (mswindows_sigset):
6414         * nt.c (mswindows_sighold):
6415         * nt.c (mswindows_sigrelse):
6416         * nt.c (mswindows_sigpause):
6417         * nt.c (mswindows_raise):
6418         * nt.c (close_file_data):
6419         Style fixes.
6420         
6421         * nt.c:
6422         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6423         
6424         * profile.c:
6425         * profile.c (Fstart_profiling):
6426         * profile.c (Fstop_profiling):
6427         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6428         instead of just plain setitimer().
6429         
6430         * signal.c:
6431         * signal.c (set_one_shot_timer):
6432         * signal.c (alarm):
6433         Define qxe_setitimer() as an encapsulation around setitimer() --
6434         call setitimer() directly unless Cygwin or MS Win, in which case
6435         we use our simulated version in win32.c.
6436         
6437         * systime.h:
6438         * systime.h (struct itimerval):
6439         * systime.h (ITIMER_REAL):
6440         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6441         comment about "qxe" and the policy regarding encapsulation.
6442
6443         * win32.c:
6444         * win32.c (setitimer_helper_proc):
6445         * win32.c (setitimer_helper_period):
6446         * win32.c (setitimer_helper):
6447         * win32.c (mswindows_setitimer):
6448         Move setitimer() emulation here, so Cygwin can use it.
6449         Rename a couple of functions and variables to be longer and more
6450         descriptive.  In setitimer_helper_proc(), send the signal
6451         using either mswindows_raise() or (on Cygwin) kill().  If for
6452         some reason we are still getting lockups, we'll change the kill()
6453         to directly invoke the signal handlers.
6454
6455         ------ windows shell fixes ------
6456         
6457         * callproc.c:
6458         * ntproc.c:
6459         Comments about how these two files must die.
6460
6461         * callproc.c (init_callproc):
6462         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6463         not just COMSPEC. (more correct and closer to FSF.) Don't
6464         force a value for SHELL into the environment. (Comments added
6465         to explain why not.)
6466         
6467         * nt.c (init_user_info):
6468         Don't shove a fabricated SHELL into the environment.  See above.
6469
6470 2001-06-01  Ben Wing  <ben@xemacs.org>
6471
6472         * Makefile.in.in (ldflags):
6473         eliminate that pesky "defaulting to 00401000" warning.
6474         * nt.h:
6475         eliminate warnings.
6476
6477 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6478
6479         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6480         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6481
6482 2001-04-24  Jerry James <james@xemacs.org>
6483
6484         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6485         correct order.
6486
6487 2001-06-01  Ben Wing  <ben@xemacs.org>
6488
6489         * event-msw.c (debug_mswin_messages):
6490         conditionalize the messages that were causing compile errors.
6491         (if only macros could generate #ifdef statements ...)
6492
6493 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6494
6495         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6496
6497 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6498
6499         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6500
6501 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6502
6503         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6504         * process-unix.c (unix_canonicalize_host_name):
6505         sysdep.c (init_system_name):
6506         Use it to conditionally support IPv6 canonicalization.
6507
6508 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6509
6510         * event-msw.c:
6511         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6512
6513 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6514
6515         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6516         attempt is made to scroll when no scroll bar is available.
6517
6518 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6519
6520         * input-method-motif.c (XIM_delete_frame): New callback.
6521         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6522         got deleted from 21.4.3.)
6523
6524 2001-06-01  Ben Wing  <ben@xemacs.org>
6525
6526         * nt.c (mswindows_utime):
6527         * nt.c (close_file_data):
6528         fix off-by-one-indirection error.
6529
6530 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6531
6532         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6533         because set_file_times() now takes Lisp_Object path, instead of
6534         char*.
6535         * nt.c: Include buffer.h.
6536         * nt.c (convert_from_time_t): New.
6537         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6538         not set mtime correctly.
6539         * nt.h: Declare mswindows_utime().
6540         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6541         path, instead of char*.
6542         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6543
6544 2001-05-30  Ben Wing  <ben@xemacs.org>
6545
6546         For 21.4:
6547
6548         (Stephen, just take all event-msw.c patches.  This includes
6549         the "iconify" fix below.)
6550
6551         * event-msw.c:
6552         * event-msw.c (mswindows_dequeue_dispatch_event):
6553         * event-msw.c (assert):
6554         * event-msw.c (emacs_mswindows_quit_p):
6555         * event-msw.c (debug_mswin_messages):
6556         * event-msw.c (debug_output_mswin_message):
6557         * event-msw.c (vars_of_event_mswindows):
6558         Fix yet more problems with C-g handling.
6559         Implement debug-mswindows-events.
6560         
6561 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6562
6563         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6564         
6565 2001-05-23  Ben Wing  <ben@xemacs.org>
6566
6567         * event-msw.c (winsock_writer):
6568         * event-msw.c (winsock_closer):
6569         prior kludgy code was clobbering the buffer, thinking it was
6570         "unused" space to store an unneeded return value; instead, use
6571         the variable we've already got staring us in the face.
6572
6573 2001-05-17  Andy Piper  <andy@xemacs.org>
6574
6575         * sysfile.h: don't assume that file attributes are boolean
6576
6577 2001-05-23  Ben Wing  <ben@xemacs.org>
6578
6579         * device-msw.c (msprinter_init_device):
6580         signal an error rather than crash with an unavailable network
6581         printer (from Mike Alexander).
6582         
6583         * event-msw.c:
6584         * event-msw.c (struct winsock_stream):
6585         * event-msw.c (winsock_writer):
6586         * event-msw.c (winsock_closer):
6587         * event-msw.c (make_winsock_stream_1):
6588         cleanup headers.  fix (hopefully) an error with data corruption
6589         when sending to a network connection.
6590
6591         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6592         to handle the ~user prefix by (a) always assuming we're referencing
6593         ourselves and not even verifying the user -- hence any file with
6594         a tilde as its first char is invalid! (b) if there wasn't a slash
6595         following the filename, the pointer was set *past* the end of
6596         file and we started reading from uninitialized memory.  Now we
6597         simply treat these as files, always.
6598
6599         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6600         
6601 2001-05-19  Ben Wing  <ben@xemacs.org>
6602
6603         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6604
6605         * process-nt.c:
6606         * process-nt.c (vars_of_process_nt):
6607         remove unused mswindows-quote-process-args.  rec for 21.4.
6608         
6609 2001-05-12  Ben Wing  <ben@xemacs.org>
6610
6611         * event-msw.c (mswindows_dde_callback):
6612         * event-msw.c (mswindows_wnd_proc):
6613         eliminate cygwin warnings.
6614
6615 2001-05-06  Ben Wing  <ben@xemacs.org>
6616
6617         * console-msw.h:
6618         * device-msw.c:
6619         * device-msw.c (print_dialog_worker):
6620         * device-msw.c (mswindows_handle_print_dialog_box):
6621         * device-msw.c (syms_of_device_mswindows):
6622         * dialog-msw.c (mswindows_make_dialog_box_internal):
6623         * general-slots.h:
6624         implement printing the selection when it's selected.
6625
6626 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6627
6628         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6629
6630 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6631
6632         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6633         EMACS_INT is signed.
6634
6635 2001-04-15  Michael Lausch  <mla@1012surf.net>
6636
6637         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6638         gtk_widget_request_size() to give scrollbar >0 width for
6639         GTK >1.2.8.
6640
6641 2001-05-30  William M. Perry  <wmperry@gnu.org>
6642
6643         * event-gtk.c: Check for buttons as modifier keys.
6644
6645 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6646
6647         * s\mingw32.h:
6648         Properly find MinGW's <process.h> inside Cygwin's restructured
6649         include directories.  Don't try to include <cygwin/version.h>
6650         since we are dropping support for MinGW in versions of Cygwin
6651         earlier than b21.
6652         * nt.c:
6653         Drop support for MinGW in versions of Cygwin before b21.
6654         * sysdep.c:
6655         Properly find MinGW's <process.h> inside Cygwin's restructured
6656         include directories.
6657         * syswindows.h:
6658         Drop support for MinGW in versions of Cygwin before b21.
6659         * unexcw.c:
6660         Even though a.out.h is no longer detected by configure, allow
6661         MinGW to use it until we figure out how to do the job with Win32.
6662
6663 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6664
6665         * syntax.c (find_start_of_comment):
6666         Fix `unbalanced parentheses' bug when dealing with mixed comment
6667         styles in c++/java/etc. mode
6668
6669 2001-05-29  Mike Alexander  <mta@arbortext.com>
6670
6671         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6672         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6673
6674 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6675
6676         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6677
6678 2001-03-31  Mike Sperber <mike@xemacs.org>
6679
6680         * search.c (Freplace_match): Support FSF-style specification of
6681         match subexpression when applied to a buffer.
6682
6683 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6684
6685         * event-stream.c (is_scrollbar_event): add missing semicolon
6686
6687 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6688
6689         * Makefile.in.in: Use TAR macro instead of hardcoding
6690           tar.  Allows use of GNU tar instead of system tar
6691
6692 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6693
6694         * event-stream.c (is_scrollbar_event): add missing semicolon
6695
6696 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6697
6698         * XEmacs 21.4.3 "Academic Rigor" is released.
6699
6700 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6701
6702         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6703
6704 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6705
6706         * buffer.c (Vcase_fold_search): Remove obsolete
6707           comment about non ASCII case-fold-search.  This
6708           bug has been fixed by case-table changes.
6709
6710 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6711
6712         * event-msw.c: Restore include of events-mod.h.
6713
6714 2001-04-22   zhaoway  <zw@debian.org>
6715
6716         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6717         !HAVE_SCROLLBARS.
6718
6719 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6720
6721         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6722
6723 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6724
6725         * mule-charset.c (Fmake_charset): Add missing else.
6726
6727 2001-04-23  Ben Wing  <ben@xemacs.org>
6728
6729         * event-msw.c (FAKE_MOD_QUIT):
6730         * event-msw.c (mswindows_dequeue_dispatch_event):
6731         * event-msw.c (mswindows_wnd_proc):
6732         * event-msw.c (emacs_mswindows_quit_p):
6733         Get critical quit working.
6734
6735 2001-05-05  Ben Wing  <ben@xemacs.org>
6736
6737         * console-msw.h:
6738         * device-msw.c:
6739         * device-msw.c (mswindows_get_default_margin):
6740         * frame-msw.c (mswindows_size_frame_internal):
6741         * frame-msw.c (msprinter_init_frame_1):
6742         * frame-msw.c (vars_of_frame_mswindows):
6743         Change top/bottom margin defaults to 0.5 inches.
6744
6745 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6746
6747         Fix link error with gcc 3.0 on Linux.
6748         * terminfo.c (UP): Remove.
6749         * terminfo.c (BC): Remove.
6750         * terminfo.c (PC): Remove.
6751         They weren't used, and in any case, these symbols should be
6752         defined in the *library*.
6753
6754 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6755
6756         * s/aix4.h: Fix crash with xlc -O3.
6757         Improve comment explaining how -O3 works.
6758
6759 2001-04-15  Ben Wing  <ben@xemacs.org>
6760
6761         * event-stream.c:
6762         * event-stream.c (Fnext_event):
6763         * event-stream.c (is_scrollbar_event):
6764         * event-stream.c (execute_command_event):
6765         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6766         crash' problem.  His fix introduces other problems.  We filter
6767         out scrollbar events specifically, making them somewhat invisible
6768         to command-building, and not appearing in `this-command-keys'.
6769         More work is still needed (see comments in event-stream.c), but
6770         this fixes all the major problems.
6771
6772 2001-04-20  Ben Wing  <ben@xemacs.org>
6773
6774         * .cvsignore: Added stuff for Windows.
6775
6776 2001-04-28  Ben Wing  <ben@xemacs.org>
6777
6778         * buffer.c (Ferase_buffer):
6779         * editfns.c (buffer_insert1):
6780         * editfns.c (Finsert_before_markers):
6781         * editfns.c (Finsert_string):
6782         * editfns.c (Finsert_char):
6783         * editfns.c (Fdelete_region):
6784         * editfns.c (Fwiden):
6785         * editfns.c (Fnarrow_to_region):
6786         remove bogus lines setting zmacs_region_stays to 0.
6787         
6788 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6789
6790         * process-unix.c (unix_open_network_stream): If connect() fails
6791         invalidate file descriptor after closing it.
6792
6793 2001-03-08  Mike Alexander  <mta@arbortext.com>
6794
6795         * event-msw.c (mswindows_need_event_in_modal_loop):
6796         Don't dispatch a message if we didn't get one.
6797         (mswindows_need_event):
6798         Terminate the correct process when one exits instead of the first
6799         one on Vprocess_list and look for process termination when in
6800         mswindows_protect_modal_loop.
6801
6802 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6803
6804         * XEmacs 21.4.1 "Copyleft" is released.
6805
6806 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6807
6808         * input-method-motif.c (XIM_delete_frame): New callback.
6809         (XIM_init_frame): Register it.
6810
6811 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6812
6813         * XEmacs 21.4.0 "Solid Vapor" is released.
6814
6815 2001-04-15  Ben Wing  <ben@xemacs.org>
6816
6817         * cmdloop.c (call_command_loop):
6818         Fix braino in bit-rotting code.
6819         
6820 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6821
6822         * extents.c (Fset_extent_endpoints): Force creation of extent info
6823         in buffer_or_string.
6824
6825         * extents.c (process_extents_for_insertion_mapper): Correctly
6826         check for open-open zero-length extents.
6827
6828 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6829
6830         * lisp.h: New typedefs Memory_count, Element_count.
6831         * regex.c:
6832         * regex.h:
6833         Sign-compare warning elimination: several unsigned -> signed.
6834         Based on work by Ben Wing <ben@xemacs.org>.
6835
6836 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6837
6838         * XEmacs 21.2.47 "Zephir" is released.
6839
6840 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6841
6842         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6843
6844 2001-04-03  Mike Sperber <mike@xemacs.org>
6845
6846         * search.c: Revert previous patch due because of release.
6847
6848 2001-03-30  Ben Wing  <ben@xemacs.org>
6849
6850         * s\cygwin32.h:
6851         Add missing killpg prototype.
6852
6853         * elhash.c:
6854         Add a comment about fixing problems when a new entry is added
6855         while mapping.
6856
6857         * frame-msw.c (mswindows_init_frame_1):
6858         Fix compile warnings.
6859
6860         * menubar.c (vars_of_menubar):
6861         Provide `menu-accelerator-support' to indicate that we properly
6862         support %_ in menu specifications, so that package code can
6863         conditionalize on this (and remove %_ from menu specifications
6864         on older versions).
6865
6866         * event-msw.c:
6867         * scrollbar-msw.c:
6868         * scrollbar-msw.c (can_scroll):
6869         * scrollbar-msw.h:
6870         Fix handling of mouse wheel under Windows to follow standards --
6871         now scrolls window under pointer, not selected window.
6872
6873 2001-03-31  Mike Sperber <mike@xemacs.org>
6874
6875         * search.c (Freplace_match): Support FSF-style specification of
6876         match subexpression when applied to a buffer.
6877
6878 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6879
6880         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6881         function to modify KEYMAP, so map over a copy of the hash table.
6882
6883 2001-03-21  Martin Buchholz <martin@xemacs.org>
6884
6885         * XEmacs 21.2.46 "Urania" is released.
6886
6887 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6888
6889         * realpath.c (xrealpath): Make file-truename work with symlinks to
6890         /cygdrive paths on cygwin. Always lowercase drive-letters on
6891         native windows.
6892         (cygwin_readlink): Don't try to find canonical filename unless
6893         file exists.
6894
6895 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6896
6897         * ChangeLog: Log GTK merge.
6898
6899         * dumper.c:
6900         * select-x.c:
6901         * specifier.c:
6902         * symeval.h:
6903         Revert gratuitous whitespace changes from GTK merge.
6904
6905         * emacs.c: Document end of complex #ifdef @ l. 1495.
6906
6907
6908 2001-03-12  Andy Piper  <andy@xemacs.org>
6909
6910         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6911         have to do likewise.
6912
6913 2001-03-12  Andy Piper  <andy@xemacs.org>
6914
6915         * sysdep.c: we only support mingw now.
6916
6917 2001-03-09  Andy Piper  <andy@xemacs.org>
6918
6919         * unexcw.c (copy_executable_and_dump_data_section): making approx
6920         overrun a warning only.
6921
6922 2001-03-10  William M. Perry  <wmperry@aventail.com>
6923
6924         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6925         satisfy Stephen's identical-after-cpp plea.
6926
6927 2001-03-02  Ben Wing  <ben@xemacs.org>
6928
6929         * cmds.c:
6930         * cmds.c (Fforward_char):
6931         * syntax.c:
6932         * window.c:
6933
6934         Augment documentation of the most common motion commands to make
6935         note of the shifted-motion support.
6936         
6937 2001-03-02  Ben Wing  <ben@xemacs.org>
6938
6939         * nt.c (mswindows_fstat):
6940         * nt.c (mswindows_stat):
6941         * search.c (boyer_moore):
6942         Fix compile warnings under Windows.
6943         
6944         * sysdep.c (sys_readdir):
6945         Fix buggy filename-conversion code under Mule.
6946
6947 2001-03-09  William M. Perry  <wmperry@aventail.com>
6948
6949         * Makefile.in.in:
6950         * config.h.in:
6951         * console.c:
6952         * console.h:
6953         * device.c:
6954         * device.h:
6955         * dragdrop.c:
6956         * emacs.c:
6957         * event-stream.c:
6958         * events.c:
6959         * events.h:
6960         * faces.c:
6961         * frame.h:
6962         * general-slots.h:
6963         * glyphs.c:
6964         * gutter.c:
6965         * inline.c:
6966         * lisp.h:
6967         * lrecord.h:
6968         * make-src-depend:
6969         * redisplay-output.c:
6970         * redisplay.c:
6971         * symsinit.h:
6972         * sysfile.h:
6973         * toolbar.c:
6974         * window.c:
6975         The Great GTK Merge.
6976
6977         * ChangeLog.GTK:
6978         * console-gtk.c:
6979         * console-gtk.h:
6980         * device-gtk.c:
6981         * emacs-marshals.c:
6982         * emacs-widget-accessors.c:
6983         * event-gtk.c:
6984         * frame-gtk.c:
6985         * gccache-gtk.c:
6986         * gccache-gtk.h:
6987         * glade.c:
6988         * glyphs-gtk.c:
6989         * glyphs-gtk.h:
6990         * gtk-glue.c:
6991         * gtk-xemacs.c:
6992         * gtk-xemacs.h:
6993         * gui-gtk.c:
6994         * gui-gtk.h:
6995         * menubar-gtk.c:
6996         * native-gtk-toolbar.c:
6997         * objects-gtk.c:
6998         * objects-gtk.h:
6999         * redisplay-gtk.c:
7000         * scrollbar-gtk.c:
7001         * scrollbar-gtk.h:
7002         * select-gtk.c:
7003         * toolbar-gtk.c:
7004         * ui-byhand.c:
7005         * ui-gtk.c:
7006         * ui-gtk.h:
7007         The Great GTK Merge: new files.
7008
7009 2001-02-26  Ben Wing  <ben@xemacs.org>
7010
7011         Reapplied Lstream change.
7012
7013 2001-02-26  Ben Wing  <ben@xemacs.org>
7014
7015         Undid the last change, since it is more controversial than I
7016         thought.  It should be back in at some point soon.
7017         
7018 2001-02-25  Ben Wing  <ben@xemacs.org>
7019
7020         * buffer.c:
7021         * callproc.c (Fold_call_process_internal):
7022         * event-msw.c (ntpipe_slurp_reader):
7023         * event-msw.c (ntpipe_shove_writer):
7024         * event-msw.c (winsock_reader):
7025         * event-msw.c (winsock_writer):
7026         * file-coding.c:
7027         * file-coding.c (detect_eol_type):
7028         * file-coding.c (detect_coding_type):
7029         * file-coding.c (determine_real_coding_system):
7030         * file-coding.c (Fdetect_coding_region):
7031         * file-coding.c (decoding_reader):
7032         * file-coding.c (decoding_writer):
7033         * file-coding.c (mule_decode):
7034         * file-coding.c (Fdecode_coding_region):
7035         * file-coding.c (encoding_reader):
7036         * file-coding.c (encoding_writer):
7037         * file-coding.c (mule_encode):
7038         * file-coding.c (Fencode_coding_region):
7039         * file-coding.c (detect_coding_sjis):
7040         * file-coding.c (decode_coding_sjis):
7041         * file-coding.c (encode_coding_sjis):
7042         * file-coding.c (detect_coding_big5):
7043         * file-coding.c (decode_coding_big5):
7044         * file-coding.c (encode_coding_big5):
7045         * file-coding.c (detect_coding_ucs4):
7046         * file-coding.c (decode_coding_ucs4):
7047         * file-coding.c (encode_coding_ucs4):
7048         * file-coding.c (detect_coding_utf8):
7049         * file-coding.c (decode_coding_utf8):
7050         * file-coding.c (encode_coding_utf8):
7051         * file-coding.c (detect_coding_iso2022):
7052         * file-coding.c (decode_coding_iso2022):
7053         * file-coding.c (encode_coding_iso2022):
7054         * file-coding.c (decode_coding_no_conversion):
7055         * file-coding.c (encode_coding_no_conversion):
7056         * glyphs-x.c (write_lisp_string_to_temp_file):
7057         * gpmevent.c (tty_get_foreign_selection):
7058         * lisp.h:
7059         * lstream.c:
7060         * lstream.c (Lstream_flush_out):
7061         * lstream.c (Lstream_adding):
7062         * lstream.c (Lstream_write_1):
7063         * lstream.c (Lstream_write):
7064         * lstream.c (Lstream_raw_read):
7065         * lstream.c (Lstream_read_more):
7066         * lstream.c (Lstream_read):
7067         * lstream.c (Lstream_unread):
7068         * lstream.c (Lstream_fputc):
7069         * lstream.c (stdio_reader):
7070         * lstream.c (stdio_writer):
7071         * lstream.c (filedesc_reader):
7072         * lstream.c (filedesc_writer):
7073         * lstream.c (lisp_string_reader):
7074         * lstream.c (struct fixed_buffer_stream):
7075         * lstream.c (make_fixed_buffer_input_stream):
7076         * lstream.c (make_fixed_buffer_output_stream):
7077         * lstream.c (fixed_buffer_reader):
7078         * lstream.c (fixed_buffer_writer):
7079         * lstream.c (struct resizing_buffer_stream):
7080         * lstream.c (resizing_buffer_writer):
7081         * lstream.c (dynarr_writer):
7082         * lstream.c (lisp_buffer_reader):
7083         * lstream.c (lisp_buffer_writer):
7084         * lstream.h:
7085         * lstream.h (lstream_implementation):
7086         * lstream.h (struct lstream):
7087         * md5.c (Fmd5):
7088         * process-nt.c (nt_send_process):
7089         * process-unix.c (unix_send_process):
7090         
7091         Correct Lstream lossage due to mixing of signed and unsigned
7092         quantities.  All Lstream uses of size_t and ssize_t are now a
7093         single signed data type Lstream_data_count.  This fixes problems
7094         under Windows with sending large quantities of data to a process,
7095         and may well fix other subtle bugs.
7096
7097 2001-02-23  Martin Buchholz <martin@xemacs.org>
7098
7099         * XEmacs 21.2.45 "Thelxepeia" is released.
7100
7101 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7102
7103         * lisp-union.h (XSETINT): 
7104         (XSETCHAR):
7105         (XSETOBJ): 
7106         Reverse previous change of 2001-02-06.
7107
7108 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7109
7110         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7111         buffers.
7112         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7113         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7114         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7115         * regex.c (POS_AS_IN_BUFFER): removed
7116         * regex.c (re_search_2):
7117         * regex.c (re_match_2):
7118         Don't use an offset of 1 when calculating buffer positions, since
7119         `BI_BUF_BEGV' does it already.
7120
7121 2001-02-18  Wim Dumon  <wim@easics.be>
7122
7123         * insdel.c (prepare_to_modify_buffer): Also check for
7124         supersession when clash-detection is enabled. 
7125
7126 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7127
7128         * regex.c (re_match_2_internal):
7129         Convert temp characters from 'const unsigned char' to 're_char'.
7130         Fix crashing bug with extended characters under mule.
7131         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7132         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7133         font-lock, pdump, and new syntax-table code.
7134         * syntax.c (find_start_of_comment):
7135         (find_end_of_comment):
7136         (forward-comment):
7137         Fix crashing bugs involving moving beyond end of buffer.
7138         * syntax.c (find_start_of_comment):
7139         Fixed logic to allow proper detection of cases where the same
7140         character is used to end both a two-char comment start and a
7141         two-char comment end sequence. Fixes `(forward-comment -1)'.
7142         * syntax.c (find_start_of_comment):
7143         Return position just past last comment-end character for all cases
7144         (previously was only done for two-char comment-end sequences).
7145         * syntax.c (forward-comment):
7146         Take value returned from `find_end_of_comment', rather than
7147         incrementing it.
7148         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7149         Properly deal with BUFFERP (syntax_cache.object)
7150
7151 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7152
7153         * alloc.c (Fgarbage_collect): 
7154         * alloc.c (make_bit_vector_from_byte_vector):
7155         -Wsign-compare-correctness.
7156
7157 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7158
7159         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7160         (XSETCHAR): Likewise.
7161         (XSETOBJ): Likewise.
7162
7163 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7164
7165         * mule-canna.c (canna-func-delete_previous): 
7166         Rename to canna-func-delete-previous.
7167
7168 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7169
7170         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7171
7172 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7173
7174         * font-lock.c (find_context): Fix C++ compile errors introduced by
7175         recent patch
7176
7177 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7178
7179         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7180         pragma, but earlier ones barf on the same pragma.
7181
7182 2001-02-06  Mike Sperber <mike@xemacs.org>
7183
7184         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7185         `configure-mule-lisp-directory'.
7186
7187 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7188
7189         Make sure dump-id.c is compiled in the same way as other .c's.
7190         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7191         * dump-id.h: Remove.
7192         * emacs.c: Move dump-id.h into dumper.h.
7193         * dumper.h: Move dump-id.h into dumper.h.
7194         * Makefile.in.in:
7195         Use standard .c.o rule for building dump-id.o.
7196         Remove preprocessor flags from link command.
7197         Add dump-id.o to ${otherobjs} if PDUMP.
7198
7199 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7200
7201         Port FSF 20.7 syntax table improvements.
7202         * syntax.c.
7203         * syntax.h.
7204
7205         Fixups for new syntax table stuff.
7206         * dired.c: Include syntax.c.
7207         (Fdirectory_files): Initialize regex_match_object and
7208         regex_emacs_buffer.
7209         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7210         and Fget_char_property.
7211
7212         Use ported FSF 20.7 syntax table improvements.
7213         * font-lock.c.
7214         * regex.c.
7215         * search.c.
7216         
7217 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7218
7219         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7220         Unixware's enum boolean from sys/types.h.
7221
7222 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7223
7224         Fix support for building with latest Purify.
7225         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7226         (PURIFY_FLAGS): Likewise.
7227
7228 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7229
7230         * fileio.c (lisp_string_set_file_times): New.
7231         * fileio.c (Fcopy_file): Use it.
7232         Fixes bug:
7233         (copy-file filename non-ascii-filename t t)
7234         ==> No such file or directory, non-ascii-filename
7235
7236 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7237
7238         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7239         USHRT_MAX seems clearer than ~0 anyways.
7240
7241 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7242
7243         dumper improvements.  Inspired by Olivier.
7244         * dumper.c (pdump_max_align): New.
7245         * dumper.c (pdump_add_entry): Use pdump_max_align.
7246         * dumper.c (pdump_get_entry_list): Likewise.
7247         * dumper.c (pdump_scan_by_alignment): Likewise.
7248         Don't iterate through unnecessary alignments.
7249         * dumper.c (pdump_file_get): No need to align result of malloc().
7250         * dumper.c (pdump_mallocadr): Remove.  
7251         The result of malloc() is guaranteed to be maximally aligned.
7252         * dumper.c: s/elmt/elt/g;
7253         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7254         * dumper.c (pdump_alert_undump_object): Likewise.
7255         * dumper.c (pdump_align_table): 
7256         Don't support alignments > 64.
7257         Store ALIGNOF's, not shift counts, in table.
7258
7259 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7260
7261         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7262         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7263         * systime.h: Use HAVE_UTIME.
7264         * sysdep.c (struct utimbuf): Remove.
7265         * sysdep.c (set_file_times): Prefer utime() to utimes().
7266         * config.h.in (HAVE_UTIME): New.
7267         * config.h.in (HAVE_UTIME_H): Remove.
7268         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7269
7270 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7271
7272         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7273
7274 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7275
7276         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7277
7278 2001-02-08  Martin Buchholz <martin@xemacs.org>
7279
7280         * XEmacs 21.2.44 "Thalia" is released.
7281
7282 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7283
7284         Fixes crashes in kill-emacs on some systems.
7285         * process-unix.c (unix_kill_child_process):
7286         It's OK for kill() to fail with ESRCH.
7287
7288 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7289
7290         Contortions to make .gdbinit tricks work on most systems.
7291         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7292         * alloc.c (dbg_valmask): Make non-const.
7293         * alloc.c (dbg_typemask): Make non-const.
7294         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7295         * alloc.c (dbg_valbits): Make non-const.
7296         * alloc.c (dbg_gctypebits): Make non-const.
7297         * .gdbinit (decode_object): Make it work with AIX cc.
7298
7299 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7300
7301         * elhash.c (make_general_lisp_hash_table):
7302         Use simpler and more efficient calloc to clear entries.
7303
7304 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7305
7306         * window.c (window_scroll): Work around an AIX C compiler bug.
7307         Fixes 'scroll-up' does nothing problem with xlC.
7308
7309 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7310
7311         * .gdbinit: Remove obsolete comment.
7312
7313 2001-01-31  Mike Alexander  <mta@arbortext.com>
7314
7315         * select.c (Fown_selection_internal): Set owned_p for device
7316         method correctly.
7317
7318 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7319
7320         Port to g++ 2.97.
7321         "not" cannot be used as a macro name as it is an operator in C++
7322         * config.h.in: Stop #defining `not'.
7323         * chartab.c (check_category_char): not ==> not_p
7324         * chartab.h: Likewise.
7325         * regex.c (re_match_2_internal): Likewise.
7326
7327 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7328
7329         * lisp-disunion.h: Fix up comments.
7330
7331 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7332
7333         * keymap.c (define_key_check_and_coerce_keysym):
7334         (syms_of_keymap):
7335         Support mouse-6 and mouse-7 bindings in the obvious way.
7336
7337 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7338
7339         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7340
7341 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7342
7343         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7344         Previous patch missed DEFVAR_INT_MAGIC.
7345         Make sure future DEFVAR_foo use correct types.
7346         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7347         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7348         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7349         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7350         * (DEFVAR_INT): Likewise.
7351         * redisplay.c (vertical_clip): Should be of type Fixnum.
7352         * redisplay.c (horizontal_clip): Likewise.
7353         * lisp.h (dump_add_opaque_int): New.
7354         (dump_add_opaque_fixnum): New.
7355
7356 2001-01-29  Andy Piper  <andy@xemacs.org>
7357
7358         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7359         since they can be eval'ed
7360
7361 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7362
7363         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7364         Oops, XEmacs redefines `class'.  Use `typename' instead.
7365
7366 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7367
7368         * dumper.c: Fix C++ compile errors.
7369
7370 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7371
7372         * tparam.c: Use correct prototypes.
7373
7374 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7375
7376         * sysproc.h: #include util.h for NetBSD's openpty.
7377
7378 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7379
7380         More 64-bit correctness.
7381         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7382         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7383         Fix up comments.
7384         This finally finishes the 64-bit SGI port.
7385         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7386         * symbols.c: Fix up comments and type casts.
7387         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7388         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7389         * symeval.h (Fixnum): New type.
7390         * symeval.h (symbol_value_type): Fix up comment.
7391
7392         * commands.h:
7393         * nt.c:
7394         * emacs.c:
7395         * data.c:
7396         * redisplay.c:
7397         * abbrev.c:
7398         * dired-msw.c:
7399         * event-Xt.c:
7400         * eldap.c:
7401         * window.c:
7402         * sound.c:
7403         * event-stream.c:
7404         * eval.c:
7405         * buffer.c:
7406         * mule-canna.c: A million DEFVAR_INTs here...
7407         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7408         * extents.c:
7409         * cmdloop.c:
7410         * lisp.h:
7411         * select-x.c:
7412         * console-x.h:
7413         * event-msw.c:
7414         * mule-wnnfns.c:
7415         * hpplay.c:
7416         * ralloc.c:
7417         * alloc.c:
7418         * keymap.c:
7419         * profile.c:
7420         s/int/Fixnum/g in DEFVAR_INT declarations.
7421
7422 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7423
7424         Port pdump to SGI alignment-sensitive environment.
7425         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7426         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7427         properly aligned.
7428         Define and use aligned reading and writing macros.
7429         Use buffered stdio instead of posix i/o for faster dumping.
7430         Eliminate kludgy 256 byte space for header.
7431         Read and write from dump file using structs for alignment safety.
7432         * dumper.c (pdump_align_stream): New.
7433         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7434         * dumper.c (PDUMP_READ_ALIGNED): New.
7435         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7436         * dumper.c (pdump_static_Lisp_Object): New struct.
7437         * dumper.c (pdump_static_pointer): New struct.
7438         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7439         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7440         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7441         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7442
7443         * dumper.c (pdump_backtrace):
7444         * dumper.c (pdump_get_indirect_count):
7445         * dumper.c (pdump_register_object):
7446         * dumper.c (pdump_register_struct):
7447         * dumper.c (pdump_reloc_one):
7448         * dumper.c (pdump_scan_by_alignment):
7449         * dumper.c (pdump_dump_from_root_struct_ptrs):
7450         * dumper.c (pdump_dump_opaques):
7451         * dumper.c (pdump_dump_rtables):
7452         * dumper.c (pdump_dump_from_root_objects):
7453         * dumper.c (pdump):
7454         * dumper.c (pdump_load_finish):
7455         Use aligned reading and writing.
7456
7457         * dumper.c (pdump_free): Make static.
7458         * dumper.c (pdump_hFile): Likewise.
7459         * dumper.c (pdump_hMap): Likewise.
7460
7461 2001-01-26  Martin Buchholz <martin@xemacs.org>
7462
7463         * XEmacs 21.2.43 "Terspichore" is released.
7464
7465 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7466
7467         Type fiddling for window_config.saved_windows_count
7468         * window.c (struct window_config): 
7469         Make saved_windows_count member unsigned.
7470         * window.c (sizeof_window_config_for_n_windows): 
7471         Make parameter unsigned.
7472         * window.c (mark_window_config):
7473         * window.c (window_config_equal):
7474         * window.c (free_window_configuration):
7475         * window.c (Fset_window_configuration):
7476         * window.c (count_windows):
7477         * window.c (Fcurrent_window_configuration):
7478         * window.c (reinit_vars_of_window):
7479         Update all callers and users.
7480
7481 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7482
7483         Alignment correctness for flexible arrays.
7484         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7485         Make alignment-correct. Add interesting comments.
7486         * alloc.c (size_vector):
7487         * alloc.c (make_vector_internal):
7488         * alloc.c (make_bit_vector_internal):
7489         * alloc.c (sweep_bit_vectors_1):
7490         * fns.c (size_bit_vector):
7491         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7492         * window.c (sizeof_window_config_for_n_windows): 
7493         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7494
7495 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7496
7497         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7498
7499 2001-01-23  Andy Piper  <andy@xemacs.org>
7500
7501         * select.c (Fown_selection_internal): pass owned_p
7502
7503         * select-msw.c (mswindows_own_selection): New Signature.
7504
7505         * console.h (struct console_methods): add owned_p to
7506         _own_selection.
7507
7508         * select-x.c (x_own_selection): pass owned_p
7509         (hack_motif_clipboard_selection): use owned_p
7510         (vars_of_select_x): new variable -
7511         x_selection_strict_motif_ownership.
7512
7513 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7514
7515         * specifier.h (specifier_data_offset): Remove pointless parens.
7516         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7517
7518 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7519
7520         Make Lisp_Object sizeof methods be alignment-correct.
7521         pdump must restore objects to the same alignment as the C compiler
7522         assumes.  It really matters on SGIs.
7523         * lstream.c (aligned_sizeof_lstream): New.
7524         (sizeof_lstream): Use aligned_sizeof_lstream.
7525         (Lstream_new): Likewise.
7526         * opaque.c (aligned_sizeof_opaque): New.
7527         (sizeof_opaque): Use aligned_sizeof_opaque.
7528         (make_opaque): Likewise.
7529         * specifier.c (aligned_sizeof_specifier): New.
7530         (sizeof_specifier): Use aligned_sizeof_specifier.
7531         (make_specifier_internal): Likewise.
7532
7533 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7534
7535         * lstream.h (struct lstream): Use max_align_t for trailing data.
7536         * specifier.h (struct Lisp_Specifier): Likewise.
7537
7538 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7539
7540         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7541         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7542         (CCL_SUSPEND): Likewise.
7543         (CCL_INVALID_CMD): Likewise.
7544         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7545         (ccl_driver): Likewise.
7546         (CCL_WRITE_CHAR): Macro hygiene.
7547         (CCL_WRITE_STRING): Macro hygiene.
7548
7549 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7550
7551         Port "portable" dumper to SunOS 4 and HP-UX.
7552         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7553         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7554         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7555
7556 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7557
7558         * lisp.h (ALIGNOF): A better definition for C++.
7559
7560 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7561
7562         Macro hygiene.
7563         Fix printf warnings: int format, long int arg.
7564         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7565         (PUSH_FAILURE_POINT): Use correct printf formats.
7566         (POP_FAILURE_POINT): Use correct printf formats.  
7567         Use do {...} while (0)
7568
7569 2001-01-20  Martin Buchholz <martin@xemacs.org>
7570
7571         * XEmacs 21.2.42 "Poseidon" is released.
7572
7573 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7574
7575         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7576
7577 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7578
7579         De-kludgify FIXED_TYPE free list frobbing.
7580         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7581         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7582         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7583         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7584         * alloc.c (LRECORD_FREE_P): New.
7585         * alloc.c (MARK_LRECORD_AS_FREE): New.
7586         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7587         * alloc.c (STRUCT_FREE_P): Deleted.
7588         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7589         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7590         * alloc.c (STRING_CHARS_FREE_P): New.
7591         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7592         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7593         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7594         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7595         * alloc.c (resize_string): Use new definitions.
7596         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7597         * alloc.c (verify_string_chars_integrity): Use new definitions.
7598         * alloc.c (compact_string_chars): Use new definitions.
7599         * alloc.c: Update monster comments.
7600         * lrecord.h (lrecord_type): Add some new lrecord types for
7601         alloc.c's use.
7602
7603 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7604
7605         Improve alignment hackery.
7606         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7607         (max_align_t): Moved from opaque.h - general purpose.
7608         (ALIGN_PTR): Use size_t, not long.
7609         * opaque.h (max_align_t): Move to lisp.h.
7610
7611 2001-01-18  Norbert Koch  <nk@LF.net>
7612
7613         * gui.h: Fix and add prototypes to fix build problems.
7614
7615 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7616
7617         temacs is going away, so `dump-temacs' is now a bad name.
7618         * .dbxrc (dump-temacs): Rename to `dmp'.
7619         * .gdbinit (dump-temacs): Rename to `dmp'.
7620
7621 2001-01-17  Andy Piper  <andy@xemacs.org>
7622
7623         * glyphs.c (print_image_instance): comment to make martin happy.
7624
7625         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7626         change.
7627
7628         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7629         activation.
7630         (mswindows_tab_control_redisplay): warning suppression.
7631
7632         * glyphs-widget.c (widget_update): re-write to cope with updated
7633         items.
7634         (widget_instantiate): use new gui_item functions.
7635         (tab_control_update): deleted.
7636         (progress_gauge_update): deleted.
7637         (image_instantiator_progress_guage): take out update reference.
7638         (image_instantiator_tree_view): ditto.
7639         (image_instantiator_tab_control): ditto.
7640
7641         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7642         Right the new way.
7643         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7644         return whether anything was changed.
7645         (update_gui_item_keywords): as it sounds.
7646
7647         * gui.h: declare widget_gui_parse_item_keywords.
7648
7649         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7650         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7651
7652 2001-01-17  Martin Buchholz <martin@xemacs.org>
7653
7654         * XEmacs 21.2.41 "Polyhymnia" is released.
7655
7656 2001-01-16  Didier Verna  <didier@xemacs.org>
7657
7658         * glyphs.c (image_instantiate): don't use fallbacks when
7659         instantiating a face's background pixmap by inheritance.
7660
7661 2001-01-14  Mike Sperber <mike@xemacs.org>
7662
7663         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7664         Conditionalize accordingly.
7665
7666 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7667
7668         * dumper.c (pdump_file_get): Fix a compiler warning.
7669
7670 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7671
7672         Make Purify happy when pdumping.
7673         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7674         iniitalizing all bits of new lisp object memory.
7675         * symbols.c (Fmake_local_variable): Likewise.
7676         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7677         * symbols.c (Fdefvaralias): Likewise.
7678         * mule-charset.c (vars_of_mule_charset): Likewise.
7679
7680 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7681         Add the `-nd' flag when running pre-dump operations under the debugger.
7682         * .dbxrc (run-temacs): Add `-nd'.
7683         * .dbxrc (update-elc): Likewise.
7684         * .dbxrc (dump-temacs): Likewise.
7685         * .gdbinit (run-temacs): Likewise.
7686         * .gdbinit (check-temacs): Likewise.
7687         * .gdbinit (update-elc): Likewise.
7688         * .gdbinit (dump-temacs): Likewise.
7689
7690 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7691
7692         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7693         export OBJECT_MODE=64
7694         configure --pdump --use-union-type=no
7695         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7696         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7697
7698         * miscplay.c (sndcnv8U_2mono):
7699         Avoid two uses of `++' in the same expression.
7700         Suppresses a GCC warning.
7701
7702 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7703
7704         Make sure future compilers don't miscompile alloc.c.
7705         * alloc.c:
7706         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7707         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7708
7709 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7710
7711         * dumper.c: A little post-pdump-rename comment fixup.
7712
7713 2001-01-09  Jerry James  <james@eecs.ku.edu>
7714
7715         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7716
7717 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7718
7719         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7720         script:
7721         #!/bin/sh
7722         replace_symbol () {
7723           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7724         }
7725
7726         replace_symbol pdump_wire_lists pdump_weak_object_chains
7727         replace_symbol pdump_wire_list dump_add_weak_object_chain
7728
7729         replace_symbol pdump_wires pdump_root_objects
7730         replace_symbol pdump_wire dump_add_root_object
7731
7732         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7733         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7734
7735         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7736         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7737         replace_symbol dumpstructinfo pdump_root_struct_ptr
7738         replace_symbol dumpstruct dump_add_root_struct_ptr
7739
7740         replace_symbol dumpopaque dump_add_opaque
7741         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7742         replace_symbol dumpopaqueinfos pdump_opaques
7743         replace_symbol dumpopaqueinfo pdump_opaque
7744
7745         replace_symbol nb_structdump nb_root_struct_ptrs
7746         replace_symbol nb_opaquedump nb_opaques
7747
7748         replace_symbol align_table pdump_align_table
7749         replace_symbol dump_header pdump_header
7750
7751         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7752         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7753
7754
7755 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7756
7757         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7758         optimizing bytecount_to_charcount().
7759
7760 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7761
7762         * config.h.in:
7763         (HAVE_DLFCN_H): Removed.
7764         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7765
7766 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7767
7768         Portable dumper maintainability improvements.
7769         * alloc.c (staticpro):
7770         * alloc.c (staticpro_nodump):
7771         * alloc.c (garbage_collect_1):
7772         * alloc.c (reinit_alloc_once_early):
7773         * alloc.c (init_alloc_once_early):
7774         * alloc.c: Move dumper functions to alloc.c.
7775         * dumper.c (pdump_backtrace):
7776         * dumper.c (pdump_dump_structs):
7777         * dumper.c (pdump_dump_opaques):
7778         * dumper.c (pdump_dump_rtables):
7779         * dumper.c (pdump_dump_wired):
7780         * dumper.c (pdump):
7781         * dumper.c (pdump_load_check):
7782         * dumper.c (pdump_load_finish):
7783         * dumper.c (pdump_file_unmap):
7784         * dumper.c (pdump_file_get):
7785         * dumper.c (pdump_resource_free):
7786         * dumper.c (pdump_resource_get):
7787         * dumper.c (pdump_file_free):
7788         * dumper.c (pdump_file_try):
7789         * dumper.c (pdump_load):
7790         Remove fixed size limits on staticpro(), staticpro_nodump(),
7791         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7792         Remove custom code for dumping lrecord_implementations_table - use
7793         dumpopaque instead.
7794         Remove (most of the) custom code for dumping staticpros - dump it
7795         like any other dynarr.
7796
7797         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7798         * dumper.c: Moved functions from alloc.c.
7799         * alloc.c (dumpstruct): Moved to dumper.c.
7800         * alloc.c (dumpopaque): Likewise.
7801         * alloc.c (pdump_wire): Likewise.
7802         * alloc.c (pdump_wire_list): Likewise.
7803
7804         * lisp.h (Dynarr_sizeof): New.
7805         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7806         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7807         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7808
7809         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7810         * lisp.h (dumpopaque): ditto.
7811         * lisp.h (pdump_wire): ditto.
7812         * lisp.h (pdump_wire_list): ditto.
7813
7814 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7815
7816         * make-src-depend (PrintPatternDeps):
7817         Use `sort' to make output independent of perl version.
7818
7819 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7820
7821         Port to Netbsd 1.5.
7822         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7823         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7824
7825 2001-01-03  Didier Verna  <didier@xemacs.org>
7826
7827         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7828         that `focus_frame' is alive before thinking of calling
7829         `redisplay_redraw_cursor' on it.
7830
7831 2001-01-08  Martin Buchholz <martin@xemacs.org>
7832
7833         * XEmacs 21.2.40 is released.
7834
7835 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7836
7837         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7838
7839 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7840
7841         * alloc.c (dbg_valmask): Make const.
7842         * alloc.c (dbg_typemask): Make const.
7843         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7844         * alloc.c (dbg_valbits): Make const.
7845         * alloc.c (dbg_gctypebits): Make const.
7846
7847 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7848
7849         * redisplay-x.c (x_bevel_area):
7850         redisplay.h (struct rune):
7851         Typo fixes in comments.
7852
7853 2001-01-05  Andy Piper  <andy@xemacs.org>
7854
7855         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7856         adjustment.
7857
7858         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7859
7860 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7861
7862         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7863
7864         * mule-ccl.c (stack_idx_of_map_multiple):
7865         Non const global data must not be initialized!
7866         Found by MIYASHITA Hisashi.
7867
7868 2001-01-02  Andy Piper  <andy@xemacs.org>
7869
7870         * frame.c (change_frame_size): make sure frame size is always
7871         marked as changed.
7872
7873         * glyphs.c (image_instance_layout): minor code reuse.
7874
7875         * window.c (Fcurrent_window_configuration): revert previous
7876         change.
7877
7878 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7879
7880         * glyphs.h:
7881         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7882
7883 2000-12-31  Andy Piper  <andy@xemacs.org>
7884
7885         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7886         when widget gets unmapped.
7887
7888         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7889         function. Make sure widgets losing focus don't just drop it.
7890         (handle_focus_event_1): record the widget with focus.
7891
7892 2000-12-31  Andy Piper  <andy@xemacs.org>
7893
7894         * window.c (allocate_window): use
7895         make_image_instance_cache_hash_table.
7896         (make_dummy_parent): ditto.
7897         (Fset_window_configuration): ditto.
7898
7899         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7900
7901         * glyphs.c (process_image_string_instantiator): use
7902         INSTANTIATOR_TYPE.
7903         (get_image_instantiator_governing_domain): ditto.
7904         (normalize_image_instantiator): ditto.
7905         (instantiate_image_instantiator): ditto.
7906         (make_image_instance_1): ditto.
7907         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7908         (instantiator_eq_equal): new function for use with instance hash
7909         tables.
7910         (instantiator_eq_hash): ditto.
7911         (make_image_instance_cache_hash_table): create a suitable hash
7912         table for storing image instances.
7913
7914         * elhash.h (hash_table_weakness): new internal weakness type
7915         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7916         declare new functions.
7917
7918         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7919         another weakness type for glyphs.
7920         (make_standard_lisp_hash_table): new function split out from
7921         make_general_lisp_hash_table.
7922         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7923         (hash_table_instantiate): ditto.
7924         (Fmake_hash_table): ditto.
7925
7926 2000-12-31  Martin Buchholz <martin@xemacs.org>
7927
7928         * XEmacs 21.2.39 is released.
7929
7930 2000-12-29  Andy Piper  <andy@xemacs.org>
7931
7932         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7933
7934         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7935         the frame has changed so that we pick up geometry changes such as
7936         menubar visibility.
7937
7938 2000-12-28  Andy Piper  <andy@xemacs.org>
7939
7940         * lastfile.c (my_ebss): make a char array so we can pad the
7941         bss. Fixes cygwin unexec.
7942
7943         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7944
7945 2000-12-26  Andy Piper  <andy@xemacs.org>
7946
7947         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7948         comments and try and be more precise about a non-/SIGIO world.
7949         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7950         SIGIO.
7951
7952         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7953         we don't normalize to zero width or height.
7954
7955 2000-12-24  Andy Piper  <andy@xemacs.org>
7956
7957         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7958
7959 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7960
7961         * s/sco5.h: SCO 5 has pty support.
7962
7963 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7964
7965         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7966         input-method-xlib.c contains whole contents of input-method-xfs.c,
7967         so we can use input-method-xlib.c's code for USE_XFONTSET
7968         using #ifdefs.
7969         * input-method-xfs.c: removed.
7970
7971 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7972
7973         * file-coding.h (enum coding_category_type): reorder enumerators to
7974         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7975         (now one greater than largest real coding_category_type enumerator).
7976         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7977         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7978         Fcoding_category_list, Fset_coding_priority_list,
7979         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7980         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7981
7982 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7983
7984         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7985         * redisplay-output.c (redisplay_output_window): Clear top of window
7986         when face is changed.
7987         * redisplay-x.c (x_redraw_exposed_window): Call
7988         redisplay_clear_top_of_window.
7989         * redisplay.h: Publish redisplay_clear_top_of_window.
7990
7991 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7992
7993         * buffer.c (Fkill_buffer): Map over all devices.
7994         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7995         (list_windows): New function.
7996         (list_all_windows): Ditto.
7997         (Freplace_buffer_in_windows): Use them.
7998
7999 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8000
8001         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8002         (Fopen_database): Use `db_create' instead of `db_open'.
8003         (syms_of_database): Initialize Qqueue.
8004
8005 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8006
8007         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8008         buffer_local_face_property.
8009         * buffer.h (struct buffer): New member buffer_local_face_property.
8010         * window.c (Fset_window_buffer):  Mark window's face as changed
8011         when buffer has buffer local face.
8012         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8013         * objects.c (color_after_change): Set buffer_local_face_property
8014         when locale of face specifier is buffer.
8015         * objects.c (font_after_change): Ditto.
8016         * objects.c (face_boolean_after_change): Ditto.
8017         * glyphs.c (image_after_change): Ditto.
8018
8019 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8020
8021         * nt.c (mswindows_fstat): Report file permissions, volume serial
8022         number, etc. Code adapted from FSF Emacs 20.7.
8023
8024 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8025
8026         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8027         of stat when we don't have symbolic links, to make sure
8028         mswindows_stat is called on mswindows.
8029
8030 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8031
8032         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8033
8034 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8035
8036         * doprnt.c (emacs_doprnt_1): More printing fixes.
8037         Make printing of numbers compatible with libc and FSF Emacs.
8038         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8039         Use the system printf to do most of the hard work of formatting,
8040         instead of doprnt_1().
8041         Calculate memory to allocate for format string.
8042         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8043         (doprnt_1): Cleaner code and documentation.
8044
8045 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8046
8047         * Makefile.in.in: Use the loop variable to install headers.
8048
8049 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8050
8051         * window.c (Fsplit_window): Don't invalidate face cache.
8052
8053 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8054
8055         * minibuf.c (Fall_completions): Undo the previous change
8056         which removed checking elements start with space.
8057
8058 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8059
8060         * mule-canna.c: Didier suppression.
8061
8062 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8063
8064         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8065         (warning suppression).  Add English comment translations.
8066
8067 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8068
8069         * unexelfsgi.c (unexec): Better test for mmap failure.
8070
8071 2000-12-05  Martin Buchholz <martin@xemacs.org>
8072
8073         * XEmacs 21.2.38 is released.
8074
8075 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8076
8077         * redisplay.c (bar-cursor): Make a user variable.
8078
8079         * symsinit.h: Add init_postgresql_from_environment.
8080
8081 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8082
8083         * regex.c: Convert to clean C.
8084
8085 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8086
8087         * realpath.c:
8088         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8089         initialization.
8090         (sys_readlink): renamed to system_readlink to avoid conflict with
8091         the other sys_readlink.
8092
8093 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8094
8095         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8096
8097 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8098
8099         * postgresql.c (init_postgresql_from_environment): new function.
8100         (vars_of_postgresql): Move code initializing Lisp variables out and
8101         into init_postgresql_from_environment.
8102         emacs.c (main_1): Call init_postgresql_from_environment if and only
8103         if running a dumped XEmacs.
8104
8105 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8106
8107         * buffer.c: Make find-file-compare-truenames default to true on
8108         windows.
8109
8110         * realpath.c (win32_abs_start):
8111         (cygwin_readlink):
8112         (win32_readlink): New functions.
8113         (xrealpath): Return really real filenames on windows.
8114
8115         * fileio.c (Ffile_truename): Make file-truename work on windows.
8116
8117 2000-11-29  Didier Verna  <didier@xemacs.org>
8118
8119         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8120         * faces.c (update_face_cachel_data): use it.
8121         * faces.c (add_face_cachel): use it. Complete background pixmap
8122         frobbing in face cache if `update_face_cachel_data' has not done so.
8123
8124 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8125
8126         * search.c (string_match_1): Don't set last_thing_searched
8127         when search failed.
8128
8129 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8130
8131         * buffer.c: Include casetab.h
8132         (common_init_complex_vars_of_buffer): Use new case-table object.
8133         * buffer.h: Include casetab.h
8134         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8135         (DOWNCASE_TABLE_OF): Ditto.
8136         * bufslots.h: Remove char-tables and add case-table.
8137         * casetab.c: Include casetab.h
8138         (CASE_TABLE_P): Removed.
8139         (mark_case_table): New function.
8140         (allocate_case_table): New function.
8141         (Fcase_table_p): Use new case-table.
8142         (case_table_char): New function.
8143         (Fget_case_table): Ditto.
8144         (Fput_case_table): Ditto.
8145         (Fput_case_table_pair): Ditto.
8146         (Fcopy_case_table): Ditto.
8147         (Fcurrent_case_table): Return case-table.
8148         (Fstandard_case_table): Return case-table.
8149         (Fset_case_table): Fix doc-string.
8150         (set_case_table): Use case-table
8151         (syms_of_casetab): DEFSUBR new functions.
8152         (complex_vars_of_casetab): Set up standard case-table.
8153         * casetab.h: New file.
8154         * editfns.c: Include casetab.h
8155         (Fcompare_buffer_substrings): Use case-table.
8156         * inline.c: Include casetab.h
8157         * lisp.h: Remove bogus extern.
8158         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8159         * search.c: Include casetab.h
8160         (TRANSLATE_ASCII): Removed.
8161         (TRANSLATE): Unconditionally translate character.
8162         (looking_at_1): Use case-table.
8163         (string_match_1): Ditto.
8164         (fast_string_match): Ditto.
8165         (search_command): Ditto.
8166         (search_buffer): Separate boyer_moore.  Check whether
8167         boyer_moore is possible.
8168         (simple_search): New function.
8169         (boyer_moore): Separated from search_buffer. Translate char.
8170
8171 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8172
8173         * regex.c (RE_TR_ASCII): Removed.
8174         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8175         (PATFETCH): Call PATFETCH_RAW.
8176         (PATFETCH_RAW): Fetch Emchar.
8177         (PATUNFETCH): Decrement charptr.
8178         (GET_BUFFER_SPACE): Rename b to buf_end.
8179         (BUF_PUSH): Ditto.
8180         (BUF_PUSH_2): Ditto.
8181         (BUF_PUSH_3): Ditto.
8182         (EXTEND_BUFFER): Ditto.
8183         (SET_LIST_BIT): Ditto.
8184         (regex_compile): Ditto.  Translate non ASCII char.
8185         (compile_range): Ditto.
8186         (re_search_2): Ditto.
8187         (re_match_2_internal): Compare Emchar.
8188         (bcmp_translate): Ditto.
8189
8190 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8191
8192         * lisp.h (basic char/int typedefs):  comment improvement.
8193
8194 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8195
8196         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8197         unstomp inhibit_site_lisp.  Improve comments.
8198
8199 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8200
8201         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8202
8203 2000-11-28  Andy Piper  <andy@xemacs.org>
8204
8205         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8206         clipped display for windows in the gutter also.
8207         (redisplay_display_boxes_in_window_p): change semantics of return
8208         codes to be more intuitive.
8209
8210         * gutter.h: declare display_boxes_in_gutter_p.
8211
8212         * gutter.c (display_boxes_in_gutter_p): new function for
8213         redisplay.
8214
8215 2000-11-22  Andy Piper  <andy@xemacs.org>
8216
8217         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8218         autodetect domain.
8219
8220 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8221
8222         * callproc.c (Fold_call_process_internal):
8223         * gpm.c (Freceive_gpm_event):
8224         (tty_get_foreign_selection): Might be just warning supression.
8225         * fileio.c (Fwrite_region_internal):
8226         (Fset_visited_file_modtime):
8227         * keymap.c (event_matches_key_specifier_p):
8228         Initialize GCPROed variable.
8229
8230         * menubar-x.c (command_builder_find_menu_accelerator):
8231         Initialize before use.
8232
8233 2000-11-23  Andy Piper  <andy@xemacs.org>
8234
8235         * unexcw.c (unexec): make the resulting executable executable.
8236
8237 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8238
8239         * doc.c (get_doc_string):
8240         Use size_t, not int, for result of XSTRING_LENGTH.
8241
8242         * cmds.c (Fdelete_char):
8243         * cmds.c (Fpoint_at_eol):
8244         * cmds.c (Fself_insert_command):
8245         Use EMACS_INT, not int, for result of XINT.
8246         Someday, someone will want to insert more than 2**31 identical characters.
8247
8248         * cmds.c (Fdelete_char):
8249         * cmds.c (Fdelete_backward_char):
8250         * syntax.c (Fforward_word):
8251         * syntax.c (Fforward_comment):
8252         Make COUNT argument optional, for consistency with forward-char et al.
8253
8254 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8255
8256         * lisp.h:
8257         * print.c (long_to_string):
8258         Return a useful value: the pointer at end of data written.
8259
8260         * doprnt.c:
8261         Use `static const char * const' for constant strings.
8262         (union printf_arg): Delete `i', `ui' members.
8263         (get_doprnt_args):
8264         (emacs_doprnt_1):
8265         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8266         Do all printf-ing via the `l' specifier.
8267         Use EMACS_INT instead of int.
8268         Optimize.
8269
8270 2000-11-20  Didier Verna  <didier@xemacs.org>
8271
8272         * faces.c (update_face_cachel_data): don't frob the background
8273         pixmap when the window is being created. The face is needed but
8274         does not exist yet.
8275
8276 2000-11-20  Andy Piper  <andy@xemacs.org>
8277
8278         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8279         messing with a debug environment.
8280
8281 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8282
8283         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8284
8285 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8286
8287         * casetab.c (Fcase_table_p): Fix compile error and crash.
8288
8289 2000-11-18  Philip Aston  <philipa@mail.com>
8290
8291         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8292
8293 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8294
8295         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8296         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8297
8298 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8299
8300         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8301         * unexelf.c: Use HAVE_ELF_H.
8302         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8303         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8304         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8305         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8306         for testing.
8307         So this is an unexelfsgi.c from a different line of development.
8308
8309 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8310
8311         * regex.c (RE_TR_ASCII): New function.
8312         (RE_TRANSLATE): Call it.
8313
8314 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8315
8316         * buffer.h (TRT_TABLE_OF): Remove assert.
8317         (IN_TRT_TABLE_DOMAIN): Removed.
8318
8319 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8320
8321         * free-hook.c (log_gcpro):
8322         (show_gcprohist): Add support for GCPRO5.
8323
8324 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8325
8326         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8327
8328 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8329
8330         * symeval.h: Declare flush_all_buffer_local_cache.
8331
8332         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8333         (flush_buffer_local_cache): Added.
8334         (flush_all_buffer_local_cache): Added.
8335
8336         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8337
8338         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8339         (pdump_dump_data): Ditto.
8340         (pdump_reloc_one): Ditto.
8341         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8342         before dumping.
8343
8344
8345 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8346
8347         * buffer.c: Remove if 0'ed entry.
8348         * buffer.h: Rewrite TRT to use char-table.
8349         * bufslots.h: Remove mirror tables.
8350         * casetab.c: Remove mirror tables.
8351         (CASE_TABLE_P): New macro.
8352         (Fcase_table_p): Element of a case table is string or char-table.
8353         (make_mirror_trt_table): Removed.
8354         (set_case_table): Setup char-table from strings for backward
8355         compatibility.
8356         * dired.c (Fdirectory_files):
8357         * dired-msw.c: (mswindows_get_files):
8358         * lisp.h: Change prototype of re_pattern_buffer.
8359         * regex.c: (RE_TRANSLATE): New macro.
8360         (TRANSLATE_P): Ditto.
8361         Change translate to type RE_TRANSLATE_TYPE.
8362         * regex.h: Define RE_TRANSLATE_TYPE
8363         * search.c (TRANSLATE): New macro.
8364         (TRANSLATE_ASCII): New macro.
8365         Translate table is changed to Lisp_Object.
8366         (signal_failure): Inhibit return.
8367
8368 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8369
8370         * device-msw.c:
8371         * eldap.c:
8372         * event-Xt.c:
8373         * event-stream.c:
8374         * print.c:
8375         Do UNGCPRO before return.
8376
8377 2000-11-14  Martin Buchholz <martin@xemacs.org>
8378
8379         * XEmacs 21.2.37 is released.
8380
8381 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8382
8383         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8384         Add comments about discarded return value.
8385
8386 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8387
8388         * callint.c:
8389         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8390
8391 2000-10-27  Andy Piper  <andy@xemacs.org>
8392
8393         * gutter.c (Fset_default_gutter_position): default left and right
8394         gutters to visible.
8395         (calculate_gutter_size): calculate resonable heuristic for left
8396         and right gutter sizes.
8397         (specifier_vars_of_gutter): change left and right gutter sizes to
8398         autodetect.
8399         (calculate_gutter_size_from_display_lines): new function.
8400         (output_gutter): check for resizing on left and right gutters.
8401         (clear_gutter): don't special case top and left gutters.
8402         (specifier_vars_of_gutter): use new signature for
8403         set_specifier_caching.
8404
8405         * glyphs-x.c (x_redisplay_widget): spelling fix.
8406         * glyphs.c (specifier_vars_of_glyphs):
8407         * menubar.c (specifier_vars_of_menubar):
8408         * redisplay.c (specifier_vars_of_redisplay):
8409         * toolbar.c (specifier_vars_of_toolbar):
8410         * window.c (specifier_vars_of_window):
8411         * scrollbar.c (specifier_vars_of_scrollbar):
8412         (complex_vars_of_scrollbar): use new signature for
8413         set_specifier_caching.
8414
8415         * specifier.c (set_specifier_caching): include recompute flag.
8416         (recompute_one_cached_specifier_in_window): always recompute if
8417         flag set.
8418         (recompute_one_cached_specifier_in_frame): ditto.
8419
8420         * specifier.h (struct specifier_caching): add recompute flag.
8421
8422 2000-10-24  Andy Piper  <andy@xemacs.org>
8423
8424         * unexcw.c (copy_executable_and_dump_data_section): add new
8425         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8426         5.0 happy.
8427
8428 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8429
8430         * console-x.h (x_device): New member modifier_release_time.
8431         * event-Xt.c (x_handle_sticky_modifiers):
8432         Bound interval modifier keys are sticky.
8433         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8434         * events.h: extern it.
8435
8436 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8437
8438         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8439
8440 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8441
8442         * event-stream.c (execute_command_event): Preserve current_events
8443         and the like when event is misc-user-event.
8444         Inhibit quit during the call to maybe_echo_keys.
8445
8446 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8447
8448         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8449         symlink when buffer is killed.
8450         (inhibit_clash_detection): New variable.
8451
8452 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8453
8454         * console.c (Fset_input_method): Trigger redisplay on tty.
8455
8456 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8457
8458         * process.c (Fprocess_status): Revert to previous behavior:
8459         (process-status "nosuchprocess") ==> nil
8460
8461 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8462
8463         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8464         Work around another GCC 2.95.2 optimizer bug.
8465
8466 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8467
8468         * process.c (Fget_process): Use LIST_LOOP_2.
8469         (kill_buffer_processes): Use LIST_LOOP_2.
8470
8471         * minibuf.c (Fall_completions):
8472         Delete old non-functional code for FSF fourth argument.
8473
8474         * frame.c (frame_matches_frame_spec):
8475         Renamed from `frame_matches_frametype'.  Update all callers.
8476         (device_matches_device_spec):
8477         Renamed from 'device_matches_console_spec'.  Update all callers.
8478
8479         * doc.c (Fsubstitute_command_keys):
8480         Remove buffer overflow crash.  Small code cleanups.
8481
8482         * casetab.c (check_case_table): Simpler code.
8483
8484         * window.c (Freplace_buffer_in_windows):
8485         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8486         (and similar implementation) as Fdelete_windows_on.
8487         Update all callers.
8488
8489         * alloc.c (Fmake_list):
8490         * alloc.c (make_vector):
8491         * alloc.c (Fmake_vector):
8492         * alloc.c (make_bit_vector):
8493         * alloc.c (Fmake_bit_vector):
8494         * alloc.c (Fbit_vector):
8495         * alloc.c (Fmake_string):
8496         * alloc.c (Fpurecopy):
8497         * alloc.c (Fmemory_limit):
8498         * buffer.c:
8499         * buffer.c (Fget_buffer):
8500         * buffer.c (Fkill_buffer):
8501         * buffer.c (complex_vars_of_buffer):
8502         * bytecode.c (Fcompiled_function_stack_depth):
8503         * callint.c (Fprefix_numeric_value):
8504         * event-stream.c:
8505         * event-stream.c (Fread_key_sequence):
8506         * casetab.c:
8507         * casetab.c (Fcase_table_p):
8508         * casetab.c (check_case_table):
8509         * casetab.c (Fset_case_table):
8510         * casetab.c (Fset_standard_case_table):
8511         * chartab.c:
8512         * chartab.c (Fchar_table_type):
8513         * chartab.c (Freset_char_table):
8514         * chartab.c (Fget_char_table):
8515         * chartab.c (Fget_range_char_table):
8516         * chartab.c (Fput_char_table):
8517         * chartab.c (Fmap_char_table):
8518         * chartab.c (Fcategory_table_p):
8519         * chartab.c (Fcheck_category_at):
8520         * chartab.c (Fchar_in_category_p):
8521         * chartab.c (Fcategory_table):
8522         * chartab.c (Fcopy_category_table):
8523         * chartab.c (Fset_category_table):
8524         * chartab.c (Fcategory_designator_p):
8525         * chartab.c (Fcategory_table_value_p):
8526         * cmds.c (Fdelete_char):
8527         * cmds.c (Fdelete_backward_char):
8528         * cmds.c (Fself_insert_command):
8529         * cmds.c (Fself_insert_internal):
8530         * console.c (Fvalid_console_type_p):
8531         * console.c (Fcdfw_console):
8532         * console.c (Fconsole_type):
8533         * console.c (Fconsole_name):
8534         * console.c (Fconsole_device_list):
8535         * console.c (Fconsole_on_window_system_p):
8536         * data.c:
8537         * data.c (Feq):
8538         * data.c (Fold_eq):
8539         * data.c (Fsubr_interactive):
8540         * data.c (Fchar_to_int):
8541         * data.c (Fint_to_char):
8542         * data.c (Fsetcar):
8543         * data.c (Fsetcdr):
8544         * data.c (Fnumber_to_string):
8545         * data.c (Fstring_to_number):
8546         * data.c (Frem):
8547         * database.c (mark_database):
8548         * database.c (finalize_database):
8549         * database.c (Fdatabase_live_p):
8550         * database.c (Fdatabasep):
8551         * device-x.c (Fx_get_resource):
8552         * device.c (Fdfw_device):
8553         * dired.c:
8554         * dired.c (Ffile_name_completion):
8555         * dired.c (Ffile_name_all_completions):
8556         * dired.c (Fuser_name_completion):
8557         * dired.c (Fuser_name_completion_1):
8558         * dired.c (Fuser_name_all_completions):
8559         * doc.c (Fdocumentation):
8560         * doc.c (Fdocumentation_property):
8561         * doc.c (Fsubstitute_command_keys):
8562         * editfns.c:
8563         * editfns.c (Fchar_to_string):
8564         * editfns.c (Fstring_to_char):
8565         * editfns.c (Ftemp_directory):
8566         * editfns.c (Finsert_char):
8567         * editfns.c (Fbuffer_substring_no_properties):
8568         * editfns.c (Fnarrow_to_region):
8569         * editfns.c (Fchar_equal):
8570         * editfns.c (Fchar_Equal):
8571         * editfns.c (Ftranspose_regions):
8572         * emacs.c (Fdump_emacs):
8573         * eval.c (Fthrow):
8574         * eval.c (Fcommand_execute):
8575         * eval.c (Fautoload):
8576         * eval.c (Fbacktrace):
8577         * eval.c (Fbacktrace_frame):
8578         * events.c:
8579         * events.c (Fcopy_event):
8580         * events.c (Fcharacter_to_event):
8581         * events.c (Fevent_button):
8582         * events.c (Fevent_process):
8583         * extents.c:
8584         * extents.c (Fnext_extent_change):
8585         * extents.c (Fextent_property):
8586         * faces.c (Ffacep):
8587         * faces.c (Fmake_face):
8588         * file-coding.c:
8589         * file-coding.c (Fencode_shift_jis_char):
8590         * file-coding.c (Fencode_big5_char):
8591         * fileio.c (Ffile_name_directory):
8592         * fileio.c (Ffile_name_nondirectory):
8593         * fileio.c (Ffile_name_as_directory):
8594         * fileio.c (Fdirectory_file_name):
8595         * fileio.c (Ffile_truename):
8596         * fileio.c (Fsubstitute_in_file_name):
8597         * fileio.c (Ffile_modes):
8598         * fileio.c (Fset_file_modes):
8599         * fileio.c (Fset_default_file_modes):
8600         * fileio.c (Fverify_visited_file_modtime):
8601         * floatfns.c (Facos):
8602         * floatfns.c (Fasin):
8603         * floatfns.c (Fatan):
8604         * floatfns.c (Fcos):
8605         * floatfns.c (Fsin):
8606         * floatfns.c (Ftan):
8607         * floatfns.c (Fbessel_j0):
8608         * floatfns.c (Fbessel_j1):
8609         * floatfns.c (Fbessel_jn):
8610         * floatfns.c (Fbessel_y0):
8611         * floatfns.c (Fbessel_y1):
8612         * floatfns.c (Fbessel_yn):
8613         * floatfns.c (Ferf):
8614         * floatfns.c (Ferfc):
8615         * floatfns.c (Flog_gamma):
8616         * floatfns.c (Fexp):
8617         * floatfns.c (Fexpt):
8618         * floatfns.c (Flog):
8619         * floatfns.c (Flog10):
8620         * floatfns.c (Fsqrt):
8621         * floatfns.c (Fcube_root):
8622         * floatfns.c (Facosh):
8623         * floatfns.c (Fasinh):
8624         * floatfns.c (Fatanh):
8625         * floatfns.c (Fcosh):
8626         * floatfns.c (Fsinh):
8627         * floatfns.c (Ftanh):
8628         * floatfns.c (Fabs):
8629         * floatfns.c (Ffloat):
8630         * floatfns.c (Flogb):
8631         * floatfns.c (Fceiling):
8632         * floatfns.c (Ffloor):
8633         * floatfns.c (Fround):
8634         * floatfns.c (Ftruncate):
8635         * floatfns.c (Ffceiling):
8636         * floatfns.c (Fffloor):
8637         * floatfns.c (Ffround):
8638         * floatfns.c (Fftruncate):
8639         * fns.c (Fstring_equal):
8640         * fns.c (Fstring_lessp):
8641         * fns.c (concat2):
8642         * fns.c (concat3):
8643         * fns.c (vconcat2):
8644         * fns.c (vconcat3):
8645         * fns.c (Fsubstring):
8646         * fns.c (Fassoc):
8647         * fns.c (Fold_assoc):
8648         * fns.c (assoc_no_quit):
8649         * fns.c (Fassq):
8650         * fns.c (Fold_assq):
8651         * fns.c (assq_no_quit):
8652         * fns.c (Frassoc):
8653         * fns.c (Fold_rassoc):
8654         * fns.c (Frassq):
8655         * fns.c (Fold_rassq):
8656         * fns.c (rassq_no_quit):
8657         * fns.c (Fremassoc):
8658         * fns.c (remassoc_no_quit):
8659         * fns.c (Fremassq):
8660         * fns.c (remassq_no_quit):
8661         * fns.c (Fremrassoc):
8662         * fns.c (Fremrassq):
8663         * fns.c (remrassq_no_quit):
8664         * fns.c (Fsort):
8665         * fns.c (Fplist_get):
8666         * fns.c (Fplist_put):
8667         * fns.c (Fplist_remprop):
8668         * fns.c (Fplist_member):
8669         * fns.c (Flax_plist_get):
8670         * fns.c (Flax_plist_put):
8671         * fns.c (Flax_plist_remprop):
8672         * fns.c (Flax_plist_member):
8673         * fns.c (Fequal):
8674         * fns.c (Fold_equal):
8675         * fns.c (Frequire):
8676         * fns.c (Fbase64_encode_region):
8677         * fns.c (Fbase64_encode_string):
8678         * fns.c (Fbase64_decode_region):
8679         * frame.c:
8680         * frame.c (frame_matches_frame_spec):
8681         * frame.c (device_matches_device_spec):
8682         * frame.c (next_frame):
8683         * frame.c (previous_frame):
8684         * frame.c (Fnext_frame):
8685         * frame.c (Fprevious_frame):
8686         * frame.c (Fframe_property):
8687         * frame.c (Fset_frame_height):
8688         * frame.c (Fset_frame_size):
8689         * frame.h:
8690         * glyphs.c:
8691         * glyphs.c (if):
8692         * glyphs.c (decode_error_behavior_flag):
8693         * glyphs.c (Fmake_image_instance):
8694         * indent.c (Findent_to):
8695         * intl.c (Fignore_defer_gettext):
8696         * keymap.c (Fkeymapp):
8697         * keymap.c (Flookup_key):
8698         * lread.c:
8699         * lread.c (Fload_internal):
8700         * lread.c (Feval_buffer):
8701         * lread.c (Feval_region):
8702         * macros.c (Fexecute_kbd_macro):
8703         * marker.c (set_marker_internal):
8704         * marker.c (Fset_marker):
8705         * marker.c (set_marker_restricted):
8706         * marker.c (Fcopy_marker):
8707         * marker.c (noseeum_copy_marker):
8708         * menubar.c:
8709         * menubar.c (Fpopup_menu):
8710         * minibuf.c:
8711         * mule-charset.c (Fcharset_name):
8712         * mule-charset.c (Fchar_charset):
8713         * mule-charset.c (Fchar_octet):
8714         * mule-charset.c (Fsplit_char):
8715         * mule-wnnfns.c (Fwnn_open):
8716         * mule-wnnfns.c (Fwnn_dict_comment):
8717         * mule-wnnfns.c (Fwnn_quit_henkan):
8718         * mule-wnnfns.c (Fwnn_word_toroku):
8719         * mule-wnnfns.c (Fwnn_word_sakujo):
8720         * mule-wnnfns.c (Fwnn_word_use):
8721         * mule-wnnfns.c (Fwnn_hindo_set):
8722         * objects.c:
8723         * objects.c (Fmake_color_instance):
8724         * objects.c (Fmake_font_instance):
8725         * print.c (Fwrite_char):
8726         * process.c:
8727         * process.c (mark_process):
8728         * process.c (print_process):
8729         * process.c (get_process_from_usid):
8730         * process.c (Fprocessp):
8731         * process.c (Fprocess_live_p):
8732         * process.c (Fget_process):
8733         * process.c (Fget_buffer_process):
8734         * process.c (get_process):
8735         * process.c (Fprocess_id):
8736         * process.c (Fprocess_name):
8737         * process.c (Fprocess_command):
8738         * process.c (init_process_io_handles):
8739         * process.c (start_process_unwind):
8740         * process.c (Fstart_process_internal):
8741         * process.c (Fopen_multicast_group_internal):
8742         * process.c (Fset_process_window_size):
8743         * process.c (read_process_output):
8744         * process.c (send_process):
8745         * process.c (Fprocess_tty_name):
8746         * process.c (Fset_process_buffer):
8747         * process.c (Fprocess_buffer):
8748         * process.c (Fprocess_mark):
8749         * process.c (set_process_filter):
8750         * process.c (Fset_process_filter):
8751         * process.c (Fprocess_filter):
8752         * process.c (Fprocess_send_region):
8753         * process.c (Fprocess_send_string):
8754         * process.c (exec_sentinel):
8755         * process.c (Fset_process_sentinel):
8756         * process.c (Fprocess_sentinel):
8757         * process.c (status_notify):
8758         * process.c (Fprocess_status):
8759         * process.c (Fprocess_exit_status):
8760         * process.c (process_send_signal):
8761         * process.c (Fprocess_send_eof):
8762         * process.c (deactivate_process):
8763         * process.c (remove_process):
8764         * process.c (Fdelete_process):
8765         * process.c (kill_buffer_processes):
8766         * process.c (Fprocess_kill_without_query):
8767         * process.c (Fprocess_kill_without_query_p):
8768         * rangetab.c:
8769         * rangetab.c (Fget_range_table):
8770         * rangetab.c (Fput_range_table):
8771         * rangetab.c (Fremove_range_table):
8772         * rangetab.c (Fclear_range_table):
8773         * search.c:
8774         * search.c (Fskip_chars_forward):
8775         * search.c (Fskip_chars_backward):
8776         * search.c (Fskip_syntax_forward):
8777         * search.c (Fskip_syntax_backward):
8778         * search.c (search_command):
8779         * search.c (Freplace_match):
8780         * search.c (Fregexp_quote):
8781         * select.c (Fown_selection_internal):
8782         * select.c (Fselection_owner_p):
8783         * select.c (Fselection_exists_p):
8784         * select.c (Fget_selection_internal):
8785         * specifier.c:
8786         * symbols.c:
8787         * symbols.c (Fintern):
8788         * symbols.c (Fintern_soft):
8789         * symbols.c (Funintern):
8790         * symbols.c (Fapropos_internal):
8791         * symbols.c (Fset_default):
8792         * syntax.c:
8793         * syntax.c (Fsyntax_table_p):
8794         * syntax.c (Fcopy_syntax_table):
8795         * syntax.c (Fset_syntax_table):
8796         * syntax.c (Fchar_syntax):
8797         * syntax.c (syntax_match):
8798         * syntax.c (Fmatching_paren):
8799         * syntax.c (Fforward_word):
8800         * syntax.c (scan_lists):
8801         * syntax.c (Fscan_lists):
8802         * syntax.c (Fscan_sexps):
8803         * syntax.c (Fparse_partial_sexp):
8804         * toolbar.c (Fcheck_toolbar_button_syntax):
8805         * tooltalk.doc:
8806         * window.c:
8807         * window.c (Fwindowp):
8808         * window.c (Fwindow_live_p):
8809         * window.c (Fwindow_point):
8810         * window.c (Fdelete_window):
8811         * window.c (Fnext_window):
8812         * window.c (Fprevious_window):
8813         * window.c (Fother_window):
8814         * window.c (window_loop):
8815         * window.c (Fget_lru_window):
8816         * window.c (Fsplit_window):
8817         * window.c (Fenlarge_window):
8818         * window.c (Fenlarge_window_pixels):
8819         * window.c (Fshrink_window):
8820         * window.c (Fshrink_window_pixels):
8821         * window.c (change_window_height):
8822         * window.c (Fwindow_configuration_p):
8823         * window.c (Fcurrent_window_configuration):
8824         * window.h:
8825         * casefiddle.c (casify_object):
8826         * casefiddle.c (Fupcase):
8827         * casefiddle.c (Fdowncase):
8828         * casefiddle.c (Fcapitalize):
8829         * casefiddle.c (Fupcase_initials):
8830         * casefiddle.c (casify_region_internal):
8831         * casefiddle.c (casify_region):
8832         * casefiddle.c (Fupcase_region):
8833         * casefiddle.c (Fdowncase_region):
8834         * casefiddle.c (Fcapitalize_region):
8835         * casefiddle.c (Fupcase_initials_region):
8836         * casefiddle.c (Fupcase_word):
8837         * casefiddle.c (Fdowncase_word):
8838         * casefiddle.c (Fcapitalize_word):
8839         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8840         Replace 0 with '\0' when working with bytes.
8841         Replace initial "(" with "\(" in docstrings.
8842
8843 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8844
8845         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8846
8847         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8848
8849 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8850
8851         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8852
8853 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8854
8855         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8856         correctly.
8857
8858 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8859
8860         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8861         (inhibit_auto_save_session): New variable.
8862         (vars_of_fileio): Declare and initialize them.
8863         * fileio.c (Fdo_auto_save): Don't create session file if
8864         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8865
8866 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8867
8868         * sgiplay.c (play_internal): C++ compilability.
8869         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8870         * callproc.c (Fold_call_process_internal):
8871         Remove unused vars `env', `first'.
8872         * scrollbar.c (update_scrollbar_instance):
8873         #### unused var `current_window'.
8874         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8875         etc. within #ifdef NOT_YET.
8876         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8877         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8878         * specifier.c (specifier_instance):
8879         #### unused var `tag'.
8880         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8881
8882 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8883
8884         * fns.c (Fbutlast):
8885         * fns.c (list_sort):
8886         * fns.c (Ffillarray):
8887         * fns.c (bytecode_nconc2):
8888         * fns.c (Fnconc):
8889         * fns.c (mapcar1):
8890         * fns.c (Fmapconcat):
8891         Be pedantically 64-bit correct.  For the time when someone will
8892         want to have a list with length > 2**32.
8893
8894         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8895         Work around MIPSpro compiler bug.
8896
8897         * process-unix.c (unix_kill_child_process): Add snarky comment.
8898         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8899
8900         * config.h.in: Oops, _getpt ==> _getpty
8901
8902 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8903
8904         * config.h.in:
8905         * regex.c:
8906         Use void*, not char*, as return type of alloca().
8907
8908         * alloc.c (free_marker): Side effect inside assert expression!
8909
8910 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8911
8912         * mule-charset.c (Fset_charset_ccl_program): To check
8913         if the given ccl program is valid, use setup_ccl_program()
8914         instead of CHECK_VECTOR().
8915         (Fmake_charset): Likewise.
8916
8917 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8918
8919         * faces.c (get_extent_fragment_face_cache_index):
8920         Fix cachel.merged_faces memory leak.
8921
8922 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8923
8924         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8925         Reset MSB of octets obtained by DECODE_SJIS
8926         because of the incompatibility with Emacs.
8927         (ccl_driver)<CCL_ENCODE_SJIS>:
8928         Set MSB of octets before passing them to
8929         ENCODE_SJIS because of the incompatibility
8930         with Emacs.
8931
8932 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8933
8934         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8935         (DECLARE_LRECORD): Undo the last change.
8936         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8937
8938 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8939
8940         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8941         the implementation to lrecord_implementations_table.
8942
8943 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8944
8945         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8946         initial value of `lrecord_type_##c_name' and
8947         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8948         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8949         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8950         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8951         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8952
8953 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8954
8955         * miscplay.c (sndcnv8S_2mono):
8956         (sndcnv2monounsigned):
8957         (sndcnvULaw_2linear):
8958         (sndcnv16swap):
8959         Remove implementation-defined behavior.
8960
8961 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8962
8963         * input-method-xlib.c: Warning suppression.
8964
8965 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8966
8967         * mule-ccl.c: Sync up with Emacs 21.0.90.
8968         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8969         Do nothing.
8970         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8971         Likewise.
8972         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8973         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8974         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8975         leading char belongs to official 2-dimensional charset.
8976         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8977         write the given character as is.  Otherwise,
8978         if it is a multibyte char, convert it by
8979         non_ascii_set_charptr_emchar, then write it.
8980         (CCL_WRITE_STRING): Likewise.
8981         (ccl_get_compiled_code): New function.
8982         (setup_ccl_program): When ccl_prog is invalid,
8983         return -1.
8984         (Fregister_code_conversion_map): New function.
8985         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8986
8987         * mule-ccl.h: Sync up with Emacs 21.0.90.
8988         (Fregister_ccl_program): export it.
8989
8990         * redisplay-msw.c (separate_textual_runs):
8991         If ccl program is not valid, don't do ccl conversion.
8992
8993         * redisplay-x.c (separate_textual_runs): Ditto.
8994
8995         * file-coding.c (Fmake_coding_system):
8996         When type is ccl and value is vector, register it
8997         with a proper symbol.  And checks whether the
8998         given ccl program is valid.
8999         (mule_decode): When calling ccl_driver, if src indicates
9000         NULL pointer, set an empty string instead.
9001         (mule_encode): Likewise.
9002
9003 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9004
9005         The following large batch of changes gets us back to a state of
9006         C++ compilability.  Extbyte is now a char, which means that
9007         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9008
9009         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9010
9011         * sound.c (Fplay_sound): Type correctness.
9012
9013         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9014         (x_get_window_property): Type correctness.
9015         (receive_incremental_selection): unsigned char ==> Extbyte
9016         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9017         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9018         (Fx_store_cutbuffer_internal): Type correctness.
9019
9020         * process-unix.c (try_to_initialize_subtty): Type correctness.
9021
9022         * objects-x.c (x_print_color_instance): Type correctness.
9023         (x_print_font_instance): Type correctness.
9024         (x_list_fonts): SExtbyte ==> Extbyte.
9025         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9026         (x_find_charset_font): SExtbyte ==> Extbyte.
9027         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9028         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9029         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9030         Use bufbyte_strcmp.
9031
9032         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9033         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9034         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9035         (BYTE_C0_P): Use bit ops for char-signedness safety.
9036         (BYTE_C1_P): Use bit ops for char-signedness safety.
9037         (CHARSET_BY_LEADING_BYTE):
9038         (CHARSET_BY_ATTRIBUTES):
9039         Always use inline function.
9040         Use type_checking_assert.
9041         Hide chlook.
9042
9043         * mule-charset.c (non_ascii_charptr_copy_char):
9044         Modify to work with both ASCII and non-ASCII characters.
9045         Improve docs and variable names.
9046         Replace over-clever fall-through switch with a simple loop.
9047         (Lstream_get_emchar_1):
9048         Replace over-clever fall-through switch with a simple loop.
9049
9050         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9051         Warning suppression.
9052
9053         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9054         the return value of Lstream_getc, which could be EOF as well.
9055
9056         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9057
9058         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9059         APIs can be used on Extbytes without casts.  Risky!
9060         (SExtbyte): Remove.
9061         (UExtbyte): Remove.
9062
9063         * input-method-xlib.c (XIM_init_device):
9064         Use Xlib.h instead of IntrinsicP.h.
9065         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9066         which will break in X11R7.
9067         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9068         to call XRegisterIMInstantiateCallback with correct types.
9069
9070         * gui-x.c (button_item_to_widget_value): Type correctness.
9071
9072         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9073
9074         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9075         (xbm_instantiate_1): Type correctness.
9076         (BUILD_GLYPH_INST):  Type correctness.
9077
9078         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9079
9080         * file-coding.c:
9081         (decode_coding_sjis):
9082         (decode_coding_big5):
9083         (decode_coding_ucs4):
9084         (decode_coding_utf8):
9085         (decode_coding_iso2022):
9086         (decode_coding_no_conversion):
9087         Make all decoding functions take an Extbyte * arg.
9088         (encode_coding_sjis):
9089         (encode_coding_big5):
9090         (encode_coding_ucs4):
9091         (encode_coding_utf8):
9092         (encode_coding_iso2022):
9093         (encode_coding_no_conversion):
9094         Make all encoding functions take a Bufbyte * arg.
9095         Use size_t instead of unsigned int for memory sizes.
9096         Only cast to unsigned char whenever dereferencing Extbyte *.
9097
9098         * doc.c (unparesseuxify_doc_string): Type correctness.
9099
9100         * console-x.c (split_up_display_spec):
9101         Rewrite without using details of internal string representation.
9102         (x_semi_canonicalize_device_connection): Type correctness.
9103
9104         * config.h.in:
9105         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9106         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9107         (HAVE_XFREE386): Removed.
9108
9109         * buffer.h (DEC_CHARPTR): `const' correctness.
9110         (bufbyte_strcmp): New.
9111         (bufbyte_memcmp): New.
9112
9113         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9114
9115         * buffer.h (XCHAR_OR_CHAR_INT):
9116         Always use inline function.
9117         Remove redundant type checking assert() - XINT will abort quite nicely.
9118
9119 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9120
9121         * search.c (Freplace_match): Set newtext to an empty string.
9122
9123 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9124
9125         * s/decosf1-3.h: Remove #include of stropts.h
9126         * s/ptx.h: Remove #include of stropts.h
9127         * s/usg5-4.h: Remove #include of stropts.h
9128         * sysproc.h:
9129         * config.h.in:
9130         Use stropts.h, not sys/stropts.h.
9131         Use strtio.h, not sys/strtio.h.
9132
9133 2000-10-04  Martin Buchholz <martin@xemacs.org>
9134
9135         * XEmacs 21.2.36 is released.
9136
9137 2000-09-21  Andy Piper  <andy@xemacs.org>
9138
9139         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9140         changes still involve copying the widget tree.
9141         (update_widget_face): make sure a change is register in the widget
9142         tree. Call update_tab_widget_face appropriately.
9143         (update_tab_widget_face): ditto.
9144         (x_tab_control_redisplay): make sure non-structural changes still
9145         involve copying the widget tree.
9146
9147 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9148
9149         * lread.c (locate_file): Check the path element is non-nil.
9150
9151 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9152
9153         * lisp.h: Warning suppression for SCO compilers.
9154
9155         * redisplay-tty.c (reset_tty_modes): Fix crash.
9156         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9157
9158 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9159
9160         Big signal/process handling overhaul.  Bugs fixed:
9161         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9162         M-x comint-kill-subjob should work for both values nil and t of
9163         process-connection-type. It was broken on most platforms.
9164         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9165         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9166         * process-unix.c: Signal/Process handling overhaul.
9167         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9168         (allocate_pty): Use all available modern methods of allocating
9169         ptys, falling back to old style BSD allocation as a last resort.
9170         Use allegedly more secure Unix98 pty allocation by default.
9171         (allocate_pty_the_old_fashioned_way): New. the last resort.
9172         (unix_create_process): Push ptem, ldterm, ttcompat where
9173         available.  Autoconfiscate.
9174         (try_to_initialize_subtty): New.
9175         (unix_kill_child_process): Proper signal handling for ptys on most
9176         platforms, using special knowledge of AIX, BSD, etc...
9177         (unix_create_process): Always disconnect_controlling_terminal() for
9178         subprocesses, whether using ptys or not.
9179         * process.h: Remove old getpt-dependent PTY code.
9180         * process.c (Fprocess_send_signal): New, obvious generic function.
9181         (decode_signal): New.
9182         (Finterrupt_process):
9183         (Fkill_process):
9184         (Fquit_process):
9185         (Fstop_process):
9186         (Fcontinue_process):
9187         (Fsignal_process): Use decode_signal.
9188         (process_send_signal):
9189         Many docstring corrections.
9190         Allow any signal to be sent to a process object.
9191         * config.h.in: Add symbols for big signal/process overhaul.
9192         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9193         * sysproc.h: Include process-related headers, where available:
9194         sys/stropts.h sys/strtio.h pty.h libutil.h
9195         * s/irix4-0.h:
9196         * s/irix5-0.h:
9197         * s/cygwin32.h:
9198         * s/gnu.h:
9199         * s/linux.h:
9200         * s/hpux.h:
9201         * s/aix3-1.h:
9202         Remove old S&M pty stuff.
9203         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9204         * systty.h: Simplify cpp hackery, improve comments.
9205         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9206
9207         * editfns.c (Fformat_time_string):
9208         Be a little more paranoid with the return value of ctime.
9209
9210         * fileio.c (check_executable):
9211         (check_writable):
9212         Use symbolic constants X_OK, W_OK.
9213
9214         * console-x.c (split_up_display_spec): Fix a warning.
9215
9216 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9217
9218         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9219         * ntproc.c (sys_spawnve): make_string ==> build_string
9220         Small clarity improvements.
9221
9222 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9223
9224         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9225
9226         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9227
9228         * config.h.in (HAVE_STRCASECMP): Remove.
9229
9230 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9231
9232         * redisplay-output.c (redisplay_output_pixmap):
9233         Cleaner and possibly more 64-bit correct code.
9234
9235 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9236
9237         * dumper.c (pdump_load_finish): move restoration of
9238         `noninteractive1' to emacs.c (main_1).
9239         * emacs.c (main_1): protect LISP-visible command-line flags
9240         from pdump_load().
9241
9242 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9243
9244         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9245         DUMP_TARGET instead of literal program names.
9246
9247 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9248
9249         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9250
9251 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9252
9253         * *: Spelling mega-patch
9254
9255 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9256
9257         * fns.c (bad_bad_turtle):
9258         Delete "Eek!" comment, since we fixed the bug to which it refers.
9259
9260 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9261
9262         * alloca.c: Replace REGISTER with register.
9263
9264 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9265
9266         * file-coding.c (ucs_to_char): Use countof.
9267
9268 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9269
9270         * file-coding.c: (ucs_to_char):
9271         (complex_vars_of_file_coding):
9272         Use countof instead of sizeof.
9273         Use CHECK_NATNUM instead of CHECK_INT.
9274
9275         * sysdep.c (strcasecmp): Remove.
9276         * device-x.c (ascii_strcasecmp): New.
9277         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9278         Avoid using non-standard non-portable strcasecmp.
9279
9280 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9281
9282         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9283         * font-lock.c: remove reference to emacsfns.h.
9284         * search.c: small doc improvement.
9285         * event-Xt.c: correct file names in comments.
9286         * console-x.h Correct file names in comments.
9287         * frame.c: Correct file names in comments.
9288         * event-stream.c: remove Energize from comments.
9289
9290 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9291
9292         * symeval.h (DEFERROR_STANDARD):
9293         (DEFERROR):
9294         (DEFSYMBOL):
9295         (DEFSYMBOL_NO_DUMP):
9296         (DEFSYMBOL_MULTIWORD_PREDICATE):
9297         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9298         (DEFKEYWORD):
9299         The construct &##name is not sensible C.
9300         Fixes compilation errors with Unixware native compiler.
9301
9302 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9303
9304         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9305         (next_frame_internal): Removed.  We now just have next_frame.
9306         (next_frame):
9307         Write a simpler and cleaner one-pass algorithm.
9308         Remove called_from_delete_device arg and #ifdefed-out code.
9309         (previous_frame):
9310         Renamed from prev_frame.  Update callers.
9311         Cleaned up to have an analogous implementation to next_frame.
9312         (other_visible_frames_internal): Remove the
9313         called_from_delete_device bogus arg, and hence, remove this
9314         function.  Just use other_visible_frames().
9315
9316         * window.c (Fnext_window):
9317         Prettify docstring.
9318         Since next_frame() is guaranteed to return a frame, remove check
9319         for nil inserted in previous patch.
9320         (Fprevious_window):
9321         Prettify docstring.
9322         Make code look more like Fnext_window.
9323         (window_loop):
9324         Respect the `console' arg when iterating through windows.
9325         Fixes bug: (get-buffer-window buffer t device) not respecting
9326         the `device' arg.
9327         This function needs more work, as others have pointed out.
9328
9329         * frame.h: Rename prev_frame to previous_frame.
9330         device_matches_console_spec no longer takes a `frame' arg.
9331
9332         * s/gnu.h:
9333         * s/linux.h:
9334         * s/hpux.h:
9335         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9336         From "Golubev I. N." <gin@mo.msk.ru>.
9337
9338         * make-src-depend: Fix typo.
9339
9340 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9341
9342         * window.c (Fnext_window):
9343         next_frame() might return nil, not a frame.
9344         Fixes this crash:
9345         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9346
9347         * frame.c (next_frame_internal):
9348         We've passed a frame if we've passed its device.
9349         Fixes this crash:
9350         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9351 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9352
9353 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9354
9355         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9356         Allow option to suppress accelerators in menu/dialog items.
9357         (populate_or_checksum_helper): Pass dialog title through above.
9358
9359 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9360
9361         * event-msw.c (mswindows_key_to_emacs_keysym):
9362         Add "pause" key, fix "menu" key.
9363
9364 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9365
9366         * eval.c (reinit_vars_of_eval):
9367         Increase max_lisp_eval_depth to 1000,
9368         required for thai-xtis.el to byte-compile under some circumstances.
9369
9370 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9371
9372         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9373         From Kenichi Handa.
9374
9375 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9376
9377         * make-src-depend: Make the generated Makefiles smaller.
9378
9379         * s/hpux.h (SETUP_SLAVE_PTY):
9380         Provide a %d in the format string for the errno argument.
9381
9382         * editfns.c (Ftemp_directory):
9383         Warning fix.
9384         Avoid buffer overrun on very long file name.
9385
9386         * input-method-xlib.c (XIM_init_device):
9387         6th parameter of XRegisterIMInstantiateCallback has different
9388         pointer types on different OSes, so simply cast to (void *).
9389
9390         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9391
9392         * sysdll.c (dll_open):
9393         shl_load will hang hard if passed a NULL filename.
9394         Simply return NULL for compatibility with dlopen.
9395         * sysdll.c: Conform to XEmacs coding standards.
9396
9397         * sysdep.c (get_pty_max_bytes):
9398         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9399
9400 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9401
9402         * tooltalk.c: Add #include <syssignal.h>
9403
9404 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9405
9406         * s/hpux.h: Don't use undefined function sigunblock().
9407
9408 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9409
9410         * config.h.in: Add HAVE_BALLOON_HELP.
9411         * emacs.c: Use HAVE_BALLOON_HELP.
9412         * Makefile.in.in (x_objs):
9413         Make Balloon Help conditional on finding shape.h.
9414
9415 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9416
9417         * syntax.c (regex_emacs_buffer_p): New variable.
9418         * syntax.h (regex_emacs_buffer_p): extern.
9419         * search.c (looking_at_1):
9420         (string_match_1):
9421         (fast_string_match):
9422         (search_buffer): Set regex_emacs_buffer_p.
9423         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9424         when before_dot, at_dot, after_dot.
9425
9426 2000-08-23  Andy Piper  <andy@xemacs.org>
9427
9428         * gui-x.c (popup_selection_callback): Only set action_occurred
9429         when we really have an image instance.
9430         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9431
9432 2000-08-23  Andy Piper  <andy@xemacs.org>
9433
9434         * gui-msw.c (mswindows_handle_gui_wm_command): set
9435         action_occurred.
9436         * gui-x.c (popup_selection_callback): ditto.
9437
9438         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9439         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9440         (struct Lisp_Image_Instance): add action_occurred flag.
9441
9442         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9443         (image_instance_changed): ditto.
9444         (reset_frame_subwindow_instance_cache): only unmap windows - do
9445         not remove them from the cache also.
9446
9447         * glyphs-widget.c (tab_control_update): better debug.
9448         (progress_gauge_update): ditto.
9449         (layout_update): ditto.
9450         (layout_instantiate): ditto.
9451         (tab_control_order_only_changed): cope with null pending items.
9452
9453         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9454         debug. Force selection of an item when an action occurred. Cope
9455         with null pending_items.
9456         (mswindows_progress_gauge_redisplay): better debug.
9457         * glyphs-x.c (x_tab_control_redisplay): ditto.
9458
9459         * redisplay.c (redisplay_frame): reset the frame cache if the
9460         frame is garbaged.
9461
9462         * window.c (Fset_window_configuration): potentially re-enable
9463         frame cache reset.
9464         (window_unmap_subwindows): need to finalize instances here since
9465         it is only used in mark_window_as_deleted.
9466
9467 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9468
9469         * nas.c (SndOpenDataForReading):
9470         nas.c (WaveOpenDataForReading):
9471         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9472         Somehow escaped from the 2000-08-14 patch.
9473
9474 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9475
9476         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9477         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9478
9479 2000-08-21  Andy Piper  <andy@xemacs.org>
9480
9481         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9482         window if it is not already displayed.
9483
9484         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9485         it is not already displayed.
9486
9487         * window.c (Fset_window_configuration): don't reset the frame
9488         cache.
9489
9490         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9491         instances from the frame cache if we are actually finalizing them.
9492         (reset_frame_subwindow_instance_cache): reset frame cache only
9493         after unmapping everything.
9494         (map_subwindow): set displayed flag after mapping.
9495
9496 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9497
9498         * data.c (indirect_function):
9499         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9500
9501         * eval.c (function_argcount):
9502         Use original function when signaling errors.
9503
9504 2000-08-18  Andy Piper  <andy@xemacs.org>
9505
9506         * frame.c (delete_frame_internal): use new
9507         free_frame_subwindow_instances name.
9508
9509         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9510         (add_tab_item): make return type correct.
9511         (mswindows_tab_control_instantiate): assert index of tab.
9512         (mswindows_tab_control_redisplay): Re-code to use
9513         gui_item_equal_sans_selected and gui_item_list_find_selected.
9514
9515         * glyphs-widget.c (tab_control_update): Correct comment.
9516
9517         * window.c (window_unmap_subwindows): use new
9518         unmap_subwindow_instance_cache_mapper.
9519         (window_unmap_subwindows_cache_mapper): deleted.
9520         (Fset_window_configuration): comparisons should now be with
9521         EQ. Preserve the subwindow instance cache across configuration
9522         changes.
9523         (allocate_window): ditto.
9524         (make_dummy_parent): ditto.
9525
9526         * glyphs.c (free_frame_subwindow_instances): rename from
9527         free_frame_subwindow_instance_cache. finalize all instances rather
9528         than just those in the display cache.
9529         (finalize_all_subwindow_instances): walk windows unmapping and
9530         finalizing subwindows.
9531         (unmap_subwindow_instance_cache_mapper): moved from
9532         window.c. Allow finalization as well as unmapping.
9533
9534         * gui.c (gui_item_list_find_selected): new function.
9535
9536         * gui.h (gui_item_list_find_selected): declare.
9537
9538         * glyphs-x.c (x_tab_control_redisplay): pick tab
9539         explicitly. Re-code to use gui_item_equal_sans_selected and
9540         gui_item_list_find_selected.
9541
9542         * glyphs-x.h: add lwlib-utils.h
9543
9544         * buffer.c (Frecord_buffer): undo previous change.
9545
9546 2000-08-09  Vin Shelton  <acs@xemacs.org>
9547
9548         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9549         possible.  Create temporary files more securely.  The patch was
9550         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9551         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9552         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9553         for details.
9554
9555 2000-08-07  Ben Wing  <ben@xemacs.org>
9556
9557         * getloadavg.c: remove duplicate (and windows-breaking)
9558         includes of fcntl.h and sys/file.h.
9559
9560         * nt.c: remove duplicate getloadavg() definition.
9561
9562         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9563         encodings.
9564
9565 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9566
9567         * eval.c (function_argcount): If function needs to be autoloaded
9568         actually use the loaded definition.
9569         GCPRO function.
9570
9571 2000-08-05  Ben Wing  <ben@xemacs.org>
9572
9573         * getloadavg.c: add prototype for getloadavg().  remove
9574         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9575         of the code).  remove duplicate header includes.
9576
9577         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9578
9579         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9580         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9581         useful load average.
9582
9583         * alloc.c (reinit_alloc_once_early): removed references to
9584         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9585         the lisp vars are the only things referencing the malloc_sbrk_*
9586         vars, and they were already if 0'd out.  these vars only exist
9587         in the older malloc.c, which is basically unused, and they're
9588         only for informational purposes.
9589
9590         * m\*.h: removed useless VIRT_ADDR_VARIES.
9591
9592         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9593
9594 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9595
9596         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9597         color if the image is a mono pixmap.
9598
9599 2000-07-30  Ben Wing  <ben@xemacs.org>
9600
9601         * Makefile.in.in (release):
9602         Remove stray @.
9603
9604         * buffer.c (directory_is_current_directory):
9605         * dired-msw.c (mswindows_get_files):
9606         * dired.c:
9607         * dired.c (Fdirectory_files):
9608         * dired.c (file_name_completion_stat):
9609         * dired.c (Ffile_attributes):
9610         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9611         preprocessor tricks, to avoid problems on some machines
9612         (e.g. SCO).
9613
9614         * callproc.c (egetenv): GC docs.
9615
9616         * console-msw.h:
9617         * console-msw.h (struct mswindows_dialog_id):
9618         * lrecord.h (lrecord_type):
9619         New object for use with MSW dialogs.
9620
9621         * console.h (struct console_methods):
9622         New enable/disable frame methods, for proper modal dialogs.
9623
9624         * device-msw.c (msprinter_default_printer): Fix to follow
9625         proper Mule conventions.
9626
9627         * device-msw.c:
9628         * device-msw.c (signal_open_printer_error):
9629         * device-msw.c (msprinter_init_device):
9630         * device-msw.c (ensure_not_printing):
9631         * device-msw.c (plist_get_margin):
9632         * device-msw.c (Fmsprinter_select_settings):
9633         * device-msw.c (finalize_devmode):
9634         * device-msw.c (Fmsprinter_settings_despecialize):
9635         * device-msw.c (signal_enum_priner_error):
9636         * extents.c (decode_extent):
9637         * extents.c (decode_map_extents_flags):
9638         * extents.c (decode_extent_at_flag):
9639         * extents.c (Fextent_at):
9640         * extents.c (Fextents_at):
9641         * extents.c (symbol_to_glyph_layout):
9642         [[[[2]]]] Use structured errors.
9643
9644         * dialog-msw.c:
9645         * dialog-msw.c (mswindows_is_dialog_msg):
9646         * dialog-msw.c (mark_mswindows_dialog_id):
9647         * dialog-msw.c (dialog_proc):
9648         * dialog-msw.c (handle_question_dialog_box):
9649         * dialog-msw.c (syms_of_dialog_mswindows):
9650         Define new object to clean up marking; use it as a dialog identifier.
9651         Call new delete-dialog-box-hook.
9652
9653         * dialog-x.c (dbox_selection_callback):
9654         * dialog-x.c (dbox_descriptor_to_widget_value):
9655         * dialog-x.c (x_make_dialog_box_internal):
9656         Call new delete-dialog-box-hook.
9657         Return an id.
9658
9659         * dialog.c:
9660         * dialog.c (syms_of_dialog):
9661         * dialog.c (vars_of_dialog):
9662         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9663
9664         * eval.c:
9665         * eval.c (signal_call_debugger):
9666         when noninteractive, output stack traces on the console instead
9667         of in a (never-seen) buffer.
9668
9669         * eval.c (signal_type_error):
9670         * eval.c (invalid_argument_2):
9671         * lisp.h:
9672         new funs for use w/structured errors.
9673
9674         * event-Xt.c:
9675         * event-Xt.c (x_to_emacs_keysym):
9676         * event-Xt.c (describe_event):
9677         * event-Xt.c (emacs_Xt_event_handler):
9678         * event-Xt.c (vars_of_event_Xt):
9679         * event-msw.c:
9680         * event-msw.c (mswindows_wnd_proc):
9681         * event-msw.c (vars_of_event_mswindows):
9682         rename {x,mswindows}-debug-events to debug-{}-events for
9683         consistency with other debug-foo variables.
9684
9685         * event-stream.c:
9686         document next-event more clearly.
9687
9688         * fileio.c (Ffile_name_directory):
9689         * fileio.c (Ffile_name_nondirectory):
9690         * fileio.c (Funhandled_file_name_directory):
9691         * fileio.c (file_name_as_directory):
9692         * fileio.c (Ffile_name_as_directory):
9693         * fileio.c (directory_file_name):
9694         * fileio.c (Fdirectory_file_name):
9695         * fileio.c (Fmake_temp_name):
9696         * fileio.c (Ffile_truename):
9697         * fileio.c (Fsubstitute_in_file_name):
9698         * fileio.c (expand_and_dir_to_file):
9699         * fileio.c (barf_or_query_if_file_exists):
9700         * fileio.c (check_executable):
9701         * fileio.c (Ffile_exists_p):
9702         * fileio.c (Ffile_writable_p):
9703         * fileio.c (Ffile_directory_p):
9704         * fileio.c (Ffile_regular_p):
9705         * fileio.c (Ffile_modes):
9706         * fileio.c (Ffile_newer_than_file_p):
9707         * fileio.c (Fverify_visited_file_modtime):
9708         * fileio.c (Fset_visited_file_modtime):
9709         * fileio.c (auto_save_1):
9710         (1). (2).
9711         fix up gcpro's.
9712
9713         * frame-msw.c:
9714         * frame-msw.c (mswindows_init_frame_1):
9715         * frame-msw.c (mswindows_enable_frame):
9716         * frame-msw.c (error_frame_unsizable):
9717         * frame-msw.c (msprinter_init_frame_1):
9718         * frame-msw.c (msprinter_init_frame_3):
9719         * frame-msw.c (console_type_create_frame_mswindows):
9720         (2).
9721         implement new enable/disable frame methods.
9722
9723         * frame-x.c:
9724         * frame-x.c (x_enable_frame):
9725         * frame-x.c (console_type_create_frame_x):
9726         implement new enable/disable frame methods.
9727
9728         * frame.c:
9729         * frame.c (Fdisable_frame):
9730         * frame.c (syms_of_frame):
9731         * frame.h (struct frame):
9732         implement new enable/disable frame methods/functions.
9733
9734         * general-slots.h:
9735         add initial-focus.
9736
9737         * glyphs-msw.c (mswindows_widget_instantiate):
9738         comment that initial-focus should be implemented.
9739
9740         * glyphs-widget.c:
9741         * glyphs-widget.c (check_valid_instantiator):
9742         * glyphs-widget.c (check_valid_orientation):
9743         * glyphs-widget.c (check_valid_tab_orientation):
9744         * glyphs-widget.c (check_valid_justification):
9745         * glyphs-widget.c (check_valid_border):
9746         * glyphs-widget.c (check_valid_callback):
9747         * glyphs-widget.c (check_valid_int_or_function):
9748         * glyphs-widget.c (check_valid_string_or_vector):
9749         * glyphs-widget.c (check_valid_item_list_1):
9750         * glyphs-widget.c (widget_validate):
9751         * glyphs-widget.c (combo_box_validate):
9752         * glyphs-widget.c (widget_instantiate):
9753         * glyphs-widget.c (syms_of_glyphs_widget):
9754         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9755         * glyphs-widget.c (image_instantiator_combo_box):
9756         * glyphs-widget.c (image_instantiator_scrollbar):
9757         * glyphs-widget.c (image_instantiator_tab_control):
9758         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9759         (2).
9760         support (unimplemented) keyword initial-focus.
9761         reindent long macros.
9762
9763         * glyphs-x.c (x_redisplay_widget):
9764         * glyphs-x.c (x_button_instantiate):
9765         * glyphs-x.c (x_button_redisplay):
9766         * glyphs-x.c (x_progress_gauge_instantiate):
9767         * glyphs-x.c (x_edit_field_instantiate):
9768         * glyphs-x.c (x_combo_box_instantiate):
9769         * glyphs-x.c (x_tab_control_instantiate):
9770         * glyphs-x.c (x_label_instantiate):
9771         * gui-x.c:
9772         * gui-x.c (button_item_to_widget_value):
9773         * gui-x.c (gui_items_to_widget_values_1):
9774         * gui-x.c (gui_item_children_to_widget_values):
9775         * gui-x.c (gui_items_to_widget_values):
9776         * gui-x.h:
9777         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9778         add new flag to gui-parsing routines to indicate whether
9779         accelerator specs should be supported.
9780
9781         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9782
9783         * glyphs.h (struct Lisp_Image_Instance):
9784         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9785         add initial-focus flag.
9786
9787         * gui.c:
9788         * gui.c (syms_of_gui):
9789         * gui.c (vars_of_gui):
9790         clean up menu-no-selection-hook.
9791
9792         * gui.h:
9793         support delete-dialog-box-hook.
9794
9795         * lread.c (Fload_internal):
9796         * lread.c (locate_file_in_directory_mapper):
9797         (1).
9798
9799         * lrecord.h:
9800         * lrecord.h (struct toolbar_button):
9801         * lrecord.h (syms_of_toolbar):
9802         document how to create a new object.
9803
9804         * menubar-msw.c (mswindows_char_is_accelerator):
9805         may be called on frames w/o menus.
9806
9807         * menubar.c (vars_of_menubar):
9808         clean up :filter docs.
9809
9810         * nt.c (readdir):
9811         * ntproc.c:
9812         (1).
9813
9814         * process-nt.c:
9815         * process-nt.c (validate_signal_number):
9816         * process-nt.c (signal_cannot_launch):
9817         * process-nt.c (nt_create_process):
9818         * process-nt.c (nt_send_process):
9819         * process-nt.c (nt_kill_child_process):
9820         * process-nt.c (nt_open_network_stream):
9821         * process-nt.c (syms_of_process_nt):
9822         (2).
9823         delete quote-handling.  call new lisp code that does it better.
9824
9825         * process-unix.c (connect_to_file_descriptor):
9826         * process-unix.c (allocate_pty):
9827         * process-unix.c (unix_send_process):
9828         * process-unix.c (unix_kill_child_process):
9829         * process-unix.c (unix_open_network_stream):
9830         * process-unix.c (unix_open_multicast_group):
9831         (1). (2).
9832
9833         * process.c:
9834         * process.c (Fstart_process_internal):
9835         (2).  need to canonicalize process path even if absolute.
9836
9837         * select-msw.c (symbol_to_ms_cf):
9838         * select-msw.c (ms_cf_to_symbol):
9839         * select-msw.c (cf_is_autofreed):
9840         * select-msw.c (mswindows_destroy_selection):
9841         * select.c:
9842         * select.c (syms_of_select):
9843         * select.h:
9844         support dibv5, fix bugs. (from Mike Alexander)
9845
9846         * select.c (Fget_selection_internal):
9847         * select.c (select_convert_out):
9848
9849         * sysdep.c:
9850         * sysdep.c (xemacs_stat):
9851         renamed.
9852
9853         * sysdep.c (mkdir):
9854         * sysdep.c (rmdir):
9855         but keep original stat() here because we provide encapsulation
9856         around these funs.
9857
9858         * sysfile.h:
9859         * sysfile.h (fstat):
9860         remove stat garbage.
9861
9862         * syswindows.h:
9863         fix X/MSW conflict.
9864         don't include tchar.h.  it's inappropriate because it makes
9865         compile-time distinctions when we want runtime distinctions.
9866         (we provide our own tchar replacements)
9867
9868         * toolbar.c:
9869         use default object printer for toolbar-button.
9870
9871         * unexcw.c:
9872         make sure we don't encapsulate.
9873
9874         * window.c (vars_of_window):
9875         emphasize that temp-buffer-show-hook is obsolete.
9876
9877 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9878
9879         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9880         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9881
9882         * events.c (Fevent_timestamp_lessp):
9883         Not 64-bit clean.  Use EMACS_INT, not int.
9884
9885 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9886
9887         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9888         unsigned int and changed the last enum to
9889         lrecord_type_last_built_in_type.
9890         (lrecord_implementations_table): changed prototype to know how
9891         long the array is supposed to be.
9892         (lrecord_type_count): new unsigned int to keep track of the
9893         current number of lisp lrecord types.
9894         (DEFINE_EXTERNAL_LRECORD):
9895         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9896         dynamic-modules to declare new lisp types. They are the same
9897         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9898         int for each new type, and increment lrecord_type_count by 1.
9899
9900         * alloc.c (lrecord_implementations_table): Changed to reference
9901         lrecord_type_last_built_in_type for the size of the array.
9902         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9903
9904 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9905
9906         * glyphs.h (check_valid_item_list): Renamed from
9907         check_valid_item_list_1.
9908
9909 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9910
9911         * select.c (Qselect_coerce): New.
9912         * select.c (Vselection_coercion_alist): New.
9913         * select.c (syms_of_select): Declare.
9914         * select.c (get-selection-internal): Use it.
9915         Use the new select-coerce functionality.
9916
9917         * select.c (select_coerce): New.
9918         * select.h (select_coerce): Declare.
9919         New function to coerce one type of data into another.
9920
9921 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9922
9923         * callproc.c (Fcall_process_internal):
9924         (Fcall_process_internal):
9925         * process-unix.c (unix_create_process):
9926         Save and restore the value of errno, so that error messages are accurate.
9927
9928 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9929
9930         * elhash.c (print_hash_table):
9931         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9932         Prettify docstrings and indentation.
9933
9934 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9935
9936         * window.c (Fwindow_pixel_edges): Subtract frame border and
9937         gutter size.
9938
9939 2000-07-31  Andy Piper  <andy@xemacs.org>
9940
9941         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9942         will acknowledge the change.
9943
9944         * glyphs.h: declare tab_control_order_only_changed.
9945
9946         * glyphs-x.c (x_tab_control_redisplay): use
9947         tab_control_order_only_changed.
9948
9949         * glyphs-widget.c (tab_control_order_only_changed): new function.
9950
9951         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9952         tab_control_order_only_changed.
9953
9954         * gui.c (gui_item_equal_sans_selected): new function.
9955         (gui_item_equal): use it.
9956
9957         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9958         :properties in favor of :items..
9959
9960         * glyphs-widget.c (check_valid_item_list): rename from
9961         check_valid_item_list_1.
9962         (check_valid_item_list_1): renamed.
9963         (combo_box_validate): deprecate :properties in favor of :items.
9964         (widget_instantiate): ditto.
9965         (tab_control_update): ditto.
9966         (image_instantiator_combo_box): ditto.
9967         (image_instantiator_tree_view): ditto.
9968         (image_instantiator_tab_control): ditto.
9969         (layout_post_instantiate): remove dead code.
9970
9971         * print.c (debug_print_no_newline): only write to debugger if in
9972         WIN32_NATIVE.
9973
9974         * elhash.c (Fmake_hash_table): update doc string.
9975
9976         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9977         messages whilst in GC. This at least stops XEmacs crashing but has
9978         the potential for wierd behaviour.
9979
9980 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9981
9982         * config.h.in:
9983         Make existence of s&m files optional.
9984
9985         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9986         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9987         * s/gnu.h: Remove HAVE_GETLOADAVG.
9988         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9989         * s/sol2.h: Remove HAVE_GETLOADAVG.
9990         * lisp.h: Remove getloadavg() declaration.
9991         * fns.c:
9992         Include <sys/loadavg.h> if available.
9993         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9994         * config.h.in:  Group together getloadavg()-related macros.
9995         Use only configure-time tests to detect getloadavg().
9996
9997 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9998
9999         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10000
10001 2000-07-25  Andy Piper  <andy@xemacs.org>
10002
10003         * syswindows.h: add tchar.h for native builds.
10004
10005         * frame.c (syms_of_frame): remove set-glyph-image.
10006
10007         * general-slots.h: add Qset_glyph_image.
10008
10009         * glyphs-widget.c (layout_update): add domain arg to
10010         set-glyph-image.
10011         (syms_of_glyphs_widget): remove set-glyph-image.
10012
10013 2000-07-23  Ben Wing  <ben@xemacs.org>
10014
10015         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10016         Vpopup_frame_list.
10017
10018 2000-07-22  Andy Piper  <andy@xemacs.org>
10019
10020         * symsinit.h: add syms_of_win32().
10021
10022         * gui-msw.c (syms_of_gui_mswindows): remove
10023         Fmswindows_shell_execute.
10024         (Fmswindows_shell_execute): moved to win32.c.
10025
10026         * emacs.c (main_1): add syms_of_win32 ().
10027
10028         * win32.c (init_potentially_nonexistent_functions): rewrite in
10029         compiler-friendly terms.
10030         (Fmswindows_shell_execute): move here from gui-msw.c.
10031         (syms_of_win32): new.
10032
10033         * device-msw.c (Fmswindows_printer_list): clean up args to
10034         EnumPrinters.
10035         Don't include tchar under cygwin or mingw.
10036         (msprinter_default_printer): make cygwin-friendly.
10037
10038 2000-07-21  Andy Piper  <andy@xemacs.org>
10039
10040         * glyphs-widget.c (image_instantiator_tree_view): use tab
10041         control's update function.
10042         (layout_property): new function. Retrieve items.
10043
10044         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10045         function. Re-populate the tree view from the pending items.
10046
10047         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10048         is designated the parent if the domain is an image instance. This
10049         is needed so that dirtiness can be cascade up the hierarchy and
10050         thus for layout children to be redisplayed correctly.
10051         (allocate_image_instance): rename glyph -> parent.
10052
10053         * redisplay.h: change redisplay_output_layout signature.
10054
10055         * redisplay-msw.c (mswindows_output_display_block): use domain
10056         arg.
10057
10058         * redisplay-x.c (x_output_display_block): use domain arg.
10059
10060 2000-07-10  Andy Piper  <andy@xemacs.org>
10061
10062         * window.c (Fset_window_configuration): add comment.
10063
10064         * redisplay-output.c (compare_runes):
10065         (redisplay_output_subwindow): redisplay rather than update subwindow.
10066         (redisplay_output_layout): ditto.
10067
10068         * redisplay-msw.c (mswindows_frame_output_end):
10069         (mswindows_frame_output_end): make defer window pos optional.
10070
10071         * lisp.h: add Flast.
10072
10073         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10074         normalize method. Change update method to be for changed
10075         instantiators. Add redisplay method. Change signature of layout
10076         method.
10077         (struct Lisp_Image_Instance): add instantiator.
10078         (IMAGE_INSTANCE_INSTANTIATOR): new.
10079         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10080         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10081         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10082
10083         * glyphs.c:
10084         (find_instantiator_differences): new function.
10085         (Fset_instantiator_property): new convenience function.
10086         (check_image_instance_structure): strictly check for vector
10087         instantiators.
10088         (normalize_image_instantiator): make non-static.
10089         (instantiate_image_instantiator): pass on dest_mask and use new
10090         signatures for image_instance_layout and friends.
10091         (mark_image_instance): mark the instantiator. Mark the subwindow
10092         face not the widget face.
10093         (image_instance_equal): add instantiator.
10094         (image_instance_hash): ditto.
10095         (allocate_image_instance): ditto.
10096         (Fset_image_instance_property): removed.
10097         (Fimage_instance_file_name): ditto.
10098         (Fcolorize_image_instance): ditto.
10099         (image_instance_layout): add offsets to be set.
10100         (update_image_instance): new function. update an image instance
10101         from its changed instantiator.
10102         (inherit_normalize): add dest_mask.
10103         (xbm_normalize): ditto.
10104         (xface_normalize): ditto.
10105         (xpm_normalize): ditto.
10106         (text_update): set_property -> update.
10107         (image_instantiate): use the glyph identity as a hash key, not the
10108         instantiator.
10109         (glyph_width): use new image_instance_layout signature.
10110         (glyph_ascent): ditto.
10111         (glyph_descent): ditto.
10112         (glyph_height): ditto.
10113         (glyph_query_geometry): ressurrect.
10114         (glyph_layout): ditto.
10115         (redisplay_subwindow): update -> redisplay.
10116         (syms_of_glyphs): add Fset_instantiator_property.
10117         (image_instantiator_format_create): set_property -> update.
10118
10119         * glyphs-x.c:
10120         (autodetect_normalize): add dest_maks to signature.
10121         (x_redisplay_subwindow): update -> redisplay.
10122         (x_redisplay_widget): ditto.
10123         (x_button_redisplay): ditto.
10124         (x_progress_gauge_redisplay): ditto.
10125         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10126         stacking order.
10127         (console_type_create_glyphs_x): update -> redisplay.
10128         (image_instantiator_format_create_glyphs_x): ditto.
10129
10130         * glyphs-widget.c:
10131         (check_valid_instantiator): disallow glyphs in the instantiator,
10132         they must now be vectors.
10133         (check_valid_instantiator_list): ditto.
10134         (glyph_instantiator_to_glyph): use internal symbol rather than
10135         intern.
10136         (widget_update): renamed from widget_set_property. Call cascaded
10137         update methods.
10138         (redisplay_widget): renamed from update_widget.
10139         (widget_layout): image_instance_layout now takes position as well
10140         as size.
10141         (widget_normalize): ditto.
10142         (widget_instantiate): ditto.
10143         (tab_control_query_geometry) ditto.:
10144         (tab_control_update): renamed from tab_control_set_property.
10145         (progress_gauge_update): set_property -> update.
10146         (layout_normalize): rewrite so that child instantiators are
10147         normalized also.
10148         (layout_update): new function. Create glyphs from the normalized
10149         children and cope with any other layout keywords. We do not
10150         instantiate children here that will be take care of by
10151         redisplay_output_layout.
10152         (layout_instantiate): call layout_update and not much else.
10153         (layout_post_instantiate): not sure whether this is needed
10154         anymore.
10155         (layout_query_geometry): query glyph geometry rather than
10156         image_instance geometry.
10157         (layout_layout): set offsets from pass in parameters. Use glyph
10158         geometry and layout functions rather than image instance ones.
10159         (native_layout_layout): ditto.
10160         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10161         (image_instantiator_widget): set_property -> update.
10162         (image_instantiator_buttons): ditto.
10163         (image_instantiator_progress_guage): ditto.
10164         (image_instantiator_tab_control): ditto.
10165         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10166         (image_instantiator_layout): add update method.
10167
10168         * glyphs-msw.c (bmp_normalize):
10169         (mswindows_resource_normalize): add dest_mask so that it can be
10170         proprogated by layout_normalize.
10171         (begin_defer_window_pos): make optional because it may not be the
10172         right thing to do and it introduces differences with X.
10173         (mswindows_unmap_subwindow): ditto.
10174         (mswindows_map_subwindow): ditto.
10175         (mswindows_redisplay_subwindow): renamed from
10176         mswindows_update_subwindow.
10177         (mswindows_redisplay_widget): ditto.
10178         (mswindows_button_redisplay): renamed from
10179         mswindows_button_update. Update is now what the instantiation
10180         function does for a changed instantiator.
10181         (mswindows_progress_gauge_instantiate): set the progress value
10182         here if appropriate.
10183         (mswindows_tab_control_redisplay): cope with re-ordering of the
10184         members of the tab widget by simply selecting the new top
10185         widget. This makes things appear ok if you click on a tab.
10186         (mswindows_combo_box_instantiate): image_instance_layout now takes
10187         position as well as size.
10188         (mswindows_progress_gauge_redisplay): renamed from
10189         mswindows_progress_gauge_update.
10190         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10191         (image_instantiator_format_create_glyphs_mswindows): ditto.
10192
10193         * glyphs-eimage.c (jpeg_normalize):
10194         (gif_normalize):
10195         (png_normalize):
10196         (tiff_normalize): add dest_mask so that it can be proprogated by
10197         layout_normalize.
10198
10199         * elhash.c:
10200         (print_hash_table):
10201         (hash_table_weakness_validate):
10202         (decode_hash_table_weakness):
10203         (Fhash_table_weakness):
10204         (Fhash_table_type):
10205         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10206
10207         * console.h (struct console_methods): move update_* to
10208         redisplay_*.
10209
10210 2000-07-20  Ben Wing  <ben@xemacs.org>
10211
10212         * *.[ch] (XSETOBJ): remove unused middle argument.
10213         lisp-disunion.h: correct wrap_object() to one argument.
10214
10215 2000-07-15  Ben Wing  <ben@xemacs.org>
10216
10217         * s/cygwin32.h:
10218         * s/cygwin32.h (CYGWIN_CONV_PATH):
10219         Add missing logb prototype for v1.1.
10220         Use post-b20 names and alias to pre-b20 names when pre-b20.
10221
10222         * s/windowsnt.h: [5].
10223
10224 2000-07-15  Ben Wing  <ben@xemacs.org>
10225
10226         * Makefile.in.in (x_objs):
10227         * Makefile.in.in (sheap_objs):
10228         * Makefile.in.in (objs):
10229         added win32.o, cosmetic cleanups.
10230
10231         * alloc.c (Fmake_byte_code):
10232         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10233         etc. macros which declare their own args now.
10234
10235         * alloc.c (syms_of_alloc):
10236         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10237
10238         * buffer.c:
10239         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10240
10241         * buffer.c (Fget_file_buffer):
10242         Fixed GCPRO problem.
10243
10244         * buffer.c (get_truename_buffer):
10245         Fixed comment about GC checking.
10246
10247         * buffer.c (syms_of_buffer):
10248         Undeclared those dedicated frame funs.
10249         [2].
10250
10251         * buffer.h:
10252         Define convenience macros for internal/external conversions.
10253         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10254         and Qenvironment_variable_encoding for cleaner code.
10255
10256         * bufslots.h:
10257         Remove dedicated-frame; in lisp.
10258
10259         * bytecode.c (funcall_compiled_function):
10260         [1].
10261
10262         * bytecode.c (syms_of_bytecode):
10263         [2].
10264
10265         * console-msw.c:
10266         * console-msw.c (mswindows_show_console): Rewrote.
10267
10268         * console-msw.c (Fmswindows_debugging_output): New.
10269         Sends to OutputDebugString (special MSWin debugger interface).
10270
10271         * console-msw.c (Fmswindows_message_box):
10272         Fixed stupid bugs so it works when called from kill-emacs.
10273
10274         * console-msw.c (syms_of_console_mswindows):
10275         Declare Fmswindows_debugging_output.
10276
10277         * console-msw.h:
10278         New MSWin prototypes.
10279
10280         * console-msw.h (struct mswindows_frame):
10281         New entry last-click-mods for improved button-modifier support.
10282
10283         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10284         New struct entry `popup' with corresponding accessor.
10285
10286         * console-x.c:
10287         * console-x.c (split_up_display_spec):
10288         * console-x.c (get_display_arg_connection):
10289         * console-x.c (x_semi_canonicalize_console_connection):
10290         * console-x.c (x_canonicalize_device_connection):
10291         [[[6]]]: Change char to more specific type.
10292         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10293
10294         * console-x.c (x_semi_canonicalize_console_connection):
10295         * console-x.c (x_canonicalize_device_connection):
10296         [[[9]]]: Fix up error signalling to use new structured error system.
10297
10298         * console-x.h:
10299         [[[4]]]: Define codesys aliases:
10300         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10301         Qx_color_name_encoding, Qx_display_name_encoding.
10302
10303         * console.h (struct console_methods):
10304         New method make_dialog_box_internal supersedes older
10305         popup_dialog_box method.
10306
10307         * data.c:
10308         Define many new errors, part of new structured errors.
10309
10310         * data.c (init_errors_once_early):
10311         * data.c (syms_of_data):
10312         [2].
10313
10314         * device-msw.c (mswindows_init_device):
10315         [[[5]]]: Cleanup to support NT 3.51.
10316
10317         * device-msw.c (decode_devmode): Cleanup.
10318
10319         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10320         * device-msw.c (mswindows_handle_print_dialog_box):
10321         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10322         * device-msw.c (syms_of_device_mswindows):
10323         Delete the dialog box primitives recently introduced by Kirill and
10324         instead interface to general dialog box interface.
10325
10326         * device-x.c:
10327         * device-x.c (compute_x_app_name):
10328         * device-x.c (x_init_device):
10329         * device-x.c (Fx_valid_keysym_name_p):
10330         * device-x.c (Fx_set_font_path):
10331         [6].
10332         [7].
10333
10334         * device.h (wrap_device): New.
10335         First of its kind; meant to replace XSETDEVICE.
10336
10337         * dialog-msw.c: Many file-dialog symbols.
10338
10339         * dialog-msw.c (mswindows_register_popup_frame): New.
10340         * dialog-msw.c (mswindows_is_dialog_msg): New.
10341         For supporting kbd traversal in dialog boxes.
10342
10343         * dialog-msw.c (dialog_proc):
10344         Support hitting ESC in dialogs.
10345
10346         * dialog-msw.c (struct):
10347         Common dialog box errors.
10348
10349         * dialog-msw.c (handle_file_dialog_box): New.
10350         Add file dialog code.
10351
10352         * dialog-msw.c (handle_question_dialog_box):
10353         Redo existing code to support new question dialog syntax.
10354
10355         * dialog-msw.c (console_type_create_dialog_mswindows):
10356         We support new dialog console method.
10357
10358         * dialog-msw.c (syms_of_dialog_mswindows):
10359         * dialog-msw.c (vars_of_dialog_mswindows):
10360         New file dialog symbols, vars.
10361
10362         * dialog-x.c:
10363         * dialog-x.c (maybe_run_dbox_text_callback):
10364         * dialog-x.c (dbox_descriptor_to_widget_value):
10365         * dialog-x.c (x_make_dialog_box_internal):
10366         * dialog-x.c (console_type_create_dialog_x):
10367         Mule-ize entire file.
10368         Redo to support question dialog syntax.
10369         [6].
10370
10371         * dialog.c:
10372         * dialog.c (Fmake_dialog_box_internal):
10373         * dialog.c (syms_of_dialog):
10374         Kill old popup-dialog-box, replace with new primitive.
10375         Just call device method or signal error.
10376
10377         * eldap.c (Fldap_open):
10378         * eldap.c (Fldap_search_basic):
10379         * eldap.c (Fldap_add):
10380         * eldap.c (Fldap_modify):
10381         [1].
10382         [7].
10383
10384         * emacs.c:
10385         * emacs.c (make_arg_list_1):
10386         * emacs.c (make_arg_list):
10387         Mule-ize call to dll_init().
10388         [6].
10389         [8].
10390
10391         * emacs.c (make_argc_argv):
10392         * emacs.c (free_argc_argv):
10393         * emacs.c (init_cmdargs):
10394         * emacs.c (main_1):
10395         * emacs.c (Fkill_emacs):
10396         * emacs.c (Fdump_emacs):
10397         Update comments about what can be used in syms_* etc.
10398         Call init_win32() when necessary.
10399         Fix up MS Win dialog box in kill-buffer to actually work right.
10400         [7].
10401
10402         * eval.c:
10403         * eval.c (For):
10404         * eval.c (Fand):
10405         * eval.c (Fprogn):
10406         * eval.c (Fprog1):
10407         * eval.c (Fprog2):
10408         * eval.c (FletX):
10409         * eval.c (Flet):
10410         * eval.c (condition_case_3):
10411         * eval.c (Feval):
10412         * eval.c (function_argcount):
10413         * eval.c (funcall_lambda):
10414         [1].
10415
10416         * eval.c (type_error): New.
10417         * eval.c (maybe_type_error): New.
10418         * eval.c (continuable_type_error): New.
10419         * eval.c (maybe_continuable_type_error): New.
10420         * eval.c (type_error_with_frob): New.
10421         * eval.c (maybe_type_error_with_frob): New.
10422         * eval.c (continuable_type_error_with_frob): New.
10423         * eval.c (maybe_continuable_type_error_with_frob): New.
10424         New functions for use with structured errors.
10425
10426         * event-Xt.c:
10427         * event-Xt.c (x_event_to_emacs_event):
10428         Buttons are now modifiers too.
10429
10430         * event-Xt.c (emacs_Xt_current_event_timestamp):
10431         Implement new event method.
10432         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10433
10434         * event-msw.c:
10435         * event-msw.c (ntpipe_shove_writer): [5].
10436         * event-msw.c (mswindows_enqueue_mouse_button_event):
10437         * event-msw.c (mswindows_drain_windows_queue):
10438         * event-msw.c (mswindows_wnd_proc): [7].
10439         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10440         * event-msw.c (mswindows_modifier_state):
10441         Throughout: support new button modifiers.
10442
10443         * event-msw.c (emacs_mswindows_current_event_timestamp):
10444         Implement new event method.
10445         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10446
10447         * event-stream.c:
10448         * event-stream.c (event_stream_current_event_timestamp): New.
10449         * event-stream.c (maybe_kbd_translate): New functionality.
10450         * event-stream.c (vars_of_event_stream):
10451         Document new kbd-translate-table functionality.
10452
10453         * event-stream.c (Fcurrent_event_timestamp): New.
10454         New primitive for use in fabricated events.
10455         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10456
10457         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10458
10459         * events.c:
10460         * events.c (Fmake_event):
10461         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10462         [1].
10463         [9].
10464
10465         * events.c (format_event_object): fix gcc warnings.
10466
10467         * events.c (Fevent_timestamp): Document new primitives.
10468
10469         * events.c (TIMESTAMP_HALFSPACE): New.
10470
10471         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10472         comparing timestamps correctly (half-space algorithm).
10473
10474         * events.c (Fevent_modifier_bits): Doc fix.
10475
10476         * events.c (Fevent_modifiers): Major doc addition.
10477         * events.c (event_x_y_pixel_internal): Typo fix.
10478         * events.c (syms_of_events): Declare new primitives.
10479
10480         * events.h:
10481         Update long comment for button modifiers, timestamps.
10482
10483         * events.h (struct event_stream):
10484         New current_event_timestamp method.
10485
10486         * extents.c:
10487         * extents.c (extent_in_region_p):
10488         * extents.c (decode_extent):
10489         * extents.c (Fset_extent_parent):
10490         * extents.c (decode_map_extents_flags):
10491         Fix gcc warnings.
10492         [9].
10493
10494         * extents.c (struct extent_at_arg):
10495         * extents.c (decode_extent_at_flag):
10496         * extents.c (extent_at_mapper):
10497         * extents.c (extent_at_bytind):
10498         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10499         * extents.c (Fextents_at): New primitive. [9].
10500         * extents.c (symbol_to_glyph_layout): [9].
10501         Support new primitive `extents-at'.
10502
10503
10504         * extents.c (get_text_property_bytind):
10505         extent_at_bytind has another arg.
10506         [9].
10507
10508         * extents.c (syms_of_extents): New primitive.
10509
10510         * file-coding.c (Fmake_coding_system): [1].
10511         * file-coding.c (subsidiary_coding_system): fix gcc warning
10512         * file-coding.c (syms_of_file_coding): [2].
10513
10514         * fileio.c (Fexpand_file_name):
10515         * fileio.c (Fsysnetunam):
10516         * fileio.c (Ffile_exists_p):
10517         * fileio.c (Ffile_executable_p):
10518         * fileio.c (Fverify_visited_file_modtime):
10519         Clean up GCPROing.
10520
10521         * fileio.c (syms_of_fileio): [2].
10522
10523         * filelock.c (lock_file_1):
10524         * filelock.c (current_lock_owner):
10525         * filelock.c (lock_if_free):
10526         * filelock.c (lock_file):
10527         * filelock.c (unlock_file):
10528         Clean up GCPROing.
10529
10530         * fns.c (concat): Fix gcc warning.
10531
10532         * fns.c (Fmember):
10533         * fns.c (Fold_member):
10534         * fns.c (Fmemq):
10535         * fns.c (Fold_memq):
10536         * fns.c (memq_no_quit):
10537         * fns.c (Fassoc):
10538         * fns.c (Fold_assoc):
10539         * fns.c (Fassq):
10540         * fns.c (Fold_assq):
10541         * fns.c (assq_no_quit):
10542         * fns.c (Frassoc):
10543         * fns.c (Fold_rassoc):
10544         * fns.c (Frassq):
10545         * fns.c (Fold_rassq):
10546         * fns.c (rassq_no_quit):
10547         * fns.c (Fdelete):
10548         * fns.c (Fold_delete):
10549         * fns.c (Fdelq):
10550         * fns.c (Fold_delq):
10551         * fns.c (delq_no_quit):
10552         * fns.c (Fremassoc):
10553         * fns.c (Fremassq):
10554         * fns.c (remassq_no_quit):
10555         * fns.c (Fremrassoc):
10556         * fns.c (Fremrassq):
10557         * fns.c (remrassq_no_quit):
10558         * fns.c (Freverse):
10559         * fns.c (mapcar1):
10560         [1].
10561
10562         * frame-msw.c (mswindows_init_frame_1):
10563         * frame-msw.c (mswindows_delete_frame):
10564         Register popups with dialog code so keyboard traversing works.
10565
10566         * frame-tty.c (tty_raise_frame_no_select): [1].
10567
10568         * frame-x.c:
10569         * frame-x.c (x_set_frame_text_value):
10570         * frame-x.c (x_set_frame_properties):
10571         * frame-x.c (x_create_widgets):
10572         [7].
10573
10574         * frame.c:
10575         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10576
10577         * frame.h (wrap_frame): New.
10578         Macro like wrap_device.
10579
10580         * general.c:
10581         * general.c (SYMBOL):
10582         * general.c (syms_of_general):
10583         Major reorg.  This is now just a wrapper and symbols themselves
10584         are listed in general-slots.h.
10585
10586         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10587         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10588
10589         * glyphs-msw.c (mswindows_native_layout_instantiate):
10590         Add DS_CONTROL so keyboard traversal will work.
10591
10592         * glyphs-widget.c:
10593         * glyphs-widget.c (syms_of_glyphs_widget):
10594         Move some symbols to general-slots.h.
10595
10596         * glyphs-x.c:
10597         * glyphs-x.c (xbm_instantiate_1):
10598         * glyphs-x.c (x_xbm_instantiate):
10599         * glyphs-x.c (x_xface_instantiate):
10600         * glyphs-x.c (autodetect_instantiate):
10601         * glyphs-x.c (cursor_font_instantiate):
10602         * glyphs-x.c (x_update_widget):
10603         * glyphs-x.c (x_widget_instantiate):
10604         * glyphs.c (bitmap_to_lisp_data):
10605         * glyphs.c (pixmap_to_lisp_data):
10606         [7].
10607
10608         * glyphs.c (syms_of_glyphs):
10609         [2].
10610
10611         * gui-x.c:
10612         * gui-x.c (print_widget_value):
10613         * gui-x.c (menu_separator_style_and_to_external):
10614         * gui-x.c (add_accel_and_to_external):
10615         * gui-x.c (button_item_to_widget_value):
10616         * gui-x.c (gui_items_to_widget_values_1):
10617         * gui-x.c (gui_items_to_widget_values):
10618         * gui-x.c (syms_of_gui_x):
10619         * gui-x.c (vars_of_gui_x):
10620         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10621         [9].
10622
10623         * gui-x.h:
10624         Muleize, prototype changes matching gui-x.c.
10625
10626         * gui.c:
10627         * gui.c (separator_string_p):
10628         * gui.c (gui_item_add_keyval_pair):
10629         * gui.c (make_gui_item_from_keywords_internal):
10630         * gui.c (signal_too_long_error):
10631         * gui.c (parse_gui_item_tree_item):
10632         * gui.c (syms_of_gui):
10633         * gui.c (vars_of_gui):
10634         * gui.h:
10635         menu-no-selection-hook moved here (used by MSWin).
10636         Move some symbols to general-slots.h.
10637         [6].
10638         [9].
10639
10640         * insdel.c (get_buffer_pos_char):
10641         * insdel.c (get_buffer_range_char):
10642         Add GC comments.
10643
10644         * keymap.c (keymap_lookup_directly):
10645         * keymap.c (keymap_store):
10646         * keymap.c (ensure_meta_prefix_char_keymapp):
10647         * keymap.c (describe_map):
10648         * keymap.h:
10649         Support new button modifiers.
10650
10651         * lisp-disunion.h (wrap_object):
10652         * lisp-disunion.h (XSETOBJ):
10653         Rename make_obj to wrap_object.
10654
10655         * lisp-union.h:
10656         * lisp-union.h (make_int):
10657         * lisp-union.h (make_char):
10658         Support wrap_object.
10659
10660         * lisp.h:
10661         * lisp.h (LIST_LOOP):
10662         * lisp.h (EXTERNAL_LIST_LOOP):
10663         * lisp.h (LIST_LOOP_2):
10664         * lisp.h (EXTERNAL_LIST_LOOP_1):
10665         * lisp.h (EXTERNAL_LIST_LOOP_2):
10666         * lisp.h (EXTERNAL_LIST_LOOP_3):
10667         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10668         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10669         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10670         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10671         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10672         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10673         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10674         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10675         * lisp.h (struct Lisp_Symbol):
10676         * lisp.h (maybe_continuable_error_with_frob):
10677         Fix up section comments.
10678         Add new types for char to indicate usage.
10679         Delete symbols auto-generated from general-slots.h.
10680         Add prototypes for structured error functions.
10681         Add long comments describing looping macros and change interface
10682         so that lvalues are automatically declared.
10683         Add NO_DECLARE macro in case callers want to declare lvalues
10684         themselves.
10685
10686         * lread.c (read_syntax_error):
10687         * lread.c (continuable_read_syntax_error):
10688         * lread.c (read_structure):
10689         * lread.c (sequence_reader):
10690         * lread.c (read_list_conser):
10691         * lread.c (read_compiled_function):
10692         Rename syntax_error and continuable_syntax_error to avoid clash
10693         with same-named structured error functions.
10694
10695         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10696         * menubar-msw.c (populate_menu_add_item):
10697         * menubar-msw.c (populate_or_checksum_helper):
10698         [5].
10699         [9].
10700
10701         * menubar-x.c:
10702         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10703         Mule-ize whole file.
10704
10705         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10706
10707         * mule-charset.c (Fmake_charset):
10708         * mule-wnnfns.c (Fwnn_set_param):
10709         [1].
10710
10711         * ntproc.c (create_child):
10712         * ntproc.c (Fwin32_set_current_locale):
10713         Add comments portending doom.
10714
10715         * objects-msw.c:
10716         * objects-msw.c (old_font_enum_callback_2):
10717         * objects-msw.c (font_enum_callback_1):
10718         * objects-msw.c (mswindows_enumerate_fonts):
10719         [5].
10720
10721         * objects-x.c:
10722         * objects-x.c (allocate_nearest_color):
10723         * objects-x.c (x_parse_nearest_color):
10724         * objects-x.c (x_initialize_color_instance):
10725         * objects-x.c (x_print_color_instance):
10726         * objects-x.c (x_finalize_color_instance):
10727         * objects-x.c (x_valid_color_name_p):
10728         * objects-x.c (x_initialize_font_instance):
10729         * objects-x.c (x_print_font_instance):
10730         * objects-x.c (valid_x_font_name_p):
10731         * objects-x.c (truename_via_FONT_prop):
10732         * objects-x.c (truename_via_random_props):
10733         * objects-x.c (truename_via_XListFonts):
10734         * objects-x.c (x_font_truename):
10735         * objects-x.c (x_font_instance_truename):
10736         * objects-x.c (x_font_instance_properties):
10737         * objects-x.c (x_list_fonts):
10738         * objects-x.c (x_find_charset_font):
10739         Mule-ize entire file.
10740         [7].
10741
10742         * objects-x.h:
10743         Mule-verify.
10744
10745         * print.c:
10746         * print.c (std_handle_out_external):
10747         * print.c (debug_print_no_newline):
10748         * print.c (syms_of_print):
10749         Output to all debugger kinds in debug-print.
10750         Fix console-output code under MSWin to actually work.
10751
10752         * process-nt.c (send_signal):
10753         * process-nt.c (nt_create_process):
10754         Use newer Unicode macros.
10755
10756         * process-unix.c (unix_create_process):
10757         * process-unix.c (unix_canonicalize_host_name):
10758         * process-unix.c (unix_open_network_stream):
10759         [7].
10760
10761         * scrollbar-x.c:
10762         Mule-verify.
10763
10764         * search.c (syms_of_search):
10765         [2].
10766
10767         * select-msw.c (mswindows_destroy_selection):
10768         Use LIST_LOOP_2.
10769
10770         * select-x.c (symbol_to_x_atom):
10771         [7].
10772
10773         * select.c (syms_of_select):
10774         [2].
10775
10776         * sound.c (Fplay_sound_file):
10777         [7].
10778
10779         * specifier.c:
10780         * specifier.c (decode_specifier_type):
10781         * specifier.c (Fvalid_specifier_locale_type_p):
10782         * specifier.c (check_valid_locale_or_locale_type):
10783         * specifier.c (decode_locale):
10784         * specifier.c (decode_locale_type):
10785         * specifier.c (decode_locale_list):
10786         * specifier.c (check_valid_domain):
10787         * specifier.c (decode_specifier_tag_set):
10788         * specifier.c (Fcanonicalize_tag_set):
10789         * specifier.c (Fdefine_specifier_tag):
10790         * specifier.c (Fspecifier_tag_predicate):
10791         * specifier.c (check_valid_inst_list):
10792         * specifier.c (check_valid_spec_list):
10793         * specifier.c (decode_how_to_add_specification):
10794         * specifier.c (check_modifiable_specifier):
10795         * specifier.c (specifier_add_spec):
10796         * specifier.c (boolean_validate):
10797         * specifier.c (display_table_validate):
10798         [9].
10799
10800         * specifier.c (syms_of_specifier):
10801         Move some symbols to general-slots.h.
10802         [2].
10803
10804         * symbols.c:
10805         * symbols.c (Fmapatoms):
10806         * symbols.c (Fapropos_internal):
10807         Add GCPROs.
10808
10809         * symbols.c (set_default_buffer_slot_variable):
10810         * symbols.c (set_default_console_slot_variable):
10811         [1].
10812
10813         * symbols.c (defsymbol_massage_name_1):
10814         * symbols.c (defkeyword_massage_name):
10815         * symbols.c (deferror_1):
10816         * symbols.c (deferror):
10817         * symbols.c (deferror_massage_name_and_message):
10818         * symeval.h:
10819         * symeval.h (DEFSYMBOL):
10820         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10821
10822         * symbols.c (syms_of_symbols):
10823         [2].
10824
10825         * symsinit.h:
10826         * symsinit.h (init_win32): New.
10827         Also new is syms_of_dialog_mswindows.
10828
10829         * syswindows.h:
10830         Add new Unicode macros, missing Cygwin wide-char functions,
10831         convenience conversion macros for Qmswindows_tstr, macros for
10832         encapsulating required MSWin <-> Cygwin filename conversions,
10833         prototype for dynamically-extracted (not in NT 3.51) functions.
10834
10835         * toolbar-x.c:
10836         Mule-verify.
10837
10838         * tooltalk.c (Fadd_tooltalk_message_arg):
10839         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10840         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10841         [7].
10842
10843         * tooltalk.c (syms_of_tooltalk):
10844         [2].
10845
10846         * unexnt.c:
10847         * unexnt.c (unexec):
10848         Fix up headers, declaration of unexec() to be more standard.
10849
10850 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10851
10852         * offix.h: Revert change to guard macros - they're used in offix.c!
10853
10854 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10855
10856         * lisp.h: Defsubred Fdelete.
10857
10858         * console-msw.h:  (msprinter_default_printer): Added.
10859
10860         * console-msw.c (msprinter_canonicalize_console_connection):
10861         (msprinter_canonicalize_device_connection): Added.
10862
10863         * device-msw.c (msprinter_default_printer):
10864         (Fmswingows_get_default_printer):
10865         (signal_enum_priner_error):
10866         (Fmswingows_printer_list): Added.
10867
10868 2000-07-19  Martin Buchholz <martin@xemacs.org>
10869
10870         * XEmacs 21.2.35 is released.
10871
10872 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10873
10874         * select-x.c (x_handle_selection_request):
10875         Text selected in xemacs and pasted into xterm failed to appear.
10876         Spelling fixes and cosmetic changes.
10877
10878 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10879
10880         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10881         XEmacs frame (fix for doubling chars in dialog boxes).
10882
10883 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10884
10885         * select.c (select_convert_in, select_convert_out):
10886         Don't call intern() every time.
10887
10888         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10889         * select.c (vars_of_select): Initialise them.
10890
10891 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10892
10893         * select.c (selection-coercible-types): New.
10894
10895         * select.c (own-selection-internal):
10896         * select.c (get-selection-internal):
10897         MULE bug fix - these should default to COMPOUND_TEXT and not
10898         STRING for MULE. I think.
10899
10900         * select.c (select_convert_out): Use selection-coercible-types
10901         to find types that we can attempt to perform coercions on.
10902
10903 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10904
10905         * mule-wnnfns.c:
10906         * mule-canna.c:
10907         Add coding: cookie to identify encoding.
10908
10909         * mule-canna.c (CANNA_mode_keys): make static.
10910         Use proper prototypes, even for functions of no arguments.
10911         Remove external prototype for Fding().
10912
10913         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10914
10915         * select.c (syms_of_select): Add missing DEFSUBR.
10916
10917 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10918
10919         * select.c (get_selection_internal, own_selection_internal):
10920         Make the type default to STRING, rather than placing a nil type
10921         into Vselection_alist.
10922
10923 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10924
10925         * gpmevent.c (tty_selection_exists_p):
10926         * gpmevent.c (tty_own_selection):
10927         Updated parameter lists.
10928
10929 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10930
10931         * select.h (selection-alist): Removed declaration.
10932
10933         * select.h (get_local_selection):
10934         * select.c (get_local_selection):
10935         Made static.
10936
10937         * select.h (convert_selection): Removed declaration.
10938         * select.c (convert_selection): Removed.
10939         This function belongs in Lisp.
10940
10941         * select.h (select_convert_in): Declare.
10942         * select.h (select_convert_out): Declare.
10943         * select.c (select_convert_in): New.
10944         * select.c (select_convert_out): New.
10945         New conversion functions for other files to call.
10946
10947         * select.h (select_notify_buffer_kill): Declare.
10948         * select.c (select_notify_buffer_kill): New.
10949         New functions that get called from kill-buffer.
10950
10951         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10952         X-specific lisp code.
10953
10954         * select.h: Declare some of the lisp-visible functions for
10955         external use.
10956
10957         * select.c (clean_local_selection_data): Removed. This was
10958         a disgusting function, and previously should have been in
10959         select-x.c in any case. The functionality is now provided
10960         in select-convert-from-integer (select.el).
10961
10962         * select.c (available-selection-types): Fixed stupidity where
10963         INTEGER and ATOM got added twice. Also add STRING when we see an
10964         extent.
10965
10966         * select.c (get-selection-internal): Removed symbol stripping. No
10967         longer causes conversion when data comes from the internal cache.
10968
10969         * select.c (syms_of_select): Added new functions.
10970
10971         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10972         error checking - previously this called abort!
10973
10974         * select-x.c (x_own_selection): Changed comment.
10975
10976         * select-x.c (x_handle_selection_request): Use select_convert_out.
10977         Don't mess with selection-alist; it's an internal variable of select.c.
10978
10979         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10980
10981         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10982         rather than messing with selection-alist.
10983
10984         * select-msw.c (mswindows_get_foreign_selection):
10985         Use TO_INTERNAL_FORMAT rather than hacking.
10986
10987 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10988
10989         * process-unix.c (unix_open_multicast_group):
10990         (unix_open_multicast_group): Remove useless casts.
10991
10992 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10993
10994         * sound.c (Fplay_sound): Fix `unused variable' warning.
10995
10996         * emacs.c (main): Use correct type for _environ on SCO5.
10997
10998 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10999
11000         * console.h (own_selection_method):
11001         * console.h (selection_exists_p_method):
11002         * console.h (available_selection_types_method): New.
11003         * console.h (register_selection_data_type_method): New.
11004         * console.h (selection_data_type_name): New.
11005
11006         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11007         function & alist to track GlobalAlloc()'d handles that need
11008         releasing when the clipboard data gets replaced or emptied.
11009
11010         * event-msw.c (mswindows_wnd_proc): Call it.
11011
11012         * lisp.h, general.c (Qappend): New symbol representing a
11013         `how-to-add' mode.
11014
11015         * select.c (own-selection-internal):
11016         * select.c (selection-exists-p):
11017         * select.c (available-selection-types): New.
11018         * select.c (register-selection-data-type): New.
11019         * select.c (selection-data-type-name): New.  New functions to deal
11020         with device-specific selection data formats.
11021         * select.c (selection-converter-out-alist): Renamed.
11022         * select.c (selection-converter-in-alist): New.
11023         * select.c (selection-appender-alist): New.  Added new alists.
11024         * select.c (syms_of_select, vars_of_select): Added new symbols &
11025         variables.
11026         * select.c (get_local_selection): Split.
11027         * select.c: Removed spurious type checking - selections may now be
11028         of any type, not just strings.
11029         * select.c (own-selection-internal):
11030
11031         * select.h, select.c (convert_selection): New. Created
11032         convert_selection() function based on get_local_selection().
11033         * select.h, select.c (QCF_*): New symbols representing mswindows
11034         clipboard formats.
11035         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11036         symbols representing `how-to-add' modes.
11037
11038         * select-msw.c (x_sym_p): New.
11039         * select-msw.c (symbol_to_ms_cf): New.
11040         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11041         symbols & clipboard formats. Can also handle string names.
11042         * select-msw.c (mswindows_own_selection):
11043         * select-msw.c (mswindows_selection_exists_p):
11044         Added `data-type' parameter. Use it.
11045         * select-msw.c (mswindows_available_selection_types): New.
11046         * select-msw.c (mswindows_register_selection_data_type): New.
11047         * select-msw.c (mswindows_selection_data_type_name): New.
11048         * select-msw.c (mswindows_own_selection):
11049         * select-msw.c (mswindows_get_foreign_selection):
11050         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11051         * select-msw.c (console_create_select_mswindows): Added new methods.
11052         * select-msw.c (mswindows_destroy_selection): New.
11053         * select-msw.c (Vhandle_alist): New list.
11054         * select-msw.c (mswindows_own_selection):
11055
11056         * select-x.c (x_own_selection):
11057         * select-x.c (x_selection_exists_p):
11058         * select-x.c: Added some comments about maybe using new
11059         functionality.
11060         * select-x.c (x_own_selection):
11061
11062         * specifier.c: Remove definition of Qappend (now in general.c)
11063         * specifier.c (syms_of_specifier): Remove Qappend.
11064
11065 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11066
11067         * config.h.in: Add socklen_t.
11068
11069         * s/decosf4-0.h: No special compiler flags needed or desired.
11070         In particular, undefine _BSD for DEC OSF 4.0.
11071
11072 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11073
11074         * redisplay-msw.c (msprinter_frame_output_end): Added.
11075         (console_type_create_redisplay_mswindows): Referred the above.
11076
11077         * frame.c (setup_frame_without_minibuffer): Do not create a
11078         default minibuffer frame on a printer device.
11079
11080         * frame-msw.c (apply_dc_geometry): Added.
11081         (msprinter_start_page):
11082         (msprinter_init_frame_3):
11083         (msprinter_eject_page): Use it.
11084
11085         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11086         and removed residual duplex and orientation properties.
11087
11088 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11089
11090         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11091
11092         * unexalpha.c: Remove system prototypes from C sources!
11093
11094 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11095
11096         * eval.c: Remove references to M-x edit-options in DEFUNs for
11097         `defvar' and `defconst'.
11098
11099 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11100
11101         * config.h.in: Remove SMART_INCLUDE hackery.
11102
11103         PostgreSQL hacking:
11104         * config.h.in: Don't use SMART_INCLUDE.
11105
11106         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11107         * inline.c: Simply #include "postgresql.h"
11108         * postgresql.c:
11109         - Don't use SMART_INCLUDE
11110         - Use simply "const".
11111         - Use standard doc string conventions.
11112         - Use correct type for result of PQstatus.
11113
11114 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11115
11116         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11117
11118         C++ compilation changes.
11119         * config.h.in (EXTERN_C): Define.
11120         * config.h.in (not): This is also a C++ keyword.
11121         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11122         * cm.c: Use EXTERN_C.
11123         * redisplay-tty.c: Use EXTERN_C.
11124         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11125
11126 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11127
11128         * general.c: Remove duplicate definition for Qfunction.
11129
11130 2000-07-08  Ben Wing  <ben@xemacs.org>
11131
11132         * device-msw.c (msprinter_init_device):
11133         * device-msw.c (sync_printer_with_devmode):
11134         * device-msw.c (handle_devmode_changes):
11135         * device-msw.c (print_dialog_worker):
11136         * device-msw.c (Fmsprinter_apply_settings):
11137         * device-msw.c (hash_devmode):
11138         * device-msw.c (Fmsprinter_settings_despecialize):
11139         use Qmswindows_tstr, not Qctext.
11140
11141         * vm-limit.c (check_memory_limits):
11142         avoid infinite loop printing warning messages.
11143
11144 2000-07-05  Craig Lanning  <lanning@scra.org>
11145
11146         * Makefile.in.in: Add support for including the Windows resources
11147         when building with the cygwin and mingw targets.
11148
11149         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11150         not set or not correct.
11151         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11152         (init_initial_directory): Don't try to use $PWD on the
11153         WIN32_NATIVE target.
11154
11155         * s\cygwin32.h:
11156         [[Add -mwindows to eliminate console window.]] not required --ben
11157         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11158         (MAIL_USE_POP): removed; now handled by configure.
11159
11160         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11161         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11162         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11163         (MAIL_USE_POP): removed; now handled by configure.
11164         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11165         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11166         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11167         constant string.
11168         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11169         up from <winsock.h> via systime.h.
11170         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11171         (getpagesize): from Dan Holmsand, added.
11172         Added #endif which was left dangling by Ben's mega patch; added
11173         comment to help prevent this in the future.
11174
11175         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11176
11177 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11178
11179         * console-msw.h (struct mswindows_device): Removed unnecessary
11180         cached device geometry values.
11181         Added update_tick and an accessor macro.
11182         (Lisp_Devmode): Added lrecord declaration.
11183         (struct msprinter_device): Contain devmode as a Lisp object.
11184         Added mswindows_get_selected_frame_hwnd();
11185
11186         * console.h (struct console_methods): Indentation nitpicking.
11187
11188         * device-msw.c (mswindows_init_device): Do not initialize geometry
11189         cache. Initialize update tick.
11190         (mswindows_device_system_metrics): Ask the device for its geometry.
11191         (global_free_2_maybe):
11192         (devmode_to_hglobal):
11193         (handle_printer_changes):
11194         (ensure_not_printing):
11195         (print_dialog_worker):
11196         (Fmsprinter_print_setup_dialog):
11197         (Fmsprinter_print_dialog):
11198         (plist_get_margin):
11199         (plist_set_margin):
11200         (Fmsprinter_page_setup_dialog): Added functions.
11201         (sync_printer_with_devmode):
11202         (handle_devmode_changes):
11203         (Fmsprinter_get_settings):
11204         (Fmsprinter_select_settings):
11205         (Fmsprinter_apply_settings):
11206         (allocate_devmode):
11207         (Fmsprinter_settings_copy):
11208         (Fmsprinter_settings_despecialize):
11209         (print_devmode):
11210         (finalize_devmode):
11211         (equal_devmode):
11212         (hash_devmode): Added functions
11213         (syms_of_device_mswindows): Init devmode lrecord class.
11214
11215         * device.h: Added an exfun for find-device.
11216
11217         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11218         geometry; although, recreate the device compatible DC.
11219
11220         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11221         (msprinter_init_frame_3):
11222         (msprinter_frame_property):
11223         (msprinter_internal_frame_property_p):
11224         (msprinter_frame_properties):
11225         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11226         print job properties (will move to device settings).
11227
11228         * lisp.h: Added symbols.
11229
11230         * general.c (syms_of_general): Declared them.
11231
11232         * hash.c (string_hash): Added.
11233
11234         * lrecord.h (lrecord_type): Added devmode lrecord type.
11235
11236 2000-07-02  Mike Sperber <mike@xemacs.org>
11237
11238         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11239         FreeBSD 4.0.
11240
11241 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11242
11243         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11244         integer.
11245
11246 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11247
11248         * data.c (Fstring_to_number): Don't recognize floating point if
11249         base is not 10.
11250
11251 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11252
11253         * glyphs-widget.c (tab_control_query_geometry):
11254         (widget_query_geometry):
11255         (button_query_geometry):
11256         * glyphs.c (text_query_geometry):
11257         Enforce type correctness.
11258
11259 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11260
11261         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11262         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11263
11264 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11265
11266         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11267         conflicts with gcc's fixincluded version of FOO.h.
11268
11269         * glyphs.h (image_instance_geometry): Remove trailing `,'
11270
11271 2000-06-08  Mike Alexander  <mta@arbortext.com>
11272
11273         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11274         (shove_thread): Don't write the same output twice
11275         (make_ntpipe_output_stream): Increase priority of shove thread
11276         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11277         chance to run
11278         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11279         it.
11280
11281 2000-06-12  Ben Wing  <ben@xemacs.org>
11282
11283         * s\mingw32.h (sigset):
11284         * s\windowsnt.h (sigset):
11285         rename msw_ to mswindows_ for consistency with general convention.
11286
11287 2000-06-12  Ben Wing  <ben@xemacs.org>
11288
11289         * console-msw.c:
11290         * console-msw.c (mswindows_get_console_hwnd):
11291         * console-msw.c (mswindows_ensure_console_allocated):
11292         * console-msw.c (mswindows_hide_console):
11293         * console-msw.c (mswindows_show_console):
11294         * console-msw.c (mswindows_ensure_console_buffered):
11295         * console-msw.c (mswindows_output_console_string):
11296         * console-msw.c (mswindows_windows9x_p):
11297         * console-msw.h:
11298         * device-msw.c (mswindows_get_workspace_coords):
11299         * device-msw.c (mswindows_device_system_metrics):
11300         * dialog-msw.c (mswindows_popup_dialog_box):
11301         * event-msw.c (mswindows_wnd_proc):
11302         * frame-msw.c (mswindows_size_frame_internal):
11303         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11304         * menubar-msw.c (displayable_menu_item):
11305         * menubar-msw.c (mswindows_char_is_accelerator):
11306         * nt.c:
11307         * nt.c (mswindows_sigset):
11308         * nt.c (mswindows_sigrelse):
11309         * nt.c (mswindows_sigpause):
11310         * nt.c (mswindows_raise):
11311         * nt.c (timer_proc):
11312         * ntproc.c:
11313         * ntproc.c (find_child_console):
11314         * ntproc.c (sys_kill):
11315         * print.c:
11316         * print.c (std_handle_out_external):
11317         * process-nt.c (find_child_console):
11318         * process-nt.c (send_signal_the_95_way):
11319         * process-nt.c (ensure_console_window_exists):
11320         * process-nt.c (nt_create_process):
11321         * syssignal.h:
11322         rename msw_ to mswindows_ for consistency with general convention.
11323
11324         * emacs.c:
11325         * dumper.c:
11326         include nt.h, not syswindows.h.
11327
11328         * nt.c (mswindows_fstat):
11329         * nt.c (mswindows_stat):
11330         prefix mswindows_ instead of attempting to directly override the
11331         library functions.  fix declarations.
11332
11333         * nt.h:
11334         include syswindows.h.  move some sysdep.h stuff here.
11335
11336         * ntheap.h:
11337         include syswindows.h, not <windows.h>.
11338
11339         * ntplay.c:
11340         clean up headers.
11341
11342         * sysdep.c:
11343         clean up headers.
11344
11345         * sysdep.c (sys_fstat):
11346         * sysdep.c (sys_stat):
11347         call mswindows versions when appropriate.
11348
11349         * sysdep.h:
11350         move mswin decls to nt.h.
11351
11352         * syswindows.h:
11353         add long comment describing appropriate use of the various windows
11354         headers.
11355
11356 2000-06-11  Ben Wing  <ben@xemacs.org>
11357
11358         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11359
11360 2000-06-10  Ben Wing  <ben@xemacs.org>
11361
11362         * Makefile.in.in (release):
11363         Correction to make sure xemacs.exe always dumped when correct.
11364
11365         * alloca.c:
11366         * balloon_help.c:
11367         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11368
11369         * buffer.c (set_buffer_internal):
11370         [[[[2]]]]: Remove HAVE_FEP code.
11371
11372         * buffer.c (init_initial_directory):
11373         [3].
11374
11375         * bytecode.c:
11376         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11377         individual files.
11378
11379         * callproc.c:
11380         * callproc.c (call_process_cleanup):
11381         * callproc.c (Fold_call_process_internal):
11382         * callproc.c (child_setup):
11383         * callproc.c (getenv_internal):
11384         * callproc.c (init_callproc):
11385         * callproc.c (vars_of_callproc):
11386         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11387         __CYGWIN32__ -> CYGWIN.
11388         DOS_NT -> WIN32_NATIVE.
11389         Remove MSDOS support/references, converting to WIN32_NATIVE
11390           where correct.
11391         __MINGW32__ -> MINGW.
11392         Fix windows.h includes.
11393         Remove bogus HAVE_NTGUI.
11394
11395         * config.h.in:
11396         [2].
11397
11398         * console-msw.c:
11399         mswindows_message_outputted added for use in allowing startup
11400         errors on the console to be seen.
11401
11402         * console-msw.c (msw_ensure_console_allocated):
11403         * console-msw.c (msw_output_console_string):
11404         * console-msw.c (DHEADER):
11405         * console-msw.c (DOPAQUE_DATA):
11406         * console-msw.c (DEVENT):
11407         * console-msw.c (DCONS):
11408         * console-msw.c (DCONSCDR):
11409         * console-msw.c (DSTRING):
11410         * console-msw.c (DVECTOR):
11411         * console-msw.c (DSYMBOL):
11412         * console-msw.c (DSYMNAME):
11413         Fix warnings.
11414
11415         * console-stream.c (stream_init_console):
11416         Fix text/binary problems.
11417
11418         * device-msw.c:
11419         * device-msw.c (mswindows_finish_init_device):
11420         * device-msw.c (mswindows_delete_device):
11421         [1].
11422
11423         * device.c (handle_asynch_device_change):
11424         [3].
11425
11426         * dgif_lib.c:
11427         * dgif_lib.c (DGifOpenFileName):
11428         * dgif_lib.c (DGifOpenFileHandle):
11429         * dgif_lib.c (DGifGetLine):
11430         * dgif_lib.c (DGifGetPixel):
11431         Added config.h/lisp.h, fix up includes.
11432         [1].
11433
11434         * dired-msw.c:
11435         [4].
11436
11437         * dired.c:
11438         * dired.c (file_name_completion):
11439         * dired.c (Ffile_attributes):
11440         * dired.c (syms_of_dired):
11441         [1].
11442
11443         * dumper.c:
11444         * dumper.c (pdump_file_unmap):
11445         * dumper.c (pdump_load):
11446         [1].
11447
11448         * editfns.c:
11449         * editfns.c (Ftemp_directory):
11450         * editfns.c (user_login_name):
11451         * editfns.c (Fuser_real_login_name):
11452         * editfns.c (get_home_directory):
11453         [1].
11454
11455         * elhash.c (finish_marking_weak_hash_tables):
11456         [[[[5]]]]: Fix GCC warnings.
11457
11458         * emacs.c:
11459         * emacs.c (mswindows_handle_hardware_exceptions):
11460         * emacs.c (make_arg_list_1):
11461         * emacs.c (main_1):
11462         * emacs.c (Fkill_emacs):
11463         * emacs.c (Fdump_emacs):
11464         [1].
11465         Fix problems with nested crashes, add long comment.
11466
11467         * event-Xt.c (init_event_Xt_late):
11468         [1].
11469
11470         * event-msw.c:
11471         * event-msw.c (mswindows_dde_callback):
11472         * event-msw.c (mswindows_handle_sticky_modifiers):
11473         * event-msw.c (mswindows_wnd_proc):
11474         [1].
11475         [5].
11476
11477         * events.c (character_to_event):
11478         [1].
11479
11480         * fileio.c:
11481         * fileio.c (Ffile_name_directory):
11482         * fileio.c (Ffile_name_nondirectory):
11483         * fileio.c (directory_file_name):
11484         * fileio.c (Fexpand_file_name):
11485         * fileio.c (Fsubstitute_in_file_name):
11486         * fileio.c (Ffile_name_absolute_p):
11487         * fileio.c (check_executable):
11488         * fileio.c (Ffile_readable_p):
11489         * fileio.c (Ffile_accessible_directory_p):
11490         * fileio.c (Ffile_modes):
11491         * fileio.c (Funix_sync):
11492         * fileio.c (vars_of_fileio):
11493         [1]. [4].
11494
11495         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11496
11497         Expand getdefdir defn.
11498         Fix bogus rename() comment.
11499
11500         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11501         to use standard XEmacs include files, e.g. sysfile.h, rather
11502         than system-specific includes.
11503
11504         * fns.c:
11505         * fns.c (Fsubseq):
11506         [5]. [6].
11507
11508         * frame.c (vars_of_frame):
11509         [1].
11510
11511         * getloadavg.c:
11512         * getloadavg.c (getloadavg):
11513         [1]. [6].
11514         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11515         (We don't use it elsewhere in the code; just add a comment.)
11516
11517         * gif_io.c:
11518         [6].
11519         Add config.h.
11520
11521         * glyphs-msw.c:
11522         * glyphs-msw.c (mswindows_resource_instantiate):
11523         [1].
11524
11525         * glyphs-x.c (x_native_layout_instantiate):
11526         [5].
11527
11528         * gui-msw.c (Fmswindows_shell_execute):
11529         [1].
11530
11531         * insdel.c:
11532         [4].
11533
11534         * lisp.h:
11535         [4]. [5].
11536
11537         * lread.c (locate_file_in_directory_mapper):
11538         [1].
11539
11540         * lstream.c:
11541         [4].
11542
11543         * mem-limits.h:
11544         * mem-limits.h (get_lim_data):
11545         [1].
11546
11547         * menubar-msw.c:
11548         [4].
11549
11550         * ndir.h:
11551         [1].
11552
11553         * nt.c:
11554         * nt.c (getwd):
11555         * nt.c (closedir):
11556         * nt.c (rva_to_section):
11557         * nt.c (mswindows_executable_type):
11558         [1]. [6].
11559         Fix closedir() defn.
11560
11561         * nt.h:
11562         [[[[8]]]]: *_OK defs moved to sysfile.h.
11563
11564         * ntproc.c:
11565         [6]. [7].
11566
11567         * objects-x.c:
11568         [4].
11569
11570         * print.c:
11571         * print.c (std_handle_out_external):
11572         [1]. [4].
11573
11574         * process-nt.c:
11575         * process-nt.c (nt_create_process):
11576         [6].
11577         try to fix process quoting somewhat.
11578
11579         * process-unix.c (unix_create_process):
11580         [1].
11581
11582         * process.c:
11583         * process.c (vars_of_process):
11584         Add Vnull_device.
11585
11586         * process.h:
11587         [1].
11588
11589         * realpath.c:
11590         * realpath.c (xrealpath):
11591         [1].
11592
11593         * redisplay-tty.c (init_tty_for_redisplay):
11594         [3].
11595
11596         * redisplay.c:
11597         [4]. [6].
11598
11599         * scrollbar-msw.c:
11600         [4].
11601
11602         * sheap.c:
11603         * sheap.c (more_static_core):
11604         * sheap.c (report_sheap_usage):
11605         [5]. [6].
11606
11607         * signal.c:
11608         * signal.c (alarm_signal):
11609         [1]. [6].
11610
11611         * sound.c:
11612         [6].
11613
11614         * strftime.c:
11615         * strftime.c (zone_name):
11616         [1]. [5].
11617
11618         * symsinit.h (init_sunpro):
11619         [1].
11620
11621         * syscommctrl.h:
11622         commctrl.h not in Cygwin b20.1.
11623
11624         * sysdep.c:
11625         * sysdep.c (endif):
11626         * sysdep.c (sys_subshell):
11627         * sysdep.c (init_baud_rate):
11628         * sysdep.c (emacs_get_tty):
11629         * sysdep.c (emacs_set_tty):
11630         * sysdep.c (tty_init_sys_modes_on_device):
11631         * sysdep.c (init_system_name):
11632         * sysdep.c (sys_open):
11633         * sysdep.c (interruptible_open):
11634         * sysdep.c (sys_fopen):
11635         * sysdep.c (sys_mkdir):
11636         * sysdep.c (sys_rename):
11637         * sysdep.c (get_process_times_1):
11638         [1]. [6].
11639
11640         * sysdep.h:
11641         [1].
11642
11643         * sysdir.h:
11644         * sysdir.h (DIRENTRY_NONEMPTY):
11645         [1]. [6].
11646
11647         * sysdll.c (dll_init):
11648         * sysdll.h:
11649         [1].
11650
11651         * sysfile.h:
11652         [1]. [6]. [8].
11653         added text/binary defs.
11654
11655         * sysfloat.h:
11656         [1].
11657
11658         * sysproc.h:
11659         * sysproc.h (EDESTADDRREQ):
11660         * sysproc.h (poll_fds_for_input):
11661         [1]. [6].
11662
11663         * syspwd.h:
11664         [6].
11665
11666         * syssignal.h:
11667         [1].
11668
11669         * systime.h:
11670         [1]. [6].
11671
11672         * systty.h:
11673         [1].
11674
11675         * syswindows.h:
11676         [1].
11677         Always define WIN32_LEAN_AND_MEAN.
11678
11679         * unexcw.c (unexec):
11680         [5].
11681
11682         * unexec.c:
11683         * unexec.c (copy_text_and_data):
11684         * unexec.c (adjust_lnnoptrs):
11685         [1].
11686
11687         * unexnt.c:
11688         * unexnt.c (_start):
11689         [1].
11690
11691 2000-06-07  Ben Wing  <ben@xemacs.org>
11692
11693         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11694         was used only as a model.  We've long since extracted any useful
11695         logic or code out of this. (I just did an exhaustive search.)
11696
11697         * s\msdos.h: Removed.
11698
11699         * s\windows95.h: Removed.
11700
11701 2000-06-10  Ben Wing  <ben@xemacs.org>
11702
11703         * s\cygwin32.h:
11704         [1]. [5].
11705         Don't use extern with fun defs.
11706
11707         * s\mingw32.h:
11708         [1]. [7].
11709         Remove nt\inc include.
11710         Remove getdisk, getdefdir. (The former is unused, the latter
11711         expanded in fileio.h.)
11712
11713         * s\windowsnt.h:
11714         * s\windowsnt.h (WIN32_NATIVE):
11715         * s\windowsnt.h (HAVE_STRCASECMP):
11716         [1]. [7].
11717         Add long comment about preprocessor changes.
11718         Remove getdisk, getdefdir. (The former is unused, the latter
11719         expanded in fileio.h.)
11720
11721 2000-06-10  Ben Wing  <ben@xemacs.org>
11722
11723         * m\arm.h:
11724         * m\delta.h:
11725         * m\intel386.h:
11726         * m\sequent.h:
11727         * m\template.h:
11728         * m\windowsnt.h:
11729         [1].
11730         Remove bogus/unused NO_SOCK_SIGIO.
11731
11732 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11733
11734         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11735         not an Emchar.
11736
11737 2000-06-04  Mike Sperber <mike@xemacs.org>
11738
11739         * casetab.c (set_case_table): For `set-standard-case-table',
11740         actually deposit the new case tables where the rest of XEmacs can
11741         see them.
11742
11743 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11744
11745         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11746
11747 2000-06-05  Ben Wing  <ben@xemacs.org>
11748
11749         * callproc.c (child_setup): Don't do close_load_descs() under
11750         MS Windows.  Put in a comment explaining why.
11751
11752 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11753
11754         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11755         Toolkit shell" which breaks `kill-compilation' on Windows NT
11756         native, retaining STDERR handling improvements.
11757
11758 2000-06-01  Andreas Jaeger  <aj@suse.de>
11759
11760         * s/s390.h: Support for S390, based on a patch by Martin
11761         Schwidefsky <schwidefsky@de.ibm.com>.
11762
11763 2000-05-30  Andy Piper  <andy@xemacs.org>
11764
11765         * window.c (allocate_window):
11766         (make_dummy_parent):
11767         (Fset_window_configuration): use new hashtable type.
11768
11769         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11770         (struct image_instantiator_methods):
11771         (struct Lisp_Image_Instance): make instance geometry signed.
11772
11773         * glyphs.c (instantiate_image_instantiator):
11774         (image_instance_query_geometry):
11775         (image_instance_layout):
11776         (image_instance_layout):
11777         (query_string_geometry):
11778         (text_query_geometry):
11779         (image_instantiate):
11780         (image_instantiate):
11781         (cache_subwindow_instance_in_frame_maybe):
11782         (subwindow_query_geometry): make instance geometry signed.
11783
11784         * glyphs-widget.c (widget_query_geometry):
11785         (widget_layout):
11786         (button_query_geometry):
11787         (tree_view_query_geometry):
11788         (tab_control_query_geometry):
11789         (layout_query_geometry):
11790         (layout_layout):
11791         (native_layout_layout): make instance geometry signed.
11792
11793 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11794
11795         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11796         constant.
11797
11798         * general.c (syms_of_general): Add Qfull_assoc symbol.
11799
11800         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11801         correctly.
11802         (decode_weak_list_type): Decode full-assoc type.
11803         (encode_weak_list_type): Encode full-assoc type.
11804         (Fmake_weak_list): Update doc string.
11805
11806 2000-05-30  Andy Piper  <andy@xemacs.org>
11807
11808         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11809
11810         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11811         (decode_hash_table_weakness): ditto.
11812         (Fhash_table_weakness): ditto.
11813         (Fhash_table_type): ditto.
11814         (finish_marking_weak_hash_tables): ditto.
11815         (hash_table_weakness_validate): ditto.
11816         (syms_of_elhash): ditto.
11817
11818 2000-05-28  Martin Buchholz <martin@xemacs.org>
11819
11820         * XEmacs 21.2.34 is released.
11821
11822 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11823
11824         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11825         start cache.
11826         (updating_line_start_cache): Gone.
11827         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11828         generic code to force a minimum of 1 line laid out in the
11829         CMOTION_DISP case.
11830
11831 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11832
11833         * glyphs.c (instantiate_image_instantiator): Check for initialized
11834         height & width no longer special cases IMAGE_NOTHING.
11835         (nothing_instantiate): Set height and width of instance.
11836
11837 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11838
11839         * unexelf.c (unexec): Search for ".data" section.
11840         Initialize new_data2_offset from old_data_index.
11841         Remove redundant check for ElfW.
11842
11843 2000-05-23  Andy Piper  <andy@xemacs.org>
11844
11845         * glyphs.c (get_image_instantiator_governing_domain): allow more
11846         specific domains as the governing domain rather than expecting an
11847         exact match. This fixes problems with layouts.
11848
11849 2000-05-22  Andy Piper  <andy@xemacs.org>
11850
11851         * redisplay-output.c (compare_runes): check for non-images
11852
11853         * glyphs.c (set_glyph_dirty_p): ditto.
11854         (update_glyph_cachel_data): ditto.
11855
11856         * glyphs-widget.c (layout_post_instantiate): ditto.
11857         (layout_post_instantiate): ditto.
11858
11859         * event-msw.c (mswindows_wnd_proc): warning removal.
11860
11861 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11862
11863         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11864
11865         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11866
11867         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11868
11869         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11870         (mswindows_executable_type): mingw32 now has enough headers for
11871         this to work.
11872
11873 2000-05-20  Andy Piper  <andy@xemacs.org>
11874
11875         * console-msw.c (mswindows_output_last_error): ; -> ,
11876
11877 2000-05-12  Andy Piper  <andy@xemacs.org>
11878
11879         * console-msw.c (FROB): compare ints with ints.
11880
11881 2000-05-11  Andy Piper  <andy@xemacs.org>
11882
11883         * glyphs-x.c (x_finalize_image_instance): make minimal build
11884         happy.
11885
11886 2000-05-20  Ben Wing  <ben@xemacs.org>
11887
11888         * event-Xt.c:
11889         * event-Xt.c (vars_of_event_Xt):
11890         move modifier-keys-are-sticky to event-stream.c.
11891
11892         * event-msw.c:
11893         * event-msw.c (mswindows_enqueue_mouse_button_event):
11894         * event-msw.c (key_needs_default_processing_p):
11895         * event-msw.c (XEMSW_LCONTROL):
11896         * event-msw.c (mswindows_handle_sticky_modifiers):
11897         * event-msw.c (FROB):
11898         * event-msw.c (clear_sticky_modifiers):
11899         * event-msw.c (output_modifier_keyboard_state):
11900         * event-msw.c (output_alt_keyboard_state):
11901         * event-msw.c (mswindows_wnd_proc):
11902         * event-msw.c (mswindows_modifier_state):
11903         * event-msw.c (emacs_mswindows_handle_magic_event):
11904         implement sticky modifiers.
11905
11906         * event-stream.c:
11907         * event-stream.c (vars_of_event_stream):
11908         move modifier-keys-are-sticky here.
11909
11910         * lisp.h:
11911         add CHECK_FUNCTION.
11912
11913         * rangetab.c:
11914         implement map-range-table.
11915
11916
11917 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11918
11919         * redisplay-tty.c (reset_tty_modes):
11920         (tty_redisplay_shutdown): Adjust argument type to
11921         tty_frame_output_end.
11922
11923 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11924
11925         * eval.c (Fbacktrace): Don't output a line with only right
11926         parenthesis.
11927
11928 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11929
11930         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11931         (Fpq_reset_poll): Ditto.
11932
11933 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11934
11935         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11936
11937 2000-05-16  Ben Wing  <ben@xemacs.org>
11938
11939         * buffer.c:
11940         * buffer.c (dfc_convert_to/from_internal_format):
11941         * buffer.c (reinit_vars_of_buffer):
11942         Fix conversion functions to allow reentrancy.
11943
11944         * console-msw.c:
11945         * console-msw.c (mswindows_output_last_error):
11946         New fun, generally useful -- output a human-readable
11947         version of GetLastError() on the console.
11948
11949         * console-msw.h:
11950         * console-msw.h (struct mswindows_frame):
11951         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11952
11953         * console-stream.c (stream_output_begin):
11954         * console-stream.c (stream_output_end):
11955         * console-stream.c (stream_output_vertical_divider):
11956         * console-stream.c (stream_clear_region):
11957         * console-stream.c (stream_flash):
11958         * console-stream.c (console_type_create_stream):
11959         Delete blank stream methods, not needed.
11960
11961         * console.h (struct console_methods):
11962         Split begin/end methods into window and frame.
11963
11964         * event-msw.c:
11965         * event-msw.c (mswindows_handle_paint):
11966         * event-msw.c (output_alt_keyboard_state):
11967         * event-msw.c (mswindows_wnd_proc):
11968         * event-msw.c (vars_of_event_mswindows):
11969         Comment about problems with ignored-expose.
11970         Define mswindows-debug-events; not really implemented.
11971
11972         * frame-msw.c (mswindows_init_frame_1):
11973         random cleanups.
11974
11975         * glyphs-msw.c:
11976         * glyphs-msw.c (begin_defer_window_pos):
11977         * glyphs-msw.c (mswindows_unmap_subwindow):
11978         * glyphs-msw.c (mswindows_map_subwindow):
11979         * glyphs-msw.c (mswindows_resize_subwindow):
11980         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11981
11982         * glyphs.c (make_image_instance_1):
11983         Fix crash.
11984
11985         * gutter.c (Fredisplay_gutter_area):
11986         Use new begin/end methods.
11987
11988         * lisp.h (Dynarr_new2):
11989         New creation fun.
11990
11991         * redisplay-msw.c:
11992         * redisplay-msw.c (mswindows_frame_output_begin):
11993         * redisplay-msw.c (mswindows_frame_output_end):
11994         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11995         New begin/end methods -- handle DeferWindowPos.
11996
11997         * redisplay-output.c (redisplay_move_cursor):
11998         * redisplay-output.c (redraw_cursor_in_window):
11999         * redisplay-output.c (redisplay_update_line):
12000         * redisplay-output.c (redisplay_output_window):
12001         New begin/end methods.
12002
12003         * redisplay-tty.c:
12004         * redisplay-tty.c (tty_frame_output_begin):
12005         * redisplay-tty.c (tty_frame_output_end):
12006         * redisplay-tty.c (console_type_create_redisplay_tty):
12007         New begin/end methods.
12008
12009         * redisplay-x.c:
12010         * redisplay-x.c (x_window_output_begin):
12011         * redisplay-x.c (x_window_output_end):
12012         * redisplay-x.c (console_type_create_redisplay_x):
12013         New begin/end methods.
12014
12015         * redisplay.c (redisplay_frame):
12016         * redisplay.c (Fredisplay_echo_area):
12017         New begin/end methods.
12018         use MAYBE_DEVMETH for clear_frame; it may not exist.
12019
12020         * window.h (WINDOW_XFRAME):
12021         WINDOW_XFOO macros -- get locale and decode struct pointer.
12022
12023
12024 2000-05-12  Ben Wing  <ben@xemacs.org>
12025
12026         * emacs.c:
12027         * emacs.c (ensure_no_quitting_from_now_on):
12028         * emacs.c (fatal_error_signal):
12029         * emacs.c (mswindows_handle_hardware_exceptions):
12030         * emacs.c (main):
12031         * emacs.c (Fkill_emacs):
12032         * emacs.c (shut_down_emacs):
12033         * emacs.c (assert_failed):
12034         various improvements in fatal error handling.
12035
12036         * eval.c:
12037         move preparing_for_armageddon to emacs.c.
12038
12039         * lisp.h:
12040         declare fatal_error_in_progress.
12041
12042         * print.c:
12043         * print.c (std_handle_out_external):
12044         * print.c (std_handle_out_va):
12045         * print.c (stderr_out):
12046         * print.c (stdout_out):
12047         use console under mswin when no standard output.
12048         don't do code conversion during fatal error.
12049
12050         * scrollbar.c (Fscrollbar_page_up):
12051         * scrollbar.c (Fscrollbar_page_down):
12052         fix missing else.  reindent.
12053
12054 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12055
12056         Emergency fix.
12057
12058         * glyphs.h (GLYPH_CACHEL_DESCENT):
12059         (GLYPH_CACHEL_DESCENT):
12060         (GLYPH_CACHEL_DESCENT):
12061         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12062         used in case these are inline functions.
12063         Use more absurd values to error check.
12064
12065         include window.h for error check functions.
12066
12067 2000-05-11  Ben Wing  <ben@xemacs.org>
12068
12069         * cmdloop.c (Freally_early_error_handler):
12070         Display message box under windows; otherwise, message will disappear
12071         before it can be viewed.
12072
12073         * console-msw.c:
12074         * console-msw.c (Fmswindows_message_box):
12075         * console-msw.c (FROB):
12076         * console-msw.c (syms_of_console_mswindows):
12077         Define new fun `mswindows-message-box'.
12078         #### I will merge this into `popup-dialog-box'; just give me
12079         a bit of time.
12080
12081         * general.c:
12082         * general.c (syms_of_general):
12083         Some new symbols used in `mswindows-message-box'.
12084
12085         * glyphs.c:
12086         * glyphs.c (Fset_image_instance_property):
12087         put warning in this fun.
12088
12089         * glyphs.h:
12090         * glyphs.h (GLYPH_CACHEL_WIDTH):
12091         * glyphs.h (GLYPH_CACHEL_ASCENT):
12092         * glyphs.h (GLYPH_CACHEL):
12093         * glyphs.h (GLYPH_CACHEL_GLYPH):
12094         define error-checking versions to try to catch a bug i've seen --
12095         redisplay gets in an infinite loop because the glyph width of the
12096         continuation glyph is 65535.
12097
12098         * lisp.h:
12099         Extern message-box stuff.
12100
12101         * window.c (allocate_window):
12102         * window.c (make_dummy_parent):
12103         * window.c (Fset_window_configuration):
12104         Use EQUAL not EQ for subwindow caches to make them work a bit
12105         better. (Something is still very broken.)
12106
12107
12108 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12109
12110         * glyphs.c (image_instantiate): Suppress gcc warnings.
12111         (Fmake_image_instance): Fix doc string.
12112         * specifier.c (Fmake_specifier): Ditto.
12113
12114 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12115
12116         * paths.h.in (PATH_LOCK): Removed.
12117         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12118         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12119
12120 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12121
12122         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12123         Document (featurep '(and xemacs 21.02)).
12124
12125 2000-05-09  Ben Wing  <ben@xemacs.org>
12126
12127         * buffer.c (complex_vars_of_buffer):
12128         update modeline-format doc.
12129
12130         * device.h:
12131         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12132
12133         * emacs.c:
12134         timeline of all released versions of Emacs, for use in creating
12135         authorship comments and in synching up.
12136
12137         * glyphs-widget.c (image_instantiator_buttons):
12138         * glyphs-widget.c (image_instantiator_edit_fields):
12139         * glyphs-widget.c (image_instantiator_combo_box):
12140         * glyphs-widget.c (image_instantiator_scrollbar):
12141         * glyphs-widget.c (image_instantiator_progress_guage):
12142         * glyphs-widget.c (image_instantiator_tree_view):
12143         * glyphs-widget.c (image_instantiator_tab_control):
12144         * glyphs-widget.c (image_instantiator_labels):
12145         * glyphs-widget.c (image_instantiator_layout):
12146         * glyphs-widget.c (image_instantiator_native_layout):
12147         rename decode_domain method to governing_domain.
12148
12149         * glyphs.c:
12150         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12151         * glyphs.c (add_entry_to_device_ii_format_list):
12152         make sure we don't put an entry more than once into the list.
12153         * glyphs.c (check_instance_cache_mapper):
12154         *************************************************************
12155         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12156         HAVE BEEN GETTING.
12157         *************************************************************
12158         * glyphs.c (get_image_instantiator_governing_domain):
12159         clean up, expand on new concept of governing domain.
12160         * glyphs.c (instantiate_image_instantiator):
12161         * glyphs.c (allocate_image_instance):
12162         use governing_domain instead of cache_domain in naming.
12163         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12164         * glyphs.c (make_image_instance_1):
12165         * glyphs.c (Fmake_image_instance):
12166         allow for any domain (not just device), and process the
12167         governing domain correctly.  very big doc fix.
12168         * glyphs.c (Fimage_instance_domain):
12169         new primitive, to retrieve the governing domain of an image instance.
12170         * glyphs.c (image_instantiate):
12171         use new governing_domain stuff.  this fixes a crash you could get
12172         by instantiating certain widget glyphs in frame locales. (should
12173         signal an error instead of crashing.)
12174         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12175         * glyphs.c (Fglyphp): clean up doc.
12176         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12177         * glyphs.c (syms_of_glyphs):
12178         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12179         * glyphs.c (image_instantiator_format_create): add some comments about
12180         bogus code.
12181         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12182         for current-display-table. (Apparently Hrjove implemented in 1998 a
12183         design I wrote up in 1996, but didn't update the doc string.)
12184
12185         * glyphs.h: clean up a doc string.
12186         * glyphs.h (governing_domain):
12187         * glyphs.h (struct image_instantiator_methods):
12188         changes for governing_domain stuff.
12189
12190         * gutter.c:
12191         * gutter.c (Fgutter_specifier_p):
12192         * gutter.c (Fgutter_size_specifier_p):
12193         * gutter.c (Fgutter_visible_specifier_p):
12194         * objects.c:
12195         * objects.c (Fcolor_specifier_p):
12196         * objects.c (Ffont_specifier_p):
12197         * objects.c (Fface_boolean_specifier_p):
12198         doc strings moved to make-*-specifier.
12199
12200         * redisplay.c (add_disp_table_entry_runes_1):
12201         * redisplay.c (generate_fstring_runes):
12202         * redisplay.c (screen):
12203         add random comments and doc strings.
12204
12205         * specifier.c:
12206         * specifier.c (Fmake_specifier):
12207         major overhaul of this doc string.
12208
12209         * specifier.c (Fvalid_specifier_domain_p):
12210         comment about the bogosity of image instances being domains.
12211         * specifier.c (decode_domain):
12212         now non-static, used in glyphs.c.
12213         * specifier.c (specifier_instance):
12214         comment about the bogosity of image instances being domains.
12215         * specifier.c (Fgeneric_specifier_p):
12216         move doc string to make-generic-specifier.
12217         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12218         rebackslashify.
12219
12220         * specifier.h:
12221         * specifier.h (DOMAIN_FRAME):
12222         * specifier.h (DOMAIN_LIVE_P):
12223         * specifier.h (DOMAIN_XDEVICE):
12224         rebackslashify.
12225         add comments about problems with these macros.
12226         prototype for decode_domain.
12227
12228         * toolbar.c:
12229         * toolbar.c (Ftoolbar_specifier_p):
12230         move doc string to `make-toolbar-specifier'.
12231
12232         * window.c (window_unmap_subwindows_cache_mapper):
12233         *************************************************************
12234         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12235         HAVE BEEN GETTING.
12236         *************************************************************
12237
12238 2000-05-09  Andy Piper  <andy@xemacs.org>
12239
12240         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12241
12242         * window.c (Fset_window_configuration): reset the frame subwindow
12243         cache and re-initialize the window subwindow caches.
12244
12245         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12246
12247 2000-05-09  Ben Wing  <ben@xemacs.org>
12248
12249         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12250         DWORD.
12251
12252 2000-04-26  Mike Woolley  <mike@bulsara.com>
12253
12254         * ntheap.c: Changed recreate_heap to limit the amount reserved
12255         for the heap to that which is actually available. Also now
12256         displays a message box (with some dignostics) in the event that
12257         it still can't start.
12258
12259 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12260
12261         * callproc.c (Fold_call_process_internal): GCPRO path
12262
12263 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12264
12265         Patch by Bill Perry.
12266
12267         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12268         back data instead of #ifdef.
12269         (Fscrollbar_page_down): ditto.
12270
12271 2000-05-07  Ben Wing  <ben@xemacs.org>
12272
12273         * buffer.h:
12274         Kludge for defining Qmswindows_tstr.
12275
12276         * nt.c:
12277         * nt.c (open_input_file):
12278         * nt.c (open_output_file):
12279         * nt.c (rva_to_section):
12280         * nt.c (mswindows_executable_type):
12281         Move all memory-mapped-file routines here (some were in unexnt.c,
12282         which is bad because they are used by process-nt.c, and unexnt
12283         won't be around when portable dumping).  Synched the above routines
12284         with FSF 20.6.
12285
12286         * nt.h:
12287         Removed ifdef'd out bogus code.
12288         Fixed some prototypes.
12289
12290         * nt.h (file_data):
12291         * nt.h (OFFSET_TO_RVA):
12292         * nt.h (RVA_TO_OFFSET):
12293         * nt.h (RVA_TO_PTR):
12294         Moved the memory-mapped-file structures, macros and prototypes
12295         here, to parallel nt.c.  ntheap.h should really be removed
12296         entirely, and it's a non-portable-dumper specific file.
12297
12298         * ntheap.h (round_to_next):
12299         Moved the memory-mapped-file structures, macros and prototypes
12300         to nt.h.
12301
12302         * ntproc.c (compare_env):
12303         Moved rva_to_section and mswindows_executable_type to nt.c.
12304         Moved compare_env to process-nt.c.
12305         ntproc.c will die, one day.
12306
12307         * ntproc.c (sys_spawnve):
12308         Account for win32_ -> mswindows_.
12309
12310         * process-nt.c:
12311         * process-nt.c (struct nt_process_data):
12312         * process-nt.c (ensure_console_window_exists):
12313         * process-nt.c (compare_env):
12314         * process-nt.c (nt_create_process):
12315         * process-nt.c (nt_kill_process_by_pid):
12316         * process-nt.c (syms_of_process_nt):
12317         * process-nt.c (vars_of_process_nt):
12318         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12319         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12320         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12321         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12322         Move compare_env here from ntproc.c.
12323
12324         * process.c (Fprocess_send_region):
12325         Takes an optional fourth argument, BUFFER, which should fix some
12326         problems with call-process.
12327
12328         * syscommctrl.h:
12329         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12330
12331         * syswindows.h:
12332         Move ICC_BAR_CLASSES to syscommctrl.h.
12333         Add preliminary macros for MSWindows/Mule.  More to come.
12334
12335         * unexnt.c:
12336         * unexnt.c (unexec):
12337         open_output_file moved to nt.c.
12338
12339
12340 2000-05-05  Andy Piper  <andy@xemacs.org>
12341
12342         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12343         instance from the frame cache also since GC may catch up too late
12344         to make frame deletion sane.
12345
12346 2000-05-04  Andy Piper  <andy@xemacs.org>
12347
12348         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12349         (x_finalize_image_instance): ungcpro on deletion.
12350
12351         * glyphs.c (image_instantiator_format_create): give pointers a
12352         query geometry method so that the geometry is at least set.
12353
12354         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12355         initialize layouts if using widgets.
12356
12357 2000-05-03  Andy Piper  <andy@xemacs.org>
12358
12359         * nt.c: remove bogus reference to sysmmsystem.h
12360
12361         * gui-x.c (popup_selection_callback): fix no selection abort.
12362
12363 2000-05-02  Andy Piper  <andy@xemacs.org>
12364
12365         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12366         (mswindows_widget_instantiate): ditto.
12367
12368         * glyphs-widget.c (initialize_widget_image_instance): initialize
12369         children correctly.
12370         (widget_instantiate): cope with children and items in the same
12371         instance.
12372
12373         * glyphs.c (mark_image_instance): cope with children as a first
12374         class member.
12375         (image_instance_equal): ditto.
12376         (image_instance_hash): ditto.
12377         (image_instance_changed): ditto.
12378
12379 2000-04-30  Andy Piper  <andy@xemacs.org>
12380
12381         * glyphs.c (subwindow_query_geometry): new function. Return some
12382         defaults.
12383         (subwindow_instantiate): don't assign dimensions if none have been
12384         given.
12385         (image_instantiator_format_create): add subwindow_query_geometry.
12386         (print_image_instance): cope with layouts as widgets.
12387
12388 2000-04-29  Andy Piper  <andy@xemacs.org>
12389
12390         * frame.c (delete_frame_internal): call
12391         free_frame_subwindow_instance_cache so that all subwindows are
12392         finalized before their parent.
12393         (mark_frame): remove subwindow_cachels.
12394         (Fmake_frame): remove subwindow_cachel manipulation.
12395         (allocate_frame_core): subwindow_instance_cache is a weak list.
12396         (delete_frame_internal): set subwindow_instance_cache to nil.
12397
12398         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12399         finalization safe.
12400         (mswindows_finalize_image_instance): use the device
12401         not the domain as the domain may have died already.
12402
12403         * glyphs-x.c (x_finalize_image_instance): ditto.
12404         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12405         HEIGHT.
12406
12407         * redisplay-output.c (redisplay_unmap_subwindows): update for
12408         subwindow instance cache as a weak list.
12409         (redisplay_unmap_subwindows_maybe): ditto.
12410         (redisplay_unmap_subwindows_except_us): ditto.
12411
12412         * glyphs.c (unmap_subwindow): error checking will check the domain
12413         so don't deal with it here. Don't use cachels anymore.
12414         (map_subwindow): ditto.
12415         (update_subwindow_cachel_data): remove old accessor names.
12416         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12417         (Fresize_subwindow): don't update cachel.
12418         (mark_subwindow_cachels):
12419         (update_subwindow_cachel_data):
12420         (add_subwindow_cachel):
12421         (get_subwindow_cachel_index):
12422         (update_subwindow_cachel):
12423         (reset_subwindow_cachels):
12424         (mark_subwindow_cachels_as_not_updated): deleted.
12425         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12426         subwindow instance to the frame cache.
12427         (find_matching_subwindow): update for subwindow instance cache as
12428         a weak list.
12429         (update_widget_instances): ditto.
12430         (image_instance_type_to_mask):inlined.
12431         (free_frame_subwindow_instance_cache): new function. finalize all
12432         subwindows that are instantiated.
12433
12434         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12435         of cachel information.
12436         (IMAGE_INSTANCE_DISPLAY_X):
12437         (IMAGE_INSTANCE_DISPLAY_Y):
12438         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12439         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12440         (XIMAGE_INSTANCE_DISPLAY_X):
12441         (XIMAGE_INSTANCE_DISPLAY_Y):
12442         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12443         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12444         remove subwindow_cachel structure and function references.
12445         (image_instance_type_to_mask): inline from glyphs.c
12446
12447         * redisplay.c (redisplay_frame): remove subwindow_cachel
12448         references.
12449
12450         * frame.h (struct frame): remove subwindow_cachels.
12451         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12452
12453         * frameslots.h: add subwindow_instance_cache.
12454
12455         * window.c (replace_window): check subwindow cache of replacement.
12456         (window_unmap_subwindows_cache_mapper):
12457         (window_unmap_subwindows): new functions. Unmap all subwindows
12458         cached on this window.
12459         (mark_window_as_deleted): unmap all subwindows.
12460
12461 2000-04-27  Andy Piper  <andy@xemacs.org>
12462
12463         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12464
12465         * glyphs-widget.c (widget_layout): return something.
12466         (layout_layout): return something. Fail if not initialized.
12467         (layout_query_geometry): ditto.
12468         (image_instantiator_native_layout): new function. Initialized the
12469         native layout type.
12470         (widget_instantiate): don't do layout stuff here.
12471
12472         * glyphs.c (instantiate_image_instantiator): reorded calling or
12473         instantiate and post_instantiate with layout in between.
12474         (image_instance_layout): be more selective about deciding whether
12475         the layout has been done or not.
12476
12477         * glyphs.h (struct image_instantiator_methods): return a value
12478         from layout_method.
12479
12480 2000-04-26  Andy Piper  <andy@xemacs.org>
12481
12482         * glyphs.c (allocate_image_instance): make initial width and
12483         height unspecified. Set initialized to 0.
12484
12485         * syscommctrl.h new file. Encapsulates commctrl.h.
12486
12487         * syswindows.h new file. Encapsulates windows.h.
12488
12489         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12490         * nt.c: ditto.
12491         * console-msw.h: ditto.
12492
12493         * redisplay-tty.c (tty_output_display_block): remove layout references.
12494
12495         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12496         window handle rather than just the frame.
12497
12498         * glyphs.c (mark_image_instance): remove layout references.
12499         (print_image_instance): ditto.
12500         (image_instance_equal): ditto.
12501         (image_instance_hash): ditto.
12502         (decode_image_instance_type): ditto.
12503         (encode_image_instance_type): ditto.
12504         (image_instantiate): ditto.
12505         (allocate_glyph): ditto.
12506         (Fimage_instance_height): ditto.
12507         (Fimage_instance_width): ditto.
12508         (update_subwindow): ditto.
12509
12510         * redisplay-x.c (x_output_display_block): recode for layouts as
12511         widgets.
12512
12513         * redisplay-output.c (redisplay_output_layout): recode for layouts
12514         as widgets.
12515         (compare_runes): remove layout references.
12516
12517         * redisplay-msw.c (mswindows_output_display_block): recode for
12518         layouts as widgets.
12519
12520         * glyphs-widget.c (image_instantiator_layout): remove
12521         layout_possible_dest_types.
12522         (layout_possible_dest_types): deleted.
12523
12524         * glyphs.h (image_instance_type): remove layout references.
12525         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12526         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12527         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12528
12529 2000-04-25  Andy Piper  <andy@xemacs.org>
12530
12531         * glyphs-widget.c (image_instantiator_buttons):
12532         (image_instantiator_edit_fields):
12533         (image_instantiator_combo_box):
12534         (image_instantiator_scrollbar):
12535         (image_instantiator_progress_guage):
12536         (image_instantiator_tree_view):
12537         (image_instantiator_tab_control):
12538         (image_instantiator_labels):
12539         (image_instantiator_layout): call default post_instantiate method.
12540         (widget_post_instantiate): new function. Simply lays out the
12541         widgets.
12542
12543         * glyphs.h (struct image_instantiator_methods): add
12544         post_instantiate method.
12545
12546         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12547         method calls.
12548
12549 2000-04-23  Andy Piper  <andy@xemacs.org>
12550
12551         * glyphs.h (struct image_instantiator_methods): add
12552         decode_domain_method.
12553         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12554         derived from the domain.
12555         (IMAGE_INSTANCE_FRAME): new accessor.
12556         (XIMAGE_INSTANCE_FRAME): ditto.
12557
12558         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12559         instead of _SUBWINDOW_FRAME.
12560         (finalize_image_instance): ditto.
12561         (Fimage_instance_foreground): ditto.
12562         (Fimage_instance_background): ditto.
12563         (image_instantiate): ditto.
12564         (update_subwindow_cachel): ditto.
12565         (update_subwindow): ditto.
12566         (unmap_subwindow): ditto.
12567         (map_subwindow): ditto
12568         (subwindow_instantiate): ditto.
12569         * glyphs-msw.c (mswindows_update_widget): ditto.
12570         (mswindows_progress_gauge_instantiate): ditto.
12571         (mswindows_tab_control_update): ditto.
12572         * glyphs-x.c (x_update_widget): ditto.
12573         (x_widget_instantiate): ditto.
12574         (x_tab_control_instantiate): ditto.
12575         (x_tab_control_update): ditto.
12576         * event-msw.c (mswindows_wnd_proc): ditto
12577
12578         * glyphs-widget.c (image_instantiator_layout): use
12579         subwindow_decode_domain.
12580         (image_instantiator_buttons): ditto.
12581         (image_instantiator_edit_fields): ditto.
12582         (image_instantiator_combo_box): ditto.
12583         (image_instantiator_scrollbar): ditto.
12584         (image_instantiator_progress_guage): ditto.
12585         (image_instantiator_tree_view): ditto.
12586         (image_instantiator_tab_control): ditto.
12587         (image_instantiator_labels): ditto.
12588         (image_instantiator_layout): ditto.
12589
12590         * glyphs.c: add instance error checking to many functions.
12591         (instantiate_image_instantiator): decode device from cache_domain.
12592         (image_instantiate): partially rewrite by using
12593         decode_image_instantiator_domain to determine what domain the
12594         instance needs to be cached in.
12595         (decode_image_instantiator_domain): new function. Determine what
12596         domain the image needs to be cached in.
12597         (check_window_subwindow_cache): new error checking function.
12598         (check_instance_cache_mapper): ditto.
12599         (check_image_instance_structure): ditto.
12600         (subwindow_decode_domain): new function. Encodes a window as a
12601         subwindow's cache domain.
12602         (image_instantiator_format_create): use it for text and
12603         subwindows.
12604
12605 2000-04-21  Andy Piper  <andy@xemacs.org>
12606
12607         * glyphs.c (image_instance_device): new function.
12608         (image_instance_frame): new function.
12609         (image_instance_window): new function.
12610         (image_instance_live_p): new function.
12611
12612         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12613         cache to nil.
12614
12615         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12616         (IMAGE_INSTANCE_DOMAIN): new accessor.
12617         (XIMAGE_INSTANCE_DOMAIN): ditto.
12618
12619         * glyphs-x.c (x_finalize_image_instance): device->domain.
12620
12621         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12622         (mswindows_finalize_image_instance): ditto.
12623
12624         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12625         (gif_instantiate): ditto.
12626         (png_instantiate): ditto.
12627         (tiff_instantiate): ditto.
12628
12629         * glyphs.c (instantiate_image_instantiator): use domain rather
12630         than device.
12631         (mark_image_instance): device -> domain.
12632         (print_image_instance): ditto.
12633         (finalize_image_instance): ditto.
12634         (image_instance_equal): ditto.
12635         (allocate_image_instance): ditto.
12636         (Fcolorize_image_instance): ditto.
12637         (query_string_geometry): ditto.
12638         (image_instantiate): ditto
12639         (query_string_font): ditto.
12640         (image_instantiate): ditto.
12641         (update_subwindow): ditto.
12642         (unmap_subwindow): ditto.
12643         (map_subwindow): ditto.
12644         (subwindow_instantiate): ditto.
12645
12646         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12647         (DOMAIN_FRAME): ditto.
12648         (DOMAIN_WINDOW): ditto.
12649         (DOMAIN_LIVE_P): ditto.
12650         (XDOMAIN_DEVICE): ditto.
12651         (XDOMAIN_FRAME): ditto.
12652         (XDOMAIN_WINDOW): ditto.
12653
12654         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12655         a valid specifier domain.
12656
12657 2000-04-19  Andy Piper  <andy@xemacs.org>
12658
12659         * glyphs-widget.c (syms_of_glyphs_widget): remove
12660         widget-callback-current-channel.
12661         (vars_of_glyphs_widget): ditto.
12662         * glyphs.h: ditto
12663
12664         * gui.c (get_gui_callback): revert to previous behaviour.
12665
12666 2000-04-18  Andy Piper  <andy@xemacs.org>
12667
12668         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12669         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12670         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12671
12672         * glyphs.c (image_instance_equal): add margin_width.
12673         (image_instance_hash): ditto.
12674
12675         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12676         (layout_query_geometry): ditto.
12677         (layout_layout): ditto.
12678         (syms_of_glyphs_widget): add margin-width.
12679         (image_instantiator_layout): allow margin-width.
12680
12681         * glyphs.c (update_widget_instances): make a normal function.
12682         (syms_of_glyphs): remove Qupdate_widget_instances.
12683         * glyphs.h: ditto.
12684
12685         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12686         so that we don't corrupt ideas about the last event or
12687         command. Remove widget-callback-current-channel fiddling.
12688         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12689
12690 2000-05-01  Martin Buchholz <martin@xemacs.org>
12691
12692         * XEmacs 21.2.33 is released.
12693
12694 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12695
12696         * make-src-depend: Allow dots in header file name.
12697
12698 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12699
12700         * mule-charset.h (struct charset_lookup): Add
12701         next_allocated_1_byte_leading_byte and
12702         next_allocated_2_byte_leading_byte.
12703         * mule-charset.c: Move above two variables so that those values
12704         will be dumped.
12705
12706 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12707
12708         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12709         when string length is zero.
12710         (find_charsets_in_emchar_string): Ditto.
12711
12712 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12713
12714         * lisp.h: extern Qdialog and Qmenubar.
12715
12716         * gui-x.c: added events.h.
12717                 also fixed typo which made the file uncompilable.
12718
12719         * general.c: Added Qmenubar and Qdialog
12720
12721 2000-04-28  Ben Wing  <ben@xemacs.org>
12722
12723         * frame-msw.c (mswindows_init_frame_1):
12724         * frame-msw.c (mswindows_mark_frame):
12725         * event-msw.c (mswindows_enqueue_dispatch_event):
12726         * console-msw.h:
12727         * console-msw.h (struct mswindows_frame):
12728         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12729         there are now three hash tables for callbacks.
12730         mswindows_enqueue_dispatch_event is no longer static.
12731
12732         * dialog-x.c (maybe_run_dbox_text_callback):
12733         * dialog-x.c (dbox_descriptor_to_widget_value):
12734         switch to new cons3 form for callbacks.
12735
12736         * glyphs-msw.c (mswindows_register_gui_item):
12737         * glyphs-msw.c (mswindows_widget_instantiate):
12738         * glyphs-msw.c (add_tree_item):
12739         * glyphs-msw.c (add_tab_item):
12740         new image instance parameter, so it can be passed to callback-ex.
12741         respect :callback-ex as well as :callback.
12742
12743         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12744         add :callback-ex.
12745
12746         * glyphs.c (print_image_instance):
12747         prettify, e.g. now prints widget type.
12748
12749         * gui-x.h:
12750         certain funs have new image instance parameter.
12751
12752         * gui.c:
12753         * gui.c (get_gui_callback):
12754         * gui.c (gui_item_add_keyval_pair):
12755         * gui.c (gui_item_init):
12756         * gui.c (gui_add_item_keywords_to_plist):
12757         * gui.c (mark_gui_item):
12758         * gui.c (gui_item_hash):
12759         * gui.c (gui_item_equal):
12760         * gui.c (copy_gui_item):
12761         * gui.c (syms_of_gui):
12762         recognize callback-ex in a number of places.
12763         also, fix the annoying "can't get out of yes-no dialog" bug.
12764
12765         * gui.h:
12766         * gui.h (struct Lisp_Gui_Item):
12767         recognize callback-ex in a number of places.
12768
12769         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12770         new parameter in button_item_to_widget_value.
12771
12772         * glyphs-x.c (x_update_widget):
12773         * glyphs-x.c (x_button_instantiate):
12774         * glyphs-x.c (x_button_update):
12775         * glyphs-x.c (x_progress_gauge_instantiate):
12776         * glyphs-x.c (x_edit_field_instantiate):
12777         * glyphs-x.c (x_combo_box_instantiate):
12778         * glyphs-x.c (x_tab_control_instantiate):
12779         * glyphs-x.c (x_label_instantiate):
12780         new image instance parameter in various places.
12781
12782         * event-Xt.c:
12783         * event-Xt.c (enqueue_Xt_dispatch_event):
12784         this fun gets exported.
12785
12786         * gui-msw.c:
12787         * gui-msw.c (mswindows_handle_gui_wm_command):
12788         handle both :callback and :callback-ex, and generate our own
12789         event because it's one of the callback-ex arguments.
12790
12791         * gui-x.c:
12792         * gui-x.c (popup_selection_callback):
12793         handle both :callback and :callback-ex, and generate our own
12794         event because it's one of the callback-ex arguments.
12795         * gui-x.c (button_item_to_widget_value):
12796         * gui-x.c (gui_items_to_widget_values_1):
12797         * gui-x.c (gui_item_children_to_widget_values):
12798         * gui-x.c (gui_items_to_widget_values):
12799         new image instance parameter in various places.
12800
12801         * fns.c (Freplace_list):
12802         fix small typo in doc string.
12803
12804         * lisp.h:
12805         declare enqueue_Xt_dispatch_event.
12806
12807 2000-04-28  Ben Wing  <ben@xemacs.org>
12808
12809         * buffer.c:
12810         * buffer.c (Frecord_buffer):
12811         * buffer.c (syms_of_buffer):
12812         delete record-buffer-hook.
12813
12814         * fns.c:
12815         * fns.c (Freplace_list):
12816         * fns.c (syms_of_fns):
12817         new primitive replace-list.
12818
12819         * frameslots.h:
12820         slot for old buffer-alist.
12821
12822         * lisp.h:
12823         exfun replace-list.
12824
12825         * redisplay.c:
12826         * redisplay.c (redisplay_frame):
12827         * redisplay.c (syms_of_redisplay):
12828         * redisplay.c (vars_of_redisplay):
12829         new hook buffer-list-changed-hook.
12830         call it.
12831
12832 2000-04-27  Ben Wing  <ben@xemacs.org>
12833
12834         * extents.h: extern in_modeline_generation.
12835
12836         * redisplay.c (generate_formatted_string_db): set
12837         in_modeline_generation.
12838
12839         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12840         flags if in modeline generation.  otherwise frame-modified-tick
12841         is ticked far too often.
12842         Declare in_modeline_generation.
12843
12844 2000-04-26  Ben Wing  <ben@xemacs.org>
12845
12846         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12847         option.
12848         (vars_of_emacs): add quick-build as an error-checking option.
12849         A bit kludgy, but there doesn't seem much point in creating
12850         a real var for this.
12851
12852         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12853
12854 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12855
12856         * redisplay.h (struct display_line): Add a new variable,
12857         line_continuation.
12858
12859         * redisplay.c (create_text_block): Set dl->line_continuation if
12860         the line continues.
12861         (create_string_text_block): Ditto.
12862         (regenerate_window_incrementally): Use line_continuation instead
12863         of searching continuation glyph.
12864         (add_margin_runes): Call add_glyph_rune.
12865         (add_glyph_rune): Handle margin glyph.
12866
12867 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12868
12869         * filelock.c (fill_in_lock_file_name):
12870         ANSIfy.
12871         Check for IS_ANY_SEP instead of '/'.
12872         (lock_file_1):
12873         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12874         Never check errno without first seeing that system call failed.
12875         (unlock_file): Add GCPRO.
12876         (Flock_buffer): Fix docstring.
12877         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12878
12879 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12880
12881         * sysdep.c (get_pty_max_bytes):
12882         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12883         strings longer than 252 bytes.
12884
12885         * md5.c: Unconditionally include ANSI header <limits.h>
12886
12887         * glyphs-x.c (convert_EImage_to_XImage):
12888         * lisp-union.h (union Lisp_Object):
12889         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12890
12891 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12892
12893         * filelock.c (current_lock_owner): Remove unused variable o, p.
12894
12895 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12896
12897         * callint.c: Remove multiply defined symbol Qlet
12898         (syms_of_callint): ditto.
12899
12900 2000-04-14  Andy Piper  <andy@xemacs.org>
12901
12902         * general.c (syms_of_general): add last-command, this-command, let
12903         and funcall.
12904
12905         * lisp.h: declare various symbols.
12906
12907         * glyphs.h: declare Qwidget_callback_current_channel;
12908
12909         * glyphs-widget.c (syms_of_glyphs_widget): add
12910         Qgui_callback_current_channel.
12911         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12912
12913         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12914         widget-callback-current-channel when invoking the interactive
12915         arg. Also bind last-command and next-command when invoking the
12916         widget updates.
12917         * gui-x.c (popup_selection_callback): ditto.
12918
12919         * gui.c (get_gui_callback): massage args so that we are always
12920         calling eval. This allows us to add our own variable bindings
12921         outside.
12922
12923         * glyphs-x.c (x_button_instantiate): use
12924         gui_items_to_widget_values since this is GC safe.
12925         (x_progress_gauge_instantiate): ditto.
12926         (x_edit_field_instantiate): ditto.
12927         (x_label_instantiate): ditto.
12928
12929         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12930         (emacs_Xt_event_widget_focus_out): new function
12931         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12932         focus.
12933         (emacs_Xt_event_add_widget_actions): new function. add focus
12934         functions as actions.
12935         (init_event_Xt_late): use it.
12936
12937 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12938
12939         * event-stream.c (Fdispatch_event): Doc fix.
12940
12941 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12942
12943         * postgresql.c: Remove all references to PQsetenv*.
12944
12945         * postgresql.h: Remove references to PGsetenvHandler object.
12946         * lrecord.h (lrecord_type): Ditto.
12947
12948 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12949
12950         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12951         real_heigh and real_width members, and accessor macros for these.
12952
12953         * glyphs-msw.c (init_image_instance_geometry): New function.
12954         (init_image_instance_from_dibitmap): Use it.
12955         (mswindows_resource_instantiate): Use it.
12956         (init_image_instance_from_xbm_inline): Use it.
12957         (mswindows_initialize_image_instance_mask): Use real bitmap
12958         geometry.
12959         (mswindows_create_resized_bitmap): Ditto.
12960         (mswindows_create_resized_mask): Ditto.
12961
12962         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12963         and bitmap to their surface size.
12964
12965 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12966
12967         * process-unix.c (unix_send_process): Guard against process MIA
12968         after Faccept_process_output.
12969
12970 2000-04-11  Ben Wing  <ben@xemacs.org>
12971
12972         * eval.c (unbind_to_hairy): fix brokenness introduced by
12973         nanosecond speed improvements.
12974
12975 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12976
12977         * sunplay.c (init_device): To play sounds correctly, the device
12978         apparently needs to be initialized at least once by XEmacs.  Make
12979         it so.
12980
12981 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12982
12983         * redisplay.c (add_margin_runes): Add text image glyph
12984           handling.
12985
12986 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12987
12988         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12989         gcc is newer than 2.5.
12990
12991 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12992
12993         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12994
12995         * fns.c (size_bit_vector):
12996         * alloc.c (size_vector):
12997         (make_vector_internal):
12998         (make_bit_vector_internal):
12999         (sweep_bit_vectors_1):
13000         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13001
13002 2000-04-06  Andy Piper  <andy@xemacs.org>
13003
13004         * gmalloc.c (malloc): undo previous change.
13005         (malloc): ditto.
13006         (free): ditto.
13007         (realloc): ditto.
13008
13009 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13010
13011         * line-number.c (buffer_line_number): Revert to former version.
13012
13013 2000-04-06  Andy Piper  <andy@xemacs.org>
13014
13015         * gmalloc.c (malloc): add error checking.
13016         (malloc): ditto.
13017         (free): ditto.
13018         (realloc): ditto.
13019
13020         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13021         button_item_to_widget_value arg.
13022
13023         * glyphs-x.c (x_button_instantiate): add extra
13024         button_item_to_widget_value arg.
13025         (x_progress_gauge_instantiate): ditto.
13026         (x_edit_field_instantiate): ditto.
13027         (x_label_instantiate): ditto.
13028
13029         * gui-x.c (gui_items_to_widget_values_1): add extra
13030         button_item_to_widget_value arg.
13031         (button_item_to_widget_value): add extra menu_item_p arg.
13032
13033         * gui-x.h: change signature of button_item_to_widget_value.
13034
13035         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13036         button_item_to_widget_value arg.
13037
13038 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13039
13040         * buffer.h (struct buffer): auto_save_modified should be long.
13041
13042 2000-04-05  Andy Piper  <andy@xemacs.org>
13043
13044         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13045         type.
13046         (button_query_geometry): give a little more room so that athena
13047         buttons fit.
13048
13049 2000-04-05  Andy Piper  <andy@xemacs.org>
13050
13051         * faces.c (complex_vars_of_faces): The widget face should inherit
13052         the font of the gui-element face.
13053
13054 2000-04-04  Andy Piper  <andy@xemacs.org>
13055
13056         * glyphs-x.c (x_button_update): new function. unconditionally
13057         update a button's state when the instance is dirty.
13058         (image_instantiator_format_create_glyphs_x): add x_button_update.
13059         (x_widget_instantiate): remove old resize cruft.
13060
13061 2000-04-02  Andy Piper  <andy@xemacs.org>
13062
13063         * frame.c (change_frame_size_1): The introduction of gutters means
13064         that we need to allow 0 as a potential frame dimension.
13065
13066 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13067
13068         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13069         image glyph if allow_cursor.
13070         (add_hscroll_rune): Don't allow cursor to border glyph.
13071         (create_text_block): Ditto.
13072
13073         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13074         text not in buffer.
13075         (redisplay_output_layout): Call ensure_face_cachel_complete for
13076         text image glyph.
13077
13078
13079 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13080
13081         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13082
13083         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13084         not in buffer
13085
13086         * redisplay-tty.c (tty_output_display_block): Delete the routine
13087         for text image glyph
13088         * redisplay-x.c (x_output_display_block): ditto
13089         * redisplay-msw.c (mswindows_output_display_block): ditto
13090
13091 2000-02-02  Mike Alexander  <mta@arbortext.com>
13092
13093         Note: Some of these were committed by accident as part of other
13094         patches.
13095
13096         * regex.c (regex_compile): Avoid compiler warnings.
13097
13098         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13099
13100         * nt.h: Declare term_ntproc correctly.
13101
13102         * nt.c: Remove incorrect declaration of get_home_directory which
13103         is declared correctly in lisp.h.
13104
13105         * keymap.c (get_keyelt): Avoid compiler warnings.
13106         (raw_lookup_key_mapper): Avoid compiler warnings.
13107
13108         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13109
13110         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13111
13112         * filemode.c (mode_string): Avoid compiler warnings.
13113
13114         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13115         avoid warning.
13116
13117         * events-mod.h: Undef some things that winuser.h defines differently.
13118
13119         * data.c (Faset): Avoid compiler warnings.
13120
13121         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13122
13123 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13124
13125         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13126         Fall through to simple beep on error.
13127         Replace "extern" by real header file.
13128
13129         * linuxplay.c: Use nativesound.h
13130         (play_sound_data): Return error code. Be less verbose on error.
13131
13132         * sunplay.c: Use nativesound.h
13133         (play_sound_data): Return error code. Be less verbose on error.
13134
13135         * ntplay.c: Use nativesound.h
13136         (play_sound_data): Return fake error code
13137
13138         * sgiplay.c: Use nativesound.h
13139         (play_sound_data): Return error code
13140
13141         * hpplay.c: Use nativesound.h, partially implement
13142         new error code. Break compilation until finished.
13143         (play_sound_data): error code.
13144
13145         * nativesound.h (play_sound_file):
13146           (play_sound_data): Prototype in new header.
13147
13148 2000-03-31  Andy Piper  <andy@xemacs.org>
13149
13150         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13151         for toggle and radio buttons.
13152         (image_instantiator_buttons): use it.
13153
13154 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13155
13156         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13157         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13158         found. Scrollbar event probably belonged to some old config.
13159
13160 2000-03-31  Andy Piper  <andy@xemacs.org>
13161
13162         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13163         than 1.
13164         (initialize_widget_image_instance): default layout to
13165         LAYOUT_HORIZONTAL rather than 0.
13166         (widget_instantiate): reverse the item list at the end rather than
13167         every iteration.
13168         (layout_layout): re-code for the border text at the front of the
13169         item list rather than at the end.
13170         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13171         provided by the user.
13172         (widget_query_geometry): comment.
13173
13174 2000-03-30  Andy Piper  <andy@xemacs.org>
13175
13176         * glyphs-widget.c (image_instantiator_layout): allow standard
13177         widget keywords in layouts.
13178
13179         * gutter.c (output_gutter): cope with nil gutter contents.
13180
13181         * frame.c (Fset_frame_properties): add gutter docs.
13182
13183 2000-03-29  Andy Piper  <andy@xemacs.org>
13184
13185         * toolbar-msw.c (TBSTYLE_FLAT): add.
13186         (mswindows_output_toolbar): minor fiddling.
13187
13188 2000-03-29  Andy Piper  <andy@xemacs.org>
13189
13190         * gutter.c (output_gutter): force gutter size recalculation if
13191         what we are trying to display won't fit.
13192         (update_gutter_geometry): new function. A per-gutter version of
13193         update_frame_gutter_geometry.
13194         (update_frame_gutter_geometry): use it.
13195         (redraw_exposed_gutter): add extra debugging output.
13196
13197 2000-03-28  Mike Alexander  <mta@arbortext.com>
13198
13199         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13200         (pdump_file_unmap): Implement it on Windows
13201         (pdump_file_get): Save alocated handles for pdump_file_unmap
13202
13203 2000-03-28  Andy Piper  <andy@xemacs.org>
13204
13205         * gui.c (get_gui_callback): treat Quit specially.
13206
13207 2000-03-27  Andy Piper  <andy@xemacs.org>
13208
13209         * glyphs.c (image_instantiate): be careful to check in the same
13210         way we assigned.
13211
13212 2000-03-27  Didier Verna  <didier@xemacs.org>
13213
13214         * config.h.in: define the proper SMART_INCLUDE macro.
13215         handle renaming of `foo_h_path' to `foo_h_file'.
13216
13217         * database.c: ditto.
13218
13219         * emacs.c: ditto.
13220
13221         * linuxplay.c: ditto.
13222
13223         * terminfo.c: ditto.
13224
13225         * tooltalk.h: ditto.
13226
13227 2000-03-27  Andy Piper  <andy@xemacs.org>
13228
13229         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13230         gets updated whenever the face might have changed.
13231
13232 2000-03-26  Mike Alexander  <mta@arbortext.com>
13233
13234         * dumper.c (pdump_resource_free): Fix the comment.
13235
13236 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13237
13238         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13239
13240 2000-03-22  Mike Alexander  <mta@arbortext.com>
13241
13242         * dumper.c: Include Windows headers on Windows
13243         (pdump_resource_free): Add a body to the function
13244         (pdump_load): exe_name -> exe_path and add some comments.
13245
13246 2000-03-25  Mike Alexander  <mta@arbortext.com>
13247
13248         * gui.c (copy_gui_item_tree): Return a value in all cases
13249
13250 2000-03-21  Didier Verna  <didier@xemacs.org>
13251
13252         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13253         lwlib/config.h.in.
13254         (SMART_INCLUDE): new macro.
13255         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13256         the proper location.
13257
13258         * postgresql.c: use it.
13259
13260         * inline.c: ditto.
13261
13262 2000-03-24  Andy Piper  <andy@xemacs.org>
13263
13264         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13265         do this.
13266
13267 2000-03-24  Andy Piper  <andy@xemacs.org>
13268
13269         * redisplay-output.c (compare_runes): use image_instance_changed
13270         to detect changes. Do not depend on glyphs_changed, only depend on
13271         dirtiness.
13272          (redisplay_output_layout): add debug messages.
13273         (compare_runes): ditto.
13274
13275         * glyphs.h: declare new functions.
13276         (struct Lisp_Image_Instance): remove percent and associated
13277         accessors.
13278
13279         * gui.h: declare new copying functions.
13280
13281         * gui.c (copy_gui_item_tree): new function.
13282         (copy_gui_item): new function.
13283         (gui_item_id_hash): revert to standard hash.
13284         (gui_item_hash): ditto.
13285         (gui_item_hash_internal): deleted.
13286         (mark_gui_item): mark value.
13287         (gui_item_add_keyval_pair): add value.
13288         (gui_item_init): ditto.
13289         (gui_add_item_keywords_to_plist): ditto.
13290         (gui_item_equal): ditto.
13291         (syms_of_gui): add Q_value.
13292
13293         * glyphs-x.c (x_progress_gauge_update): use pending items and
13294         value for setting the state.
13295         (x_update_widget): don't set items from pending here.
13296
13297         * glyphs-widget.c (update_widget): update items here.
13298         (progress_gauge_set_property): use items for storing value. Put
13299         new value in pending items.
13300
13301         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13302         items for new value. Convert percent -> value.
13303         (mswindows_tab_control_update): don't update items here.
13304
13305         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13306         (update_subwindow): ditto.
13307         (image_instance_changed): new function. Compare hash values and
13308         past and present widget items.
13309         (image_instantiate): We more careful about where we instantiate
13310         things.
13311         (image_instantiate): add error checking.
13312
13313         * gutter.c (syms_of_gutter): use -hook.
13314
13315 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13316
13317         * console-tty.c (Fset_console_tty_input_coding_system): Use
13318         Qkeyboard.
13319         (Fset_console_tty_output_coding_system): Use Qterminal.
13320         (tty_init_console): Use Qkeyboard and Qterminal.
13321
13322 2000-03-21  Ben Wing  <ben@xemacs.org>
13323
13324         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13325         From Mike Alexander <mta@arbortext.com>.
13326
13327 2000-03-21  Ben Wing  <ben@xemacs.org>
13328
13329         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13330         process brokenness.  Proper implementation to come.
13331         * callproc.c:
13332         Rename call-process-internal to old-call-process-internal.
13333         New impl. in process.el.
13334
13335 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13336
13337         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13338
13339 2000-03-20  Andy Piper  <andy@xemacs.org>
13340
13341         * glyphs.c (full_list_hash): make hashes of the same elements in
13342         different orders return different values.
13343
13344 2000-03-20  Martin Buchholz <martin@xemacs.org>
13345
13346         * XEmacs 21.2.32 is released.
13347
13348 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13349
13350         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13351         (DFC_MALLOC_USE_CONVERTED_DATA):
13352         Add aliasing-safe casts to allow use with char* or unsigned char*
13353         lvalues.
13354
13355         * eldap.c (Fldap_open):
13356         (Fldap_search_basic):
13357         (Fldap_add):
13358         (Fldap_modify):
13359         Make C++-compilable.
13360         Make sure GCPRO'ed variables are initialized.
13361         Use temp variables to avoid repeated calls to Flength.
13362
13363 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13364
13365         * sysfile.h:
13366         Make sure PATH_MAX is always defined.
13367         Include limits.h for PATH_MAX.
13368         Deprecate use of MAXPATHLEN.
13369
13370 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13371
13372         * emacs.c: Add reinit_vars_of_fileio.
13373         * symsinit.h: Add reinit_vars_of_fileio.
13374         * fileio.c (reinit_vars_of_fileio): New.
13375         * fileio.c (Fmake_temp_name):
13376         Initialize temp_name random number from microseconds to make
13377         collisions even less likely.  Initialize always at process startup
13378         time.  (make-temp-name) used to return the same file name twice in
13379         a row when PDUMP.
13380         Random stylistic fiddling.
13381         Comment fixes.
13382
13383 2000-03-20  Andy Piper  <andy@xemacs.org>
13384
13385         * glyphs.c (image_instantiate): allow text glyphs to be
13386         instantiated in the minibuffer window.
13387
13388 2000-03-19  Andy Piper  <andy@xemacs.org>
13389
13390         * glyphs.c (image_instance_hash): be careful about which items we
13391         hash on.
13392
13393         * glyphs-widget.c (tab_control_set_property): record into pending
13394         items rather than the actual items.
13395
13396         * glyphs-x.c (x_update_widget): use pending items to update with.
13397
13398         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13399         to update with.
13400
13401         * glyphs.c (mark_image_instance): mark pending items.
13402
13403         * window.c (Fset_window_configuration): record the buffer.
13404         (Fselect_window): totally revert previous change which breaks many
13405         things.
13406
13407 2000-03-18  Andy Piper  <andy@xemacs.org>
13408
13409         * glyphs-msw.c (mswindows_tab_control_update): force selected
13410         item.
13411
13412         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13413         window domain cache, otherwise we get inconsistencies at
13414         startup. There is something fishy at startup which can lead to the
13415         minibuffer being the selected window when the gutter content is
13416         instantiated.
13417
13418         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13419         gcpros.
13420         (parse_gui_item_tree_children): ditto.
13421         (parse_gui_item_tree_item): ditto.
13422
13423         * glyphs.c (Fupdate_widget_instances): return something.
13424
13425 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13426
13427         * window.c (Fselect_window): Undo 2000-03-17 change.
13428
13429 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13430
13431         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13432         against v7.0 libraries.  Insta-coredump city until the postgres
13433         folks fix it.
13434
13435 2000-03-17  Andy Piper  <andy@xemacs.org>
13436
13437         * faces.c (complex_vars_of_faces): don't give the widget face an
13438         inherited background pixmap.
13439
13440         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13441         selected item.
13442
13443         * event-stream.c (Fdispatch_non_command_events): return something.
13444
13445         * gutter.c (output_gutter): use widget face.
13446         (clear_gutter): ditto.
13447
13448         * NEWS: adjust again.
13449
13450         * window.c (Fselect_window): make sure this runs to completion to
13451         avoid oddities with Fset_window_configuration.
13452         (Fcurrent_window_configuration): in general do not save the
13453         minibuffer as the selected window.
13454
13455         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13456
13457 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13458
13459         * emacs.c (Frunning_temacs_p): Revert previous patch.
13460         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13461
13462 2000-03-16  Andy Piper  <andy@xemacs.org>
13463
13464         * glyphs-x.c (x_tab_control_update): if no widget values then
13465         return.
13466
13467         * NEWS: update for new features.
13468
13469         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13470         synthetic event to the native system.
13471         (reinit_vars_of_event_Xt): set force_event_pending to
13472         emacs_Xt_force_event_pending.
13473
13474         * events.h (struct event_stream): add force_event_pending.
13475
13476         * specifier.c (recompute_one_cached_specifier_in_window): add
13477         comment.
13478
13479         * redisplay.c (redisplay_frame): don't call
13480         update_frame_subwindows. Reset subwindow cachels when
13481         subwindows_changed, removing this was an optimization too far.
13482
13483         * redisplay-output.c (compare_runes): reorganize so that we catch
13484         glyph changes when we want them. Set optimize_output when this
13485         would help layouts.
13486         (redisplay_output_layout): remove frame_really_changed, use
13487         optimize_output instead.
13488
13489         * redisplay-msw.c (mswindows_output_display_block): reset
13490         optimize_output after outputting a glyph.
13491         * redisplay-x.c (x_output_display_block): ditto.
13492         * redisplay-tty.c (tty_output_display_block): ditto.
13493
13494         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13495         functions.
13496         (gutter_specs_changed): do specific gutter positions.
13497         (top_gutter_specs_changed): new function. Only update the
13498         specified gutter specs.
13499         (bottom_gutter_specs_changed): ditto.
13500         (left_gutter_specs_changed): ditto.
13501         (right_gutter_specs_changed): ditto.
13502
13503         * gui.c (gui_item_hash_internal): new function, does a real hash.
13504         (gui_item_id_hash): use it.
13505         (gui_item_hash): hash the eval'ed gui_item.
13506
13507         * gui-x.c (popup_selection_callback): send an eval event to call
13508         Fupdate_widget_instances.
13509
13510         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13511         to call Fupdate_widget_instances.
13512
13513         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13514         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13515
13516         * glyphs.c: (update_frame_subwindows): deleted.
13517         (Fupdate_widget_instances): new function for updating the dirty
13518         state of widgets that might have changed.
13519         (syms_of_glyphs): add Qupdate_widget_instances.
13520         (full_list_hash): hash a list completely.
13521         (image_instance_hash): use it for items and properties.
13522
13523         * frame-msw.c (mswindows_size_frame_internal): remove unused
13524         variable.
13525
13526         * faces.h (struct face_cachel): fix comment.
13527
13528         * event-stream.c (Fdispatch_non_command_events): new
13529         function. Process non-command events, forcing an event cycle
13530         beforehand.
13531         (syms_of_event_stream): declare.
13532         (event_stream_force_event_pending): new function. Force an event
13533         on the native event queue so that an event cycle will occur next
13534         time we check.
13535
13536         * event-msw.c:
13537         (struct ntpipe_shove_stream):
13538         (mswindows_enqueue_dispatch_event):
13539         (mswindows_dequeue_dispatch_event):
13540         (mswindows_cancel_dispatch_event):
13541         (mswindows_pump_outstanding_events):
13542         (mswindows_drain_windows_queue):
13543         (mswindows_handle_paint):
13544         (mswindows_wnd_proc):
13545         (mswindows_key_to_emacs_keysym):
13546         (get_process_input_waitable):
13547         (emacs_mswindows_delete_stream_pair): re-indent file.
13548         (mswindows_need_event): do not process further fds if the windows
13549         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13550         fixes the 100% cpu problem.
13551         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13552
13553 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13554
13555         * alloc.h: New.
13556         * dumper.h: New.
13557         * dumper.c: New.
13558
13559         * emacs.c: Moved dump file searching to dumper.c.
13560         (Frunning_temacs_p): Fixed.
13561
13562         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13563         last_lrecord_type_index_assigned.
13564
13565 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13566
13567         * symsinit.h: Added reinit parameter to init_console_stream
13568         declaration.
13569
13570         * lisp.h: Added file parameter to pdump_load declaration.
13571
13572         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13573         support.  Added dump file searching.
13574
13575         * config.h.in: Added EMACS_PROGNAME.
13576
13577         * console-stream.c (init_console_stream): Fix reinitialisation
13578         when running from temacs.
13579
13580         * alloc.c (pdump): Add id support.
13581         (pdump_load): Add file parameter and signature/id support.
13582
13583         * Makefile.in.in: Add full pdump support.
13584
13585 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13586
13587         * postgresql.c: Update documentation to reflect latest code
13588         status.
13589         (print_result): Show tuple counts in printed representation when
13590         appropriate.
13591         (Fpq_put_nbytes): MULE-ize.
13592         (Fpq_get_line_async): Ditto.
13593
13594 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13595
13596         * postgresql.c (Fpq_lo_import): Fix return value.
13597         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13598
13599 2000-03-13  Ben Wing  <ben@xemacs.org>
13600
13601         * alloc.c (pdump_load):
13602         Fix compile warning under mswin.
13603
13604 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13605
13606         * postgresql.c: Mule-ization, bug fixes.
13607         Use PG_CODING to encapsulate coding system name changes.
13608         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13609         (pg-coding-system): Create.
13610
13611         (Fpq_conn_defaults): Mule-ize.
13612         (Fpq_connectdb): Mule-ize & bug fix.
13613         (Fpq_connect_start): Mule-ize.
13614         (Fpq_set_client_encoding): Mule-ize.
13615         (Fpq_finish): Document `DEAD' connection status.
13616         (Fpq_clear): Ditto.
13617         (Fpq_pgconn): Mule-ize.
13618         (Fpq_exec): Mule-ize & bug fix.
13619         (Fpq_send_query): Ditto.
13620         (Fpq_get_result): Ditto.
13621         (Fpq_res_status): Mule-ize.
13622         (Fpq_result_error_message): Mule-ize.
13623         (Fpq_ntuples): fix comments.
13624         (Fpq_fname): Mule-ize.
13625         (Fpq_fnumber): Mule-ize.
13626         (Fpq_ftype): fix comments.
13627         (Fpq_get_value): Mule-ize.
13628         (Fpq_cmd_status): Ditto.
13629         (Fpq_cmd_tuples): Ditto.
13630         (Fpq_oid_value): Ditto.
13631         (Fpq_notifies): Ditto.
13632         (Fpq_lo_import): Ditto.
13633         (Fpq_lo_export): Ditto.
13634         (Fpq_get_line): Ditto.
13635         (Fpq_put_line): Mule-ize and bug fix.
13636         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13637
13638 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13639
13640         * postgresql.c (vars_of_postgresql): Mule-ize.
13641         (Fpq_conn_defaults): Ditto.
13642
13643 2000-03-12  Ben Wing  <ben@xemacs.org>
13644
13645         * alloc.c (Fmake_byte_code):
13646         * alloc.c (debug_string_purity_print):
13647         * alloc.c (pdump_backtrace):
13648         * alloc.c (pdump_get_indirect_count):
13649         * alloc.c (pdump_register_sub):
13650         * alloc.c (pdump_register_object):
13651         * alloc.c (pdump_register_struct):
13652         * alloc.c (pdump_dump_data):
13653         * alloc.c (pdump_reloc_one):
13654         Minor cleanups.
13655
13656         * console-msw.c:
13657         * console-msw.c (GetConsoleHwnd):
13658         * console-msw.c (msw_hide_console):
13659         * console-msw.c (msw_show_console):
13660         * console-msw.c (msw_ensure_console_buffered):
13661         * console-msw.c (msw_output_console_string):
13662         * console-msw.c (console_type_create_mswindows):
13663
13664         a) Added functions to manipulate the console window for use with
13665         shell support.
13666
13667         b) Added support for writing text to the console, which is now
13668         used under Windows when xemacs is not being run non-interactively,
13669         to write text that would otherwise be destined for stdout because
13670         under these circumstances, text written to stdout tends to
13671         disappear and not be seen.
13672
13673         * console-msw.h:
13674         * event-Xt.c:
13675         * event-Xt.c (x_event_to_emacs_event):
13676         * event-Xt.c (describe_event_window):
13677         * events-mod.h (XEMACS_MOD_CONTROL):
13678         * events.c:
13679         * events.c (Fmake_event):
13680         * events.c (character_to_event):
13681         * events.c (event_to_character):
13682         * events.c (format_event_object):
13683         * events.c (Fevent_modifiers):
13684         * events.h:
13685         * events.h (struct key_data):
13686         * events.h (struct button_data):
13687         * events.h (struct misc_user_data):
13688         * frame-x.c (Fcde_start_drag_internal):
13689         * frame-x.c (Foffix_start_drag_internal):
13690         * gpmevent.c (Freceive_gpm_event):
13691         * keymap.c:
13692         * keymap.c (bucky_sym_to_bucky_bit):
13693         * keymap.c (control_meta_superify):
13694         * keymap.c (make_key_description):
13695         * keymap.c (keymap_lookup_directly):
13696         * keymap.c (create_bucky_submap):
13697         * keymap.c (keymap_store):
13698         * keymap.c (define_key_check_and_coerce_keysym):
13699         * keymap.c (define_key_parser):
13700         * keymap.c (define_key_alternate_name):
13701         * keymap.c (Fdefine_key):
13702         * keymap.c (raw_lookup_key_mapper):
13703         * keymap.c (struct map_keymap_unsorted_closure):
13704         * keymap.c (map_keymap_unsorted_mapper):
13705         * keymap.c (map_keymap_sort_predicate):
13706         * keymap.c (map_keymap_sorted):
13707         * keymap.c (accessible_keymaps_mapper_1):
13708         * keymap.c (where_is_recursive_mapper):
13709         * keymap.c (describe_map_mapper):
13710         * keymap.c (describe_map_sort_predicate):
13711         * keymap.c (describe_map):
13712         * keymap.c (complex_vars_of_keymap):
13713         And a number of other files, the key modifier preprocessor
13714         constants that xemacs uses have names that conflict with constants
13715         defined under MS Windows for other purposes, so they were renamed
13716         to begin with the prefix XEMACS_. The variables that hold such
13717         modifiers were changed to consistently be of type int to fix
13718         various compile warnings.
13719
13720         * console.c (complex_vars_of_console):
13721         * device.c:
13722         * device-msw.c:
13723         * device-msw.c (mswindows_finish_init_device):
13724         * device-msw.c (msw_get_workspace_coords):
13725         * device-msw.c (mswindows_device_system_metrics):
13726         and various other files, added support for a new
13727         device property called offset-workspace which returns the position
13728         of the upper left corner of the workspace area and goes along with
13729         the existing size-workspace property.
13730
13731         * dialog-msw.c:
13732         * dialog-msw.c (push_bufbyte_string_as_unicode):
13733         * dialog-msw.c (mswindows_popup_dialog_box):
13734         Added support for XEmacs-style accelerator specifications in
13735         button text.  Note: I didn't add support for this under X Windows,
13736         and somebody needs to do this.
13737
13738         * dialog.c:
13739         * dialog.c (Fpopup_dialog_box):
13740         Documented the support for accelerators that was just mentioned.
13741
13742         editfns.c (get_home_directory): Changed behavior under Windows
13743         when HOME not defined; former behavior was irretrievably broken.
13744
13745         * emacs.c:
13746         * emacs.c (main_1):
13747         * emacs.c (main):
13748         * minibuf.c (clear_echo_area_internal):
13749         * minibuf.c (echo_area_append):
13750         * print.c:
13751         * print.c (std_handle_out_external):
13752         * print.c (std_handle_out_va):
13753         * print.c (fatal):
13754         * print.c (write_string_to_stdio_stream):
13755         * print.c (output_string):
13756         * print.c (debug_print):
13757         * print.c (debug_backtrace):
13758         * print.c (debug_short_backtrace):
13759         Cleaned up the code that prints text to stdout so that this can be
13760         changed to output into a console window instead under MS Windows,
13761         as described above.
13762
13763         * eval.c:
13764         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13765         * eval.c (internal_catch):
13766         * eval.c (unwind_to_catch):
13767         * eval.c (throw_or_bomb_out):
13768         * eval.c (condition_case_1):
13769         * eval.c (signal_1):
13770         * eval.c (check_error_state_sanity):
13771         * eval.c (call_with_suspended_errors_1):
13772         * eval.c (call_with_suspended_errors):
13773         * eval.c (reinit_vars_of_eval):
13774         Added code to catch throw loops and check for a pesky bug that may
13775         be gone now.
13776
13777         * event-msw.c:
13778         * event-msw.c (key_needs_default_processing_p):
13779         * event-msw.c (mswindows_wnd_proc):
13780         * event-msw.c (mswindows_modifier_state):
13781         * event-msw.c (emacs_mswindows_quit_p):
13782         * event-msw.c (vars_of_event_mswindows):
13783         a) Added support for using the alt key to select menu items as is
13784         standard under MS Windows.  This is controlled using the variable
13785         menu-accelerator-enabled, just like under X Windows.  There is an
13786         option on the options menu to turn this support on.  I really
13787         think that it should be on by default under Windows, but I'm not
13788         going to make this change yet.
13789
13790         b)  Added support for dynamic display size changes under Windows.
13791
13792         * event-stream.c:
13793         * event-stream.c (maybe_echo_keys):
13794         * event-stream.c (Fnext_event):
13795         * event-stream.c (command_builder_find_leaf):
13796         * event-stream.c (lookup_command_event):
13797         * event-stream.c (execute_command_event):
13798         * event-stream.c (pre_command_hook):
13799         * event-stream.c (post_command_hook):
13800         * event-stream.c (syms_of_event_stream):
13801         * event-stream.c (vars_of_event_stream):
13802         * event-stream.c (complex_vars_of_event_stream):
13803         * events.h (struct command_builder):
13804
13805         a) Tried to clean up a little bit the horribly written x-specific
13806         accelerator code that crept into this file.  I moved this code
13807         into menubar-x.c where it belongs. I also needed to move the
13808         command builder structure into the file events.h because it is
13809         accessed directly by this accelerator code.  What I didn't do, but
13810         which should be done at some point, is to properly abstract this
13811         code using device methods instead of the kludgy way that it
13812         currently hooks into the event code.
13813
13814         b) Added the lisp variables this-command-properties and
13815         last-command- properties, which should be used to synchronize two
13816         adjacent commands in preference to playing games with the variable
13817         this-command, which is typically what happens.
13818
13819         c) Added some slightly nasty code to hook into the lisp support
13820         for shifted- motion-key selection.  This is actually necessary for
13821         somewhat complicated reasons, which are described in
13822         simple.el. (NB: I think the proper thing would be to have the code
13823         that calls the pre and post command hooks also call out to generic
13824         lisp functions in simple.el, where all built-in stuff could be
13825         added.  I will think about this more.)
13826
13827         * event-unixoid.c (poll_fds_for_input):
13828         * lread.c (readchar):
13829         * redisplay-tty.c (tty_clear_frame):
13830         * redisplay-x.c (x_get_gc):
13831         * signal.c (interrupt_signal):
13832         And a whole bunch of other files: fixed up places that printed
13833         directly to stderr to instead call the function stderr_out so that
13834         the changes I made under Windows work correctly.
13835
13836         * filemode.c (mode_string):
13837         Warning fixes.
13838
13839         * frame-msw.c:
13840         * frame-msw.c (mswindows_size_frame_internal):
13841         Fixed the computation of frame size and position to keep the frame
13842         within the workspace area, rather than within the physical
13843         dimensions of the screen, so that the frame doesn't overlap window
13844         manager decorations, such as the start menu and toolbar, typically
13845         at the bottom of the screen.
13846
13847         * frame.c (vars_of_frame):
13848         Changed the default frame title format under MS Windows to consist
13849         of buffername-XEmacs, which is standard under MS Windows.  I think
13850         it might be a good idea to change this everywhere because I think
13851         it is superior to the current frame title format, but this is the
13852         kind of change that is likely to cause some people to get annoyed,
13853         so I'm not making it.
13854
13855         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13856
13857         * gui-msw.c (mswindows_handle_gui_wm_command):
13858         Fixed compile warnings.
13859
13860         * gui-x.c:
13861         * gui-x.c (strdup_and_add_accel):
13862         * gui-x.c (button_item_to_widget_value):
13863         * gui-x.h:
13864         Added code to automatically put an accelerator onto the beginning
13865         of menu items that don't have one as is now the standard, and is
13866         described more later.  Also fixed things so that the menu item
13867         name can be an evaluated expression, again a new standard.
13868
13869         * gui.c:
13870         * gui.c (gui_item_add_keyval_pair):
13871         * gui.c (make_gui_item_from_keywords_internal):
13872         * gui.c (gui_add_item_keywords_to_plist):
13873         * gui.c (gui_item_accelerator):
13874         * gui.c (gui_name_accelerator):
13875         * gui.c (gui_item_included_p):
13876         * gui.c (gui_item_display_flush_left):
13877         * gui.c (gui_item_display_flush_right):
13878         * gui.c (parse_gui_item_tree_item):
13879         * gui.c (parse_gui_item_tree_children):
13880         * gui.c (parse_gui_item_tree_list):
13881         Mule-ized.  Cleanup.  GCPRO addition.
13882
13883         * line-number.c (buffer_line_number):
13884         * lisp.h:
13885         * lisp.h (EMACS_INT_MAX):
13886         Added the manifest constant EMACS_INT_MIN corresponding to the
13887         existing constant EMACS_INT_MAX.  This is partially to fix compile
13888         warnings under Windows, and partly for cleanliness.
13889
13890         * menubar-msw.c:
13891         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13892         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13893         * menubar-msw.c (displayable_menu_item):
13894         * menubar-msw.c (populate_menu_add_item):
13895         * menubar-msw.c (populate_or_checksum_helper):
13896         * menubar-msw.c (populate_menu):
13897         * menubar-msw.c (update_frame_menubar_maybe):
13898         * menubar-msw.c (prune_menubar):
13899         * menubar-msw.c (msw_char_is_accelerator):
13900         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13901         * menubar-msw.c (mswindows_handle_wm_command):
13902         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13903         * menubar-msw.c (mswindows_handle_wm_initmenu):
13904         * menubar-msw.c (mswindows_update_frame_menubars):
13905         * menubar-msw.c (mswindows_free_frame_menubars):
13906         * menubar-msw.c (mswindows_popup_menu):
13907         Fixed a bug in handling accelerators where an extra character
13908         would be displayed in the menu item.  Also generalized the
13909         function displayable_menu_item because it is now used by the
13910         dialog box code as well.  And finally, added code in the functions
13911         that create the menubar to extract a list of accelerators for the
13912         top level menubar, which is used in the event code to determine
13913         whether a particular alt-key combination should be used to invoke
13914         a menu item, or should be passed through to access the standard
13915         XEmacs keymap binding for this key combination.
13916
13917         Much needed GCPROing.
13918
13919         * menubar-x.c:
13920         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13921         * menubar-x.c (menu_item_descriptor_to_widget_value):
13922         * menubar-x.c (restore_in_menu_callback):
13923         * menubar-x.c (x_popup_menu):
13924         * menubar-x.c (menu_move_up):
13925         * menubar-x.c (menu_move_down):
13926         * menubar-x.c (menu_move_left):
13927         * menubar-x.c (menu_move_right):
13928         * menubar-x.c (menu_select_item):
13929         * menubar-x.c (command_builder_operate_menu_accelerator):
13930         * menubar-x.c (menu_accelerator_junk_on_error):
13931         * menubar-x.c (command_builder_find_menu_accelerator):
13932         * menubar-x.c (Faccelerate_menu):
13933         * menubar.h:
13934         Moved a whole bunch of code here that was previously in
13935         event-stream.c as described above.  There is also code connected
13936         to the new standard of adding an accelerator to the beginning of
13937         menu items that don't have one as described above and below.
13938
13939         * menubar.c:
13940         * menubar.c (menu_parse_submenu_keywords):
13941         * menubar.c (Fmenu_find_real_submenu):
13942         * menubar.c (Fnormalize_menu_item_name):
13943         * menubar.c (syms_of_menubar):
13944         * menubar.c (vars_of_menubar):
13945         * menubar.c (complex_vars_of_menubar):
13946
13947         a) Cleaned up a bunch of documentation and improved it.
13948
13949         b) XEmacs now automatically adds an accelerator onto the beginning
13950         of any menu items that don't have one.  I did this because there
13951         will inevitably be some menu items on the main menubar that don't
13952         have accelerators on them because the package that adds that
13953         particular menu item hasn't yet been fixed up to have accelerators
13954         in them and it looked rather strange to have some items with and
13955         some items without accelerators, especially since even in items
13956         without accelerators, you can, at least under windows, still
13957         access the item through an accelerator corresponding to the first
13958         character in the item's name.  If people don't like this behavior,
13959         I can add a variable to turn it off optionally, but I'm not sure
13960         this is a good idea because we really do need to have accelerators
13961         on all of the menu items, and if a package doesn't like the
13962         accelerators being put on the first character, then it should put
13963         the accelerators where they belong.
13964
13965         c) I made a behavior change, which is that the descriptor that
13966         specifies the text of the menu item, which formerly was just a
13967         string, can now also be an evaluated expression.  This makes this
13968         descriptor parallel with all of the others, which could also be
13969         evaluated expressions.  This also obviates the need for the
13970         keyword :label, which was previously listed in the documentation
13971         as unimplemented, and which was for the same purpose.
13972
13973         d) GCPROing.
13974
13975         * ntproc.c:
13976         * ntproc.c (new_child):
13977         * ntproc.c (sys_spawnve):
13978         * ntproc.c (find_child_console):
13979         * ntproc.c (sys_kill):
13980         Fixed compile warnings.  By the way, this file should really go
13981         away entirely, and this will happen as soon as Kirill makes his
13982         final round of process cleanups, which affect the function
13983         call-process.
13984
13985         * process-nt.c:
13986         * process-nt.c (struct nt_process_data):
13987         * process-nt.c (find_process_from_pid):
13988         * process-nt.c (send_signal_the_nt_way):
13989         * process-nt.c (enable_child_signals):
13990         * process-nt.c (find_child_console):
13991         * process-nt.c (send_signal_the_95_way):
13992         * process-nt.c (nt_finalize_process_data):
13993         * process-nt.c (ensure_console_window_exists):
13994         * process-nt.c (nt_create_process):
13995         * process-nt.c (nt_kill_child_process):
13996         * process-nt.c (nt_kill_process_by_pid):
13997         * process-nt.c (nt_open_network_stream):
13998         * process-nt.c (vars_of_process_nt):
13999         Copied over code from Emacs 20.5 to correctly send signals to sub-
14000         processes under Windows 95.  Also added code to automatically
14001         create and hide console window when a sub-process is created under
14002         Windows 95, which obviates the need for the separate runemacs.exe
14003         executable, and finally implemented some variables that were
14004         implemented in Emacs 20.5, but previously not in XEmacs.  These
14005         include mswindows- start-process-share-console and
14006         mswindows-start-process-inherit-error-mode. (Both of these only
14007         apply to Windows 95.)
14008
14009         * regex.c (regex_compile): Fixed a compile warning.
14010
14011         * select-msw.c:
14012         * select-msw.c (mswindows_own_selection):
14013         * select-msw.c (mswindows_get_foreign_selection):
14014         * select-msw.c (mswindows_disown_selection):
14015         * select-msw.c (console_type_create_select_mswindows):
14016         * select-msw.c (syms_of_select_mswindows):
14017         Cleaned up the file and implemented the device method
14018         selection_exists_p, which had accidentally been left out.  Also
14019         removed four lisp functions that were remnants from before the
14020         time when the selection code was properly device abstracted.
14021         These functions are no longer needed because there are generic
14022         equivalents, and because they were added recently and don't exist
14023         in FSF Emacs, I don't think there's any problem with just deleting
14024         them.
14025
14026         * sysdep.c:
14027         * sysdep.c (sys_subshell):
14028         Fixed a compile warning, although in this case there's probably
14029         something wrong with this code, and it ought to be looked into
14030         more thoroughly by somebody who understands it.
14031
14032         * window.c:
14033         * window.c (Fwindow_text_area_height):
14034         * window.c (Fwindow_width):
14035         * window.c (Fwindow_full_width):
14036         * window.c (Fwindow_pixel_width):
14037         * window.c (debug_print_window):
14038         * window.c (syms_of_window):
14039         Added functions window-text-area-height and window-full-width,
14040         which are functions for returning various width and height
14041         characteristics of a window. (One of these functions is necessary
14042         for making the file dialog box work correctly, and the other one
14043         was added for completeness.)  Also added a table to the
14044         documentation for window-height which describes the entire scheme
14045         for accessing width and height characteristics of a window.
14046
14047 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14048
14049         * nt.c (fstat): Added a comment for another problem with
14050         non-encapsulated [f]stat(), reported by Adrian Aichner
14051         <aichner@ecf.teradyne.com>.
14052
14053 2000-03-11  Andy Piper  <andy@xemacs.org>
14054
14055         * window.c (make_dummy_parent): initialize subwindow instance
14056         cache.
14057         (Fset_window_configuration): zero extent_modiff.
14058
14059 2000-03-10  Andy Piper  <andy@xemacs.org>
14060
14061         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14062         more changes can be triggered.
14063         (Fredisplay_frame): ditto.
14064         (Fredraw_device): ditto.
14065         (Fredisplay_device): ditto.
14066         (redisplay_frame): make non-static.
14067         (redisplay_frame): call update_frame_gutter_geometry outside of
14068         display proper.
14069
14070         * gutter.h: declare update_frame_gutter_geometry.
14071
14072         * redisplay.h: declare redisplay_frame.
14073
14074         * gutter.c (update_frame_gutter_geometry): move geometry changes
14075         in update_frame_gutters here. Geometry changes can only occur
14076         outside of redisplay.
14077         (update_frame_gutters): remove geometry change code.
14078         (Fredisplay_gutter_area): make sure that we are in display when we
14079         update and that we have flushed any size changes.
14080
14081 2000-03-11  Andy Piper  <andy@xemacs.org>
14082
14083         * alloc.c (pdump_dump_data): remove i & count shadows.
14084
14085 2000-02-27  Mike Alexander  <mta@arbortext.com>
14086
14087         * sysdep.h: Declare pdump_read_file
14088
14089         * sysdep.c (pdump_read_file): New function
14090
14091         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14092         dump data
14093
14094 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14095
14096         * lrecord.h: add `lrecord_type_pgsetenv'.
14097
14098 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14099
14100         * symsinit.h: declare (vars|syms)_of* functions.
14101         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14102
14103 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14104
14105         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14106
14107         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14108         GCCs.
14109
14110         * emacs.c (main_1): Call postgres initialization code.
14111
14112         * postgresql.h: New file.  PostgreSQL RDBMS support.
14113         * postgresql.c: New file.
14114
14115 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14116
14117         * redisplay-output.c (redisplay_output_display_block): Disable
14118         redundant code.
14119
14120 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14121
14122         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14123         (Fcanna_henkan_next): Ditto.
14124         (Fcanna_bunsetu_henkou): Ditto.
14125         (Fcanna_henkan_kakutei): Ditto.
14126         (Fcanna_henkan_end): Ditto.
14127         (Fcanna_henkan_quit): Ditto.
14128         (Fcanna_henkan_next): Set retun value correctly.
14129         (c2mu): Use unsigned char instead of signed char.
14130
14131 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14132
14133         * emacs.c (main_1): Always call syms_of_gui.
14134         * inline.c: include gui.h
14135
14136 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14137
14138         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14139         converted to Lisp_Object.
14140         (Qtop_bottom): New variable.
14141         (syms_of_redisplay): Initialize it.
14142         * redisplay.h (Vvisible_bell): Ditto.
14143         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14144         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14145         only flash top and bottom.
14146
14147 2000-03-08  Andy Piper  <andy@xemacs.org>
14148
14149         * buffer.c (Frename_buffer): record new buffer name the right way.
14150
14151 2000-03-08  Andy Piper  <andy@xemacs.org>
14152
14153         * glyphs.c (update_subwindow): increase hash depth so that widget
14154         items get picked up properly.
14155
14156         * redisplay-output.c (compare_runes): increase hash depth so that
14157         widget items get picked up properly.
14158
14159 2000-03-08  Andy Piper  <andy@xemacs.org>
14160
14161         * gutter.c (output_gutter): add some debug.
14162
14163         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14164         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14165         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14166
14167         * redisplay-output.c (compare_runes): use display_hash to
14168         determine if glyphs really are not the same.
14169
14170         * glyphs.c (update_subwindow): check display_hash to see if
14171         anything really needs to be updated. If not then do
14172         nothing. Record the display_hash after updating.
14173         (image_instance_equal): compare the image_instance face also.
14174
14175 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14176
14177         * redisplay.h: Fix comment style.
14178
14179 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14180
14181         * consle-msw.h (struct mswindows_frame):
14182         Added new member paint_pending to indicate whether a WM_PAINT
14183         magic event has been queued for this frame.
14184
14185         * event-msw.c (mswindows_drain_windows_queue):
14186         Don't queue a WM_PAINT magic event if one is already queued.
14187         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14188
14189         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14190
14191 2000-03-07  Didier Verna  <didier@xemacs.org>
14192
14193         * dired.c: #include `regex.h' after `sysfile.h'.
14194
14195 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14196
14197         * sound.c (init_nas_sound): Fix compiler warning.
14198
14199         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14200         (FREE_STRUCT_P):
14201         (MARK_STRUCT_AS_FREE):
14202         (MARK_STRUCT_AS_NOT_FREE):
14203         Make `gcc -fstrict-aliasing' work properly.
14204
14205 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14206
14207         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14208         (mswindows_delete_device): Call CoUnnitialize().
14209
14210         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14211
14212 2000-02-25    <CraigL@DyCon.com>
14213
14214         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14215         <errno.h>.
14216
14217         * sysdep.c: This extern declaration for environ prevents MinGW
14218         from finding the variable in CRTDLL.DLL.
14219
14220         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14221         windows headers.
14222         (SHGFI_EXETYPE): ..
14223         (WM_MOUSEWHEEL): ..
14224         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14225         definitions.
14226         (MMRESULT): Removed, now defined in cygwin's windows headers.
14227         (TIMECAPS): ..
14228         (uid_t,gid_t,pid_t,ssize_t): ..
14229         (_timeb): Removed, MinGW defines both _timeb and timeb.
14230         (HAVE_H_ERRNO): Added.
14231         (HAVE_TZNAME): Added, configure is not detecting this.
14232
14233 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14234
14235         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14236         * syntax.c (syntax_match): Use it.
14237
14238         * cmds.c: Import auto-fill-chars from FSF Emacs.
14239         (Vauto_fill_chars): New variables.
14240         (internal_self_insert): Check Vauto_fill_chars.
14241         (vars_of_cmds):
14242         Declare auto-fill-chars as a Lisp variable and initialize it.
14243
14244 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14245
14246         * fileio.c (Fmake_symbolic_link):
14247         (Ffile_symlink_p):
14248         Run handlers even if local machine doesn't have symlinks.
14249
14250 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14251
14252         * event-msw.c (mswindows_drain_windows_queue):
14253         Don't generate paint magic events for non-XEmacs frames.
14254
14255 2000-03-05  Andy Piper  <andy@xemacs.org>
14256
14257         * redisplay.c (redisplay_frame): generate_displayable_area and
14258         friends assumes that we are not in GC, we therefore have to make
14259         sure that this doesn't happen.
14260
14261         * gutter.c (calculate_gutter_size): generate_displayable_area
14262         assumes that we are not in GC, we therefore have to make sure that
14263         this doesn't happen.
14264
14265 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14266
14267         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14268
14269 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14270
14271         * redisplay.c (regenerate_window): Make sure we set a sane value
14272         for end_pos even if we jump out of the loop.
14273         (regenerate_window): Answer Ben's question :-).
14274         (start_end_of_last_line): Add may_error argument.
14275         (start_of_last_line):
14276         (end_of_last_line): Pass may_error = 0.
14277         (end_of_last_line_may_error): New function.
14278         (pixel_to_glyph_translation): Use it, so we don't crash in
14279         event_to_glyph.
14280
14281 2000-03-04  Andy Piper  <andy@xemacs.org>
14282
14283         * window.h (struct window): add gutter_extent_modiff.
14284
14285         * window.c (allocate_window): zero out gutter_extent_modiff.
14286
14287         * redisplay.h: declare sync_display_line_structs.
14288
14289         * redisplay.c (add_glyph_rune): add a better comment.
14290
14291         * redisplay-output.c (sync_display_line_structs): made non-static.
14292         (compare_runes): remove unneccesary glyph cachel access.
14293
14294         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14295
14296         * gutter.c (output_gutter): don't output the gutter if extent
14297         changes only involve extents in buffers. use 4 sets of display
14298         lines.
14299         (gutter_extent_signal_changed_region_maybe): new function. Mark
14300         extents in gutters as changed.
14301         (update_frame_gutters): use 4 sets of display lines.
14302         (reset_gutter_display_lines): ditto.
14303         (free_frame_gutters): ditto.
14304         (redraw_exposed_gutter): force output of gutters.
14305
14306         * frame.h (struct frame): add 4 sets of gutter display lines.
14307
14308         * extents.c: (extent_changed_for_redisplay): signal changes to
14309         extents in strings in the gutter as well as extents in buffers.
14310
14311 2000-03-02  Andy Piper  <andy@xemacs.org>
14312
14313         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14314
14315         * frame.c (Fmake_frame): make sure the gutters get initialized
14316         after the frame is visible.
14317         (set_frame_selected_window): re-arrange compilation macros a
14318         little.
14319         (change_frame_size_1): mark gutters changed.
14320
14321         * device.c (Fset_device_class): mark gutters changed.
14322
14323 2000-03-01  Andy Piper  <andy@xemacs.org>
14324
14325         * window.c (window_top_frame_gutter_height): deleted.
14326         (window_bottom_frame_gutter_height): ditto.
14327         (window_left_frame_gutter_height): ditto.
14328         (window_right_frame_gutter_height): ditto.
14329         (window_top_gutter_height): don't use them.
14330         (window_bottom_gutter_height): ditto.
14331         (window_left_gutter_width): ditto.
14332         (window_right_gutter_width): ditto.
14333         (Fsplit_window): ditto.
14334         (Fwindow_pixel_edges): don't use border dimensions here.
14335
14336         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14337         (update_scrollbar_instance): ditto.
14338
14339         * redisplay.c (generate_modeline): don't take gutters into account.
14340         (generate_modeline): ditto.
14341         (redisplay_frame): small gutter display optimization.
14342
14343         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14344
14345         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14346         gutters into account.
14347
14348         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14349         for window position and type.
14350
14351         * gutter.c (get_gutter_coords): fix for frame gutters.
14352         (update_frame_gutters): update frame geometry if the gutters have
14353         changed.
14354         (init_frame_gutters): record current gutter geometries.
14355
14356         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14357         var.
14358         (mswindows_widget_instantiate): ditto.
14359
14360         * frame.h (struct frame): add current_gutter_bounds.
14361
14362         * frame.c (change_frame_size_1): position window and minibuffer
14363         appropriately taking into account the frame gutters.
14364
14365         * frame-x.c: (x_initialize_frame_size): take into account the
14366         frame gutters.
14367
14368 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14369
14370         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14371
14372 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14373
14374         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14375
14376 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14377
14378         * file-coding.c (reset_decoding_stream): Clear previous
14379         detection state when autodetect.
14380
14381 2000-02-29  Didier Verna  <didier@xemacs.org>
14382
14383         * extents.c (set_extent_glyph_1): don't require extents to be
14384         attached.
14385
14386 2000-02-27  Andy Piper  <andy@xemacs.org>
14387
14388         * gutter.c (Fset_default_gutter_position): don't default left and
14389         right gutter visibility to t.
14390         (Fset_default_gutter_position): run
14391         default-gutter-position-changed-hook.
14392         (syms_of_gutter): add default-gutter-position-changed-hook.
14393
14394 2000-02-26  Andy Piper  <andy@xemacs.org>
14395
14396         * specifier.c (Fmake_specifier): add gutter references.
14397
14398         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14399
14400         * lisp.h: declare Fvalid_plist_p.
14401
14402         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14403         as changed.
14404         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14405         well as its visibility so that it gets reconstructed.
14406         (construct_window_gutter_spec): new function. Construct a string
14407         to be displayed in the gutter from a plist of strings. Take care
14408         to only use elements that are declared as visible.
14409         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14410         WINDOW_GUTTER.
14411         (gutter_validate): allow plists of strings in the specifier.
14412         (gutter_specs_changed): construct the real_gutter from the gutter
14413         specs using construct_window_gutter_spec.
14414         (gutter_visible_validate): gutter-visible is a new specifier type.
14415         (Fgutter_visible_specifier_p): new function for the new specifier.
14416         (syms_of_gutter): declare gutter-visible and
14417         Fgutter_visible_specifier_p.
14418         (specifier_type_create_gutter): intitalize new gutter-visible
14419         specifier.
14420         (reinit_specifier_type_create_gutter): ditto.
14421         (specifier_vars_of_gutter): use new specifier type for gutter
14422         visibility.
14423         (init_frame_gutters): construct real_gutter correctly.
14424         (Fgutter_specifier_p): beef up documentation.
14425         (Fgutter_size_specifier_p): ditto.
14426
14427         * winslots.h: add real_gutter slots.
14428
14429 2000-02-25  Andy Piper  <andy@xemacs.org>
14430
14431         * device-msw.c: Be kind to older cygwin versions. From Raymond
14432         Toy <toy@rtp.ericsson.se>.
14433
14434         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14435         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14436
14437 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14438
14439         * elhash.c (MARK_OBJ): Practice macro hygiene.
14440
14441 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14442
14443         * miscplay.c: s/__inline__/inline/g;
14444         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14445         (get_device_compdc): INLINE ==> static inline
14446         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14447         find -name '*.h' | \
14448         xargs global-replace \
14449         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14450
14451 2000-02-25  Andy Piper  <andy@xemacs.org>
14452
14453         * window.c (window_top_frame_gutter_height): new function.
14454         (window_top_window_gutter_height): ditto.
14455         (window_top_gutter_height): use them.
14456         (window_bottom_frame_gutter_height): new function.
14457         (window_bottom_window_gutter_height): ditto.
14458         (window_bottom_gutter_height): use them.
14459         (window_left_window_gutter_width): new function.
14460         (window_left_frame_gutter_width): ditto.
14461         (window_left_gutter_width): use them.
14462         (window_right_window_gutter_width): new function.
14463         (window_right_frame_gutter_width): ditto.
14464         (window_right_gutter_width): use them.
14465         (window_pixel_height): new function. calulate window pixel height
14466         with frame gutter involvement.
14467         (Fsplit_window): calculate new sizes taking frame gutters into
14468         account.
14469         (window_char_height_to_pixel_height): don't include frame gutters.
14470         (window_char_height): use window_pixel_height.
14471         (window_pixheight): rename from window_pixel_height.
14472         (change_window_height): use it.
14473         (window_pixel_height_to_char_height): don't include frame gutters.
14474         (window_char_width_to_pixel_width): ditto.
14475
14476 2000-02-25  Andy Piper  <andy@xemacs.org>
14477
14478         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14479         if it is.
14480
14481 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14482
14483         * alloc.c (staticpro):
14484         (staticpro_nodump):
14485         (dumpstruct):
14486         (dumpopaque):
14487         (pdump_wire):
14488         (pdump_wire_list):
14489         (compact_string_chars):
14490         (pdump_dump_wired):
14491         Convert:  if (foo) abort();  ==>  assert (! foo);
14492
14493         * eldap.c (Fldap_search_basic):
14494         (Fldap_add):
14495         (Fldap_modify):
14496         (Fldap_delete):
14497         Fix compiler warnings, and possible crashes if (random) return
14498         value were to be used.
14499
14500 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14501
14502         * device-msw.c: Workaround ResetDC failure.
14503
14504         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14505         applying a devmode.
14506
14507         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14508         (mswindows_text_width): Do not start printer page.
14509
14510         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14511
14512         * glyphs-msw.c: Added image methods to msprinter console and
14513         msprinter-specific image instantiation.
14514
14515 2000-02-20  Mike Alexander  <mta@arbortext.com>
14516
14517         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14518         to avoid crashes when selection-sets-clipboard is on
14519         (mswindows_own_selection): ditto
14520
14521 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14522
14523         * glyphs-msw.c:
14524         * redisplay-msw.c (get_frame_dc):
14525         (get_frame_compdc):
14526         * console-msw.h:
14527         * device-msw.c (mswindows_init_device):
14528         (mswindows_delete_device):
14529         (msprinter_init_device):
14530         (msprinter_delete_device):
14531         * frame-msw.c (mswindows_init_frame_1):
14532         (mswindows_delete_frame):
14533         (msprinter_init_frame_3):
14534         (msprinter_delete_frame): Move compatible DC to device object from
14535         frame object, for both mswindows and msprinter. Only one at a time
14536         is needed, it is a real waste to have one per frame!
14537
14538 2000-02-23  Andy Piper  <andy@xemacs.org>
14539
14540         * glyphs.c: add dynamic width and height elements.
14541         (image_instance_equal): ditto.
14542
14543         * glyphs-widget.c (widget_query_geometry): calculate width and
14544         height dynamically if required.
14545         (initialize_widget_image_instance): initialize dynamic dimensions.
14546         (widget_instantiate): pick-up dynamic dimensions.
14547
14548         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14549         dynamic determination. Add appropriate macros.
14550
14551         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14552         dimensions safe.
14553         (WINDOW_GUTTER_SIZE): ditto.
14554         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14555
14556         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14557         inline.
14558         (get_frame_dc): ditto.
14559
14560         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14561         here.
14562
14563 2000-02-23  Martin Buchholz <martin@xemacs.org>
14564
14565         * XEmacs 21.2.31 is released.
14566
14567 2000-02-22  Ben Wing <ben@xemacs.org>
14568
14569         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14570
14571 2000-02-22  Andy Piper  <andy@xemacs.org>
14572
14573         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14574
14575 2000-02-21  Mike Sperber <mike@xemacs.org>
14576
14577         * .dbxrc:
14578         * .gdbinit:
14579         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14580         variables.
14581
14582 2000-02-21  Mike Sperber <mike@xemacs.org>
14583
14584         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14585
14586 2000-02-21  Martin Buchholz <martin@xemacs.org>
14587
14588         * XEmacs 21.2.30 is released.
14589
14590 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14591
14592         Performance hacking.
14593         * *.c (syms_of_*):
14594         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14595         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14596         * emacs.c (main_1):
14597         * lisp.h (DEFUN):
14598         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14599         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14600         * symeval.h (DEFVAR_SYMVAL_FWD):
14601         * symbols.c (guts_of_unbound_marker):
14602         Make all c_readonly objects also lisp_readonly and marked for life.
14603         * lrecord.h (struct lrecord_implementation):
14604         Document flags better.
14605         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14606         * lrecord.h (DECLARE_LRECORD):
14607         * lrecord.h (XSETRECORD):
14608         * lrecord.h (RECORDP):
14609         * lrecord.h (RECORD_TYPEP):
14610         * lrecord.h (RECORD_MARKER): New.
14611         * lrecord.h (error_check_*):
14612         * lrecord.h (CONCHECK_NONRECORD):
14613         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14614         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14615         * lrecord.h (set_lheader_implementation):
14616         * lrecord.h (enum lrecord_type): New.
14617         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14618         * alloc.c (disksave_object_finalization_1):
14619         * alloc.c (mark_object):
14620         * alloc.c (lrecord_type_index):
14621         * alloc.c (tick_lcrecord_stats):
14622         * alloc.c (Fgarbage_collect):
14623         * alloc.c (init_alloc_once_early):
14624         * alloc.c (pdump_load):
14625         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14626         * alloc.c (lrecord_type_index): Delete.
14627         Make lisp object type indexes be constant.
14628           Makes (byte-compile) 5% faster.
14629         Put all marker functions into their own array.
14630           Makes (garbage-collect) 5% faster.
14631         Optimize SYMBOL_VALUE_MAGIC_P.
14632           Makes (byte-compile) 2-3% faster.
14633         * config.h.in (gc_checking_assert): New.
14634         * alloc.c: Use gc_checking_assert().
14635         * .dbxrc: Make compatible with new object type implementation.
14636         * .gdbinit: Make compatible with new object type implementation.
14637         * alloc.c: Delete all symbols defined only for debugging, such as
14638         Lisp_Type_Vector and lrecord_charset.
14639
14640 2000-02-21  Andy Piper  <andy@xemacs.org>
14641
14642         * gui-msw.c (Fmswindows_shell_execute): fix file location
14643         problems.
14644
14645         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14646         unshowing so that set_window_buffer doesn't undo
14647         kill_buffer_hook's hard work.
14648
14649         * glyphs-widget.c (tab_control_query_geometry): don't count the
14650         first item when calculating geometry.
14651
14652         * glyphs.c (map_subwindow): remove redundant code.
14653         (update_frame_subwindows): be more circumspect about when to
14654         update subwindows.
14655
14656         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14657         when items haven't changed. Update faces if faces have changed as
14658         well as just the widget face.
14659         (x_tab_control_update): Update faces if faces have changed as well
14660         as just the widget face.
14661
14662 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14663
14664         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14665         registration.
14666         (build_syscolor_string): Use mswindows_color_to_string to try to
14667         get a named color.
14668         (mswindows_device_system_metrics): Reverse the foreground and
14669         background colors so that they match the documentation.
14670
14671         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14672         they match the default Windows palette.
14673         (mswindows_color_to_string): New function.
14674
14675 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14676
14677         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14678
14679 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14680
14681         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14682         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14683
14684         * symbols.c (init_symbols_once_early): Removed obsolete
14685         DATA_SEG_BITS related kludge.
14686         (defvar_magic): Ditto.
14687
14688         * malloc.c: Removed obsolete DATA_SEG_BITS
14689         * ralloc.c: Ditto.
14690         * mem-limits.h: Ditto.
14691
14692         * Makefile.in.in: Removed obsolete HAVE_SHM
14693         * emacs.c: Ditto.
14694
14695 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14696
14697         *  device-msw.c (mswindows_delete_device): Free DDE string
14698         handles.
14699
14700 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14701
14702         * keymap.c (get_keyelt):
14703         * unexnt.c (unexec):
14704         * vm-limit.c (memory_warnings):
14705         * ntheap.c (recreate_heap):
14706         * ntheap.h (UNINIT_PTR):
14707         * select-msw.c (Fmswindows_get_clipboard):
14708         (Fmswindows_set_clipboard):
14709         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14710         * objects-msw.c:
14711         * menubar-msw.c (displayable_menu_item):
14712         * glyphs-msw.c:
14713         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14714         * sysdep.c (sys_subshell):
14715         * process-nt.c (nt_create_process):
14716         * nt.c (normalize_filename):
14717         (dostounix_filename):
14718         (unixtodos_filename):
14719         * ntproc.c (win32_executable_type):
14720         * ntplay.c (play_sound_data_1):
14721         (play_sound_file):
14722         * editfns.c (get_home_directory):
14723         * event-msw.c (struct winsock_stream):
14724         (mswindows_dde_callback):
14725         * device-msw.c (msprinter_init_device):
14726         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14727
14728         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14729         mswindows_clear_toolbar were swapped!
14730
14731         * objects-msw.c:(colormap_t):
14732         (fontmap_t):
14733         * emacs.c (struct standard_args): Fixed const jumble.
14734
14735         * glyphs-widget.c (update_widget): Fixed comparison notation.
14736
14737         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14738
14739         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14740         __declspec(noreturn) syntax.
14741
14742 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14743
14744         * eldap.c (Fldap_open):
14745         (Fldap_search_basic):
14746         (Fldap_add):
14747         (Fldap_modify):
14748         Use new coding system conversion macros.
14749
14750 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14751
14752         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14753
14754 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14755
14756         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14757         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14758
14759         * eldap.c (Qadd, Qreplace): New constant symbols
14760         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14761         interruptions by XEmacs signals
14762         Remove unnecessary calls to slow_down_interrupts and
14763         speed_up_interrupts
14764         (Fldap_search_basic): Renamed from Fldap_search_internal
14765         Added new optional parameter VERBOSE that triggers the
14766         display of progress messages
14767         Remove unnecessary calls to slow_down_interrupts and
14768         speed_up_interrupts
14769         LDAP result code analysis rewritten
14770         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14771         (syms_of_eldap): Define the new symbols and functions
14772
14773
14774 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14775
14776         * realpath.c: Determine PATH_MAX maximally portably.
14777
14778         * insdel.c (bytecount_to_charcount): Optimize.
14779         The function used to be optimized for entirely ASCII sequences.
14780         Now it is optimized for successive characters from the same
14781         charset.  This also wins big for _mostly_ ASCII sequences.
14782
14783         * fileio.c (Ffile_truename): convert return from realpath() using
14784         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14785         - Rewrite GCPROing slightly.
14786
14787         * sysdep.c (sys_open): Do filename conversion, like all other
14788         sys_* functions.  Fixes bug:
14789         (let ((file-name-coding-system 'iso-8859-2))
14790            (write-region x y latin2-name))
14791         ==> writes filename using internal encoding.
14792
14793 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14794
14795         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14796         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14797         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14798         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14799         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14800         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14801         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14802         (CONST_IF_NOT_DEBUG): Delete.
14803         * alloc.c (this_one_is_unmarkable): Delete.
14804         (mark_object): Don't check for this_one_is_unmarkable. Use the
14805         c_readonly flag instead.
14806         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14807
14808 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14809
14810         * event-msw.c (mswindows_drain_windows_queue):
14811         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14812         away redundant repaint events.
14813
14814 2000-02-17  Andy Piper  <andy@xemacs.org>
14815
14816         * redisplay.h: declare mark_redisplay_structs.
14817
14818         * redisplay.c (redisplay_window):
14819         (redisplay_frame): don't check subwindows_state_changed.
14820         (mark_redisplay): mark gutters here.
14821
14822         * glyphs.c: (instantiate_image_instantiator): always layout if we
14823         haven't done so already.
14824         (allocate_image_instance): don't mark as dirty.
14825         (update_subwindow): bind inhibit_quit.
14826
14827         * gutter.c (mark_gutters): new function.
14828
14829         * glyphs-x.c (x_update_widget): Always resize to get round a
14830         widget bug.
14831
14832         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14833         breaking absolutely everything.
14834
14835         * gutter.h: declare mark_gutters.
14836
14837 2000-02-16  Martin Buchholz <martin@xemacs.org>
14838
14839         * XEmacs 21.2.29 is released.
14840
14841 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14842
14843         * fns.c (size_bit_vector): Fix computation of the size.
14844
14845 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14846
14847         * *.[ch]: Change CONST to const globally.
14848         find -name '*.[ch]' | \
14849         xargs global-replace \
14850         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14851         - Remove vestigial references to CONST_IS_LOSING
14852
14853 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14854
14855         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14856         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14857         events instead of dispatching them directly.
14858         (mswindows_handle_paint): New function to do repainting.
14859         (mswindows_wnd_proc):
14860         (emacs_mswindows_handle_magic_event): Call above function.
14861
14862 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14863
14864         * objects-msw.c (mswindows_create_font_variant): Return the new
14865         font handle.
14866         (initialize_font_instance): Get font metrics from the underlined
14867         variant of the font to cope with the case where the underlined
14868         font has a bigger descent.
14869
14870 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14871
14872         * gui.c (gui_item_accelerator): Return the first underlined
14873         character in item name.
14874
14875 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14876
14877         * lisp.h: Added Qprinter.
14878
14879         * general.c (syms_of_general): Initialized it.
14880
14881         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14882         (get_frame_dc):
14883         (get_frame_compdc): Made inline.
14884
14885         * console.h (struct console_methods): Added eject_page method.
14886
14887         * frame.h: Added FRAME_DISPLAY_P and friends.
14888         Aligned backslahes in many macros in more readable fashion.
14889         Added page_number to struct frame, and an accessor macro
14890         for it.
14891
14892         * defice.h: Added DEVICE_DISPLAY_P and friends.
14893
14894         * device.c (Fdevice_printer_p): Used these.
14895
14896         * frame.c (allocate_frame_core): Initialize page number.
14897         (Fprint_job_page_number):
14898         (Fprint_job_eject_page): Implemented.
14899
14900         * frame-msw.c (msprinter_eject_page): Added method.
14901         (msprinter_start_page): Added.
14902
14903         * window.c (Fwindow_truncated_p): Fixed docstring.
14904         (Fwindow_last_line_visible_height): Implemented.
14905
14906 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14907
14908         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14909
14910 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14911
14912         * syntax.c (scan_words): Always advance at least one character.
14913
14914 2000-02-13  Andy Piper  <andy@xemacs.org>
14915
14916         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14917         to make sure the glyph is in the cachels.
14918
14919         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14920         global image instance flag.
14921         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14922         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14923
14924         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14925         (Fset_image_instance_property): mark layout as changed.
14926         (invalidate_glyph_geometry_maybe): mark layout as changed.
14927         (glyph_width): use new NEEDS_LAYOUT macro.
14928         (glyph_ascent): ditto.
14929         (glyph_descent): ditto.
14930         (glyph_height): ditto.
14931         (image_instance_layout): mark layout as clean after laying out.
14932         (update_subwindow): don't mark layout as clean here.
14933
14934         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14935         should no longer be needed.
14936
14937         * glyphs-x.c (x_update_widget): sanitize asserts.
14938         (x_finalize_image_instance): sanitize assignment to widgets.
14939
14940         * glyphs-widget.c (widget_instantiate): don't need to clear the
14941         layout flag here.
14942
14943 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14944
14945         * sysdep.c (getcwd): Use standard prototype.
14946         * sysdep.h (getcwd): Use standard prototype.
14947
14948         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14949         (sequence, start, end).
14950         Remove redundant type checking.
14951         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14952         view of `caller-protects') to avoid a crash where the real fix was
14953         found elsewhere.
14954
14955 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14956
14957         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14958
14959         * s/sol2.h: Remove feature macro initialization.
14960
14961         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14962         (vector_hash): New.  Code from internal_hash.
14963         * lrecord.h:
14964         Fix up allocation subsystem comments.
14965
14966         * config.h.in: Add __EXTENSIONS__ for Solaris.
14967
14968         * systime.h (EMACS_GETTIMEOFDAY): New.
14969         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14970         Remove Solaris-specific code.
14971         Use void* for the (ignored) second arg for gettimeofday().
14972
14973         * elhash.c (hash_table_hash): Implement it, finally.
14974         * elhash.c:  Use hashcode_t.
14975
14976         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14977         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14978
14979         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14980         * fns.c (size_bit_vector):
14981         * alloc.c (size_vector):
14982         (make_vector_internal):
14983         (make_bit_vector_internal):
14984         (sweep_bit_vectors_1):
14985         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14986
14987 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14988
14989         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14990         Include strings.h to avoid warnings for bzero and strcasecmp.
14991
14992 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14993
14994         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14995         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14996
14997         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14998         sequence.
14999
15000 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15001
15002         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15003         use a value field instead.
15004         (symbol_value_forward_forward): Use value field.
15005         (DEFVAR_SYMVAL_FWD): Use value field.
15006         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15007         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15008         (DEFVAR_CONST_INT): Ditto.
15009         (DEFVAR_BOOL): Ditto.
15010         (DEFVAR_CONST_BOOL): Ditto.
15011         (DEFVAR_INT_MAGIC): Ditto.
15012         (DEFVAR_BOOL_MAGIC): Ditto.
15013
15014         * symbols.c (guts_of_unbound_marker): Use value field.
15015         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15016         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15017
15018         * lisp.h: Declare dumpopaque and noninteractive1.
15019
15020         * alloc.c (dumpopaque): Added.
15021         (pdump_dump_opaquevec): Added.
15022         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15023         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15024         noninteractive.
15025
15026 2000-02-10  Andy Piper  <andy@xemacs.org>
15027
15028         * glyphs.c (image_instance_layout): if the size changes, mark it
15029         as such.
15030
15031         * redisplay-output.c (redisplay_output_layout): Update the
15032         subwindow here.
15033         (redisplay_output_subwindow): ditto.
15034
15035         * glyphs.c (update_subwindow): make sure we reset flags for
15036         layouts as well as everything else.
15037
15038         * glyphs-widget.c (layout_layout): don't need to set the instances
15039         dimensions here.
15040
15041 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15042
15043         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15044         not HAVE_DLOPEN, which is a lower-level thing.
15045
15046         * .cvsignore: Ignore gmon.out
15047
15048 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15049
15050         * .cvsignore: Ignore portable dumper xemacs.dmp file
15051
15052 2000-02-09  Andy Piper  <andy@xemacs.org>
15053
15054         * redisplay-output.c (redisplay_output_layout): be more clever
15055         about when we output based on the changed flags.
15056
15057         * glyphs.h (struct image_instantiator_methods): add update_method.
15058         (struct Lisp_Image_Instance): add changed flags. Declare new
15059         macros for manipulating them.
15060
15061         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15062         (image_instance_parent_glyph): find an image_instance's parent
15063         glyph or image_instance.
15064         (image_instance_layout): mark the size as changed.
15065         (set_image_instance_dirty_p): new function. mark an image
15066         instance, plus all of its parents, as dirty.
15067         (Fset_image_instance_property): use it.
15068         (Fglyph_animated_timeout_handler): use it.
15069         (update_subwindow): call update_widget and device methods for
15070         update_subwindow. Mark all changed flags as clean.
15071         (Fresize_subwindow): mark size as changed.
15072
15073         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15074         failures.
15075         (x_update_subwindow): only resize subwindows here.
15076         (x_update_widget): new function. Update all changed properties of
15077         a widget.
15078         (x_resize_subwindow): deleted.
15079         (x_widget_set_property): deleted.
15080         (x_progress_gauge_set_property): deleted.
15081         (x_progress_gauge_update): new function. Implement recorded
15082         changes.
15083         (x_tab_control_update): ditto.
15084         (x_tab_control_set_property): deleted.
15085         (console_type_create_glyphs_x): declare new functions.
15086         (image_instantiator_format_create_glyphs_x): ditto.
15087
15088         * glyphs-widget.c (widget_set_property): mark text changed.
15089         (update_widget): new function. Update properties of a widget.
15090         (widget_instantiate): for layouts make sure we set their
15091         children's parent correctly.
15092         (tab_control_set_property): new function. Record changes that will
15093         take place under redisplay's control.
15094         (progress_gauge_set_property): ditto.
15095         (image_instantiator_progress_guage): declare new functions.
15096         (image_instantiator_tab_control): ditto.
15097
15098         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15099         now.
15100         (mswindows_update_widget): new function. Update all properties on
15101         a widget that have changed.
15102         (mswindows_button_update): new function. Update a button's set
15103         state.
15104         (mswindows_tab_control_update): new function. Update the items in
15105         a tab.
15106         (mswindows_tab_control_set_property): deleted.
15107         (mswindows_progress_gauge_update): new function. Update the
15108         progress gauge's progress.
15109         (mswindows_widget_set_property): deleted. This is all done
15110         asynchronously now.
15111         (mswindows_progress_gauge_set_property): ditto.
15112         (console_type_create_glyphs_mswindows): declare new methods.
15113         (image_instantiator_format_create_glyphs_mswindows): ditto.
15114
15115         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15116         (msprinter_set_frame_properties): ditto.
15117
15118         * console.h (struct console_methods): Add update_widget_method.
15119
15120 2000-02-09  Andy Piper  <andy@xemacs.org>
15121
15122         * gui-msw.c (Fmswindows_shell_execute): Make
15123         mswindows-shell-execute industrial strength.
15124
15125 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15126
15127         * lrecord.h: Make macro argument `props' match member function `plist'.
15128         * fns.c (Fget):
15129         * fns.c (Fput):
15130         * fns.c (Fremprop):
15131         * fns.c (Fobject_plist):
15132         * alloc.c:
15133         * symbols.c:
15134         Object property list frobbing cleanup.
15135         - Allow any lisp object (compared with `eq'), not just symbols, as
15136           keys in object plists.
15137         - Move symbol plist frobbing into symbols.c, where it belongs.
15138         - Move string plist frobbing into alloc.c, where it belongs.
15139         - Everything's an lrecord now, so no need to test for symbolp, etc.
15140         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15141
15142         * extents.c: Reorder code to remove declarations.
15143
15144         * frame.h (store_in_alist): Remove useless declaration.
15145
15146 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15147
15148         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15149         * config.h.in: Add HAVE_XCONVERTCASE.
15150
15151 2000-02-07  Andy Piper  <andy@xemacs.org>
15152
15153         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15154         it breaks many things.
15155
15156 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15157
15158         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15159         actually can start a common comment type.
15160         * src/syntax.h (SYNTAX_END_P): ditto for end.
15161
15162 2000-02-07  Martin Buchholz <martin@xemacs.org>
15163
15164         * XEmacs 21.2.28 is released.
15165
15166 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15167
15168         * event-Xt.c (x_keysym_to_character): New.
15169         (maybe_define_x_key_as_self_inserting_character): New.
15170         (x_has_keysym): New.
15171         Auto-define all keys on the keyboard as self-insert-key.
15172
15173 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15174
15175         * menubar.c (vars_of_menubar): A small code simplification.
15176
15177         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15178
15179         * ExternalShell.c:
15180         * ExternalClient.c:
15181         * EmacsShell-sub.c:
15182         * EmacsManager.c:
15183         * EmacsFrame.c:
15184         Use consistent style for specifying X resources.
15185
15186         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15187         This makes (dontusethis-set-symbol-value-handler) actually usable.
15188
15189         * lrecord.h (lrecord_decription_type):
15190         * alloc.c (pdump_register_sub):
15191         (pdump_dump_data):
15192         (pdump_reloc_one):
15193         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15194         Comply with XEmacs coding style.
15195         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15196         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15197
15198         * keymap.c (Faccessible_keymaps):
15199         Make (accessible-keymaps map "\C-h") do the Right Thing.
15200         Make (accessible-keymaps map []) do the Right Thing.
15201         Make (accessible-keymaps map "") do the Right Thing.
15202         (check_keymap_definition_loop): New function.
15203         (keymap_store_internal): Keep luser from shooting self in foot,
15204           via (define-key ctl-x-4-map "p" global-map).
15205         Remove fullness slot from struct Lisp_Keymap, since hash tables
15206         are now reliable.
15207         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15208
15209 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15210
15211         * redisplay.c (init_redisplay): Fix small memory leak.
15212         * elhash.h:
15213         * elhash.c (pdump_reorganize_hash_table):
15214         Rename from reorganize_hash_table. Change prototype.
15215         Reuse the original memory for hentries.  Save 100k.
15216         * alloc.c (PDUMP_READ): new macro.
15217         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15218         * alloc.c: No need to #ifndef before #undef.
15219
15220         * print.c: Allow debug_print() to print readably by modifying
15221         debug_print_readably.  Use consistent variable names.
15222
15223         * .dbxrc: Try to get things to work even if stopped in a function
15224         without source available by explicitly specifying source files.
15225 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15226
15227         * unexnt.c (_start): Removed bogus code which caused loading heap
15228         from differrent executable file.
15229         Removed bogus assignment to _fmode, which caused inconsistencies.
15230
15231 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15232
15233         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15234         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15235         Do not preliminary `#define signal sigset'.
15236
15237         * systime.h: Do not prototype environ on windows nt and cygwin,
15238         this conflicts with system header.
15239
15240         * syssignal.h: Use correct define for WINDOWSNT
15241
15242         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15243         with system header.
15244
15245         * sysdep.c (near start of file): Fixed commentary and rearranged
15246         ifdefs in readable order.
15247         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15248         (start_of_text):
15249         (end_of_text):
15250         (end_of_data): Do not compile in if using PDUMP.
15251
15252         * symsinit.h: Prototyped vars_of_nt().
15253
15254         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15255         (find_child_console): Use it.
15256         (sys_kill): Use it.
15257
15258         * ntheap.h: Do not extern os_subtype.
15259
15260         * ntheap.c (cache_system_info): Do not cache unneeded:
15261         nt_major_version, nt_minor_version and os_subtype.
15262         (recreate_heap): Do not compile in when PDUMPing.
15263
15264         * nt.c (geteuid and friends): Use the new varibale
15265         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15266         (init_user_info): Removed the above mentioned hackery.
15267         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15268         stat has been fixed in the C runtime.
15269         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15270
15271         * file-coding.c (struct file_coding_dump): Do not define
15272         ucs_to_mule_table in the struct if not MULE.
15273         (struct struct lrecord_description fcd_description_1): Do not dump
15274         the above.
15275
15276         * emacs.c (main_1): Call vars_of_nt().
15277         (right before Fdump_emacs_data): Don't need lastfile if using both
15278         portabe dumper and system malloc.
15279
15280         * alloc.c (Fmemory_limit): Conditionalized out.
15281         (pdump): Use OPEN_BINARY for the portable dump file.
15282         (pdump_load): Ditto.
15283
15284 2000-02-02  Mike Alexander  <mta@arbortext.com>
15285
15286         * nt.c (convert_time): Set tm_isdst before calling mktime and
15287         avoid calling it at all if the compiler supports 64 bit integers.
15288         Also initialize utc_base_ft before using it.
15289
15290 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15291
15292         * frame.c (change_frame_size_1): Take f->internal_border_width
15293         into consideration when calculating the width of the frame.
15294
15295 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15296
15297         * window.c (frame_min_height):
15298         (frame_size_valid_p):
15299         (frame_pixsize_valid_p): Added.
15300         (check_frame_size): Generalized.
15301
15302         * window.h: Prototyped the above.
15303
15304         * lisp.h:
15305         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15306         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15307         Deleted Vwin32_* and Vbinary_process_* unused variables.
15308
15309         * device-msw.c (msprinter_init_device): Do not get printer font
15310         list; Added DEVMODE functions.
15311
15312         * frame-msw.c: Added lots of printer code.
15313
15314         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15315         general.c.
15316
15317         * console-msw.h: Added more msprinter device private slots.
15318
15319 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15320
15321         * event-msw.c (key_needs_default_processing_p): Added.
15322         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15323
15324 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15325
15326         * glyphs.c (image_instance_layout): Mark image instance as clean
15327         after layout.
15328         (glyph_dirty_p): Removed redundant function.
15329         (invalidate_glyph_geometry_maybe): Added.
15330         (update_glyph_cachel_data): Call it.
15331
15332         * glyphs.h: Prototyped it.
15333
15334         * redisplay.c (add_glyph_rune): Call it.
15335         (redisplay_window): Reset glyphs cachels when frame faces have
15336         changed, thus forcing recomputation of built-in border glyphs.
15337
15338 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15339
15340         * Makefile.in.in: Make portable dumper and purify play well together.
15341         Add imperfect, but better than nothing, support for pdump.
15342         Remove xemacs.dmp when temacs is re-generated.
15343         Don't ignore errors when dumping xemacs.
15344
15345         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15346
15347 2000-01-28  Andy Piper  <andy@xemacs.org>
15348
15349         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15350         (setup_normal_frame): ditto.
15351         (setup_frame_without_minibuffer): ditto.
15352         (setup_minibuffer_frame): ditto.
15353         (delete_frame_internal): ditto.
15354         (Fmake_frame_invisible): ditto.
15355         (Ficonify_frame): ditto.
15356
15357         * window.h: change Fset_window_buffer signature.
15358
15359         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15360         (Fset_window_buffer): allow recording of buffer if the window is
15361         the selected window.
15362         (window_loop): Use new Fset_window signature.
15363
15364 2000-01-23  Daniel Pittman  <daniel@danann.net>
15365
15366         * config.h.in: Added template for `HAVE_ATHENA_3D'
15367
15368 2000-01-29  Andy Piper  <andy@xemacs.org>
15369
15370         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15371
15372         * gutter.c (output_gutter): Don't output if the window isn't live.
15373
15374 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15375
15376         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15377         of 01/12/00: Moved SetFocus back here where it belongs.
15378
15379 2000-01-23  Andy Piper  <andy@xemacs.org>
15380
15381         * s/cygwin32.h: declare printer things.
15382
15383 2000-01-26  Andy Piper  <andy@xemacs.org>
15384
15385         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15386         Alexander.
15387
15388 2000-01-24  Andy Piper  <andy@xemacs.org>
15389
15390         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15391         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15392
15393         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15394
15395         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15396
15397         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15398
15399         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15400         (mswindows_output_display_block): Avoid local shadows.
15401
15402         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15403         (mswindows_enqueue_mouse_button_event): ditto.
15404         (mswindows_handle_gui_wm_command): remove declaration.
15405
15406         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15407         warnings.
15408
15409         * console-msw.h: Avoid shadows.
15410         (mswindows_get_toolbar_button_text):
15411         (emacs_mswindows_create_stream_pair):
15412         (emacs_mswindows_delete_stream_pair):
15413         (mswindows_handle_toolbar_wm_command): declare.
15414
15415         * device-msw.c (build_syscolor_string): Avoid shadows.
15416
15417 2000-01-23  Andy Piper  <andy@xemacs.org>
15418
15419         * glyphs-widget.c (widget_instantiate): reverse the items for
15420         layouts so that children are in the expected order.
15421
15422 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15423
15424         * ralloc.c: safe_bcopy ==> memmove
15425         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15426         * s/msdos.h: Remove BCOPY macros.
15427         * insdel.c (gap_right): Remove BCOPY conditional code.
15428         * insdel.c (gap_left): Remove BCOPY conditional code.
15429         XEmacs demands a working ANSI C compiler - hence memmove.
15430
15431         * regex.c (regex_compile): Remove accidental use of trigraphs.
15432
15433 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15434
15435         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15436         event timestamp.
15437
15438 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15439
15440         * event-msw.c (mswindows_drain_windows_queue): Added the
15441         parameter.
15442         (mswindows_need_event): Commented the call to
15443         mswindows_drain_windows_queue().
15444         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15445         only.
15446
15447         * console-msw.h: Moved a few function prototypes here from
15448         event-msw.c.
15449
15450         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15451         parameter from unsigned short to unsigned long.
15452         (Fmswindows_shell_execute): Added return value.
15453
15454 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15455
15456         * sysdep.c (init_system_name):
15457           process-unix.c (unix_canonicalized_host_name):
15458         Don't call freeaddrinfo() if getaddrinfo() fails.
15459
15460         * process-unix.c (unix_open_unix_network_stream):
15461         Moved the code to get a port # into address loop.
15462
15463 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15464
15465         * buffer.c (reinit_vars_of_buffer):
15466         The right place to initialize conversion_in_dynarr and
15467         conversion_out_dynarr.
15468
15469         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15470
15471         * process-unix.c (unix_canonicalize_host_name): Muleize.
15472         (unix_open_network_stream): Muleize.
15473
15474         * buffer.h: Fix up prototypes for ralloc.c functions.
15475
15476 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15477         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15478         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15479                 instead of gethostbyname()
15480         * process-unix.c: In unix_canonicalize_host_name() and
15481                 unix_open_network_stream(), add code to use getaddrinfo()
15482                 instead of gethostbyname().
15483
15484 2000-01-27  Daniel Pittman <daniel@danann.net>
15485
15486         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15487         libs when built with flat Athena.
15488
15489 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15490
15491         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15492         Use coding standards for function prototypes.
15493
15494 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15495
15496         * dialog-msw.c (push_lisp_string_as_unicode):
15497         * doc.c (unparesseuxify_doc_string):
15498         * dired.c (Fuser_name_completion_1):
15499         * dired.c (Fuser_name_all_completions):
15500         * dired.c (free_user_cache):
15501         * dired.c (user_name_completion):
15502         * console-x.c (get_display_arg_connection):
15503         * minibuf.c (clear_echo_area_internal):
15504         * minibuf.c (echo_area_append):
15505         * eldap.c (Fldap_open):
15506         * eldap.c (Fldap_search_internal):
15507         * frame-x.c (x_set_frame_text_value):
15508         * frame-x.c (x_set_frame_properties):
15509         * frame-x.c (x_create_widgets):
15510         * redisplay-tty.c (term_get_fkeys_1):
15511         * objects-x.c (x_parse_nearest_color):
15512         * objects-x.c (x_valid_color_name_p):
15513         * objects-x.c (x_initialize_font_instance):
15514         * objects-x.c (x_list_fonts):
15515         * objects-x.c (x_find_charset_font):
15516         * tooltalk.c (Fadd_tooltalk_message_arg):
15517         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15518         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15519         * process-unix.c (unix_create_process):
15520         * ntproc.c (sys_spawnve):
15521         * sound.c (Fplay_sound_file):
15522         * sound.c (Fplay_sound):
15523         * buffer.c (init_initial_directory):
15524         * buffer.c (init_buffer):
15525         * editfns.c (init_editfns):
15526         * editfns.c (Ftemp_directory):
15527         * editfns.c (Fuser_full_name):
15528         * editfns.c (uncache_home_directory):
15529         * editfns.c (get_home_directory):
15530         * editfns.c (Fuser_home_directory):
15531         * editfns.c (Fformat_time_string):
15532         * editfns.c (Fcurrent_time_string):
15533         * gui-x.c (button_item_to_widget_value):
15534         * database.c (Fopen_database):
15535         * event-Xt.c (x_to_emacs_keysym):
15536         * event-Xt.c (x_event_to_emacs_event):
15537         * event-Xt.c (describe_event_window):
15538         * event-msw.c (mswindows_wnd_proc):
15539         * glyphs-eimage.c (jpeg_instantiate):
15540         * glyphs-eimage.c (gif_instantiate):
15541         * glyphs-eimage.c (png_instantiate):
15542         * glyphs-eimage.c (tiff_instantiate):
15543         * glyphs-x.c (xbm_instantiate_1):
15544         * glyphs-x.c (x_xbm_instantiate):
15545         * glyphs-x.c (x_xface_instantiate):
15546         * glyphs-x.c (autodetect_instantiate):
15547         * glyphs-x.c (cursor_font_instantiate):
15548         * glyphs-x.c (x_widget_instantiate):
15549         * glyphs-x.c (x_widget_set_property):
15550         * glyphs-x.c (x_widget_property):
15551         * glyphs-x.c (BUILD_GLYPH_INST):
15552         * print.c (write_string_to_stdio_stream):
15553         * print.c (output_string):
15554         * print.c (Falternate_debugging_output):
15555         * print.c (Fexternal_debugging_output):
15556         * glyphs-msw.c (extract_xpm_color_names):
15557         * glyphs-msw.c (mswindows_xpm_instantiate):
15558         * glyphs-msw.c (bmp_instantiate):
15559         * glyphs-msw.c (resource_name_to_resource):
15560         * glyphs-msw.c (mswindows_resource_instantiate):
15561         * glyphs-msw.c (xbm_instantiate_1):
15562         * glyphs-msw.c (mswindows_xbm_instantiate):
15563         * glyphs-msw.c (mswindows_xface_instantiate):
15564         * glyphs-msw.c (mswindows_widget_instantiate):
15565         * glyphs-msw.c (add_tree_item):
15566         * glyphs-msw.c (add_tab_item):
15567         * glyphs-msw.c (mswindows_combo_box_instantiate):
15568         * glyphs-msw.c (mswindows_widget_property):
15569         * glyphs-msw.c (mswindows_combo_box_property):
15570         * glyphs-msw.c (mswindows_widget_set_property):
15571         * console.c (stuff_buffered_input):
15572         * objects-msw.c (mswindows_initialize_color_instance):
15573         * objects-msw.c (mswindows_valid_color_name_p):
15574         * objects-msw.c (mswindows_list_fonts):
15575         * objects-msw.c (mswindows_font_instance_truename):
15576         * bytecode.c (optimize_compiled_function):
15577         * select-x.c (symbol_to_x_atom):
15578         * select-x.c (x_atom_to_symbol):
15579         * select-x.c (hack_motif_clipboard_selection):
15580         * select-x.c (selection_data_to_lisp_data):
15581         * select-x.c (lisp_data_to_selection_data):
15582         * select-x.c (Fx_get_cutbuffer_internal):
15583         * select-x.c (Fx_store_cutbuffer_internal):
15584         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15585         * buffer.h (TO_INTERNAL_FORMAT): New function.
15586         * emacs.c (make_arg_list_1):
15587         * emacs.c (make_argc_argv):
15588         * emacs.c (main_1):
15589         * emacs.c (Fdump_emacs):
15590         * emacs.c (split_string_by_emchar_1):
15591         * file-coding.h:
15592         * lisp.h:
15593         * lstream.h:
15594         * symsinit.h:
15595         * device-x.c (x_init_device):
15596         * device-x.c (Fx_valid_keysym_name_p):
15597         * device-x.c (Fx_get_font_path):
15598         * device-x.c (Fx_set_font_path):
15599         * glyphs.c (bitmap_to_lisp_data):
15600         * glyphs.c (pixmap_to_lisp_data):
15601         * alloc.c (make_ext_string): Use coding system arguments.  Update
15602         all callers.
15603         * alloc.c (build_string):
15604         * callproc.c (child_setup):
15605         * callproc.c (init_callproc):
15606         * fileio.c (lisp_strerror):
15607         * fileio.c (directory_file_name):
15608         * fileio.c (Fexpand_file_name):
15609         * fileio.c (Ffile_truename):
15610         * fileio.c (Fsysnetunam):
15611         * fileio.c (Fdo_auto_save):
15612         * sysdep.c (sys_readdir):
15613         * tests.c: New file.  Allow adding C tests.
15614         Replace GET_* macros with a more comprehensible and flexible
15615         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15616         Modify all calls.
15617         Any coding system can be used to do format conversion.
15618         Eliminate enum external_data_format.
15619         Eliminate convert_to_external_format.
15620         Eliminate convert_to_internal_format.
15621         Make sure file-name, keyboard, terminal, and ctext are always
15622         defined as coding systems or aliases.  Make
15623         file-name-coding-system, terminal-coding-system, and
15624         keyboard-coding-system magical variables that are equivalent to
15625         defining the corresponding coding system aliases.
15626
15627         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15628         * file-coding.c (Fcoding_system_alias_p): New function.
15629         * file-coding.c (Fcoding_system_aliasee): New function.
15630         * file-coding.c (append_suffix_to_symbol): New function.
15631         * file-coding.c (dangling_coding_system_alias_p): New function.
15632         * file-coding.c (Ffind_coding_system):
15633         * file-coding.c (Fcopy_coding_system):
15634         * file-coding.c (encode_coding_no_conversion):
15635         * file-coding.c (syms_of_file_coding):
15636         * file-coding.c (vars_of_file_coding):
15637         Rewrite coding system alias code.
15638         Allow nested aliases, like symbolic links.
15639         Allow redefinition of coding system aliases.
15640         Prevent existence of dangling coding system aliases.
15641
15642         * dired.c (Fuser_name_completion_1):
15643         * dired.c (Fuser_name_all_completions):
15644         A crash would happen if user did QUIT in the middle of building
15645         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15646
15647         * lisp.h:
15648         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15649
15650         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15651         an unsigned char *.  Update all callers.
15652
15653 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15654
15655         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15656
15657 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15658
15659         * elhash.c (hentry_description): Use more portable definition.
15660         (resize_hash_table): Initialize new hentries using
15661         xnew_array_and_zero, thereby simplifying the code.
15662
15663         * mule-charset.c (make_charset): Make sure entire object is
15664         initialized, to avoid Purify warnings.
15665
15666         * alloc.c (resize_string): Fix unlikely crash with big strings.
15667
15668 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15669
15670         * realpath.c (xrealpath):
15671         Don't call getwd().
15672
15673 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15674
15675         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15676
15677 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15678
15679         * unexelfsgi.c (unexec): Change the way we decide which segment
15680         should be extended.
15681
15682         Assumption that .bss section should be outside the PT_LOADable
15683         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15684         it's present) is inside the 'data' segment. This would fail the
15685         test which was used to find a segment to grow and cover new
15686         heap. Instead of this assumption, I created another one - on IRIX
15687         the segment to grow should start below .bss and it's address
15688         should extent above the end of .bss. Once this segment is
15689         identified, it's grown to accommodate the new heap and new
15690         zero-length .bss section is added at the end of .data2.
15691
15692 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15693
15694         * eval.c (Feval): Wrong number of arguments should use original
15695         function, not the indirect_function version of it.
15696
15697 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15698
15699         * glyphs-x.c (x_button_instantiate): Don't add image if
15700         it is not a pixmap.
15701         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15702         is relative.
15703
15704 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15705
15706         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15707         declaration.
15708         (DEFVAR_INT_MAGIC): Ditto.
15709         (DEFVAR_BOOL_MAGIC): Ditto.
15710         * glyphs.h: Reindent backslash.
15711
15712 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15713
15714         * glyphs-widget.c (layout_query_geometry):
15715         (layout_layout): Use correct types for gheight, gwidth.
15716
15717 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15718
15719         * EmacsManager.c (QueryGeometry): Purified.
15720
15721 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15722
15723         * alloc.c (make_float): Make sure entire object is initialized, to
15724         avoid Purify warnings.
15725         (pdump_register_sub): Remove useless assignment.
15726         (pdump): Use xmalloc, not malloc.
15727         (pdump_load): Use xmalloc, not malloc.
15728
15729 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15730
15731         * callproc.c:
15732         * dired-msw.c:
15733         * fileio.c:
15734         * process-nt.c:
15735         * redisplay-msw.c:
15736         * sysdep.c: Removed redundant #include <windows.h>
15737
15738 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15739
15740         * frame.c (delete_frame_internal): Do not delete device when its
15741         implementation so declares.
15742         (delete_frame_internal): Set device selected frame to nil when
15743         last frame goes away.
15744
15745         * device-msw.c (msprinter_device_system_metrics): Implemented.
15746         (mswindows_device_system_metrics): Added 'device-dpi property.
15747
15748         * device.c: (Fdevice_printer_p): Added.
15749         Added 'offset-workspace device metric.
15750
15751         * console.h (device_metrics): Declared DM_offset_workspace.
15752
15753 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15754
15755         * fileio.c (Ffile_truename): Remove pointless and confusing
15756         initialization of elen.
15757
15758         * glyphs-widget.c: Compiler warning fixes.
15759
15760 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15761
15762         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15763         instead of a Lisp_Object as argument to make it consistent with
15764         the other LIVE_P macros.
15765         (CHECK_LIVE_PROCESS): New macro.
15766
15767         * process.c: Declare Qprocess_live_p.
15768         (Fprocess_live_p): New function.
15769         (create_process): Use PROCESS_LIVE_P.
15770         (read_process_output): Ditto.
15771         (set_process_filter): Ditto.
15772         (Fdelete_process): Ditto.
15773         (kill_buffer_processes): Ditto
15774         (process_send_signal): Use CHECK_LIVE_PROCESS.
15775         (Fprocess_input_coding_system): Check whether process is still
15776         alive (fix PR#1061).
15777         (Fprocess_output_coding_system): Ditto.
15778         (Fprocess_coding_system): Ditto.
15779         (Fset_process_input_coding_system): Ditto.
15780         (Fset_process_output_coding_system): Ditto.
15781
15782 2000-01-23  Andy Piper  <andy@xemacs.org>
15783
15784         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15785         layout and widget.
15786
15787         * glyphs.c (mark_image_instance): take into account changed
15788         image_instance format.
15789         (image_instance_equal): ditto.
15790         (image_instance_hash): ditto.
15791
15792         * glyphs-widget.c (widget_instantiate): Incorporate layout
15793         instantiation here. Delay layout of the layout until later.
15794         (layout_instantiate): deleted.
15795         (layout_query_geometry): new function. get the geometry of a
15796         layout.
15797         (layout_layout): layout a layout dynamically.
15798         (image_instantiator_widget): New function - splitting up
15799         image_instantiator_format_create_glyphs_widget for netwinder
15800         compilation.
15801         (image_instantiator_buttons):
15802         (image_instantiator_edit_fields):
15803         (image_instantiator_combo_box):
15804         (image_instantiator_scrollbar):
15805         (image_instantiator_progress_guage):
15806         (image_instantiator_tree_view):
15807         (image_instantiator_tab_control):
15808         (image_instantiator_labels):
15809         (image_instantiator_layout): ditto.
15810         (image_instantiator_format_create_glyphs_widget): Call preceding
15811         functions.
15812
15813 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15814
15815         * process.c (Fset_process_coding_system):
15816         * device-x.c (Fx_keysym_hash_table):
15817         Docstring fixes.
15818
15819         * lstream.c (Lstream_write): Return documented value, not 0.
15820
15821         * fileio.c (directory_file_name):
15822         (Fsubstitute_in_file_name):
15823         (Fsubstitute_insert_file_contents_internal):
15824         (Fwrite_region_internal):
15825         * emacs.c:
15826         * sysdep.c:
15827         * getloadavg.c:
15828         * systty.h:
15829         Remove vestigial APOLLO-conditional code.
15830
15831 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15832
15833         * getpagesize.h: Add guard macros.
15834         * libsst.h: Add guard macros.
15835         * libst.h: Add guard macros.
15836         * line-number.h: Add guard macros.
15837         * ndir.h: Add guard macros.
15838         * sysfloat.h: Add guard macros.
15839         * sysfile.h: Add guard macros.
15840         * sysproc.h: Add guard macros.
15841         * syswait.h: Add guard macros.
15842         * xintrinsic.h: Add guard macros.
15843         * xintrinsicp.h: Add guard macros.
15844         * xmmanager.h: Add guard macros.
15845         * xmmanagerp.h: Add guard macros.
15846         * xmprimitive.h: Add guard macros.
15847         * xmu.h: Add guard macros.
15848         * gpmevent.h: Add copyright statement. Add guard macros.
15849         * miscplay.h: Add guard macros.
15850         * *.h: Use consistent C-standards-approved guard macro names.
15851
15852         * opaque.c (make_opaque): Switch parameter order.
15853         * opaque.h (make_opaque): Switch parameter order.
15854         Update all callers.
15855         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15856
15857         * config.h.in (type_checking_assert): Added.
15858         (bufpos_checking_assert): Added.
15859
15860 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15861
15862         * alloc.c: Harmless pdump changes.
15863         - Use countof().
15864         - spell alignment correctly.
15865         * sysdep.c: Use countof()
15866
15867 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15868
15869         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15870         initially_selected_for_input() console method, default to 0.
15871         (semi_canonicalize_console_connection): Try to delegate to
15872         canonicalize_console_connection if no such console method.
15873         (canonicalize_console_connection): Vice versa.
15874         (print_console): Do not print nil connection.
15875
15876         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15877         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15878         (XDEVIMPF_FRAMELESS_OK): Added.
15879         (CONSOLE_INHERITS_METHOD): Added.
15880
15881         * console-msw.c (mswindows_canonicalize_console_connection):
15882         Added.
15883         (mswindows_canonicalize_device_connection): Added.
15884
15885         * console-msw.h (struct msprinter_device): Added this struct and
15886         accessor macros.
15887         (mswindows_device): Made fontlist a lisp object.
15888
15889         * device.c (semi_canonicalize_device_connection):  Try to delegate
15890         to canonicalize_device_connection if no such console method.
15891         (canonicalize_device_connection): Vice versa.
15892         (print_device): Do not print nil connection.
15893
15894         * device-msw.c (mswindows_init_device): Call InitCommonControls
15895         when have widgets.
15896         (mswindows_delete_device): Removed fontlist deallocation.
15897         (mswindows_mark_device): Added.
15898
15899         * events.c (event_equal): Added abort() at unreached code.
15900         (event_hash): Ditto.
15901
15902         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15903         fallback tags of Windows devices.
15904
15905         * general.c (syms_of_general): Initialized Qmsprinter.
15906
15907         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15908         of fallback tags of Windows devices.
15909
15910         * lisp.h: Declared Qmsprinter.
15911
15912         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15913         of strings.
15914         (mswindows_list_fonts): Ditto.
15915         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15916         that it can be used by both mswindows and msprinter devices.
15917         (initialize_font_instance): Added.
15918         (mswindows_initialize_font_instance): Use it.
15919         (msprinter_initialize_font_instance): Added.
15920
15921         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15922         and implementation flags check.
15923         (redisplay_without_hooks): Changed the call to the above.
15924         (Fredraw_device): Ditto.
15925         (Fredisplay_device): Ditto.
15926
15927         * redisplay-msw.c (get_frame_dc): Implemented.
15928         (get_frame_compdc): Implemented.
15929         (many functions): Use the two functions above to get device
15930         contexts, ether for a window or a printer.
15931
15932 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15933
15934         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15935         initialization here.
15936         (init_symbols_once_early): Call it.
15937         * emacs.c (main_1): Call it.
15938         * symsinit.h: Declare it.
15939
15940 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15941
15942         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15943         Lisp_Object.
15944         (pdump_backtrace): Ditto.
15945         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15946         (pdump_get_entry): Abort if trying to register a null pointer.
15947         (pdump_dump_data): Cleanup types when relocating.
15948         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15949         (pdump_dump_rtables): Remove bad casts.
15950         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15951         Lisp_Object instead of a EMACS_INT for the hashtable
15952         reorganization.
15953
15954 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15955
15956         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15957
15958         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15959
15960         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15961
15962         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15963
15964 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15965
15966         * faces.h (FACE_STRIKETHRU_P): Added.
15967
15968         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15969         of font variants.
15970
15971         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15972         (mswindows_set_dc_font): New function, aware of font variants,
15973         separated from mswindows_update_dc.
15974
15975         * objects-msw.h (struct mswindows_font_instance_data): Added
15976         definition.
15977
15978         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15979         cached fonts and the data structure.
15980         (mswindows_initialize_font_instance): Added creation of font data
15981         structure.
15982         (mswindows_print_font_instance): Print at least something.
15983         (mswindows_create_font_variant): Implemented.
15984         (mswindows_get_hfont): Implemented.
15985
15986 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15987
15988         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15989         prototyping problem with msvc.
15990
15991         * emacs.c (main_1): added syms_of_gui_mswindows() call
15992
15993         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15994         syms_of_gui_mswindows() function
15995
15996         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15997
15998 2000-01-18  Martin Buchholz <martin@xemacs.org>
15999
16000         * XEmacs 21.2.27 is released.
16001
16002 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16003
16004         * glyphs-eimage.c (struct tiff_error_struct):
16005         (tiff_error_func):
16006         (tiff_warning_func):
16007         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16008
16009         * unexmips.c:
16010         * unexhp9k3.c:
16011         * unexfreebsd.c:
16012         * unexec.c: Remove vestigial Lucid C code.
16013         * unexalpha.c:
16014         * unexaix.c:
16015         * termcap.c:
16016         * libsst.c: Ansify.
16017         Remove declarations of errno and strerror().
16018
16019         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16020
16021         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16022
16023 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16024
16025         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16026         Optimize.
16027
16028 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16029
16030         * md5.c:
16031         * file-coding.c:
16032         * file-coding.h:
16033         Change enum eol_type to eol_type_t.
16034
16035 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16036
16037         * gui.c (get_gui_callback): Check cons before accessing car.
16038
16039 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16040
16041         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16042         (XSETSPECIFIER_TYPE): Ditto.
16043
16044 2000-01-17  Didier Verna  <didier@xemacs.org>
16045
16046         * redisplay.c (generate_fstring_runes): compute string size in
16047         characters, not bytes.
16048
16049 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16050
16051         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16052
16053 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16054
16055         * print.c (print_error_message): Call print_prepare().
16056
16057 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16058
16059         * .dbxrc: Renamed from dbxrc.
16060
16061         * events.c (event_to_character):
16062         Use `assert (foo)' instead of `if (!foo) abort()'
16063
16064         * .gdbinit (xtype): Add documentation.
16065         * .gdbinit (check-temacs): New function.
16066         * .gdbinit (check-xemacs): New function.
16067         * dbxrc (check-xemacs): New function.
16068         * dbxrc (check-xemacs): New function.
16069
16070 2000-01-14  Andy Piper  <andy@xemacs.org>
16071
16072         * glyphs-widget.c (widget_query_geometry): Make sure that we
16073         calculate default dimensions correctly.
16074
16075 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16076
16077         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16078
16079         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16080         pdump_wire'd variable.
16081
16082         * emacs.c: (main_1): Conditionalized calls to
16083         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16084
16085 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16086
16087         * window.c (Fset_window_configuration):
16088         * sysdep.c (_start):
16089         * input-method-motif.c (res):
16090         * event-Xt.c (Xt_process_to_emacs_event):
16091         Simple compiler warning fixes.
16092
16093         * bytecode.c (funcall_compiled_function): Use the original
16094         function symbol on the backtrace list in preference to the
16095         compiled_function object in error messages.
16096
16097 2000-01-13  Andy Piper  <andy@xemacs.org>
16098
16099         * glyphs-x.c (update_widget_face): Make sure we update the widget
16100         background as well as foreground.
16101
16102 2000-01-13  Andy Piper  <andy@xemacs.org>
16103
16104         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16105         fields to subwindow.
16106         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16107         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16108         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16109         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16110
16111         * glyphs-widget.c (check_valid_tab_orientation): new function.
16112         (initialize_widget_image_instance): zero orientation and
16113         justification.
16114         (widget_instantiate): pick up orientation.
16115         (tab_control_query_geometry): return appropriate values for
16116         vertical tabs.
16117
16118         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16119         appropriate creation flags for left, right and bottom tabs.
16120
16121         * s/cygwin32.h: add tab definitions.
16122
16123 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16124
16125         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16126         frame upon hiding a subwindow.
16127         (mswindows_button_instantiate): Changed the push button style to
16128         BS_PUSHBUTTON.
16129         (mswindows_button_instantiate): Removed button BS_NOTIFY
16130         style.
16131         (mswindows_button_instantiate): Removed redundant check for
16132         a disabled gui item.
16133         (mswindows_button_instantiate): Made use of WS_TABSTOP
16134         consistent: "operable" controls (edit, button, tree, scroll) have
16135         this style, "display-only" ones (static, progress gauge) do
16136         not. This style is currently ignored by XEmacs though. Also,
16137         removed the WS_EX_CONTROLPARENT style - it is not for children,
16138         it is for their parents!
16139         (mswindows_edit_field_instantiate): Ditto.
16140         (mswindows_progress_gauge_instantiate): Ditto.
16141         (mswindows_tree_view_instantiate): Ditto.
16142         (mswindows_tab_control_instantiate): Ditto.
16143         (mswindows_scrollbar_instantiate): Ditto.
16144         (mswindows_combo_box_instantiate): Ditto.
16145         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16146         style to the "clip" window.
16147         (mswindows_button_instantiate): Removed compilation warning by
16148         equally typing terms of the ?: operator.
16149
16150 2000-01-12  Didier Verna  <didier@xemacs.org>
16151
16152         * redisplay.c (generate_fstring_runes): new parameter holding the
16153         last modeline-format extent.
16154         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16155         extent, fill the glyph block with it.
16156         (generate_fstring_runes): handle these parameters.
16157         (generate_formatted_string_db): ditto.
16158
16159         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16160         glyphs'extents in the modeline.
16161
16162 1999-01-11  Mike Woolley  <mike@bulsara.com>
16163
16164         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16165         256Mb, as a workaround for the non-starting problem many people
16166         have experienced.
16167
16168 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16169
16170         * console-tty.c (Fset_console_tty_output_coding_system):
16171         Force redrawing tty frame.
16172
16173 2000-01-10  Didier Verna  <didier@xemacs.org>
16174
16175         * redisplay.c (generate_fstring_runes): fix size computation bug.
16176
16177 2000-01-09  William M. Perry <wmperry@aventail.com>
16178
16179         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16180
16181 2000-01-09  Andy Piper  <andy@xemacs.org>
16182
16183         * glyphs-msw.c: index -> i to avoid shadows.
16184         (xbm_create_bitmap_from_data): make static.
16185         (check_valid_string_or_int): deleted.
16186         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16187
16188         * glyphs-x.c (x_update_subwindow): remove unused args.
16189
16190         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16191         back pointer - this is done in allocate_image_instance.
16192         (query_string_font): return Qnil to make the compiler happy.
16193         (unmap_subwindow): set to ~0 to make the compiler happy.
16194         (glyph_query_geometry): comment out until used.
16195         (glyph_layout): ditto.
16196
16197 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16198
16199         * insdel.c (signal_after_change): Remove extraneous unbind_to().