update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Q_component): New variable.
4         (Q_component_of): Likewise.
5         (Fput_char_attribute): Convert char-refs in value of
6         `{->|<-}ideographic-component-forms' to characters and put reverse
7         links.
8         (syms_of_chartab): Add new symbols
9         `{->|<-}ideographic-component-forms'.
10
11 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
12
13         * chartab.c (Q_identical): New variable.
14         (Q_identical_from): New variable.
15         (Fchar_feature): Regard `->identical' as a feature to find
16         ancestors.
17         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
18         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
19         for `{->|<-}identical'.
20         (syms_of_chartab): Add new symbols `{->|<-}identical'.
21
22 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * char-ucs.h (encode_char_2): New inline function.
25         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
26
27 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * chartab.c (Fput_char_attribute): Convert char-specs to
30         characters in value of `ideographic-structure'.
31         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
32         for `{<-|->}simplified(@...)'.
33         (Fdefine_char): bTry to use predefined character's id.
34
35 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * fns.c (simplify_char_spec): Try to convert builtin chars to
38         defined chars.
39
40 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
41
42         * chartab.c (Fput_char_attribute): Convert char-refs in value of
43         `<-simplified[^*]*' to characters and put reverse links.
44
45 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
46
47         * chartab.c (Q_subsumptive): Renamed from Q_unified.
48         (Q_subsumptive_from): Renamed from Q_unified_from.
49         (Fchar_feature): Use `Q_subsumptive_from' instead of
50         `Q_unified_from'.
51         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
52         `Q_unified'.
53         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
54         `<-unified' to `<-subsumptive'.
55
56 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
59         inheritance itself; fix typo; stop recursive search if cyclic
60         inheritance is found.
61
62 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * chartab.c (Q_denotational): New variable.
65         (Q_denotational_from): New variable.
66         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
67         (put_char_attribute): New function.
68         (Fput_char_attribute): Use `put_char_attribute'; regard
69         `->denotational' and `<-denotational' as same as `->unified' and
70         `<-unified'.
71         (syms_of_chartab): Add new symbols `->denotational' and
72         `<-denotational'.
73
74 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
77         `Fget_char_attribute'.
78         (Fchar_variants): Likewise.
79         (get_char_table): Likewise.
80         (Fchar_feature): New function.
81         (put_char_composition): Use `Fchar_feature' instead of
82         `Fget_char_attribute'.
83         (Fput_char_attribute): Likewise; don't put the target character
84         into its `->unified' value.
85         (syms_of_chartab): Add new builtin function `char-feature'.
86
87 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
90         `Fget_char_attribute'.
91         (char_encode_utf8): Likewise.
92
93         * chartab.h: Add an EXFUN for `Fchar_feature'.
94
95 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
96
97         * chartab.c (Vnext_defined_char_id): New variable.
98         (Fput_char_attribute): Accept characters in `->unified'.
99         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
100         new characters which are not related with builtin char-id ranges.
101         (vars_of_chartab): Add new variable `next-defined-char-id'.
102
103 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * chartab.c (Q_unified): New variable.
106         (Q_unified_from): New variable.
107         (Fput_char_attribute): Add code for `->unified'.
108         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
109         XEmacs CHISE.
110
111 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * mule-charset.c (decode_ccs_conversion): New function.
114         (decode_defined_char): Use `decode_ccs_conversion'.
115         (decode_builtin_char): Likewise.
116
117 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * char-ucs.h: Change some charset-ids of private coded-charsets.
120
121 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
122
123         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
124         (char_encode_as_entity_reference): Likewise.
125         (decode_coding_big5): Modify for `decode_defined_char' and
126         `DECODE_CHAR'.
127         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
128         avoid compiler warning.
129         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
130
131         * mule-charset.c (decode_defined_char): Add new argument
132         `without_inheritance'.
133         (Fdecode_char): Add new optional argument `without_inheritance'.
134         (Fdecode_builtin_char): Modify for `Fdecode_char'.
135
136         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
137         (simplify_char_spec): Likewise.
138
139         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
140         setting.
141
142         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
143         (map_char_table): Likewise.
144         (Fdefine_char): Use `Fdecode_char' without inheritance.
145         (Ffind_char): Modify for `Fdecode_char'.
146
147         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
148
149         * char-ucs.h (decode_defined_char): Add new argument
150         `without_inheritance'.
151         (DECODE_CHAR): Likewise.
152         (MAKE_CHAR): Modify for `DECODE_CHAR'.
153
154 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (Vchise_system_db_directory): New variable.
157         (vars_of_chartab): Add new variable `chise-system-db-directory'.
158
159 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * chartab.c: EXFUN `Fmount_char_attribute_table'.
162         (print_chartab_range): Don't define when `UTF2000' is defined.
163         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
164         `CHISE_DS_open'.
165
166 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
169         and optional argument `rehash' is specified, call
170         `open_chise_data_source_maybe' before
171         `chise_ds_foreach_char_feature_name' is called.
172
173 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * chartab.c (char_attribute_list_reset_map_func): New function
176         when HAVE_LIBCHISE is defined.
177         (Fchar_attribute_list): Add new optional argument `rehash' when
178         HAVE_LIBCHISE is defined.
179         (open_chise_data_source_maybe): Use "chise-db" instead of
180         "char-db".
181         (char_attribute_system_db_file): Likewise.
182         (Fload_char_attribute_table): Use
183         `chise_feature_foreach_char_with_value' instead of
184         `chise_char_feature_value_iterate'.
185
186 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * chartab.c (Vchise_db_directory): New variable.
189         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
190
191 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
194         instead of HAVE_CHISE to specify using with libchise.
195
196         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
197
198         * chartab.h: Don't use HAVE_CHISE_CLIENT.
199
200         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
201         defined or HAVE_LIBCHISE_LIBCHISE is defined.
202         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
203         is defined.
204         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
205         HAVE_CHISE to specify using with libchise.
206         (syms_of_chartab): Don't define symbol `system-char-id' when
207         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
208
209 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
212         specify CHISE DB support.
213         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
214         of `char_attribute_system_db_file' to check feature DB file.
215
216         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
217         HAVE_CHISE_CLIENT to specify CHISE DB support.
218
219         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
220         specify CHISE DB support.
221         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
222         not defined.
223         (Freset_char_attribute_table): Use `chise_feature_setup_db'
224         instead of `char_attribute_system_db_file' to check feature DB
225         file.
226
227 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
228
229         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
230         `HAVE_CHISE_CLIENT'.
231
232 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
235         (Fsave_charset_mapping_table): Don't use
236         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
237
238         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
239         (HAVE_LIBCHISE): New macro.
240
241         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
242
243         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
244         (Fsave_char_attribute_table): Don't use
245         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
246
247 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
250         defined.
251         (save_uint16_byte_table): Likewise.
252         (save_byte_table): Likewise.
253         (char_table_get_db): Use `chise_ds_load_char_feature_value'
254         instead of `chise_char_load_feature_value'.
255         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
256
257 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * chartab.h (struct Lisp_Char_Table): Delete member
260         `feature_table' if CHISE is defined.
261
262         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
263         (Fcopy_char_table): Likewise.
264         (char_table_open_db_maybe): Likewise.
265         (char_table_close_db_maybe): Likewise.
266         (char_table_get_db): Likewise.
267         (Fmount_char_attribute_table): Likewise.
268         (Fload_char_attribute_table): Likewise.
269
270 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * mule-charset.c (load_char_decoding_entry_maybe): Use
273         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
274         `chise_ccs_decode'.
275
276 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
279         instead of `chise_open_data_source'.
280         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
281         `chise_ds_close'.
282
283 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
286         instead of `chise_ds_open_feature_table'.
287         (char_table_close_db_maybe): Don't use `chise_ft_close'.
288
289 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * mule-charset.c (Fsave_charset_mapping_table): Use
292         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
293         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
294         `chise_ccs_sync' instead of `chise_ccst_close'.
295         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
296
297         * chartab.c (open_chise_data_source_maybe): Modify for
298         `chise_open_data_source'.
299         (char_table_open_db_maybe): Modify for
300         `chise_ds_open_feature_table'.
301
302 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
303
304         * mule-charset.c (load_char_decoding_entry_maybe): Use
305         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
306         `chise_ccst_close'.
307
308 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
309
310         * mule-charset.c (Fsave_charset_mapping_table): Use
311         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
312         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
313         `chise_dt_put_char' and `chise_dt_close'.
314         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
315         `chise_ccs_decode' and `chise_ccst_close' instead of
316         `chise_ds_open_decoding_table', `chise_dt_get_char' and
317         `chise_dt_close'.
318
319         * chartab.c (char_table_get_db): Use
320         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
321         (load_char_attribute_table_map_func): Modify for
322         `chise_char_feature_value_iterate'.
323         (Fload_char_attribute_table): Use
324         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
325
326 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
329
330 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
331
332         * chartab.c (put_char_table): Modify for inherited coded-charsets
333         in XEmacs CHISE.
334
335 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
336
337         * chartab.c (Fput_char_table_map_function): Fixed.
338         (word_boundary_p): Don't check charset in XEmacs CHISE.
339
340 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
341
342         * mule-charset.c (Fsave_charset_mapping_table): Use
343         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
344         instead of `chise_open_decoding_table'; refer
345         `default_chise_data_source'; use `chise_dt_close' instead of
346         `chise_close_decoding_table'.
347         (load_char_decoding_entry_maybe): Likewise.
348
349         * chartab.c (default_chise_data_source): New variable when `CHISE'
350         is defined.
351         (Fcopy_char_table): `ct->ds' is deleted.
352         (open_chise_data_source_maybe): New function.
353         (Fclose_char_data_source): New function.
354         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
355         use `chise_ds_open_feature_table' instead of
356         `chise_open_feature_table'.
357         (char_table_close_db_maybe): Use `chise_ft_close' instead of
358         `chise_close_feature_table'; `cit->ds' is deleted.
359         (syms_of_chartab): Add new builtin function
360         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
361
362         * chartab.h (default_chise_data_source): New extern variable.
363         (open_chise_data_source_maybe): New prototype.
364         (struct Lisp_Char_Table): Delete `ds'.
365
366 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
367
368         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
369         `CHISE' is defined.
370
371 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
372
373         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
374         not defined; add code for non-libchise setting.
375         (char_table_close_db_maybe): Likewise.
376         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
377         defined.
378         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
379         even if `CHISE' is not defined.
380         (Freset_char_attribute_table): Likewise.
381         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
382         `char_table_close_db_maybe' even if `CHISE' is not defined; use
383         `char_table_get_db'.
384         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
385         `char_table_close_db_maybe' even if `CHISE' is not defined.
386
387 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
388
389         * chartab.c (char_table_open_db_maybe): New function.
390         (char_table_close_db_maybe): New function.
391         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
392         (Freset_char_attribute_table): Likewise.
393         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
394         `char_table_close_db_maybe'.
395         (Fload_char_attribute_table): Likewise.
396
397 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
398
399         * chartab.c: Don't include <chise.h> because it is included in
400         chartab.h.
401         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
402         defined.
403         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
404         `CHISE' is defined.
405         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
406         `CHISE' is defined.
407         (Fclose_char_attribute_table): Close `ct->feature_table' and
408         `ct->ds' when `CHISE' is defined.
409         (Freset_char_attribute_table): Likewise.
410         (load_char_attribute_maybe): Use `cit->ds' and
411         `cit->feature_table' when `CHISE' is defined.
412         (Fload_char_attribute_table): Likewise.
413
414         * chartab.h: Include <chise.h> when `CHISE' is defined.
415         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
416         when `CHISE' is defined.
417
418 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
419
420         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
421         is defined.
422         (char_table_description): Likewise.
423         (Fmake_char_table): Likewise.
424         (Fcopy_char_table): Likewise.
425         (Fmount_char_attribute_table): Likewise.
426         (Fclose_char_attribute_table): Likewise.
427         (Freset_char_attribute_table): Likewise.
428         (load_char_attribute_maybe): Likewise.
429         (Fload_char_attribute_table): Likewise.
430
431         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
432         defined.
433
434 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
435
436         * chartab.c (load_char_attribute_table_map_func): New function
437         when CHISE is defined.
438         (Qload_char_attribute_table_map_function): Don't define when CHISE
439         is defined.
440         (Fload_char_attribute_table_map_function): Likewise.
441         (Fload_char_attribute_table): Use libchise when `CHISE' is
442         defined.
443         (syms_of_chartab): Don't define
444         `load-char-attribute-table-map-function' when CHISE is defined.
445
446 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
447
448         * chartab.c: Include <chise.h> when `CHISE' is defined.
449         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
450
451 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * mule-charset.c (charset_code_point): Fix problem when searching
454         in mother CCS fails with `defined_only' mode.
455
456 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
457
458         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
459         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
460         (put_char_composition): Likewise.
461         (Fput_char_attribute): Likewise.
462         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
463
464 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
465
466         * chartab.c (Q_ucs): Deleted.
467         (Fput_char_attribute): Don't refer `->ucs'.
468         (Fdefine_char): Likewise.
469         (Ffind_char): Likewise.
470         (syms_of_chartab): Delete `->ucs'.
471
472 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
473
474         * mule-charset.c (Qmap_cns11643_2): Renamed from
475         `Qchinese_cns11643_2'.
476         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
477         `chinese-cns11643-2'.
478         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
479         `=cns11643-2'.
480
481 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
482
483         * mule-charset.c (Qmap_cns11643_1): Renamed from
484         `Qchinese_cns11643_1'.
485         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
486         `chinese-cns11643-1'.
487         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
488         `=cns11643-1'.
489
490 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
493         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
494         `chinese-gb12345'.
495         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
496         `=gb12345'.
497
498 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
499
500         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
501         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
502         `chinese-gb2312'.
503         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
504         `=gb2312'.
505
506 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
507
508         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
509         (syms_of_mule_charset): Add new symbol `=big5' instead of
510         `chinese-big5'.
511         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
512
513 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
514
515         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
516         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
517         `korean-ksc5601'.
518         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
519         `=ks-x1001'.
520
521 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
522
523         * mule-charset.c (Qmap_jis_x0212): Renamed from
524         `Qjapanese_jisx0212'.
525         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
526         `japanese-jisx0212'.
527         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
528         `=jis-x0212'.
529
530 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
531
532         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
533         `Qjapanese_jisx0208'.
534         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
535         of `japanese-jisx0208'.
536         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
537         `=jis-x0208-1983'.
538
539 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
542         `Qjapanese_jisx0208_1978'.
543         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
544         of `japanese-jisx0208-1978'.
545         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
546         `=jis-x0208-1978'.
547
548 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
549
550         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
551         only for XEmacs CHISE.
552
553 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * char-ucs.h: Compact non-ISO-IR charset-ids.
556         (LEADING_BYTE_UCS): Changed to -177.
557         (LEADING_BYTE_CONTROL_1): Changed to -77.
558         (LEADING_BYTE_UCS_BMP): Changed to -176.
559         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
560
561 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
562
563         * mule-charset.c (Qiso_ir): New variable.
564         (Fmake_charset): Recognise new property `iso-ir'.
565         (syms_of_mule_charset): Add new symbol `iso-ir'.
566
567 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
568
569         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
570         n to -n; charset-id of non ISO-IR sets are changed to positive
571         numbers.
572
573 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
574
575         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
576         for &MCS-XXXXXXXX; values.
577
578 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
579
580         * mule.c (Vxemacs_chise_version): Renamed from
581         `Vutf_2000_version'.
582         (vars_of_mule): Add new variable `xemacs-chise-version'; define
583         `utf-2000-version' as an alias for `xemacs-chise-version'.
584
585 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
586
587         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
588         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
589         defined.
590
591         * config.h.in (CHISE): New macro.
592
593 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
594
595         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
596         of `ucs'.
597         (Qmap_ucs): New variable.
598         (syms_of_mule_charset): Add new symbol `=ucs'.
599         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
600
601         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
602         (simplify_char_spec): Likewise.
603
604         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
605
606         * char-ucs.h (Qmap_ucs): New extern variable.
607
608 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
611         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
612         don't define it when UTF2000 is not defined.
613         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
614         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
615         when UTF2000 is not defined.
616         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
617         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
618
619 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
622
623         * mule-charset.c (Vcharset_ucs_gb): Deleted.
624         (Qucs_gb): Deleted.
625         (syms_of_mule_charset): Delete `ucs-gb'.
626         (complex_vars_of_mule_charset): Likewise.
627
628 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
629
630         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
631
632         * mule-charset.c (Vcharset_ucs_cns): Deleted.
633         (Qucs_cns): Deleted.
634         (syms_of_mule_charset): Delete `ucs-cns'.
635         (complex_vars_of_mule_charset): Likewise.
636
637 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
640
641         * mule-charset.c (Vcharset_ucs_jis): Deleted.
642         (Qucs_jis): Deleted.
643         (syms_of_mule_charset): Delete `ucs-jis'.
644         (complex_vars_of_mule_charset): Likewise.
645
646 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
647
648         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
649
650         * mule-charset.c (Vcharset_ucs_ks): Deleted.
651         (Qucs_ks): Deleted.
652         (syms_of_mule_charset): Delete `ucs-ks'.
653         (complex_vars_of_mule_charset): Likewise.
654
655 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
656
657         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
658         (Qideograph_daikanwa_2): Deleted.
659         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
660         (complex_vars_of_mule_charset): Likewise.
661
662         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
663         (LEADING_BYTE_DAIKANWA_1): Deleted.
664         (LEADING_BYTE_DAIKANWA_2): Deleted.
665         (MIN_CHAR_DAIKANWA): Deleted.
666         (MAX_CHAR_DAIKANWA): Deleted.
667
668 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
669
670         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
671         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
672         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
673
674         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
675         (Vcharset_ideograph_daikanwa): Deleted.
676         (Qideograph_hanziku_{1..12}): Deleted.
677         (Qideograph_daikanwa): Deleted.
678         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
679         Vcharset_ideograph_daikanwa.
680         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
681         `ideograph-hanziku-{1..12}'.
682         (complex_vars_of_mule_charset): Likewise.
683
684 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
685
686         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
687
688         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
689         (Qideograph_gt_pj_{1..11}): Deleted.
690         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
691         (complex_vars_of_mule_charset): Likewise.
692
693 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * mule-charset.c (Vcharset_ucs_big5): Deleted.
696         (Vcharset_ideograph_gt): Deleted.
697         (Qucs_big5): Deleted.
698         (Qideograph_gt): Deleted.
699         (syms_of_mule_charset): Delete symbol `ucs-big5' and
700         `ideograph-gt'.
701         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
702         and `ideograph-gt'.
703
704         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
705         (LEADING_BYTE_GT): Deleted.
706         (MIN_CHAR_GT): Deleted.
707         (MAX_CHAR_GT): Deleted.
708
709 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
710
711         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
712
713 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
714
715         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
716         (save_uint16_byte_table): Likewise.
717         (save_byte_table): Likewise; convert values by it.
718         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
719         for `ideographic-structure'.
720         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
721         as the filter for `ideographic-structure'.
722
723 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
724
725         * chartab.c (put_char_composition): New function.
726         (Fput_char_attribute): Use `put_char_composition'; use
727         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
728
729         * fns.c (simplify_char_spec): New function.
730         (char_ref_simplify_spec): New function.
731         (Fchar_refs_simplify_char_specs): New function.
732         (syms_of_fns): Add new builtin function
733         `char-refs-simplify-char-specs'.
734
735 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
736
737         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
738         (Qideograph_cbeta): Deleted.
739         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
740         (complex_vars_of_mule_charset): Likewise.
741
742         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
743         (MIN_CHAR_CBETA): Comment out.
744         (MAX_CHAR_CBETA): Likewise.
745
746 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
747
748         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
749         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
750         CHISE client feature.
751
752 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
753
754         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
755
756 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
757
758         * mule-charset.c (charset_lookup_description_1): Use
759         `NUM_LEADING_BYTES' in UTF-2000.
760
761 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * char-ucs.h (GC_CHARSETP): Deleted.
764
765 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * char-ucs.h (MAX_CHAR_GT): Updated.
768
769 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
770
771         * text-coding.c: Sync with XEmacs 21.4.10.
772
773 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * mule-charset.c (Vcharset_china3_jef): Deleted.
776         (Qchina3_jef): Deleted.
777         (syms_of_mule_charset): Don't define `china3-jef'.
778         (complex_vars_of_mule_charset): Likewise.
779
780         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
781         (MIN_CHAR_CHINA3_JEF): Comment out.
782         (MAX_CHAR_CHINA3_JEF): Comment out.
783
784 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
785
786         * mule-charset.c (Vcharset_ucs_gb): New variable.
787         (Qucs_gb): New variable.
788         (syms_of_mule_charset): Add new symbol `ucs-gb'.
789         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
790
791         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
792
793 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * mule-charset.c (charset_code_point): if a coded-charset has a
796         final-byte, don't inherit the builtin range of the mother CCS.
797
798 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * mule-charset.c (charset_code_point): Fix problem about
801         inheritance.
802
803 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
804
805         * mule-charset.c (decode_builtin_char): Reorganized.
806
807 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
808
809         * text-coding.c (char_encode_as_entity_reference): Modify for
810         `charset_code_point'.
811         (char_encode_shift_jis): Likewise.
812         (char_encode_big5): Likewise.
813         (char_encode_utf8): Likewise.
814         (char_encode_iso2022): Likewise.
815
816         * mule-charset.c (charset_code_point): Add new argument
817         `defined_only'.
818         (Fencode_char): Add new optional argument `defined_only'.
819
820         * chartab.c (put_char_table): Modify for `charset_code_point'.
821
822         * char-ucs.h (charset_code_point): Add new argument
823         `defined_only'.
824         (encode_char_1): Modify for `charset_code_point'.
825
826 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
827
828         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
829         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
830
831 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
832
833         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
834         (Qjis_x0208): Likewise.
835         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
836         XCHARSET_FINAL(charset).
837         (charset_code_point): Modify condition for final-byte based
838         builtin-chars.
839         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
840         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
841         in UTF-2000; specify `=jis-x0208' as the mother of
842         `japanese-jisx0208-1978', `japanese-jisx0208' and
843         `japanese-jisx0208-1990' in UTF-2000.
844
845 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
846
847         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
848
849 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
850
851         * text-coding.c (decode_coding_utf16): Support UTF-16.
852         (char_encode_utf16): Fixed.
853
854 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
855
856         * text-coding.c (Qutf16): New variable in MULE.
857         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
858         (Fcoding_system_type): Add `utf-16' in MULE.
859         (struct detection_state): Add a structure for utf16 in MULE.
860         (detect_coding_type): Setup st->utf16.mask in MULE.
861         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
862         MULE.
863         (reset_encoding_stream): Use `char_encode_utf16' and
864         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
865         (detect_coding_utf16): New function [incomplete].
866         (decode_coding_utf16): New function [support only UCS-2].
867         (char_encode_utf16): New function.
868         (char_finish_utf16): New function.
869         (syms_of_file_coding): Add new symbol `utf-16'; setup
870         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
871
872         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
873         UTF-2000.
874         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
875         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
876
877 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
878
879         * chartab.c (put_char_table): When a charset is specified as a
880         range in UTF-2000, don't support builtin characters.
881
882 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
883
884         * mule-charset.c (decode_defined_char): Don't refer external
885         database if Qunbound or Qnil are found.
886         (Fsave_charset_mapping_table): Don't define it if
887         HAVE_CHISE_CLIENT is not defined.
888         (Freset_charset_mapping_table): New function.
889         (load_char_decoding_entry_maybe): Store Qnil if a character is not
890         found in external database.
891         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
892         if HAVE_CHISE_CLIENT is not defined; add new builtin function
893         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
894
895 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
896
897         * text-coding.c (decode_coding_utf8): Check CCS is specified or
898         not.
899
900 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
901
902         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
903         Q_lowercase, Q_uppercase in UTF-2000.
904
905         * chartab.c (get_char_table): Add special code for the standard
906         case table to use character attribute `->downcase' and
907         `->uppercase' for case operations in UTF-2000.
908
909         * casetab.c (Qflippedcase): New variable in UTF-2000.
910         (Q_lowercase): Likewise.
911         (Q_uppercase): Likewise.
912         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
913         and `->uppercase' in UTF-2000.
914         (complex_vars_of_casetab): Assign attribute name `downcase' to
915         downcase and CANON table of Vstandard_case_table in UTF-2000;
916         assign attribute name `flippedcase' to upcase and EQV table of
917         Vstandard_case_table in UTF-2000.
918
919 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * text-coding.c (decode_add_er_char): Support isolated-chars.
922         (char_encode_as_entity_reference): Likewise.
923
924 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
925
926         * emacs.c (Vutf_2000_lisp_directory): New variable.
927         (Vconfigure_utf_2000_lisp_directory): Likewise.
928         (complex_vars_of_emacs): Add new variable
929         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
930
931 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
932
933         * char-ucs.h (DECODE_CHAR): Delete special code for
934         `chinese-big5-1' and `chinese-big5-2'.
935
936         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
937         (Qbig5_2): Likewise.
938         (decode_defined_char): Support CONVERSION_BIG5_1 and
939         CONVERSION_BIG5_2.
940         (decode_builtin_char): Likewise.
941         (charset_code_point): Likewise.
942         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
943         'conversion in UTF-2000.
944         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
945         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
946         `chinese-big5-2' as children of `chinese-big5'.
947
948         * char-ucs.h (CONVERSION_BIG5_1): New macro.
949         (CONVERSION_BIG5_2): New macro.
950
951 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
952
953         * text-coding.c (char_encode_big5): Support entity-reference.
954
955 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
956
957         * text-coding.c (char_encode_as_entity_reference): New function.
958         (char_encode_utf8): Use `char_encode_as_entity_reference'.
959
960 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
961
962         * text-coding.c (decode_coding_big5): Support entity-reference
963         decoding feature.
964
965 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
966
967         * text-coding.c (allocate_coding_system): Initialize initial
968         charsets for CODESYS_UTF8.
969         (Fmake_coding_system): Accept charset-g0, charset-g1 and
970         charset-g2 for CODESYS_UTF8.
971         (decode_coding_utf8): Use charset-g0.
972         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
973         to force variants to map to UCS.
974
975 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * text-coding.c (Qutf_8_mcs): New variable.
978         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
979         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
980         instead of `utf-8' in UTF-2000.
981
982 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
983
984         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
985         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
986         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
987         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
988         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
989         CONVERSION_96x96x96x96 are introduced.
990         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
991         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
992         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
993
994         * char-ucs.h (CONVERSION_94): New macro.
995         (CONVERSION_96): New macro.
996         (CONVERSION_94x94): New macro.
997         (CONVERSION_96x96): New macro.
998         (CONVERSION_94x94x94): New macro.
999         (CONVERSION_96x96x96): New macro.
1000         (CONVERSION_94x94x94x60): New macro.
1001         (CONVERSION_94x94x94x94): New macro.
1002         (CONVERSION_96x96x96x96): New macro.
1003
1004 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1005
1006         * chartab.c (Vcharacter_variant_table): Deleted.
1007         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1008         of `Vcharacter_variant_table'.
1009         (Fput_char_attribute): Likewise.
1010         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1011         (complex_vars_of_chartab): Likewise.
1012
1013 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1014
1015         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1016
1017         * fns.c (Qideographic_structure): New variable.
1018         (Qkeyword_char): New variable.
1019         (ids_format_unit): New function.
1020         (Fideographic_structure_to_ids): New function.
1021         (syms_of_fns): Add new symbols `ideographic-structure' and
1022         `:char'; add new builtin function `ideographic-structure-to-ids'.
1023
1024         * data.c (Fchar_ref_p): New function.
1025         (syms_of_data): Add new builtin function `char-ref-p'.
1026
1027         * chartab.h: Add an EXFUN for `Ffind_char'.
1028
1029 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * text-coding.c (Vcharacter_composition_table): Deleted.
1032         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1033         in every UTF-2000.
1034
1035         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1036         UTF-2000.
1037         (Vcharacter_composition_table): Deleted.
1038         (Fget_composite_char): Use the implementation for external-DB
1039         support in every UTF-2000.
1040         (Fput_char_attribute): Likewise.
1041         (char_attribute_system_db_file): Don't define if external-DB
1042         feature is not available.
1043         (Fsave_char_attribute_table): Likewise.
1044         (Fmount_char_attribute_table): Likewise.
1045         (Fclose_char_attribute_table): Likewise.
1046         (Freset_char_attribute_table): Likewise.
1047         (Fload_char_attribute_table): Likewise.
1048         (syms_of_chartab): Don't define `save-char-attribute-table',
1049         `mount-char-attribute-table', `reset-char-attribute-table',
1050         `close-char-attribute-table' and `load-char-attribute-table' if
1051         external-DB feature is not available.
1052         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1053
1054 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1055
1056         * text-coding.c (Qcomposition): Add extern if external-DB feature
1057         is supported.
1058         (Vcharacter_composition_table): Don't add extern if external-DB
1059         feature is supported.
1060         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1061         character composition rule if external-DB feature is supported.
1062
1063         * chartab.c (Vcharacter_composition_table): Don't define if
1064         external-DB feature is supported.
1065         (Qcomposition): New variable.
1066         (Fget_composite_char): New implementation for external-DB support.
1067         (Fput_char_attribute): Use `composition' property of each
1068         character instead of `Vcharacter_composition_table' to store
1069         character-composition rules if external-DB feature is supported.
1070         (syms_of_chartab): Add new symbol `composition'.
1071         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1072         external-DB feature is supported.
1073
1074 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1075
1076         * chartab.c (Vchar_db_stingy_mode): New variable.
1077         (load_char_attribute_maybe): Close database if
1078         Vchar_db_stingy_mode is not NIL.
1079         (Fload_char_attribute_table_map_function): Use
1080         `get_char_id_table_0' instead of `get_char_id_table'.
1081         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1082
1083         * chartab.h (get_char_id_table_0): New inline function.
1084         (get_char_id_table): Use `get_char_id_table_0'.
1085
1086 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1087
1088         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1089         and `COMPOSE_ADD_CHAR'.
1090         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1091
1092 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1093
1094         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1095         instead of `DECODE_ADD_UCS_CHAR'.
1096         (COMPOSE_ADD_CHAR): Likewise.
1097
1098 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1099
1100         * text-coding.c (decode_flush_er_chars): New inline function.
1101         (decode_add_er_char): New function.
1102         (decode_coding_utf8): Use `decode_flush_er_chars' and
1103         `decode_add_er_char'.
1104
1105 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1106
1107         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1108         done before `decode_output_utf8_partial_char'.
1109
1110         * mule-charset.c (complex_vars_of_mule_charset): Specify
1111         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1112         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1113
1114 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1115
1116         * mule-charset.c (decode_defined_char): New function; search
1117         mother.
1118         (decode_builtin_char): Don't search mother if
1119         XCHARSET_MAX_CODE(charset) == 0.
1120         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1121         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1122         (Fdecode_char): Use `decode_defined_char' instead of
1123         `DECODE_DEFINED_CHAR'.
1124         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1125         mother of `Vcharset_ucs_jis'.
1126
1127         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1128         instead of `DECODE_DEFINED_CHAR'.
1129
1130         * char-ucs.h (decode_defined_char): Renamed from
1131         `DECODE_DEFINED_CHAR'; changed to normal function.
1132         (DECODE_CHAR): Use `decode_defined_char' instead of
1133         `DECODE_DEFINED_CHAR'.
1134
1135         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1136
1137 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1140
1141         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1142         variable.
1143         (Quse_entity_reference): New variable.
1144         (Qd): New variable.
1145         (Qx): New variable.
1146         (QX): New variable.
1147         (coding_system_description): Add description for
1148         `ccs_priority_list'.
1149         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1150         (allocate_coding_system): Initialize `ccs_priority_list' in
1151         UTF-2000.
1152         (Fmake_coding_system): Add description about
1153         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1154         (codesys).
1155         (Fcoding_system_property): Accept `disable-composition' and
1156         `use-entity-reference' in UTF-2000.
1157         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1158         in UTF-2000.
1159         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1160         (decode_coding_utf8): Decode entity-reference if
1161         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1162         (char_encode_utf8): Encode non-Unicode characters as
1163         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1164         (str->codesys).
1165         (syms_of_file_coding): Add new symbols `use-entity-reference',
1166         `d', `x', `X'.
1167         (vars_of_file_coding): Add new variable
1168         `coded-charset-entity-reference-alist'.
1169         (complex_vars_of_file_coding): Declare `disable-composition' and
1170         `use-entity-reference' to be coding-system-properties in UTF-2000.
1171
1172         * file-coding.h (struct Lisp_Coding_System): Add new member
1173         `use_entity_reference' and `ccs_priority_list'.
1174         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1175         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1176         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1177
1178 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * chartab.c (save_uint8_byte_table): Don't clear the table.
1181         (save_uint16_byte_table): Likewise.
1182         (save_byte_table): Likewise.
1183         (Fmount_char_attribute_table): New function.
1184         (syms_of_chartab): Add new builtin function
1185         `mount-char-attribute-table'.
1186
1187 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1188
1189         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1190         "w+" mode.
1191         (load_char_decoding_entry_maybe): Open database as read-only mode.
1192
1193         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1194         open database as "w+" mode.
1195         (load_char_attribute_maybe): Open database as read-only mode.
1196         (Fload_char_attribute_table): Likewise.
1197
1198 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1199
1200         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1201         (char_table_description): Delete member `db_file'.
1202         (Fmake_char_table): Don't refer `ct->db_file'.
1203         (Fcopy_char_table): Likewise.
1204         (Fsave_char_attribute_table): Likewise.
1205         (Fclose_char_attribute_table): Likewise.
1206         (Freset_char_attribute_table): Likewise.
1207         (load_char_attribute_maybe): Likewise.
1208         (Fload_char_attribute_table): Likewise.
1209
1210         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1211
1212 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1213
1214         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1215         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1216         `ct->db' is living.
1217         (load_char_attribute_maybe): Likewise.
1218         (Fload_char_attribute_table): Likewise.
1219
1220 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1221
1222         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1223         `ct->db_file' unconditionally.
1224
1225 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1226
1227         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1228         UTF-2000.
1229         (char_table_description): Add description for `db_file' and `db'
1230         in UTF-2000.
1231         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1232         UTF-2000.
1233         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1234         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1235         (Fclose_char_attribute_table): New function.
1236         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1237         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1238         and `cit->db'.
1239         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1240         (syms_of_chartab): Add new builtin function
1241         `Fclose_char_attribute_table'.
1242
1243 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1244
1245         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1246         `db' in UTF-2000.
1247         (load_char_attribute_maybe): Change interface.
1248         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1249
1250 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1253
1254 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1255
1256         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1257         instead of `DECODE_CHAR' for mother; don't use special code for
1258         chinese-big5 to use code space of chinese-big5-1 and
1259         chinese-big5-2.
1260         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1261         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1262
1263         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1264         (MAX_CHAR_BIG5_CDP): Revival.
1265
1266 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1269         the XLFD registry-encoding name of `chinese-big5'.
1270
1271 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1272
1273         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1274         (Qchinese_big5_cdp): Deleted.
1275         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1276         (complex_vars_of_mule_charset): Delete coded-charset
1277         `chinese-big5-cdp'.
1278
1279         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1280         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1281         `CHARSET_ID_OFFSET - n' for private CCS.
1282         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1283         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1284         of `MIN_LEADING_BYTE'.
1285         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1286         `(CHARSET_ID_OFFSET - 97)'.
1287         (MIN_CHAR_BIG5_CDP): Deleted.
1288         (MAX_CHAR_BIG5_CDP): Deleted.
1289
1290 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1291
1292         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1293
1294 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295
1296         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1297         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1298         chartab.c].
1299
1300         * chartab.c (Vutf_2000_version): Moved to mule.c.
1301         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1302
1303 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1304
1305         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1306         when HAVE_CHISE_CLIENT is not defined.
1307
1308         * mule.c (vars_of_mule): Provide feature `chise' when
1309         HAVE_CHISE_CLIENT is defined.
1310
1311 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * config.h.in (UTF2000): Add comment.
1314         (HAVE_CHISE_CLIENT): New macro.
1315
1316 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1319         CONSP.
1320         (Fput_char_attribute): Likewise.
1321         (char_attribute_system_db_file): Encode file-name of attribute.
1322         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1323         the initial value.
1324
1325 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1326
1327         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1328         (Fsave_charset_mapping_table): Use
1329         `char_attribute_system_db_file'.
1330         (load_char_decoding_entry_maybe): Likewise.
1331
1332         * chartab.h (Qsystem_char_id): New external variable.
1333         (char_attribute_system_db_file): New prototype.
1334
1335         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1336         (char_attribute_system_db_file): New function.
1337         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1338         (Freset_char_attribute_table): Likewise.
1339         (load_char_attribute_maybe): Likewise.
1340         (Fload_char_attribute_table): Likewise.
1341         (syms_of_chartab): Add new symbol `system-char-id'.
1342
1343 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1344
1345         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1346         `XCHARSET_GRAPHIC(ccs)'.
1347
1348 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1351
1352 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1353
1354         * chartab.c (Q_ucs_variants): New variable.
1355         (syms_of_chartab): Add new symbol `->ucs-variants'.
1356         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1357         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1358         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1359
1360         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1361
1362         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1363         `HAVE_DATABASE' is defined.
1364         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1365         `HAVE_DATABASE' is defined.
1366
1367 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1370         attribute-table.
1371         (Freset_char_attribute_table): New function.
1372         (syms_of_chartab): Add new builtin function
1373         `reset-char-attribute-table'.
1374
1375 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1376
1377         * chartab.c (load_char_attribute_maybe): Don't make directories.
1378
1379 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1380
1381         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1382
1383         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1384         for decoding-table.
1385
1386 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1387
1388         * mule-charset.c (Fsave_charset_mapping_table): Use
1389         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1390
1391         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1392         instead of `XCHARSET_CHARS'.
1393
1394 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1395
1396         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1397         (XCHARSET_BYTE_SIZE): Likewise.
1398
1399         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1400         mule-charset.c].
1401         (XCHARSET_BYTE_SIZE): Likewise.
1402
1403 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1404
1405         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1406         data-directory to store database.
1407         (Fsave_char_attribute_table): Likewise.
1408         (load_char_attribute_maybe): Likewise.
1409         (Fload_char_attribute_table): Likewise.
1410
1411 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1412
1413         * mule-charset.c (Fsave_charset_mapping_table): New function.
1414         (syms_of_mule_charset): Add new builtin function
1415         `save-charset-mapping-table'.
1416
1417 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1418
1419         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1420         (get_ccs_octet_table): New inline function.
1421         (put_ccs_octet_table): Likewise.
1422         (decoding_table_put_char): Use `get_ccs_octet_table' and
1423         `put_ccs_octet_table'.
1424         (decoding_table_remove_char): Use `decoding_table_put_char'.
1425         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1426
1427         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1428         into encoding_table.
1429         (make_charset): Use Qunbound instead Qnil as initial value of
1430         decoding_table.
1431
1432 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1433
1434         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1435         element is Qunloaded.
1436         (map_over_uint16_byte_table): Likewise.
1437         (map_over_byte_table): Likewise.
1438         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1439         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1440         database support, load encoding-table of the specified
1441         coded-charset if it is not loaded yet.
1442         (save_uint8_byte_table): New function of UTF-2000 with external
1443         database support.
1444         (save_uint16_byte_table): Likewise.
1445         (save_byte_table): Likewise.
1446         (Fput_char_attribute): Don't store value into external database
1447         even if the external database feature is supported in UTF-2000;
1448         set `attribute' as name of char-table if the external database
1449         feature is supported.
1450         (Fsave_char_attribute_table): New function in UTF-2000.
1451         (syms_of_chartab): Add new builtin function
1452         `save-char-attribute-table' in UTF-2000.
1453
1454 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1455
1456         * chartab.c (char_attribute_table_to_put): New variable in
1457         UTF-2000.
1458         (Qput_char_table_map_function): Likewise.
1459         (value_to_put): Likewise.
1460         (Fput_char_table_map_function): New function in UTF-2000.
1461         (put_char_table): Use `Fmap_char_attribute' for
1462         CHARTAB_RANGE_CHARSET in UTF-2000.
1463         (Fput_char_attribute): Store symbol instead of string in
1464         `XCHAR_TABLE_NAME (table)'.
1465         (load_char_attribute_maybe): Likewise.
1466         (syms_of_chartab): Add new symbol/function
1467         `put-char-table-map-function'.
1468
1469 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1470
1471         * database.h: Add new EXFUN for `Fmap_database'.
1472
1473         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1474         (syms_of_database): Likewise.
1475
1476         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1477         UTF-2000.
1478         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1479         (XCHAR_TABLE_UNLOADED): Likewise.
1480
1481         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1482         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1483         HAVE_DATABASE is defined.
1484         (char_attribute_table_to_load): New variable of UTF-2000 with
1485         external database support.
1486         (Qload_char_attribute_table_map_function): Likewise.
1487         (Fload_char_attribute_table_map_function): New function of
1488         UTF-2000 with external database support.
1489         (Fload_char_attribute_table): New function of UTF-2000.
1490         (Fmap_char_attribute): Call Fload_char_attribute_table if
1491         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1492         (syms_of_chartab): Add new symbol and function
1493         `load-char-attribute-table-map-function' in UTF-2000 with external
1494         database support; add new function `load-char-attribute-table' in
1495         UTF-2000.
1496
1497 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1498
1499         * chartab.h (load_char_attribute_maybe): New prototype for
1500         UTF-2000 with DATABASE support.
1501         (get_char_id_table): Use `load_char_attribute_maybe' if
1502         HAVE_DATABASE is defined.
1503
1504         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1505         with DATABASE support.
1506
1507 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1508
1509         * chartab.c (Fput_char_attribute): Use S-expression as key of
1510         external database.
1511
1512         * chartab.h (get_char_id_table): Use S-expression as key of
1513         external database.
1514
1515 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1516
1517         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1518         if an element is not loaded, load the corresponding attributes
1519         from an external database.
1520         (map_over_uint16_byte_table): Likewise.
1521         (map_over_byte_table): Likewise.
1522         (map_char_table): Modify for `map_over_uint8_byte_table',
1523         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1524         element is not loaded, load the corresponding attributes from an
1525         external database.
1526         (Fput_char_attribute): Change initial values to Qunloaded.
1527
1528         * chartab.h (get_char_id_table): If a character attribute is not
1529         loaded and the attribute value is not found in an external
1530         database, store Qunbound as the attribute value.
1531
1532 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1533
1534         * chartab.c (BT_UINT8_unloaded): New macro.
1535         (UINT8_VALUE_P): Accept Qunloaded.
1536         (UINT8_ENCODE): Likewise.
1537         (UINT8_DECODE): Likewise.
1538         (BT_UINT16_unloaded): New macro.
1539         (UINT16_VALUE_P): Accept Qunloaded.
1540         (UINT16_ENCODE): Likewise.
1541         (UINT16_DECODE): Likewise.
1542         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1543         BT_UINT16_unloaded.
1544         (mark_char_table): Mark `ct->name' in UTF-2000.
1545         (char_table_description): Add `name' in UTF-2000.
1546         (Fmake_char_table): Initialize `ct->name'.
1547         (Fcopy_char_table): Copy `ct->name'.
1548         (Fput_char_attribute): Store value into an external database if
1549         HAVE_DATABASE is defined.
1550
1551         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1552         UTF-2000.
1553         (CHAR_TABLE_NAME): New macro in UTF-2000.
1554         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1555         (get_char_id_table): Try to read an external database if Qunloaded
1556         is stored in a table.
1557
1558         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1559         Qunloaded.
1560
1561 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1562
1563         * database.h: Add EXFUN definitions for Fopen_database,
1564         Fput_database, Fget_database and Fclose_database.
1565
1566         * data.c (Qunloaded): New variable in UTF-2000.
1567
1568         * lisp.h (Qunloaded): New variable in UTF-2000.
1569
1570 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * mule-charset.c (put_char_ccs_code_point): Modify for
1573         `decoding_table_remove_char' and `decoding_table_put_char'.
1574         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1575
1576         * char-ucs.h (decoding_table_remove_char): Change arguments to
1577         hide decoding_table vector.
1578         (decoding_table_put_char): Likewise.
1579
1580 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581
1582         * mule-charset.c (decoding_table_remove_char): Moved to
1583         char-ucs.h.
1584         (decoding_table_put_char): Likewise.
1585
1586         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1587         from mule-charset.c].
1588         (decoding_table_remove_char): New inline function [moved from
1589         mule-charset.c].
1590         (decoding_table_put_char): Likewise.
1591
1592 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1593
1594         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1595         extension.
1596
1597 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1598
1599         * mule-charset.c (decode_builtin_char): Support mother charsets.
1600
1601 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1602
1603         * mule-charset.c (Q94x94x60): New variable.
1604         (charset_code_point): Support conversion `94x94x60'.
1605         (Fmake_charset): Likewise.
1606         (syms_of_mule_charset): Add new symbol `94x94x60'.
1607
1608         * char-ucs.h (CONVERSION_94x94x60): New macro.
1609
1610 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1611
1612         * mule-charset.c (charset_code_point): Unify code about
1613         `code-offset'.
1614
1615 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1616
1617         * mule-charset.c (charset_code_point): Merge code about builtin
1618         characters into code about mother charsets; don't use
1619         `range_charset_code_point'.
1620         (range_charset_code_point): Deleted.
1621
1622 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1623
1624         * mule-charset.c (Qcode_offset): New variable.
1625         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1626         `max-code'; accept new property `code-offset'.
1627         (syms_of_mule_charset): Add new symbol `code-offset'.
1628
1629 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1630
1631         * mule-charset.c (range_charset_code_point): Fixed.
1632
1633 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * mule-charset.c (decode_builtin_char): Change semantics of
1636         code-offset of coded-charset.
1637         (charset_code_point): Likewise.
1638         (range_charset_code_point): Likewise.
1639         (complex_vars_of_mule_charset): Modify for the change.
1640
1641 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1642
1643         * mule-charset.c (Fencode_char): Reverse arguments.
1644
1645         * mule-charset.c (charset_code_point): Fixed.
1646
1647 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * mule-charset.c (Vcharset_mojikyo): Deleted.
1650         (Vcharset_mojikyo_2022_1): Deleted.
1651         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1652         (Qmin_code): New variable in UTF-2000.
1653         (Qmax_code): Likewise.
1654         (Qmother): Likewise.
1655         (Qconversion): Likewise.
1656         (Q94x60): Likewise.
1657         (Qmojikyo): Deleted.
1658         (Qmojikyo_2022_1): Deleted.
1659         (Qmojikyo_pj_{1..22}): Deleted.
1660         (mark_charset): Mark `cs->mother'.
1661         (charset_description): Add description for `mother'.
1662         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1663         new arguments `mother' and `conversion'; use
1664         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1665         (charset_code_point): Moved from char-ucs.h; support `mother'
1666         charset feature.
1667         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1668         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1669         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1670         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1671         allow 2 as the value of `graphic' in UTF-2000; add new properties
1672         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1673         require `final' in UTF-2000; modify for `make_charset'.
1674         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1675         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1676         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1677         (Fencode_char): New function.
1678         (syms_of_mule_charset): Add new builtin function `encode-char' in
1679         UTF-2000; add new symbols `min-code', `max-code', `mother',
1680         `conversion' and `94x60'; delete symbols `mojikyo',
1681         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1682         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1683         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1684         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1685
1686         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1687         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1688
1689         * char-ucs.h (Vcharset_mojikyo): Deleted.
1690         (Vcharset_mojikyo_2022_1): Deleted.
1691         (LEADING_BYTE_MOJIKYO): Deleted.
1692         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1693         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1694         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1695         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1696         add new member `mother'; add new member `conversion'.
1697         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1698         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1699         (CHARSET_MOTHER): New macro.
1700         (CHARSET_CONVERSION): New macro.
1701         (CONVERSION_IDENTICAL): New macro.
1702         (CONVERSION_94x60): New macro.
1703         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1704         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1705         (XCHARSET_MOTHER): New macro.
1706         (XCHARSET_CONVERSION): New macro.
1707         (MIN_CHAR_MOJIKYO): Deleted.
1708         (MAX_CHAR_MOJIKYO): Deleted.
1709         (DECODE_MOJIKYO_2022): Deleted.
1710         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1711         (charset_code_point): Changed to non-inline function.
1712         (encode_char_1): Use `charset_code_point'.
1713         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1714
1715 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716
1717         * lread.c (read_compiled_function): Fix prototype.
1718         (read_vector): Likewise.
1719
1720 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1721
1722         * lrecord.h (struct lrecord_header): Delete `older'.
1723         (set_lheader_implementation): Delete code for `older'.
1724         (set_lheader_older_implementation): Deleted.
1725         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1726         (OLDER_RECORD_P): Deleted.
1727         (OLDER_RECORD_HEADER_P): Deleted.
1728         (alloc_older_lcrecord): Deleted.
1729         (alloc_older_lcrecord_type): Deleted.
1730
1731         * alloc.c (all_older_lcrecords): Deleted.
1732         (alloc_older_lcrecord): Deleted.
1733         (disksave_object_finalization_1): Delete code for older objects.
1734         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1735         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1736
1737 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1738
1739         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1740         instead of `make_older_vector'.
1741         (put_char_ccs_code_point): Likewise.
1742         (mark_charset): Mark `cs->decoding_table'.
1743         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1744
1745         * lisp.h (make_older_vector): Deleted.
1746         (make_vector_newer): Deleted.
1747
1748         * config.h.in (HAVE_GGC): Deleted.
1749
1750         * alloc.c (make_older_vector): Deleted.
1751         (make_vector_newer_1): Deleted.
1752         (make_vector_newer): Deleted.
1753
1754 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1755
1756         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1757         (Qideograph_daikanwa_2): New variable.
1758         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1759         (complex_vars_of_mule_charset): Add new coded-charset
1760         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1761         `LEADING_BYTE_DAIKANWA'.
1762
1763         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1764         (LEADING_BYTE_DAIKANWA_1): New macro.
1765         (LEADING_BYTE_DAIKANWA_2): New macro.
1766         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1767
1768 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * mule-charset.c (complex_vars_of_mule_charset): Change
1771         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1772         the second revised version.
1773
1774 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * mule-charset.c (Vcharset_ucs_smp): New variable.
1777         (Vcharset_ucs_sip): New variable.
1778         (Qucs_smp): New variable.
1779         (Qucs_sip): New variable.
1780         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1781         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1782         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1783         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1784         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1785         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1786
1787         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1788         (LEADING_BYTE_UCS_SIP): New macro.
1789         (MIN_CHAR_SMP): New macro.
1790         (MAX_CHAR_SMP): New macro.
1791         (MIN_CHAR_SIP): New macro.
1792         (MAX_CHAR_SIP): New macro.
1793
1794 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1795
1796         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1797         utf-2000.
1798
1799 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800
1801         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1802         value; don't store value into `encoding_table' of `Lisp_Charset'.
1803         (mark_charset): `encoding_table' was deleted.
1804         (charset_description): Likewise.
1805         (make_charset): Likewise.
1806         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1807         `put_char_ccs_code_point'.
1808
1809         * chartab.h (Fput_char_attribute): New EXFUN.
1810
1811         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1812         is unified with normal symbol space.
1813         (Fget_char_attribute): Likewise.
1814         (Fput_char_attribute): Likewise; behavior of
1815         `put_char_ccs_code_point' is changed.
1816
1817         * char-ucs.h: Include "elhash.h".
1818         (Vchar_attribute_hash_table): New external variable.
1819         (struct Lisp_Charset): Delete `encoding_table'.
1820         (CHARSET_ENCODING_TABLE): New implementation; refer
1821         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1822         `Lisp_Charset'.
1823
1824 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1825
1826         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1827         (cs) == 0.
1828
1829 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830
1831         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1832         `chinese-big5'.
1833
1834 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * chartab.c (uint8_byte_table_description): New constant.
1837         (uint8-byte-table): Use `uint8_byte_table_description'.
1838         (uint16_byte_table_description): New constant.
1839         (uint16-byte-table): Use `uint16_byte_table_description'.
1840
1841 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1844         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1845
1846 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1847
1848         * mule-charset.c (Vcharset_ucs_ks): New variable.
1849         (Qucs_ks): New variable.
1850         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1851         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1852
1853         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1854
1855 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1856
1857         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1858         (Fdecode_char): Likewise.
1859
1860         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1861         chartab.h.
1862         (Fdefine_char): Modify for Fdecode_char.
1863         (Ffind_char): Likewise.
1864
1865         * mule-charset.c (Fdecode_char): Add new optional argument
1866         `defined-only'.
1867         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1868
1869 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1870
1871         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1872         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1873         (allocate_coding_system): Initialize initial-charsets of
1874         CODESYS_BIG5 in XEmacs UTF-2000.
1875         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1876         CODESYS_BIG5 in XEmacs UTF-2000.
1877         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1878         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1879
1880         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1881         variables.
1882         (Qideograph_hanziku_{1 .. 12}): Likewise.
1883         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1884         .. 12}'.
1885         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1886         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1887         `ideograph-hanziku-{1 .. 12}'.
1888
1889         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1890         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1891         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1892         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1893         (DECODE_DEFINED_CHAR): New inline function.
1894         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1895
1896 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1897
1898         * mule-charset.c (Vcharset_china3_jef): Renamed from
1899         `Vcharset_japanese_jef_china3'.
1900         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1901         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1902         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1903         (syms_of_mule_charset): Rename `china3-jef' from
1904         `japanese-jef-china3'.
1905         (complex_vars_of_mule_charset): Likewise; rename
1906         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1907
1908         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1909         `LEADING_BYTE_JEF_CHINA3'.
1910         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1911         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1912
1913 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1914
1915         * mule-charset.c (encode_builtin_char_1): Comment out special code
1916         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1917
1918         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1919         (MAX_CHAR_MOJIKYO_0): Comment out.
1920         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1921         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1922         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1923         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1924
1925 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1926
1927         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1928         (Qideograph_cbeta): New variable.
1929         (encode_builtin_char_1): Comment out special code for
1930         coded-charset `mojikyo' and `japanese-jef-china3'.
1931         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1932         (complex_vars_of_mule_charset): Add new coded-charset
1933         `ideograph-cbeta'.
1934
1935         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1936         (MIN_CHAR_CBETA): New macro.
1937         (MAX_CHAR_CBETA): New macro.
1938
1939 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940
1941         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1942         (LEADING_BYTE_JEF_CHINA3): New macro.
1943         (MIN_CHAR_JEF_CHINA3): New macro.
1944         (MAX_CHAR_JEF_CHINA3): Likewise.
1945         (DECODE_CHAR): Fixed.
1946
1947 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948
1949         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1950         (Qjapanese_jef_china3): New variable.
1951         (encode_builtin_char_1): Support `japanese-jef-china3'.
1952         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1953         (complex_vars_of_mule_charset): Add new coded-charset
1954         `japanese-jef-china3'.
1955
1956 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1957
1958         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1959         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1960         94^4, 96^3, 96^4, 128^n and 256^n set.
1961         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1962         (map_char_table): Likewise.
1963
1964 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1965
1966         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1967         UTF-2000.
1968
1969 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970
1971         * chartab.h (get_char_id_table): New inline function.
1972
1973         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1974         function.
1975
1976 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977
1978         * chartab.h (decode_char_table_range): New prototype in XEmacs
1979         UTF-2000.
1980         (put_char_id_table): New inline function in XEmacs UTF-2000.
1981
1982         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1983         function.
1984         (decode_char_table_range): Delete static declaration in XEmacs
1985         UTF-2000.
1986
1987 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * chartab.c (put_char_id_table): Use `put_char_table'.
1990
1991 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1994         (map_over_uint16_byte_table): Likewise.
1995         (map_over_byte_table): Likewise.
1996         (map_char_table): Modify for `map_over_uint8_byte_table',
1997         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1998         UTF-2000.
1999
2000 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2001
2002         * chartab.c (struct map_char_table_for_charset_arg): New
2003         structure.
2004         (map_char_table_for_charset_fun): New function.
2005         (map_char_table): Use `map_char_table' for encoding_table of
2006         `range->charset'.
2007
2008 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * chartab.c (map_char_table): Check a character is found in
2011         range->charset instead of non default value is defined in
2012         char-table when range is CHARTAB_RANGE_ROW.
2013
2014 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * chartab.c (map_char_id_table): Deleted.
2017         (Fmap_char_attribute): Use `map_char_table' instead of
2018         `map_char_id_table'.
2019
2020 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2021
2022         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2023         UTF-2000.
2024         (update_syntax_table): Deleted in XEmacs UTF-2000.
2025
2026         * syntax.c (find_defun_start): Use `syntax_table' instead of
2027         `mirror_syntax_table' in XEmacs UTF-2000.
2028         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2029         UTF-2000.
2030         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2031         XEmacs UTF-2000.
2032         (Fmatching_paren): Likewise.
2033         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2034         in XEmacs UTF-2000.
2035         (find_start_of_comment): Likewise.
2036         (find_end_of_comment): Likewise.
2037         (Fforward_comment): Likewise.
2038         (scan_lists): Likewise.
2039         (char_quoted): Likewise.
2040         (Fbackward_prefix_chars): Likewise.
2041         (scan_sexps_forward): Likewise.
2042         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2043         (update_syntax_table): Likewise.
2044
2045         * search.c (skip_chars): Use `syntax_table' instead of
2046         `mirror_syntax_table' in XEmacs UTF-2000.
2047         (wordify): Likewise.
2048         (Freplace_match): Likewise.
2049
2050         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2051         `mirror_syntax_table' in XEmacs UTF-2000.
2052         (WORDCHAR_P_UNSAFE): Likewise.
2053         (re_match_2_internal): Likewise.
2054
2055         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2056         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2057
2058         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2059         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2060
2061         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2062         XEmacs UTF-2000.
2063
2064         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2065         UTF-2000.
2066         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2067         (char_table_description): Delete `mirror_table' in XEmacs
2068         UTF-2000.
2069         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2070         UTF-2000.
2071         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2072         (Fcopy_char_table): Likewise.
2073         (put_char_table): Don't call `update_syntax_table' in XEmacs
2074         UTF-2000.
2075
2076         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2077         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2078         (casify_region_internal): Likewise.
2079
2080         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2081
2082         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2083         `mirror_syntax_table' in XEmacs UTF-2000.
2084
2085         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2086         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2087         (Fexpand_abbrev): Likewise.
2088
2089 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2090
2091         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2092
2093 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2096         (map_over_uint16_byte_table): Likewise.
2097         (map_over_byte_table): Likewise.
2098         (get_char_id_table): Refer `cit->default_value'.
2099         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2100         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2101         of character-id ranges.
2102         (mark_char_table): Mark `ct->default_value'.
2103         (char_table_description): Add `default_value'.
2104         (fill_char_table): Use `default_value'.
2105         (decode_char_table_range): Decode `nil' as
2106         `CHARTAB_RANGE_DEFAULT'.
2107         (get_char_id_table): Refer `cit->default_value'.
2108         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2109         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2110         temporary hack; check value of char-table is bound or not.
2111         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2112
2113         * chartab.h (struct Lisp_Char_Table): Add new member
2114         `default_value' in XEmacs UTF-2000.
2115         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2116         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2117         UTF-2000.
2118
2119 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * chartab.h (Lisp_Char_ID_Table): Deleted.
2122
2123         * chartab.c (char_table_description): Fix typo.
2124         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2125         `Lisp_Char_ID_Table'.
2126
2127 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2130         `CHAR_ID_TABLE_P'.
2131
2132         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2133         `CHAR_ID_TABLE_P'.
2134
2135         * chartab.h (XCHAR_ID_TABLE): Deleted.
2136         (XSETCHAR_ID_TABLE): Deleted.
2137         (CHAR_ID_TABLE_P): Deleted.
2138
2139         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2140         `CHAR_ID_TABLE_P'.
2141         (Fget_composite_char): Likewise.
2142         (put_char_table): Likewise.
2143         (add_char_attribute_alist_mapper): Fixed.
2144         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2145         `CHAR_ID_TABLE_P'.
2146         (Fget_char_attribute): Likewise.
2147         (Fget_char_attribute): Likewise.
2148         (Fmap_char_attribute): Likewise.
2149
2150         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2151         `CHAR_ID_TABLE_P'.
2152         (encode_char_1): Likewise.
2153
2154 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2155
2156         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2157         `XCHAR_ID_TABLE'.
2158
2159         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2160         instead of `XCHAR_ID_TABLE'.
2161         (remove_char_ccs): Likewise.
2162
2163         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2164         `XCHAR_ID_TABLE'.
2165         (Fget_composite_char): Likewise.
2166         (Fchar_variants): Likewise.
2167         (put_char_table): Likewise.
2168         (add_char_attribute_alist_mapper): Likewise.
2169         (Fchar_attribute_alist): Likewise.
2170         (Fget_char_attribute): Likewise.
2171         (Fput_char_attribute): Likewise.
2172         (Fmap_char_attribute): Likewise.
2173         (Fmap_char_attribute): Likewise.
2174
2175         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2176         `XCHAR_ID_TABLE'.
2177         (encode_char_1): Likewise.
2178
2179 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2182         `Lisp_Char_ID_Table'.
2183         (mark_char_id_table): Deleted.
2184         (print_char_id_table): Likewise.
2185         (char_id_table_equal): Likewise.
2186         (char_id_table_hash): Likewise.
2187         (char_id_table_description): Likewise.
2188         (char_id_table): Likewise.
2189         (make_char_id_table): Use `Fmake_char_table' and
2190         `fill_char_table'.
2191         (get_char_id_table): Use `Lisp_Char_Table' instead of
2192         `Lisp_Char_ID_Table'.
2193         (put_char_id_table): Likewise.
2194         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2195         `XCHAR_ID_TABLE'.
2196         (Fremove_char_attribute): Likewise.
2197         (syms_of_chartab): Don't define type `char-id-table'.
2198
2199         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2200         (char_id_table): Likewise.
2201         (GC_CHAR_ID_TABLE_P): Likewise.
2202         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2203         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2204         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2205         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2206         (get_char_id_table): Use `Lisp_Char_Table' instead of
2207         `Lisp_Char_ID_Table'.
2208         (put_char_id_table_0): Likewise.
2209         (put_char_id_table): Likewise.
2210
2211 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2212
2213         * chartab.h: Lisp_Byte_Table related codes are moved from
2214         chartab.h.
2215
2216         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2217
2218 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2219
2220         * chartab.h: Don't include "chartab.h".
2221         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2222         (Lisp_Char_ID_Table): Likewise.
2223         (char_id_table): Likewise.
2224         (XCHAR_ID_TABLE): Likewise.
2225         (XSETCHAR_ID_TABLE): Likewise.
2226         (CHAR_ID_TABLE_P): Likewise.
2227         (GC_CHAR_ID_TABLE_P): Likewise.
2228         (get_char_id_table): Likewise.
2229
2230         * char-ucs.h: Include "chartab.h".
2231         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2232         (Lisp_Char_ID_Table): Likewise.
2233         (char_id_table): Likewise.
2234         (XCHAR_ID_TABLE): Likewise.
2235         (XSETCHAR_ID_TABLE): Likewise.
2236         (CHAR_ID_TABLE_P): Likewise.
2237         (GC_CHAR_ID_TABLE_P): Likewise.
2238         (get_char_id_table): Likewise.
2239
2240 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2241
2242         * chartab.c (copy_uint8_byte_table): New function.
2243         (copy_uint16_byte_table): New function.
2244         (copy_byte_table): New function.
2245         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2246         characters to call.
2247         (map_over_uint16_byte_table): Likewise.
2248         (map_over_byte_table): Likewise.
2249         (get_byte_table): Move prototype to chartab.h.
2250         (put_byte_table): Likewise.
2251         (put_char_id_table_0): Moved to chartab.h.
2252         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2253         (char_table_entry_equal): Likewise.
2254         (char_table_entry_hash): Likewise.
2255         (char_table_entry_description): Likewise.
2256         (char_table_entry): Likewise.
2257         (make_char_table_entry): Likewise.
2258         (copy_char_table_entry): Likewise.
2259         (get_non_ascii_char_table_value): Likewise.
2260         (map_over_charset_ascii): Likewise.
2261         (map_over_charset_control_1): Likewise.
2262         (map_over_charset_row): Likewise.
2263         (map_over_other_charset): Likewise.
2264         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2265         (print_char_table): Likewise.
2266         (char_table_equal): Likewise.
2267         (char_table_hash): Likewise.
2268         (char_table_description): Likewise.
2269         (fill_char_table): Likewise.
2270         (Fcopy_char_table): Likewise.
2271         (get_char_table): Likewise.
2272         (Fget_range_char_table): Likewise.
2273         (put_char_table): Likewise.
2274         (map_char_table): Likewise.
2275         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2276         UTF-2000.
2277
2278 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2279
2280         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2281         `Vauto_fill_chars' in XEmacs UTF-2000.
2282
2283         * chartab.h (get_byte_table): New prototype [moved from
2284         chartab.c].
2285         (put_byte_table): Likewise [moved from chartab.c].
2286         (put_char_id_table_0): New inline function [moved from chartab.c].
2287         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2288         (Lisp_Char_Table_Entry): Likewise.
2289         (char_table_entry): Likewise.
2290         (XCHAR_TABLE_ENTRY): Likewise.
2291         (XSETCHAR_TABLE_ENTRY): Likewise.
2292         (CHAR_TABLE_ENTRYP): Likewise.
2293         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2294         (NUM_ASCII_CHARS): Likewise.
2295         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2296         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2297
2298 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * chartab.c (get_char_id_table): Change interface.
2301         (put_char_id_table_0): New function.
2302         (put_char_id_table): Change interface; new implementation.
2303         (Fget_composite_char): Modify for interface change of
2304         `get_char_id_table'.
2305         (Fchar_variants): Likewise.
2306         (add_char_attribute_alist_mapper): Likewise.
2307         (Fchar_attribute_alist): Likewise.
2308         (Fget_char_attribute): Likewise.
2309         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2310         as same as character as the first argument like `put-char-table';
2311         modify for interface change of `put_char_id_table'.
2312         (Fremove_char_attribute): Modify for interface change of
2313         `put_char_id_table'.
2314
2315 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * text-coding.c: Sync up with XEmacs 21.2.41.
2318         (COMPOSE_ADD_CHAR): Modify for interface change of
2319         `get_char_id_table'.
2320
2321         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2322         change of `put_char_id_table'.
2323         (remove_char_ccs): Likewise.
2324
2325         * chartab.h (put_char_id_table): Change interface.
2326
2327         * char-ucs.h (get_char_id_table): Change interface.
2328         (charset_code_point): Modify for interface change of
2329         `get_char_id_table'.
2330         (encode_char_1): Likewise.
2331
2332 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2335         argument `ccs'.
2336         (map_over_uint16_byte_table): Likewise.
2337         (map_over_byte_table): Likewise.
2338         (map_char_id_table): Add new argument `range' like
2339         `map_char_table'.
2340         (Fmap_char_attribute): Add new argument `range' like
2341         `Fmap_char_table'.
2342
2343 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2344
2345         * chartab.c (map_over_uint8_byte_table): Change interface of
2346         mapping function to use struct chartab_range instead of Emchar.
2347         (map_over_uint16_byte_table): Likewise.
2348         (map_over_byte_table): Likewise.
2349         (map_char_id_table): Likewise.
2350         (struct slow_map_char_id_table_arg): Deleted.
2351         (slow_map_char_id_table_fun): Deleted.
2352         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2353         function `slow_map_char_table_fun' instead of struct
2354         `slow_map_char_id_table_arg' and function
2355         `slow_map_char_id_table_fun'.
2356
2357 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2358
2359         * mule-charset.c: Move char-it-table related codes to chartab.c.
2360         (Vutf_2000_version): Moved to chartab.c.
2361         (Fdefine_char): Likewise.
2362         (Ffind_char): Likewise.
2363         (syms_of_mule_charset): Move types `uint8-byte-table',
2364         `uint16-byte-table', `byte-table' and `char-id-table' to
2365         chartab.c; move functions `char_attribute_list,
2366         `find_char_attribute_table, `char_attribute_alist,
2367         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2368         `map_char_attribute, `define_char, `find_char, `char_variants and
2369         `get_composite_char to chartab.c; move symbols `=>ucs',
2370         `->decomposition', `compat', `isolated', `initial', `medial',
2371         `final', `vertical', `noBreak', `fraction', `super', `sub',
2372         `circle', `square', `wide', `narrow', `small' and `font' to
2373         chartab.c.
2374         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2375         setting codes for `Vcharacter_composition_table' and
2376         `Vcharacter_variant_table' to chartab.c.
2377         (complex_vars_of_mule_charset): Move setting code for
2378         `Vchar_attribute_hash_table' to chartab.c.
2379
2380         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2381         (make_char_id_table): New prototype.
2382         (put_char_id_table): Likewise.
2383         (Fget_char_attribute): Likewise.
2384
2385         * chartab.c: Move char-id-table related code from mule-charset.c.
2386         (Vutf_2000_version): Moved from mule-charset.c.
2387
2388         * char-ucs.h (Qucs): New external variable.
2389         (put_char_ccs_code_point): New prototype.
2390         (remove_char_ccs): Likewise.
2391
2392 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2393
2394         * mule-charset.c (Vcharset_ucs_jis): New variable.
2395         (Qucs_jis): Likewise.
2396         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2397         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2398
2399         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2400
2401 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2402
2403         * mule-charset.c (map_over_uint8_byte_table): New function.
2404         (map_over_uint16_byte_table): Likewise.
2405         (map_over_byte_table): Likewise.
2406         (map_char_id_table): Likewise.
2407         (slow_map_char_id_table_fun): Likewise.
2408         (Fmap_char_attribute): Likewise.
2409         (syms_of_mule_charset): Add new function `map-char-attribute'.
2410
2411 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2412
2413         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2414         (syms_of_mule_charset): Add new function `find-char'.
2415
2416 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2417
2418         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2419         XEmacs UTF-2000.
2420         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2421         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2422         XEmacs UTF-2000.
2423         (complex_vars_of_mule_charset): Add new coded-charset
2424         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2425         `ideograph-gt-pj-*'.
2426
2427         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2428
2429 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * mule-charset.c (encode_builtin_char_1): Purge codes about
2432         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2433         {MIN|MAX}_CHAR_HEBREW.
2434         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2435         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2436
2437         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2438         (MAX_CHAR_GREEK): Purged.
2439         (MIN_CHAR_CYRILLIC): Purged.
2440         (MAX_CHAR_CYRILLIC): Purged.
2441         (MIN_CHAR_HEBREW): Commented out.
2442         (MAX_CHAR_HEBREW): Likewise.
2443
2444 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2445
2446         * mule-charset.c (Qto_ucs): New variable.
2447         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2448         (Fdefine_char): Likewise.
2449         (syms_of_mule_charset): Add new symbol `=>ucs'.
2450
2451 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2452
2453         * mule-charset.c (Fdecode_char): Fixed.
2454
2455 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2456
2457         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2458         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2459         "tcvn5712-1".
2460
2461 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462
2463         * mule-charset.c (Vcharset_ucs_big5): New variable.
2464         (Qucs_big5): Likewise.
2465         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2466         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2467
2468         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2469
2470 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2471
2472         * mule-charset.c (decode_builtin_char): Check Big5 code range
2473         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2474
2475 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2476
2477         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2478         (Qchinese_gb12345): Likewise.
2479         (Fdecode_builtin_char): Fixed.
2480         (syms_of_mule_charset): Add `chinese-gb12345'.
2481         (complex_vars_of_mule_charset): Add coded-charset
2482         `chinese-gb12345'.
2483
2484         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2485         (LEADING_BYTE_CHINESE_GB12345): New macro.
2486
2487 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2490         and `latin-viscii-upper' for `latin-viscii'.
2491
2492 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2493
2494         * mule-charset.c (Fdecode_builtin_char): Comment out
2495         regularization code for ISO-IR GR representation.
2496
2497 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2498
2499         * mule-charset.c (decode_builtin_char): New function; renamed from
2500         `make_builtin_char'; return -1 instead of signal.
2501         (Fdecode_builtin_char): Use `decode_builtin_char'.
2502
2503         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2504         `make_builtin_char'.
2505         (DECODE_CHAR): Use `decode_builtin_char' instead of
2506         `make_builtin_char'; use mapping table of `chinese-big5' for
2507         `chinese-big5-{1,2}'.
2508
2509 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2510
2511         * text-coding.c (char_encode_big5): New function.
2512         (char_finish_big5): Likewise.
2513         (reset_encoding_stream): Use `char_encode_big5' and
2514         `char_finish_big5' for CODESYS_BIG5.
2515         (mule_encode): Don't use `encode_coding_big5'.
2516         (encode_coding_big5): Deleted.
2517
2518 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2519
2520         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2521         0x81- in XEmacs UTF-2000.
2522         (detect_coding_big5): Likewise.
2523
2524 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2527         generate character-id if the CCS property does not have
2528         corresponding predefined character.
2529         (make_builtin_char): Return -1 if corresponding predefined
2530         character is not found.
2531         (Fdecode_char): Return nil if corresponding character is not
2532         found.
2533         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2534         don't map to builtin ucs space.
2535
2536 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2537
2538         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2539         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2540
2541 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2544         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2545         (Qideograph_gt): Likewise.
2546         (Qideograph_gt_pj_{1..11}): Likewise.
2547         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2548         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2549         `ideograph-gt-pj-11'.
2550         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2551         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2552         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2553
2554         * char-ucs.h (LEADING_BYTE_GT): New macro.
2555         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2556         (MIN_CHAR_GT): Likewise.
2557         (MAX_CHAR_GT): Likewise.
2558
2559 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2562         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2563
2564         * doprnt.c (unsigned_int_converters): Add `c'.
2565         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2566
2567         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2568         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2569         `MIN_CHAR_MOJIKYO'.
2570         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2571         (MAX_CHAR_MOJIKYO_0): New macro.
2572         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2573
2574 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * mule-charset.c (Fdefine_char): Delete cemented out code.
2577         (encode_builtin_char_1): Modify for new allocation of builtin
2578         Mojikyo characters.
2579
2580         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2581
2582 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2583
2584         * mule-charset.c (Vcharset_ucs_cns): New variable.
2585         (Qucs_cns): New variable.
2586         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2587         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2588
2589 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2590
2591         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2592
2593 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2594
2595         * search.c (search_buffer): Make `charset_base_code' as
2596         character-id >> 6 to eliminate the corresponding last byte in
2597         UTF-8 representation [I'm not sure it is right thing].
2598         (boyer_moore): Likewise.
2599
2600 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2601
2602         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2603         representation in MULE.
2604
2605 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606
2607         * text-coding.c (Fmake_coding_system): Use
2608         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2609         `EXTERNAL_PROPERTY_LIST_LOOP'.
2610
2611 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * text-coding.c (decode_output_utf8_partial_char): New function.
2614         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2615
2616 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2617
2618         * text-coding.c (decode_coding_utf8): Output original byte
2619         sequence if it is broken; change order of conditions.
2620
2621         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2622         of conditions.
2623
2624         * mb-multibyte.h (BYTE_ASCII_P):
2625         Use bit ops for char-signedness safety.
2626         (BYTE_C0_P): Use bit ops for char-signedness safety.
2627         (BYTE_C1_P): Use bit ops for char-signedness safety.
2628
2629         * character.h: (XCHAR_OR_CHAR_INT):
2630         Always use inline function.
2631         Remove redundant type checking assert() - XINT will abort quite
2632         nicely.
2633
2634 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2635
2636         * text-coding.c: (Fencode_shift_jis_char):
2637         (Fencode_big5_char):
2638         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2639         Replace 0 with '\0' when working with bytes.
2640         Replace initial "(" with "\(" in docstrings.
2641
2642         (Fmake_coding_system):
2643         When type is ccl and value is vector, register it with a proper
2644         symbol.  And checks whether the given ccl program is valid.
2645         (mule_decode): When calling ccl_driver, if src indicates
2646         NULL pointer, set an empty string instead.
2647         (mule_encode): Likewise.
2648
2649         (detect_eol_type):
2650         (detect_coding_sjis):
2651         (decode_coding_sjis):
2652         (detect_coding_big5):
2653         (decode_coding_big5):
2654         (detect_coding_ucs4):
2655         (decode_coding_ucs4):
2656         (detect_coding_utf8):
2657         (decode_coding_utf8):
2658         (detect_coding_iso2022):
2659         (decode_coding_iso2022):
2660         (decode_coding_no_conversion):
2661         (mule_decode):
2662         Make all detecting and decoding functions take an Extbyte * arg.
2663         (text_encode_generic):
2664         (encode_coding_big5):
2665         (encode_coding_no_conversion):
2666         (mule_encode):
2667         Make all encoding functions take a Bufbyte * arg.
2668         Use size_t instead of unsigned int for memory sizes.
2669         Only cast to unsigned char whenever dereferencing Extbyte *.
2670
2671         (struct lrecord_description fcd_description_1): Use countof.
2672         (complex_vars_of_file_coding):
2673         Use countof instead of sizeof.
2674         Use CHECK_NATNUM instead of CHECK_INT.
2675
2676 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2677
2678         * mule-charset.c (Fget_char_attribute): Add new optional argument
2679         `default-value'.
2680         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2681         (remove_char_ccs): Likewise.
2682
2683 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * text-coding.c (char_encode_shift_jis): New implementation in
2686         UTF-2000.
2687         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2688         ...)'.
2689
2690         * mule-charset.c (Vcharset_chinese_big5): New variable in
2691         UTF-2000.
2692         (Qchinese_big5): New variable in UTF-2000.
2693         (BIG5_SAME_ROW): New macro in UTF-2000.
2694         (make_builtin_char): Use builtin characters of
2695         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2696         characters of `Vcharset_chinese_big5'.
2697         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2698         (complex_vars_of_mule_charset): Add new coded-charset
2699         `chinese-big5' in UTF-2000.
2700
2701         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2702         (Vcharset_chinese_big5): New external variable declaration.
2703         (Vcharset_japanese_jisx0208_1990): Likewise.
2704
2705 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2708         function.
2709         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2710
2711 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2714         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2715         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2716         `mojikyo-pj-*'.
2717
2718 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2719
2720         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2721
2722 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2723
2724         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2725         to 0.17.
2726
2727 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2730         for `CHARSET_BY_ATTRIBUTES'.
2731         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2732         `CHARSET_BY_ATTRIBUTES'.
2733
2734         * text-coding.c (struct decoding_stream): Rename member `CH' to
2735         `CPOS'.
2736         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2737         (decode_coding_sjis): Likewise.
2738         (decode_coding_big5): Likewise.
2739         (decode_coding_ucs4): Likewise.
2740         (decode_coding_utf8): Likewise.
2741         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2742         `CHARSET_BY_ATTRIBUTES'.
2743         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2744         `str->counter'; decode 3, 4 bytes sets.
2745         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2746         sets.
2747         (decode_coding_no_conversion): Use `str->cpos' instead of
2748         `str->ch'.
2749
2750         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2751         (Qmojikyo_2022_1): New variable.
2752         (make_charset): Don't use `CHARSET_TYPE_*'.
2753         (range_charset_code_point): Support coded-charset
2754         `mojikyo-2022-1'.
2755         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2756         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2757         `CHARSET_BY_ATTRIBUTES'.
2758         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2759         `CHARSET_BY_ATTRIBUTES'.
2760         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2761         (complex_vars_of_mule_charset): Add new coded-charset
2762         `mojikyo-2022-1'.
2763
2764         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2765         interface; changed to inline function.
2766
2767         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2768         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2769         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2770         (CHARSET_TYPE_94): Deleted.
2771         (CHARSET_TYPE_94X94): Deleted.
2772         (CHARSET_TYPE_96): Deleted.
2773         (CHARSET_TYPE_96X96): Deleted.
2774         (CHARSET_TYPE_128): Deleted.
2775         (CHARSET_TYPE_128X128): Deleted.
2776         (CHARSET_TYPE_256): Deleted.
2777         (CHARSET_TYPE_256X256): Deleted.
2778         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2779         to inline function.
2780         (DECODE_MOJIKYO_2022): New inline function.
2781         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2782         `Vcharset_mojikyo_2022_1'.
2783
2784 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2785
2786         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2787         instead of `EQ'.
2788         (put_byte_table): Likewise.
2789         (char_id_table_equal): Use `get_byte_table' [new implementation].
2790
2791 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * mule-charset.c: Include <limits.h> in UTF-2000.
2794         (BT_UINT8_MIN): New macro in UTF-2000.
2795         (BT_UINT8_MAX): New macro in UTF-2000.
2796         (BT_UINT8_t): New macro in UTF-2000.
2797         (BT_UINT8_nil): New macro in UTF-2000.
2798         (BT_UINT8_unbound): New macro in UTF-2000.
2799         (INT_UINT8_P): New inline function in UTF-2000.
2800         (UINT8_VALUE_P): New inline function in UTF-2000.
2801         (UINT8_ENCODE): New inline function in UTF-2000.
2802         (UINT8_DECODE): New inline function in UTF-2000.
2803         (mark_uint8_byte_table): New function in UTF-2000.
2804         (print_uint8_byte_table): New function in UTF-2000.
2805         (uint8_byte_table_equal): New function in UTF-2000.
2806         (uint8_byte_table_hash): New function in UTF-2000.
2807         (make_uint8_byte_table): New function in UTF-2000.
2808         (uint8_byte_table_same_value_p): New function in UTF-2000.
2809         (BT_UINT16_MIN): New macro in UTF-2000.
2810         (BT_UINT16_MAX): New macro in UTF-2000.
2811         (BT_UINT16_t): New macro in UTF-2000.
2812         (BT_UINT16_nil): New macro in UTF-2000.
2813         (BT_UINT16_unbound): New macro in UTF-2000.
2814         (INT_UINT16_P): New inline function in UTF-2000.
2815         (UINT16_VALUE_P): New inline function in UTF-2000.
2816         (UINT16_ENCODE): New inline function in UTF-2000.
2817         (UINT16_DECODE): New inline function in UTF-2000.
2818         (UINT8_TO_UINT16): New inline function in UTF-2000.
2819         (mark_uint16_byte_table): New function in UTF-2000.
2820         (print_uint16_byte_table): New function in UTF-2000.
2821         (uint16_byte_table_equal): New function in UTF-2000.
2822         (uint16_byte_table_hash): New function in UTF-2000.
2823         (make_uint16_byte_table): New function in UTF-2000.
2824         (uint16_byte_table_same_value_p): New function in UTF-2000.
2825         (print_byte_table): New function in UTF-2000.
2826         (byte-table): Use `print_byte_table' as printer.
2827         (make_byte_table): Delete second argument `older'.
2828         (byte_table_same_value_p): New function in UTF-2000.
2829         (copy_byte_table): Deleted.
2830         (get_byte_table): New function in UTF-2000.
2831         (put_byte_table): New function in UTF-2000.
2832         (print_char_id_table): New function in UTF-2000.
2833         (char-id-table): Use `print_char_id_table' as printer.
2834         (make_char_id_table): Delete second argument `older'.
2835         (get_char_id_table): Use `get_byte_table [new implementation].
2836         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2837         implementation].
2838         (Ffind_char_attribute_table): New function in UTF-2000.
2839         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2840         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2841         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2842         (syms_of_mule_charset): Add new function
2843         `find-char-attribute-table' in UTF-2000.
2844
2845         * lrecord.h (enum lrecord_type): Add
2846         `lrecord_type_uint16_byte_table' and
2847         `lrecord_type_uint8_byte_table'.
2848
2849         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2850         (Lisp_Uint8_Byte_Table): New type.
2851         (XUINT8_BYTE_TABLE): New macro.
2852         (XSETUINT8_BYTE_TABLE): New macro.
2853         (UINT8_BYTE_TABLE_P): New macro.
2854         (GC_UINT8_BYTE_TABLE_P): New macro.
2855         (struct Lisp_Uint16_Byte_Table): New structure.
2856         (Lisp_Uint16_Byte_Table): New type.
2857         (XUINT16_BYTE_TABLE): New macro.
2858         (XSETUINT16_BYTE_TABLE): New macro.
2859         (UINT16_BYTE_TABLE_P): New macro.
2860         (GC_UINT16_BYTE_TABLE_P): New macro.
2861
2862 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2865         (Vcharacter_ideographic_strokes_table): Deleted.
2866         (Vcharacter_total_strokes_table): Deleted.
2867         (Vcharacter_morohashi_daikanwa_table): Deleted.
2868         (Vcharacter_decomposition_table): Deleted.
2869         (Qname): Deleted because it is duplicated.
2870         (Qideographic_radical): Deleted.
2871         (Qideographic_strokes): Deleted.
2872         (Qtotal_strokes): Deleted.
2873         (Qmorohashi_daikanwa): Deleted.
2874         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2875         `ideographic-radical', `ideographic-strokes', `total-strokes',
2876         `morohashi-daikanwa' and `->decomposition'.
2877         (Fget_char_attribute): Likewise.
2878         (Fput_char_attribute): Likewise; use `make-vector' instead of
2879         `make_older_vector' for `->decomposition' value.
2880         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2881         `ideograph-daikanwa'.
2882         (syms_of_mule_charset): Delete builtin symbols `name',
2883         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2884         `morohashi-daikanwa'.
2885         (vars_of_mule_charset): Don't setup
2886         `Vcharacter_ideographic_radical_table',
2887         `Vcharacter_ideographic_strokes_table',
2888         `Vcharacter_total_strokes_table',
2889         `Vcharacter_morohashi_daikanwa_table' and
2890         `Vcharacter_decomposition_table'.
2891
2892 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2893
2894         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2895         `make_older_vector', `make_vector_newer_1' and
2896         `make_vector_newer'.
2897
2898         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2899         `make_older_vector' and `make_vector_newer'.
2900
2901         * config.h.in (HAVE_GGC): New macro.
2902
2903 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * mule-charset.c (struct char_attribute_list_closure): New
2906         structure in UTF-2000.
2907         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2908         (Fchar_attribute_list): Likewise.
2909         (Fset_charset_mapping_table): Use `make_vector_newer'.
2910         (Fdecode_builtin_char): New function in UTF-2000.
2911         (syms_of_mule_charset): Add new function `char-attribute-list' and
2912         `decode-builtin-char' in UTF-2000.
2913
2914         * lisp.h (make_vector_newer): New prototype.
2915
2916         * alloc.c (make_vector_newer_1): New function.
2917         (make_vector_newer): New function.
2918
2919 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2920
2921         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2922         50100)'.
2923
2924 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2925
2926         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2927         (Vcharacter_attribute_table): Deleted.
2928         (Vcharacter_name_table): Deleted.
2929         (put_char_attribute): Deleted.
2930         (remove_char_attribute): Deleted.
2931         (struct char_attribute_alist_closure): New structure.
2932         (add_char_attribute_alist_mapper): New function.
2933         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2934         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2935         (Fget_char_attribute): Likewise.
2936         (Fput_char_attribute): Likewise.
2937         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2938         of `remove_char_attribute'.
2939         (Fdefine_char): Return character.
2940         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2941         and `Vcharacter_name_table'.
2942         (complex_vars_of_mule_charset): Likewise
2943         `Vchar_attribute_hash_table'.
2944
2945 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2946
2947         * character.h (CHARC_CHARSET): New macro.
2948         (CHARC_CHARSET_ID): New macro.
2949         (CHARC_CODE_POINT): New macro.
2950         (CHARC_COLUMNS): New macro.
2951         (CHARC_TO_CHAR): New inline function.
2952         (CHARC_EQ): New inline function.
2953         (CHARC_ASCII_EQ): New inline function.
2954         (CHARC_IS_SPACE): New inline function.
2955         (ASCII_TO_CHARC): New inline function.
2956
2957         * char-ucs.h (encode_char_2): Deleted.
2958         (ENCODE_CHAR): Use `encode_char_1' again.
2959         (breakup_char_1): Likewise.
2960         (CHAR_TO_CHARC): New inline function.
2961
2962         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2963
2964 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2965
2966         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2967         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2968         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2969         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2970         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2971         `CHARC_IS_SPACE'.
2972         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2973
2974         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2975         `CHARC_CODE_POINT'.
2976         (x_output_display_block): Use `CHARC_CHARSET' and
2977         `CHARC_ASCII_EQ'.
2978
2979         * redisplay-tty.c (tty_output_display_block): Use
2980         `CHARC_ASCII_EQ'.
2981         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2982
2983         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2984
2985         * insdel.c (find_charsets_in_charc_string): Use
2986         `CHARC_CHARSET_ID'.
2987         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2988         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2989         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2990         (convert_charc_string_into_malloced_string): Likewise.
2991
2992 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2993
2994         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2995         instead of <Emchar_dynarr *> for buf; use
2996         `convert_bufbyte_string_into_charc_dynarr' instead of
2997         `convert_bufbyte_string_into_emchar_dynarr'; use
2998         `find_charsets_in_charc_string' instead of
2999         `find_charsets_in_emchar_string'.
3000
3001         * redisplay.h:
3002         - Include "character.h".
3003         (struct rune): New member `cglyph'; delete member `chr'.
3004
3005         * redisplay.c (redisplay_text_width_charc_string): New function;
3006         delete `redisplay_text_width_emchar_string'.
3007         (rtw_charc_dynarr): New variable; renamed from
3008         `rtw_emchar_dynarr'.
3009         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3010         `rtw_emchar_dynarr'; use
3011         `convert_bufbyte_string_into_charc_dynarr' instead of
3012         `convert_bufbyte_string_into_emchar_dynarr'; use
3013         `redisplay_text_width_charc_string' instead of
3014         `redisplay_text_width_emchar_string'.
3015         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3016         instead of `rtw_emchar_dynarr'; use
3017         `convert_bufbyte_string_into_charc_dynarr' instead of
3018         `convert_bufbyte_string_into_emchar_dynarr'.
3019         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3020         `redisplay_text_width_charc_string' instead of
3021         `redisplay_text_width_emchar_string'.
3022         (create_text_block): Modify for <struct rune> change.
3023         (generate_formatted_string_db): Likewise.
3024         (create_string_text_block): Likewise.
3025         (pixel_to_glyph_translation): Likewise.
3026
3027         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3028         instead of <const Emchar *>.
3029         (x_text_width): Likewise.
3030         (x_output_display_block): Use <Charc_dynarr *> instead
3031         <Emchar_dynarr *>; modify for <structure rune> change.
3032         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3033         *>.
3034
3035         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3036         <const Emchar *>; use `charc_string_displayed_columns' instead of
3037         `emchar_string_displayed_columns'.
3038         (tty_output_display_block): Use <Charc_dynarr *> instead of
3039         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3040         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3041         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3042         `tty_output_emchar_dynarr_dynarr'.
3043         (tty_output_charc_dynarr): New function; delete
3044         `tty_output_charc_dynarr'.
3045
3046         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3047         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3048         <Emchar_dynarr *> for buf; use
3049         `convert_bufbyte_string_into_charc_dynarr' instead of
3050         `convert_bufbyte_string_into_emchar_dynarr'.
3051
3052         * frame.c (title_string_charc_dynarr): New variable; renamed from
3053         `title_string_emchar_dynarr'.
3054         (generate_title_string): Use `title_string_charc_dynarr' instead
3055         of `title_string_emchar_dynarr'; use
3056         `convert_charc_string_into_malloced_string' instead of
3057         `convert_emchar_string_into_malloced_string'.
3058         (init_frame): Use `title_string_charc_dynarr' instead of
3059         `title_string_emchar_dynarr'.
3060
3061         * console.h:
3062         - Include "character.h".
3063         (struct console_methods): Use <const Charc *> instead of <const
3064         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3065         <Emchar_dynarr *> in output_string_method.
3066
3067         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3068         <Emchar_dynarr *>.
3069
3070         * console-stream.c (stream_text_width): Use <const Charc *>
3071         instead of <const Emchar *>.
3072
3073         * character.h (Charc_dynarr): New type.
3074
3075         * char-ucs.h (structure Charc): New structure; define new type
3076         `Charc'.
3077
3078         * char-lb.h (DECODE_CHAR): New inline function.
3079         (encode_char_1): New inline function.
3080         (ENCODE_CHAR): New macro.
3081         (structure Charc): New structure; define new type `Charc'.
3082
3083         * char-1byte.h (Vcharset_control_1): New macro.
3084         (Vcharset_latin_iso8859_1): New macro.
3085         (DECODE_CHAR): New inline function.
3086         (encode_char_1): New inline function.
3087         (ENCODE_CHAR): New macro.
3088         (structure Charc): New structure; define new type `Charc'.
3089
3090         * insdel.c (find_charsets_in_charc_string): New function; delete
3091         `find_charsets_in_emchar_string'.
3092         (charc_string_displayed_columns): New function; delete
3093         `emchar_string_displayed_columns'.
3094         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3095         `convert_bufbyte_string_into_emchar_dynarr'.
3096         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3097         `convert_charc_string_into_bufbyte_dynarr'.
3098         (convert_charc_string_into_malloced_string): New function; delete
3099         `convert_charc_string_into_malloced_string'.
3100
3101         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3102         `find_charsets_in_emchar_string'.
3103         (charc_string_displayed_columns): New prototype; delete
3104         `emchar_string_displayed_columns'.
3105         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3106         `convert_charc_string_into_bufbyte_dynarr'.
3107         (convert_charc_string_into_malloced_string): New prototype; delete
3108         `convert_charc_string_into_malloced_string'.
3109
3110 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3111
3112         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3113
3114 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3117
3118         * char-ucs.h: Use <short> for <Charset_ID>.
3119
3120         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3121         <Charset_ID>.
3122
3123 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3124
3125         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3126         to 0.16.
3127
3128 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3129
3130         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3131         variable.
3132         (Qmorohashi_daikanwa): New variable.
3133         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3134         for `morohashi-daikanwa' attribute.
3135         (Fget_char_attribute): Likewise.
3136         (Fput_char_attribute): Likewise.
3137         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3138         has the same value of `ideograph-daikanwa'.
3139         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3140         (vars_of_mule_charset): Setup
3141         `Vcharacter_morohashi_daikanwa_table'.
3142
3143 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3144
3145         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3146         attributes.
3147         (add_charset_to_list_mapper): Add `key' instead of
3148         `XCHARSET_NAME (value)' to return aliases.
3149
3150 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3151
3152         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3153         variable.
3154         (Vcharacter_ideographic_strokes_table): New variable.
3155         (Qideographic_radical): New variable.
3156         (Qideographic_strokes): New variable.
3157         (Fchar_attribute_alist): Use
3158         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3159         attribute; use `Vcharacter_ideographic_strokes_table' for
3160         `ideographic-strokes' attribute.
3161         (Fget_char_attribute): Likewise.
3162         (Fput_char_attribute): Likewise.
3163         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3164         `ideographic-strokes'.
3165         (vars_of_mule_charset): Setup
3166         `Vcharacter_ideographic_radical_table' and
3167         `Vcharacter_ideographic_strokes_table'.
3168
3169 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3170
3171         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3172         (Qtotal_strokes): New variable.
3173         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3174         `total-strokes' attribute.
3175         (Fget_char_attribute): Likewise.
3176         (Fput_char_attribute): Likewise.
3177         (syms_of_mule_charset): Add new symbol `total-strokes'.
3178         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3179
3180 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3181
3182         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3183         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3184         are found.
3185         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3186         `->decomposition' attribute.
3187         (Fput_char_attribute): Likewise.
3188         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3189
3190 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3191
3192         * mule-charset.c (decoding_table_check_elements): New function.
3193         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3194
3195 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3196
3197         * mule-charset.c (Fset_charset_mapping_table): Use
3198         `put_char_ccs_code_point'.
3199
3200 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201
3202         * mule-charset.c (decoding_table_put_char): New inline function.
3203         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3204
3205 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3206
3207         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3208         (XCHARSET_BYTE_SIZE): New macro.
3209         (decoding_table_remove_char): New inline function.
3210         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3211         `decoding_table_remove_char'.
3212         (remove_char_ccs): Use `decoding_table_remove_char'.
3213         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3214
3215 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3216
3217         * mule-charset.c (Vcharacter_name_table): New variable.
3218         (Qname): New variable.
3219         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3220         attribute.
3221         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3222         `Vcharacter_name_table' for `name' attribute.
3223         (Fremove_char_attribute): Use function `remove_char_ccs'.
3224         (put_char_ccs_code_point): New function.
3225         (remove_char_ccs): New function.
3226         (syms_of_mule_charset): Add new symbol `name'.
3227         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3228
3229 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * mule-charset.c (make_byte_table): Add new argument `older'.
3232         (make_char_id_table): Likewise.
3233         (copy_char_id_table): Comment out because it is not used.
3234         (put_char_id_table): Modify for `make_byte_table'.
3235         (Fput_char_attribute): Make encoding_table as older object;
3236         inherit older bit of `Vcharacter_composition_table'.
3237         (mark_charset): Don't mark `cs->encoding_table'.
3238         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3239         normal object; make `Vcharacter_composition_table' as an older
3240         object; delete staticpro for `Vcharacter_composition_table'; make
3241         `Vcharacter_variant_table' as a normal object.
3242
3243         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3244         (mark_object): Don't check older object in UTF-2000.
3245
3246         * lrecord.h (struct lrecord_header): Add new member `older' in
3247         UTF-2000.
3248         (set_lheader_implementation): Setup `SLI_header->older' in
3249         UTF-2000.
3250         (set_lheader_older_implementation): New macro in UTF-2000.
3251         (OLDER_RECORD_P): New macro in UTF-2000.
3252         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3253         (alloc_older_lcrecord): New prototype in UTF-2000.
3254         (alloc_older_lcrecord_type): New macro in UTF-2000.
3255
3256 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3257
3258         * mule-charset.c (byte_table_description): Use
3259         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3260         (char_id_table_description): Delete bogus `, 1'.
3261         (Fget_char_attribute): Refer encoding_table of each coded-charset
3262         to get value of coded-charset attribute of a character.
3263         (Fput_char_attribute): Use `make_older_vector' instead of
3264         `make_vector'; use encoding_table of each coded-charset to store
3265         value of coded-charset attribute of a character.
3266         (Fremove_char_attribute): Use encoding_table of each coded-charset
3267         to store value of coded-charset attribute of a character.
3268         (mark_charset): Mark `cs->encoding_table'; don't mark
3269         `cs->decoding_table'.
3270         (charset_description): Add description of new member
3271         `encoding_table'.
3272         (make_charset): Initialize `encoding_table'.
3273
3274         * char-ucs.h (struct Lisp_Charset): Add new member
3275         `encoding_table'.
3276         (CHARSET_ENCODING_TABLE): New macro.
3277         (XCHARSET_ENCODING_TABLE): New macro.
3278         (charset_code_point): New implementation.
3279         (encode_char_1): Likewise.
3280
3281         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3282         (disksave_object_finalization_1): Call finalizers of
3283         `all_older_lcrecords' in UTF-2000.
3284         (make_older_vector): New function in UTF-2000.
3285         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3286         UTF-2000.
3287
3288         * lisp.h (make_older_vector): New prototype in UTF-2000.
3289
3290 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3291
3292         * lrecord.h (enum lrecord_type): Rename
3293         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3294
3295         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3296         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3297         `get_char_code_table'.
3298
3299         * mule-charset.c (mark_char_id_table): Renamed from
3300         `mark_char_code_table'.
3301         (char_id_table_equal): Renamed from `char_code_table_equal'.
3302         (char_id_table_hash): Renamed from `char_code_table_hash'.
3303         (make_char_id_table): Renamed from `make_char_code_table'.
3304         (copy_char_id_table): Renamed from `copy_char_code_table'.
3305         (get_char_id_table): Renamed from `get_char_code_table'.
3306         (put_char_id_table): Renamed from `put_char_code_table'.
3307         (to_char_id): Renamed from `to_char_code'.
3308
3309         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3310         `Lisp_Char_Code_Table'.
3311         (char_id_table): Renamed from `char_code_table'.
3312         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3313         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3314         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3315         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3316         (get_char_id_table): Renamed from `get_char_code_table'.
3317
3318 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3319
3320         * lrecord.h (enum lrecord_type): Rename
3321         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3322
3323         * mule-charset.c (mark_byte_table): Renamed from
3324         `mark_char_byte_table'.
3325         (byte_table_equal): Renamed from `char_byte_table_equal'.
3326         (byte_table_hash): Renamed from `byte_table_hash'.
3327         (make_byte_table): Renamed from `make_byte_table'.
3328         (copy_byte_table): Renamed from `copy_char_byte_table'.
3329
3330         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3331         `Lisp_Char_Byte_Table'.
3332         (byte_table): Renamed from `char_byte_table'.
3333         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3334         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3335         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3336         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3337
3338 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3339
3340         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3341         (dfc_convert_to_internal_format): Likewise.
3342         
3343         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3344         * text-coding.c (Fcoding_system_alias_p): New function.
3345         * text-coding.c (Fcoding_system_aliasee): New function.
3346         * text-coding.c (append_suffix_to_symbol): New function.
3347         * text-coding.c (dangling_coding_system_alias_p): New function.
3348         * text-coding.c (Ffind_coding_system):
3349         * text-coding.c (Fcopy_coding_system):
3350         * text-coding.c (encode_coding_no_conversion):
3351         * text-coding.c (syms_of_file_coding):
3352         * text-coding.c (vars_of_file_coding):
3353         Rewrite coding system alias code.
3354         Allow nested aliases, like symbolic links.
3355         Allow redefinition of coding system aliases.
3356         Prevent existence of dangling coding system aliases.
3357         Eliminate convert_to_external_format.
3358         Eliminate convert_to_internal_format.
3359         
3360         * text-coding.c: Change enum eol_type to eol_type_t.
3361
3362 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3363
3364         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3365         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3366
3367         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3368         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3369
3370 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3371
3372         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3373         `ideograph-daikanwa'.
3374
3375         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3376         (Vcharset_ucs_bmp): Likewise.
3377         (Vcharset_mojikyo): Add new extern variable definition.
3378         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3379         (Vcharset_latin_iso8859_3): Likewise.
3380         (Vcharset_latin_iso8859_4): Likewise.
3381         (Vcharset_latin_iso8859_9): Likewise.
3382         (Vcharset_latin_viscii_lower): Likewise.
3383         (Vcharset_latin_viscii_upper): Likewise.
3384         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3385         `mojikyo' code-point is used to decode.
3386         (encode_char_2): New function [to convert `mojikyo' code-point to
3387         Mojikyo font encoding].
3388         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3389         (breakup_char_1): Likewise.
3390         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3391
3392 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3393
3394         * text-coding.c (Fmake_coding_system): Add document about
3395         `disable-composition' property.
3396
3397 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * text-coding.c (Qdisable_composition): New variable; delete
3400         `Qcomposite'.
3401         (Fmake_coding_system): Add new property `disable-composite';
3402         delete property `composite'.
3403         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3404         instead of `!CODING_SYSTEM_COMPOSITE'.
3405         (syms_of_file_coding): Add new symbol `disable-composition';
3406         delete symbol `composite'.
3407
3408         * file-coding.h (struct Lisp_Coding_System): Add
3409         `disable_composition'; delete `enable_composition'.
3410         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3411         `CODING_SYSTEM_COMPOSITE'.
3412         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3413         `XCODING_SYSTEM_COMPOSITE'.
3414
3415 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3416
3417         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3418         to 0.15.
3419
3420 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3421
3422         * text-coding.c (Qcomposite): New variable.
3423         (Fmake_coding_system): Add new property `composite'.
3424         (struct decoding_stream): Add `combined_char_count',
3425         `combined_chars' and `combining_table' in UTF-2000.
3426         (COMPOSE_FLUSH_CHARS): New macro.
3427         (COMPOSE_ADD_CHAR): New macro.
3428         (reset_decoding_stream): Reset `str->combined_char_count' and
3429         `str->combining_table' in UTF-2000.
3430         (decode_coding_iso2022): Modify for character-decomposition.
3431         (syms_of_file_coding): Add new symbol `composite'.
3432
3433 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3434
3435         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3436         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3437         of `Vcharacter_composition_table' if `->decomposition' property
3438         has only 1 element.
3439         (Qlatin_tcvn5712): New variable.
3440         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3441         (complex_vars_of_mule_charset): Add new coded-charset
3442         `latin-tcvn5712'.
3443
3444         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3445
3446 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3447
3448         * file-coding.h (struct Lisp_Coding_System): Add
3449         `enable_composition'.
3450         (CODING_SYSTEM_COMPOSITE): New macro.
3451         (XCODING_SYSTEM_COMPOSITE): New macro.
3452
3453 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3454
3455         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3456
3457 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3458
3459         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3460         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3461
3462 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3463
3464         * mule-charset.c (Vcharset_mojikyo): New variable.
3465         (Fdefine_char): Don't use coded-charset which does not have
3466         non-builtin character range to allocate character-id.
3467         (Qmojikyo): New variable.
3468         (syms_of_mule_charset): Add new symbol `mojikyo'.
3469         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3470
3471         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3472         (LEADING_BYTE_MOJIKYO): New macro.
3473         (MIN_CHAR_MOJIKYO): New macro.
3474         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3475         (MAX_CHAR_MOJIKYO): New macro.
3476
3477 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3478
3479         * mule-charset.c (remove_char_attribute): Fixed.
3480
3481 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3482
3483         * mule-charset.c (remove_char_attribute): New function.
3484         (Fremove_char_attribute): New function.
3485         (encode_builtin_char_1): Comment out builtin-support for
3486         greek-iso8859-7 and cyrillic-iso8859-5.
3487         (Fdecode_char): Check `code' is an integer.
3488         (syms_of_mule_charset): Add `remove-char-attribute'.
3489         (MIN_CHAR_GREEK): Deleted.
3490         (MAX_CHAR_GREEK): Likewise.
3491         (MIN_CHAR_CYRILLIC): Likewise.
3492         (MAX_CHAR_CYRILLIC): Likewise.
3493         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3494         MAX_CHAR_GREEK for `greek-iso8859-7'.
3495
3496         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3497         (MAX_CHAR_GREEK): Likewise.
3498         (MIN_CHAR_CYRILLIC): Likewise.
3499         (MAX_CHAR_CYRILLIC): Likewise.
3500
3501 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3502
3503         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3504         format is used without `ucs' property.
3505         (Fdecode_char): Fix problem with GR representation.
3506         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3507         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3508
3509 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3510
3511         * mule-charset.c (make_builtin_char): New function.
3512         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3513         (Fset_charset_mapping_table): Modify for new representation of
3514         code-point.
3515         (Fdecode_char): New function.
3516         (syms_of_mule_charset): Add new builtin function `decode-char' in
3517         UTF-2000.
3518
3519         * char-ucs.h (make_builtin_char): New prototype.
3520         (DECODE_CHAR): New inline function.
3521         (MAKE_CHAR): Use `DECODE_CHAR'.
3522
3523 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3524
3525         * text-coding.c (parse_charset_conversion_specs): Use
3526         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3527         `XCHARSET_TYPE'.
3528         (iso2022_designate): Likewise.
3529
3530         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3531         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3532
3533         * mule-charset.c (Vcharset_ucs): New variable.
3534         (print_charset): Change design; use `CHARSET_CHARS' and
3535         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3536         (make_charset): Change signature to specify `chars' and
3537         `dimension' instead of `type'.
3538         (range_charset_code_point): Modify for 256^n-set.
3539         (encode_builtin_char_1): Encode as `ucs' in default.
3540         (Fmake_charset): Modify for `make_charset'.
3541         (Fmake_reverse_direction_charset): Likewise.
3542         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3543         UTF-2000.
3544         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3545         for `make_charset'.
3546
3547         * char-ucs.h (Vcharset_ucs): New variable.
3548         (LEADING_BYTE_UCS): New macro.
3549         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3550         and `chars' to `unsigned short' from `unsigned int'.
3551         (CHARSET_TYPE): Deleted.
3552         (XCHARSET_TYPE): Deleted.
3553
3554 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3555
3556         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3557
3558         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3559         (ENCODE_CHAR): New macro.
3560
3561 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3562
3563         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3564         to 0.14 (Kawachi-Katakami).
3565
3566 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3567
3568         * text-coding.c (char_encode_shift_jis): Modify for
3569         `charset_code_point'.
3570         (char_encode_iso2022): Likewise.
3571
3572         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3573         (integer) instead of list of <Lisp_Object>s (integers) as the
3574         format of code-point of a coded-charset.
3575         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3576         (encode_builtin_char_1): New function; delete
3577         `split_builtin_char'.
3578         (charset_code_point): Return <int> instead of <Lisp_Object>.
3579         (Fsplit_char): Don't use `SPLIT_CHAR'.
3580
3581         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3582         prototype for `split_builtin_char'.
3583         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3584         (charset_code_point): Likewise.
3585         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3586         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3587
3588 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3589
3590         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3591         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3592
3593 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3594
3595         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3596
3597         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3598         (MAX_CHAR_OBS_94x94): Deleted.
3599
3600 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3601
3602         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3603
3604         * char-ucs.h (MAX_CHAR_BMP): New macro.
3605
3606 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3607
3608         * text-coding.c: Sync with r21-2-24.
3609
3610 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3611
3612         * file-coding.c: Modify for UTF-2000.
3613
3614 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3615
3616         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3617         to 0.13 (Takaida).
3618
3619 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3620
3621         * mule-charset.c (split_builtin_char): Delete builtin support for
3622         `katakana-jisx0201'.
3623         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3624         BMP area in builtin representation.
3625
3626         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3627         `Vcharset_katakana_jisx0201'.
3628
3629 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3630
3631         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3632         (Qisolated): New variable.
3633         (Qinitial): New variable.
3634         (Qmedial): New variable.
3635         (Qfinal): New variable.
3636         (Qvertical): New variable.
3637         (Qsmall): New variable.
3638         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3639         `Qvertical' and `Qsmall'.
3640         (Qmojikyo_pj_[1 .. 21]): New variable.
3641         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3642         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3643         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3644         .. 21]'.
3645
3646 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3647
3648         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3649         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3650         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3651
3652 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3653
3654         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3655         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3656         BMP.
3657         (Qjapanese_jisx0208_1990): New variable.
3658         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3659         (complex_vars_of_mule_charset): Add new coded-charset
3660         `japanese-jisx0208-1990'.
3661
3662         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3663         (MIN_CHAR_JIS_X0208_1990): New macro.
3664         (MAX_CHAR_JIS_X0208_1990): New macro.
3665
3666 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3667
3668         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3669         coded-charset is not found.
3670
3671 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3672
3673         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3674         (Fdefine_char): Use `Fmake_char'.
3675
3676 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3677
3678         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3679         (Vcharset_hiragana_jisx0208): Deleted.
3680         (Vcharset_katakana_jisx0208): Deleted.
3681         (Qideograph_daikanwa): New variable.
3682         (Qhiragana_jisx0208): Deleted.
3683         (Qkatakana_jisx0208): Deleted.
3684         (split_builtin_char): Split `ideograph-daikanwa'.
3685         (Fsplit_char): New implementation for UTF-2000.
3686         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3687         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3688         (complex_vars_of_mule_charset): Add new coded-charset
3689         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3690         `katakana-jisx0208'.
3691
3692         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3693         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3694         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3695         (MIN_CHAR_DAIKANWA): New macro.
3696         (MAX_CHAR_DAIKANWA): New macro.
3697
3698 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3699
3700         * data.c (Fstring_to_number): Don't recognize floating point if
3701         base is not 10.
3702
3703 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3704
3705         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3706
3707 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3708
3709         * mule-charset.c (Qsquare): New variable.
3710         (to_char_code): Add `Qsquare'.
3711         (syms_of_mule_charset): Add new symbol `square'.
3712
3713 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3714
3715         * mule-charset.c (Qcircle): New variable.
3716         (to_char_code): Add `Qcircle'.
3717         (syms_of_mule_charset): Add new symbol `circle'.
3718
3719 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3720
3721         * mule-charset.c (Qfont): New variable.
3722         (to_char_code): Add `Qfont'.
3723         (syms_of_mule_charset): Add new symbol `font'.
3724
3725 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3726
3727         * mule-charset.c (Qsub): New variable.
3728         (to_char_code): Add `Qsub'.
3729         (syms_of_mule_charset): Add new symbol `sub'.
3730
3731 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3732
3733         * mule-charset.c (Fput_char_attribute): Convert each element of
3734         VALUE to GL position if ATTRIBUTE is a GR-set,
3735
3736 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3737
3738         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3739         coded-charset is a GR-set.
3740
3741 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3742
3743         * mule-charset.c (Fput_char_attribute): Check each element of
3744         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3745
3746 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3747
3748         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3749         UTF-2000.
3750         (Qethiopic_ucs): New variable in UTF-2000.
3751         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3752         (complex_vars_of_mule_charset): Add new coded-charset
3753         `ethiopic-ucs' in UTF-2000.
3754
3755         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3756         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3757         9)'.
3758         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3759         10)'.
3760         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3761
3762 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3763
3764         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3765         `ascii'.
3766
3767 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3768
3769         * mule-charset.c (Vcharacter_variant_table): New variable.
3770         (Q_ucs): New variable.
3771         (Fchar_variants): New function.
3772         (Fput_char_attribute): Register `->ucs' value to
3773         `Vcharacter_variant_table'.
3774         (syms_of_mule_charset): Add new function `char-variants' and new
3775         symbol `->ucs'.
3776         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3777
3778 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3779
3780         * mule-charset.c (get_char_code_table): Allow negative character
3781         code.
3782         (put_char_code_table): Likewise.
3783         (Vcharacter_composition_table): New variable.
3784         (Q_decomposition): New variable.
3785         (Qwide): New variable.
3786         (Qnarrow): New variable.
3787         (Qcompat): New variable.
3788         (QnoBreak): New variable.
3789         (Qsuper): New variable.
3790         (Qfraction): New variable.
3791         (to_char_code): New function.
3792         (Fget_composite_char): New function.
3793         (Fput_char_attribute): Register `->decomposition' value to
3794         `Vcharacter_composition_table'.
3795         (syms_of_mule_charset): Add new function `get-composite-char', new
3796         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3797         `super' and `fraction'.
3798         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3799
3800 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3801
3802         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3803         character; copy the return value.
3804
3805 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3806
3807         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3808
3809         * mule-charset.c (range_charset_code_point): Must use make_int.
3810         (split_builtin_char): New function.
3811
3812 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3813
3814         * mule-charset.c (char_byte_table): Change name from
3815         "char-code-table" to "char-byte-table".
3816         (mark_char_code_table): New function.
3817         (char_code_table_equal): New function.
3818         (char_code_table_hash): New function.
3819         (char_code_table_description): New constant.
3820         (char_code_table): New type.
3821         (make_char_code_table): New function.
3822         (copy_char_code_table): New function.
3823         (get_char_code_table): Modify for `char_code_table' type.
3824         (put_char_code_table): Likewise.
3825         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3826         (Kashiwara).
3827
3828         * char-ucs.h (char_code_table): New type.
3829         (XCHAR_CODE_TABLE): New macro.
3830         (XSETCHAR_CODE_TABLE): New macro.
3831         (CHAR_CODE_TABLE_P): New macro.
3832         (GC_CHAR_CODE_TABLE_P): New macro.
3833         (struct Lisp_Char_Code_Table): New structure.
3834
3835 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3836
3837         * mule-charset.c (Fmake_charset): Setup byte_offset for
3838         {94|96}^n-set.
3839
3840 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3841
3842         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3843         character.
3844
3845 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3846
3847         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3848         is found.
3849
3850 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3851
3852         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3853         charset, it is regarded as a charset.
3854         (put_char_attribute): New function in UTF-2000.
3855         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3856         charset, mapping-table of the charset is modified.
3857         (Fdefine_char): New function in UTF-2000.
3858         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3859         `Fput_char_attribute'.
3860         (syms_of_mule_charset): Add new function `define-char' and new
3861         symbol `ucs' in UTF-2000.
3862         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3863
3864 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3865
3866         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3867         non-UTF-2000 configuration.
3868
3869 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3870
3871         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3872         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3873
3874         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3875         deleted.
3876         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3877         (Fset_charset_mapping_table): Likewise.
3878
3879         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3880         (CHARSET_ENCODING_TABLE): Delete.
3881         (XCHARSET_ENCODING_TABLE): Delete.
3882         (charset_code_point): New interface.
3883
3884 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3885
3886         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3887         instead of `charset_get_byte1' and `charset_get_byte2'.
3888
3889         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3890         (charset_get_byte2): Deleted.
3891
3892 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3893
3894         * char-ucs.h (SPLIT_CHAR): New inline function.
3895         (breakup_char_1): Use `SPLIT_CHAR'.
3896
3897         * mule-charset.c (range_charset_code_point): New function.
3898         (charset_code_point): New function.
3899
3900         * char-ucs.h (range_charset_code_point): New interface.
3901         (breakup_char_1): Use `range_charset_code_point'.
3902
3903 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3904
3905         * mule-charset.c (Fmake_charset): Delete unused local variable
3906         `code_offset'.
3907
3908         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3909         (breakup_char_1): Find a charset and code-point in
3910         `Vcharacter_attribute_table'.
3911
3912 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3913
3914         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3915         to 0.10 (Yao).
3916
3917 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3918
3919         * mule-charset.c (Vcharacter_attribute_table): New variable.
3920         (Fchar_attribute_alist): New function.
3921         (Fget_char_attribute): New function.
3922         (Fput_char_attribute): New function.
3923         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3924         too.
3925         (syms_of_mule_charset): Add new function `char-attribute-alist',
3926         `get-char-attribute' and `put-char-attribute'.
3927         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3928
3929 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3930
3931         * mule-charset.c (Fmake_charset): Just use
3932         `get_unallocated_leading_byte'.
3933
3934         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3935         sets; don't use final-byte based number for private sets.
3936
3937 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3938
3939         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3940         integer.
3941
3942 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3943
3944         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3945         to 0.9.
3946
3947 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3948
3949         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3950         of `CHAR_LEADING_BYTE' in UTF-2000.
3951
3952         * insdel.c (find_charsets_in_bufbyte_string): Use
3953         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3954         (find_charsets_in_emchar_string): Likewise.
3955
3956         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3957         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3958
3959         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3960         (CHAR_CHARSET_ID): New macro.
3961
3962 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3963
3964         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3965         charset-id - MIN_LEADING_BYTE.
3966         (put_char_table): Likewise.
3967
3968 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3969
3970         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3971         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3972         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3973         (CHARSET_ID_OFFSET): New macro.
3974         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3975         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3976         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3977         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3978         4).
3979         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3980         5).
3981         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3982         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3983         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3984         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3985         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3986
3987 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3988
3989         * mule-charset.c (next_allocated_leading_byte): New variable in
3990         UTF-2000.
3991         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3992         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3993         (get_unallocated_leading_byte): Simply use
3994         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3995         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3996         UTF-2000.
3997
3998         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3999         (MAX_LEADING_BYTE_PRIVATE): New macro.
4000         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4001         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4002
4003 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4004
4005         * mule-charset.c (Fmake_charset): Allocate final-byte based
4006         charset-id for 94-set, 96-set and 94x94-set.
4007
4008 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4009
4010         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4011         ambiguous `else'.
4012         (Fmake_charset): Likewise.
4013         (complex_vars_of_mule_charset): Modify the font registry of
4014         `ucs-bmp' not to match `Ethiopic-Unicode'.
4015
4016 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4017
4018         * mule-charset.c (complex_vars_of_mule_charset): Add font
4019         registory of `ucs-bmp'.
4020
4021 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4022
4023         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4024         coded-charsets in `default-coded-charset-priority-list' when
4025         breaking up a character.
4026
4027         * mule-charset.c (Vcharset_latin_viscii): New variable.
4028         (Qlatin_viscii): New variable.
4029         (make_charset): Don't use `decoding_table'.
4030         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4031         byte_offset.
4032         (Fset_charset_mapping_table): New implementation.
4033         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4034         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4035         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4036         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4037         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4038         charset `latin_viscii'.
4039
4040         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4041         (CHARSET_TYPE_94X94): Change to 1 from 2.
4042         (CHARSET_TYPE_96): Change to 2 from 1.
4043         (CHARSET_TYPE_128): New macro.
4044         (CHARSET_TYPE_128X128): Change to 5 from 4.
4045         (CHARSET_TYPE_256): New macro.
4046         (CHARSET_TYPE_256X256): Change to 7 from 5.
4047         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4048
4049 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4050
4051         * text-coding.c (char_encode_shift_jis): Refer
4052         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4053         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4054
4055         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4056         (char_byte_table_equal): New function in UTF-2000.
4057         (char_byte_table_hash): New function in UTF-2000.
4058         (char_byte_table_description): New constant in UTF-2000.
4059         (char_byte_table): New type in UTF-2000.
4060         (make_char_byte_table): New function in UTF-2000.
4061         (copy_char_byte_table): New function in UTF-2000.
4062         (make_char_code_table): New macro in UTF-2000.
4063         (get_char_code_table): New function in UTF-2000.
4064         (put_char_code_table): New function in UTF-2000.
4065         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4066         (charset_description): Add setting in UTF-2000.
4067         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4068         `CHARSET_TO_BYTE1_TABLE(cs)'.
4069         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4070         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4071         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4072         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4073         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4074         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4075         `CHARSET_TO_BYTE2_TABLE(cs)'.
4076
4077         * char-ucs.h (char_byte_table): New type.
4078         (XCHAR_BYTE_TABLE): New macro.
4079         (XSETCHAR_BYTE_TABLE): New macro.
4080         (CHAR_BYTE_TABLE_P): New macro.
4081         (GC_CHAR_BYTE_TABLE_P): New macro.
4082         (struct Lisp_Char_Byte_Table): New structure.
4083         (get_char_code_table): New interface.
4084         (Emchar_to_byte_table): Deleted.
4085         (get_byte_from_character_table): Deleted.
4086         (struct Lisp_Charset): Add `encoding_table'; delete
4087         `to_byte1_table' and `to_byte2_table'.
4088         (CHARSET_ENCODING_TABLE): New macro.
4089         (CHARSET_TO_BYTE1_TABLE): Deleted.
4090         (CHARSET_TO_BYTE2_TABLE): Deleted.
4091         (XCHARSET_ENCODING_TABLE): New macro.
4092         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4093         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4094
4095 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4096
4097         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4098         `vietnamese-viscii-*'.
4099
4100 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4101
4102         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4103         (Qvietnamese_viscii_upper): New variable.
4104         (Fdefine_charset_alias): New function.
4105         (syms_of_mule_charset): Add new function `define-charset-alias'.
4106         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4107         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4108         `latin-viscii-*'.
4109
4110 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4111
4112         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4113         (MAX_CHAR_OBS_94x94): New macro.
4114         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4115         for 94x94 sets.
4116
4117         * mule-charset.c (put_byte_from_character_table): Change unit size
4118         from 128 to 256.
4119         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4120         not defined.
4121         (Fmake_reverse_direction_charset): Modify dummy argument of
4122         `make_charset' for non-UTF-2000 environment.
4123
4124 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4125
4126         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4127
4128         * mule-charset.c (destroy_byte_from_character_table): New macro.
4129         (latin_jisx0201_to_ucs): Deleted.
4130         (latin_iso8859_2_to_ucs): Deleted.
4131         (latin_iso8859_3_to_ucs): Deleted.
4132         (latin_iso8859_4_to_ucs): Deleted.
4133         (latin_iso8859_9_to_ucs): Deleted.
4134         (latin_viscii_lower_to_ucs): Deleted.
4135         (latin_viscii_upper_to_ucs): Deleted.
4136         (mark_charset): Mark `cs->decoding_table'.
4137         (Fcharset_mapping_table): Fix DOC-string.
4138         (Fset_charset_mapping_table): New function.
4139         (syms_of_mule_charset): Add nwe function
4140         `set-charset-mapping-table'.
4141         (complex_vars_of_mule_charset): Don't setup and use
4142         `latin_*_to_ucs'.
4143
4144 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4145
4146         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4147         charset.
4148
4149 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4150
4151         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4152         (Vcharset_katakana_jisx0208): New variable.
4153         (Qhiragana_jisx0208): New variable.
4154         (Qkatakana_jisx0208): New variable.
4155         (make_charset): Add new argument `byte_offset'.
4156         (charset_get_byte1): Modify for new coded-charset definition; use
4157         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4158         `XCHARSET_BYTE_OFFSET'.
4159         (Fmake_charset): Modify for `make_charset'.
4160         (Fmake_reverse_direction_charset): Likewise.
4161         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4162         `katakana-jisx0208'.
4163         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4164         `.'  in font registry of charset `katakana-jisx0201',
4165         `latin-jisx0201', `vietnamese-viscii-lower' and
4166         `vietnamese-viscii-upper'; modify DOC-string of charset
4167         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4168         registry of charset `japanese-jisx0208' not to use font for JIS
4169         X0208:1990; add new charset `hiragana-jisx0208' and
4170         `katakana-jisx0208'.
4171
4172         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4173         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4174         (struct Lisp_Charset): Add `byte_offset'.
4175         (CHARSET_BYTE_OFFSET): New macro.
4176         (XCHARSET_UCS_MIN): New macro.
4177         (XCHARSET_UCS_MAX): New macro.
4178         (XCHARSET_CODE_OFFSET): New macro.
4179         (XCHARSET_BYTE_OFFSET): New macro.
4180         (MIN_CHAR_HIRAGANA): New macro.
4181         (MAX_CHAR_HIRAGANA): New macro.
4182         (MIN_CHAR_KATAKANA): New macro.
4183         (MAX_CHAR_KATAKANA): New macro.
4184         (MAKE_CHAR): Modify for new coded-charset definition; use
4185         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4186         `XCHARSET_BYTE_OFFSET'.
4187
4188 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4189
4190         * mule-charset.c (CHAR96): Deleted.
4191         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4192         <Lisp_Object>.
4193         (latin_iso8859_2_to_ucs): Likewise.
4194         (latin_iso8859_3_to_ucs): Likewise.
4195         (latin_iso8859_4_to_ucs): Likewise.
4196         (latin_iso8859_9_to_ucs): Likewise.
4197         (latin_viscii_lower_to_ucs): Likewise.
4198         (latin_viscii_upper_to_ucs): Likewise.
4199         (latin_tcvn5712_to_ucs): Commented out.
4200         (make_charset): Change type of argument `decoding_table' from
4201         <Emchar*> to <Lisp_Object> [vector of characters].
4202         (Fmake_charset): Modify for `make_charset'.
4203         (Fmake_reverse_direction_charset): Likewise.
4204         (Fcharset_mapping_table): New function in UTF-2000.
4205         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4206         UTF-2000.
4207         (complex_vars_of_mule_charset): Modify for type change of
4208         `*_to_ucs'; modify for `make_charset'.
4209
4210         * char-ucs.h (struct Lisp_Charset): Change type of
4211         `decoding_table' from <Emchar*> to <Lisp_Object>.
4212         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4213
4214 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4215
4216         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4217         error with non-UTF-2000-Mule.
4218
4219 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4220
4221         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4222         in lisp again].
4223         (Vcharset_chinese_cns11643_4): Likewise.
4224         (Vcharset_chinese_cns11643_5): Likewise.
4225         (Vcharset_chinese_cns11643_6): Likewise.
4226         (Vcharset_chinese_cns11643_7): Likewise.
4227         (Qchinese_cns11643_3): Likewise.
4228         (Qchinese_cns11643_4): Likewise.
4229         (Qchinese_cns11643_5): Likewise.
4230         (Qchinese_cns11643_6): Likewise.
4231         (Qchinese_cns11643_7): Likewise.
4232         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4233         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4234         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4235         (complex_vars_of_mule_charset): Likewise.
4236
4237 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4238
4239         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4240         96-set.
4241         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4242         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4243
4244 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4245
4246         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4247         0xFF60.
4248         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4249         (breakup_char_1): Likewise.
4250
4251         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4252         one of them includes the specified character.
4253
4254 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4257
4258 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4261
4262 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4263
4264         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4265         definition for non-UTF-2000 Mule.
4266         (latin_iso8859_3_to_ucs): Likewise.
4267         (latin_iso8859_4_to_ucs): Likewise.
4268         (latin_iso8859_9_to_ucs): Likewise.
4269         (latin_jisx0201_to_ucs): Likewise.
4270         (MIN_CHAR_THAI): Likewise.
4271         (MAX_CHAR_THAI): Likewise.
4272         (MIN_CHAR_GREEK): Likewise.
4273         (MAX_CHAR_GREEK): Likewise.
4274         (MIN_CHAR_HEBREW): Likewise.
4275         (MAX_CHAR_HEBREW): Likewise.
4276         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4277         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4278         (MIN_CHAR_CYRILLIC): Likewise.
4279         (MAX_CHAR_CYRILLIC): Likewise.
4280
4281 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4282
4283         * char-ucs.h (breakup_char_1): Use
4284         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4285         thai-tis620 and katakana-jisx0201 area.
4286
4287 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4288
4289         * char-ucs.h (breakup_char_1): Use
4290         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4291         area.
4292
4293         * text-coding.c (reset_encoding_stream): Fixed.
4294         (char_encode_ucs4): Delete `& 255'.
4295
4296         * char-ucs.h (breakup_char_1): Use
4297         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4298
4299 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4300
4301         * file-coding.c (Fmake_coding_system): Don't set up
4302         `codesys->fixed.size'.
4303         (encode_coding_no_conversion): Don't refer
4304         `str->codesys->fixed.size'.
4305
4306 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4307
4308         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4309         (latin_a_char_to_byte1): Deleted.
4310         (latin_a_char_to_byte2): Deleted.
4311
4312 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4313
4314         * mule-charset.c (make_charset): Add new argument `ucs_min',
4315         `ucs_max' and `code_offset'.
4316         (charset_get_byte1): New implementation [delete specific charset
4317         depended implementations].
4318         (Fmake_charset): Modify for `make_charset'.
4319         (Fmake_reverse_direction_charset): Likewise.
4320         (complex_vars_of_mule_charset): Likewise.
4321
4322         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4323         `code_offset'.
4324         (CHARSET_UCS_MIN): New macro.
4325         (CHARSET_UCS_MAX): New macro.
4326         (CHARSET_CODE_OFFSET): New macro.
4327         (MAKE_CHAR): Delete charset depended definitions [except
4328         katakana-jisx0201].
4329
4330 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4331
4332         * char-ucs.h (breakup_char_1): Use
4333         `Vdefault_coded_charset_priority_list' for C0-Controls,
4334         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4335
4336 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4337
4338         * char-ucs.h (charset_get_byte1): New function.
4339         (XCHARSET_GET_BYTE1): Deleted.
4340         (charset_get_byte2): New function.
4341         (XCHARSET_GET_BYTE2): Deleted.
4342         (Vdefault_coded_charset_priority_list): New external variable.
4343         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4344         `Vdefault_preferred_coded_charset_list'.
4345
4346         * mule-charset.c (charset_get_byte1): New function.
4347         (charset_get_byte2): New function.
4348         (Vdefault_coded_charset_priority_list): New variable.
4349         (vars_of_mule_charset): Add new variable
4350         `default-coded-charset-priority-list'.
4351
4352 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4353
4354         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4355         (XCHARSET_GET_BYTE2): New inline function.
4356         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4357         `XCHARSET_GET_BYTE2'.
4358
4359 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4360
4361         * mule-charset.c (make_charset): Initialize
4362         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4363         NULL if table is not defined.
4364
4365 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4366
4367         * text-coding.c (char_encode_shift_jis): Use
4368         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4369         `ucs_to_latin_jisx0201'.
4370
4371         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4372         (ucs_to_latin_iso8859_2): Deleted.
4373         (ucs_to_latin_iso8859_3): Deleted.
4374         (ucs_to_latin_iso8859_4): Deleted.
4375         (ucs_to_latin_iso8859_9): Deleted.
4376         (ucs_to_latin_viscii_lower): Deleted.
4377         (ucs_to_latin_viscii_upper): Deleted.
4378         (ucs_to_latin_tcvn5712): Deleted.
4379         (make_charset): Add new argument `decoding_table'; set up
4380         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4381         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4382         `decoding_table' is defined in UTF-2000.
4383         (Fmake_charset): Modify for `make_charset'.
4384         (Fmake_reverse_direction_charset): Likewise.
4385         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4386         and `GENERATE_96_SET'.
4387
4388         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4389         (ucs_to_latin_jisx0201): Deleted.
4390         (latin_iso8859_2_to_ucs): Deleted.
4391         (ucs_to_latin_iso8859_2): Deleted.
4392         (latin_iso8859_3_to_ucs): Deleted.
4393         (ucs_to_latin_iso8859_3): Deleted.
4394         (latin_iso8859_4_to_ucs): Deleted.
4395         (ucs_to_latin_iso8859_4): Deleted.
4396         (latin_iso8859_9_to_ucs): Deleted.
4397         (ucs_to_latin_iso8859_9): Deleted.
4398         (latin_viscii_lower_to_ucs): Deleted.
4399         (ucs_to_latin_viscii_lower): Deleted.
4400         (latin_viscii_upper_to_ucs): Deleted.
4401         (ucs_to_latin_viscii_upper): Deleted.
4402         (struct Lisp_Charset): Renamed `encoding_table' to
4403         `to_byte1_table'; add `to_byte2_table'.
4404         (CHARSET_DECODING_TABLE): New macro.
4405         (CHARSET_TO_BYTE1_TABLE): New macro.
4406         (CHARSET_TO_BYTE2_TABLE): New macro.
4407         (XCHARSET_DECODING_TABLE): New macro.
4408         (XCHARSET_TO_BYTE1_TABLE): New macro.
4409         (XCHARSET_TO_BYTE2_TABLE): New macro.
4410         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4411         tables.
4412         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4413         don't use `ucs_to_*' tables.
4414
4415 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4416
4417         * text-coding.c (Fmake_coding_system): Don't set up
4418         `codesys->fixed.size'.
4419         (encode_coding_no_conversion): Use `if' instead of `switch'.
4420
4421         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4422
4423 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4424
4425         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4426         (Fmake_charset): Modify for `make_charset'.
4427         (Fmake_reverse_direction_charset): Likewise.
4428         (complex_vars_of_mule_charset): Likewise.
4429
4430 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4431
4432         * text-coding.c (char_encode_shift_jis): Use table
4433         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4434
4435 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4436
4437         * text-coding.c (text_encode_generic): Use `if' instead of
4438         `switch'.
4439         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4440         decode JIS-Latin.
4441
4442 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4443
4444         * text-coding.c (encode_coding_sjis): Deleted.
4445         (char_encode_shift_jis): New function.
4446         (char_finish_shift_jis): New function.
4447         (reset_encoding_stream): Set up `encode_char' and `finish' for
4448         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4449         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4450         (char_encode_utf8): Treat `eol_type'.
4451
4452 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4453
4454         * file-coding.c (decode_coding_iso2022): Use
4455         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4456
4457 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4458
4459         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4460         to 0.7 (Hirano).
4461
4462 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4463
4464         * char-lb.h (CHAR_COLUMNS): New macro.
4465
4466 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4467
4468         * text-coding.c (char_encode_ucs4): New function.
4469         (char_finish_ucs4): New function.
4470         (encode_coding_ucs4): Deleted.
4471         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4472         (text_encode_generic): Delete local variable `charset' and `half'.
4473         (ucs_to_mule_table): Deleted.
4474         (mule_to_ucs_table): Deleted.
4475         (Fset_ucs_char): Deleted.
4476         (ucs_to_char): Deleted.
4477         (Fucs_char): Deleted.
4478         (Fset_char_ucs): Deleted.
4479         (Fchar_ucs): Deleted.
4480         (decode_ucs4): Deleted.
4481         (mule_char_to_ucs4): Deleted.
4482         (encode_ucs4): Deleted.
4483         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4484         (decode_coding_utf8): Likewise.
4485         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4486         (char_encode_iso2022): Fixed.
4487         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4488         `Fset_char_ucs' and `Fchar_ucs'.
4489         (complex_vars_of_file_coding): Don't initialize
4490         `ucs_to_mule_table'.
4491
4492         * objects-tty.c (tty_initialize_font_instance): Don't use
4493         `XCHARSET_COLUMNS'.
4494
4495         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4496         UTF-2000.
4497
4498         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4499         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4500
4501         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4502         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4503         (emchar_string_displayed_columns): Likewise.
4504
4505         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4506         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4507         (string_column_at_point): Likewise.
4508         (Fmove_to_column): Likewise.
4509
4510         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4511         `encoding_table' and `decoding_table'.
4512         (CHARSET_REP_BYTES): Deleted.
4513         (XCHARSET_REP_BYTES): Deleted.
4514         (XCHARSET_COLUMNS): Deleted.
4515         (CHAR_COLUMNS): New macro.
4516         (lookup_composite_char): Deleted unconditionally.
4517         (composite_char_string): Likewise.
4518
4519 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4520
4521         * char-ucs.h (Emchar_to_byte_table): New type.
4522         (get_byte_from_character_table): New function interface.
4523         (Vcharset_latin_jisx0201): New variable.
4524         (latin_jisx0201_to_ucs): New variable.
4525         (ucs_to_latin_jisx0201): New variable.
4526         (Vcharset_latin_iso8859_2): New variable.
4527         (latin_iso8859_2_to_ucs): New variable.
4528         (ucs_to_latin_iso8859_2): New variable.
4529         (Vcharset_latin_iso8859_3): New variable.
4530         (latin_iso8859_3_to_ucs): New variable.
4531         (ucs_to_latin_iso8859_3): New variable.
4532         (Vcharset_latin_iso8859_4): New variable.
4533         (latin_iso8859_4_to_ucs): New variable.
4534         (ucs_to_latin_iso8859_4): New variable.
4535         (Vcharset_latin_iso8859_9): New variable.
4536         (latin_iso8859_9_to_ucs): New variable.
4537         (ucs_to_latin_iso8859_9): New variable.
4538         (Vcharset_latin_viscii_lower): New variable.
4539         (latin_viscii_lower_to_ucs): New variable.
4540         (ucs_to_latin_viscii_lower): New variable.
4541         (Vcharset_latin_viscii_upper): New variable.
4542         (latin_viscii_upper_to_ucs): New variable.
4543         (ucs_to_latin_viscii_upper): New variable.
4544         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4545         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4546         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4547         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4548         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4549         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4550         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4551         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4552         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4553         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4554
4555         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4556         (Vcharset_latin_viscii_upper): New variable.
4557         (make_byte_from_character_table): New function.
4558         (put_byte_from_character_table): New function.
4559         (get_byte_from_character_table): New function.
4560         (CHAR96): New macro.
4561         (ucs_to_latin_jisx0201): New variable.
4562         (latin_jisx0201_to_ucs): New variable.
4563         (ucs_to_latin_iso8859_2): New variable.
4564         (latin_iso8859_2_to_ucs): New variable.
4565         (ucs_to_latin_iso8859_3): New variable.
4566         (latin_iso8859_3_to_ucs): New variable.
4567         (ucs_to_latin_iso8859_4): New variable.
4568         (latin_iso8859_4_to_ucs): New variable.
4569         (ucs_to_latin_iso8859_9): New variable.
4570         (latin_iso8859_9_to_ucs): New variable.
4571         (ucs_to_latin_viscii_lower): New variable.
4572         (latin_viscii_lower_to_ucs): New variable.
4573         (ucs_to_latin_viscii_upper): New variable.
4574         (latin_viscii_upper_to_ucs): New variable.
4575         (ucs_to_latin_tcvn5712): New variable.
4576         (latin_tcvn5712_to_ucs): New variable.
4577         (Qlatin_viscii_lower): New variable.
4578         (Qlatin_viscii_upper): New variable.
4579         (syms_of_mule_charset): Set up new symbol
4580         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4581         (complex_vars_of_mule_charset): Set up new charset
4582         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4583         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4584         `ucs_to_<CHARSET>' tables.
4585
4586 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4587
4588         * text-coding.c: New file.
4589
4590 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4591
4592         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4593
4594         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4595         (MAKE_CHAR): Modify for `ucs-bmp'.
4596         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4597         non-MULE characters of BMP.
4598
4599 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4600
4601         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4602         to 0.6.
4603
4604 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4605
4606         * lstream.h:
4607         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4608         - Include character.h for `CHAR_ASCII_P'.
4609
4610         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4611
4612         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4613         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4614
4615         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4616         (BYTE_C0_P): Likewise.
4617         (BYTE_C1_P): Likewise.
4618         (Lstream_get_emchar_1): Likewise.
4619         (Lstream_fput_emchar): Likewise.
4620         (Lstream_funget_emchar): Likewise.
4621         (copy_internal_to_external): Likewise.
4622         (copy_external_to_internal): Likewise.
4623
4624         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4625         (BYTE_C0_P): Likewise.
4626         (BYTE_C1_P): Likewise.
4627         (Lstream_get_emchar_1): Likewise.
4628         (Lstream_fput_emchar): Likewise.
4629         (Lstream_funget_emchar): Likewise.
4630         (copy_internal_to_external): Likewise.
4631         (copy_external_to_internal): Likewise.
4632
4633         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4634         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4635
4636         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4637         (BYTE_ASCII_P): Moved to mb-1byte.h.
4638
4639 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4640
4641         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4642
4643         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4644         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4645         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4646         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4647         (VALIDATE_CHARPTR_FORWARD): Likewise.
4648         (simple_charptr_emchar): Moved to mb-multibyte.h.
4649         (simple_set_charptr_emchar): Likewise.
4650         (simple_charptr_copy_char): Likewise.
4651         (non_ascii_charptr_emchar): Likewise.
4652         (non_ascii_set_charptr_emchar): Likewise.
4653         (non_ascii_charptr_copy_char): Likewise.
4654         (charptr_emchar): Moved to mb-*byte.h.
4655         (set_charptr_emchar): Likewise.
4656         (charptr_copy_char): Likewise.
4657
4658         * mb-1byte.h, mb-multibyte.h: New files.
4659
4660 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4661
4662         * mb-utf-8.h (MULTIBYTE): New macro.
4663         (MAX_EMCHAR_LEN): Moved from buffer.h.
4664         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4665
4666         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4667
4668         * mb-lb.h, multibyte.h: New files.
4669
4670         * char-1byte.h (Charset_ID): Moved from buffer.h.
4671         (MIN_LEADING_BYTE): Likewise.
4672         (LEADING_BYTE_ASCII): Likewise.
4673         (NUM_LEADING_BYTES): Likewise.
4674         (CHARSETP): Likewise.
4675         (CHARSET_BY_LEADING_BYTE): Likewise.
4676         (XCHARSET_LEADING_BYTE): Likewise.
4677         (XCHARSET_GRAPHIC): Likewise.
4678         (XCHARSET_COLUMNS): Likewise.
4679         (XCHARSET_DIMENSION): Likewise.
4680         (CHAR_CHARSET): Likewise.
4681         (CHAR_LEADING_BYTE): Likewise.
4682         (BREAKUP_CHAR): Likewise.
4683         (Vcharset_ascii): Likewise.
4684
4685         * buffer.h: Include multibyte.h unconditionally.
4686         (VALID_CHARPTR_P): Moved to multibyte.h.
4687         (ASSERT_VALID_CHARPTR): Likewise.
4688         (REAL_INC_CHARPTR): Likewise.
4689         (REAL_INC_CHARBYTIND): Likewise.
4690         (REAL_DEC_CHARPTR): Likewise.
4691         (INC_CHARPTR): Likewise.
4692         (INC_CHARBYTIND): Likewise.
4693         (DEC_CHARPTR): Likewise.
4694         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4695         (VALIDATE_CHARPTR_FORWARD): Likewise.
4696         (charptr_n_addr): Likewise.
4697         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4698         (simple_charptr_emchar): Moved to multibyte.h.
4699         (simple_set_charptr_emchar): Likewise.
4700         (simple_charptr_copy_char): Likewise.
4701         (non_ascii_charptr_emchar): Likewise.
4702         (non_ascii_set_charptr_emchar): Likewise.
4703         (non_ascii_charptr_copy_char): Likewise.
4704         (charptr_emchar): Likewise.
4705         (set_charptr_emchar): Likewise.
4706         (charptr_copy_char): Likewise.
4707         (charptr_emchar_n): Likewise.
4708         (Charset_ID): Moved to char-1byte.h.
4709         (Vcharset_ascii): Likewise.
4710         (CHAR_CHARSET): Likewise.
4711         (CHAR_LEADING_BYTE): Likewise.
4712         (LEADING_BYTE_ASCII): Likewise.
4713         (NUM_LEADING_BYTES): Likewise.
4714         (MIN_LEADING_BYTE): Likewise.
4715         (CHARSETP): Likewise.
4716         (CHARSET_BY_LEADING_BYTE): Likewise.
4717         (XCHARSET_LEADING_BYTE): Likewise.
4718         (XCHARSET_GRAPHIC): Likewise.
4719         (XCHARSET_COLUMNS): Likewise.
4720         (XCHARSET_DIMENSION): Likewise.
4721         (BREAKUP_CHAR): Likewise.
4722
4723 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4724
4725         * character.h: Add document about interface for characters.
4726
4727         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4728         (MAKE_CHAR): Delete comment about
4729         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4730         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4731         (BREAKUP_CHAR): Modify name of arguments.
4732         (CHAR_CHARSET): Modify name of argument.
4733
4734         * buffer.h: Delete document about Emchar accessors.
4735
4736 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4737
4738         * character.h (CHAR_INTP): Moved from buffer.h
4739         (CHAR_OR_CHAR_INTP): Likewise.
4740         (XCHAR_OR_CHAR_INT): Likewise.
4741         (CHECK_CHAR_COERCE_INT): Likewise.
4742
4743         * buffer.h (CHAR_INTP): Moved to character.h
4744         (CHAR_OR_CHAR_INTP): Likewise.
4745         (XCHAR_OR_CHAR_INT): Likewise.
4746         (CHECK_CHAR_COERCE_INT): Likewise.
4747
4748 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4749
4750         * character.h:
4751         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4752         - Include char-1byte.h, char-lb.h or char-ucs.h.
4753
4754         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4755
4756         * buffer.h: Include character unconditionally.
4757         (valid_char_p): Moved to char-*.h.
4758         (non_ascii_valid_char_p): Moved to char-lb.h.
4759
4760         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4761
4762 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4763
4764         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4765         in UTF-2000 because it is not ported yet and not to use
4766         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4767         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4768         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4769
4770         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4771         (CHAR_ASCII_P): Moved from character.h.
4772
4773         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4774         (CHAR_ASCII_P): Likewise.
4775         (CHAR_FIELD1_MASK): Deleted.
4776         (CHAR_FIELD2_MASK): Deleted.
4777         (CHAR_FIELD3_MASK): Deleted.
4778         (MAX_CHAR_BASIC_LATIN): New macro.
4779         (CHAR_FIELD1): Deleted.
4780         (CHAR_FIELD2_INTERNAL): Deleted.
4781         (CHAR_FIELD3_INTERNAL): Deleted.
4782         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4783         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4784         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4785         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4786         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4787         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4788         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4789         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4790         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4791         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4792         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4793         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4794         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4795         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4796         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4797         (MIN_CHAR_COMPOSITION): Deleted.
4798         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4799         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4800
4801 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4802
4803         * buffer.h: Include mb-utf-8.h in UTF-2000.
4804
4805         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4806
4807         * mb-utf-8.h: New file.
4808
4809 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4810
4811         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4812         instead of `int'.
4813
4814         * mule-charset.h, buffer.h (Charset_ID): New type.
4815
4816 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4817
4818         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4819         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4820         instead of `MULE_CHAR_PRIVATE_OFFSET',
4821         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4822         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4823         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4824
4825         * character.h (Vcharset_japanese_jisx0212): New variable
4826         definition.
4827
4828 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4829
4830         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4831         (charset_by_attributes): Delete array about direction.
4832         (latin_a_char_to_charset): New variable in UTF-2000.
4833         (latin_a_char_to_byte1): New variable in UTF-2000.
4834         (latin_a_char_to_byte2): New variable in UTF-2000.
4835         (Qucs_bmp): New variable.
4836         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4837         `Bufbyte'.
4838         (next_allocated_2_byte_leading_byte): Likewise.
4839         (non_ascii_set_charptr_emchar): Likewise.
4840         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4841         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4842         `charset_by_attributes'.
4843         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4844         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4845         and `CHARSET_BY_LEADING_BYTE'.
4846         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4847         `utf-2000-version' to `vars_of_mule_charset'.
4848         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4849         define `leading-code-private-11' in UTF-2000; move setting of
4850         `utf-2000-version' from `syms_of_mule_charset'.
4851         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4852         UTF-2000.
4853
4854         * character.h (Charset_ID): New type.
4855         (LEADING_BYTE_UCS_BMP): New macro.
4856         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4857         (CHARSET_ID_OFFSET_94): New macro.
4858         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4859         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4860         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4861         final-byte.
4862         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4863         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4864         (CHARSET_ID_OFFSET_96): New macro.
4865         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4866         CHARSET_ID_OFFSET_96 and final-byte.
4867         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4868         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4869         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4870         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4871         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4872         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4873         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4874         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4875         (LEADING_BYTE_THAI_TIS620): Likewise.
4876         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4877         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4878         (CHARSET_ID_OFFSET_94x94): New macro.
4879         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4880         CHARSET_ID_OFFSET_94x94 and final-byte.
4881         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4882         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4883         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4884         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4885         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4886         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4887         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4888         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4889         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4890         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4891         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4892         (CHARSET_TYPE_128X128): New macro.
4893         (CHARSET_TYPE_256X256): New macro.
4894         (XCHARSET_PRIVATE_P): Delete unconditionally.
4895         (charset_by_attributes): Delete array about direction.
4896         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4897         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4898         (MIN_CHAR_94): New macro.
4899         (MAX_CHAR_94): New macro.
4900         (MIN_CHAR_96): New macro.
4901         (MAX_CHAR_96): New macro.
4902         (MIN_CHAR_94x94): New macro.
4903         (MAX_CHAR_94x94): New macro.
4904         (MIN_CHAR_96x96): New macro.
4905         (MAX_CHAR_96x96): New macro.
4906         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4907         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4908         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4909         - 32)'.
4910         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4911         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4912         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4913         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4914         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4915         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4916         `XCHARSET_LEADING_BYTE' to make code-point.
4917         (latin_a_char_to_charset): New variable.
4918         (latin_a_char_to_byte1): New variable.
4919         (latin_a_char_to_byte2): New variable.
4920         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4921         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4922         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4923
4924         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4925         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4926         (find_charsets_in_emchar_string): Likewise.
4927         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4928
4929         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4930         `int'.
4931         (decode_coding_iso2022): Likewise.
4932
4933         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4934         of `unsigned char'.
4935
4936         * redisplay.c (redisplay_text_width_emchar_string): Use
4937         `Charset_ID' instead of `unsigned char'.
4938         (redisplay_frame_text_width_string): Likewise.
4939
4940         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4941         `unsigned char'.
4942
4943         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4944         instead of `unsigned char'.
4945         (face_cachel_charset_font_metric_info): Likewise.
4946
4947         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4948         (get_non_ascii_char_table_value): Likewise.
4949         (get_char_table): Likewise.
4950         (put_char_table): Likewise.
4951         (map_over_other_charset): Likewise.
4952         (map_char_table): Likewise.
4953
4954         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4955         instead of `unsigned char'.
4956
4957 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4958
4959         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4960         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4961
4962         * mule-charset.c (leading_code_private_11): Don't define in
4963         UTF-2000.
4964
4965         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4966         in UTF-2000 because it is not ported yet and not to use
4967         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4968
4969 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4970
4971         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4972
4973 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4974
4975         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4976         in UTF-2000.
4977
4978         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4979         of unsigned char to store leading-byte.
4980
4981         * chartab.c (get_non_ascii_char_table_value): Don't use
4982         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4983
4984         * file-coding.c (encode_coding_big5): Delete bogus implementation
4985         in UTF2000.
4986
4987         * character.h (LEADING_BYTE_*): Delete definition for
4988         non-UTF-2000.
4989         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4990         (LEADING_BYTE_PREFIX_P): Deleted.
4991         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4992         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4993         (BUFBYTE_LEADING_BYTE_P): Deleted.
4994         (CHARSET_PRIVATE_P): Deleted unconditionally.
4995         (rep_bytes_by_first_byte): Deleted unconditionally.
4996         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4997         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4998         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4999         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5000         (CHAR_FIELD2): Deleted.
5001         (CHAR_FIELD3): Deleted.
5002         (MAKE_CHAR): Delete definition for non-UTF-2000.
5003         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5004         (breakup_char_1): New implementation.
5005         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5006         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5007
5008 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5009
5010         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5011         condition.
5012
5013 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5014
5015         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5016         (CHARSET_PRIVATE_P): Likewise.
5017         (XCHARSET_PRIVATE_P): Likewise.
5018         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5019
5020         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5021         UTF2000.
5022         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5023
5024 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5025
5026         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5027         (NUM_LEADING_BYTES): Changed from 128 to 256.
5028         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5029         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5030         UTF2000.
5031         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5032
5033         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5034         UTF2000.
5035         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5036         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5037         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5038         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5039         (Qchinese_cns11643_3): New variable in UTF2000.
5040         (Qchinese_cns11643_4): New variable in UTF2000.
5041         (Qchinese_cns11643_5): New variable in UTF2000.
5042         (Qchinese_cns11643_6): New variable in UTF2000.
5043         (Qchinese_cns11643_7): New variable in UTF2000.
5044         (syms_of_mule_charset): Define `chinese-cns11643-3',
5045         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5046         and `chinese-cns11643-7' in UTF2000.
5047         (vars_of_mule_charset): Initialize
5048         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5049         + 1 in UTF2000.
5050         (complex_vars_of_mule_charset): Setup charset
5051         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5052         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5053
5054 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5055
5056         * mule-charset.c: Move setting for `leading-code-private-11' from
5057         `syms_of_mule_charset' to `vars_of_mule_charset'.
5058
5059 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5060
5061         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5062         and `NUM_LEADING_BYTES' in assert.
5063
5064 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5065
5066         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5067         instead of 128.
5068         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5069         `NUM_LEADING_BYTES' instead of 128.
5070
5071 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5072
5073         * mule-charset.h (charset_by_leading_byte): Use
5074         `NUM_LEADING_BYTES' instead of 128.
5075         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5076
5077         * mule-charset.c (charset_by_leading_byte): Use
5078         `NUM_LEADING_BYTES' instead of 128.
5079         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5080
5081         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5082         128.
5083
5084 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5085
5086         * mule-charset.c (syms_of_mule_charset): Update to
5087         0.4 (Shin-Imamiya).
5088
5089 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5090
5091         * file-coding.c (encode_coding_sjis): New implementation for
5092         UTF2000.  (decode_coding_sjis): Ditto.
5093
5094 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5095
5096         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5097         Don't define in UTF2000.
5098
5099         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5100         defined.
5101
5102         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5103         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5104         MULE.
5105
5106 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5107
5108         * config.h.in (CHAR_IS_UCS4): New macro.
5109
5110         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5111         conventional MULE representation.
5112         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5113
5114         * mule-charset.h: Reverted to original.
5115
5116         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5117         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5118         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5119
5120         * character.h: New file.
5121
5122         * file-coding.c (Fmake_coding_system): Set 1 to
5123         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5124         defined.
5125         (encode_coding_no_conversion): New implementation for UTF2000.
5126
5127         * file-coding.h (struct Lisp_Coding_System): Add new member
5128         `fixed.size'.
5129
5130 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5131
5132         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5133         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5134         (encode_coding_iso2022): New implementation for UTF2000.
5135
5136 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5137
5138         * mule-canna.c (c2mu): New implementation for UTF2000.
5139         (m2c): Likewise.
5140
5141 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5142
5143         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5144
5145 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5146
5147         * file-coding.c (reset_encoding_stream): Set 0 to
5148         `str->iso2022.current_char_boundary' in UTF2000.
5149         (encode_utf8): Don't define in UTF2000.
5150         (encode_coding_utf8): New implementation for UTF-8 representation
5151         of UTF2000.
5152         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5153
5154 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5155
5156         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5157
5158         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5159         UTF2000.
5160         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5161
5162         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5163
5164         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5165         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5166         as UTF-8 in UTF2000.
5167         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5168         (non_ascii_valid_char_p): Don't define in UTF2000.
5169         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5170         (Lstream_get_emchar_1): Likewise.
5171         (utf-2000-version): New variable in UTF2000.
5172
5173         * lread.c (read_escape): Add new reader `u'.
5174
5175         * insdel.c (three_to_one_table): Don't define in UTF2000.
5176         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5177         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5178         UTF2000.
5179         (bytind_to_bufpos_func): Likewise.
5180         (buffer_mule_signal_inserted_region): Likewise.
5181         (vars_of_insdel): Don't initialize `three_to_one_table'.
5182         (init_buffer_text): Use `buf->text->mule_size' instead of
5183         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5184         UTF2000.
5185
5186         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5187         UTF-8 representation in UTF2000.
5188         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5189         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5190         (decode_coding_iso2022): Don't define local variable `lb' in
5191         UTF2000; don't use LEADING_BYTE in UTF2000; use
5192         `DECODE_ADD_UCS_CHAR' in UTF2000.
5193         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5194
5195         * config.h.in (UTF2000): New macro.
5196
5197         * buffer.h (struct buffer_text): Add new member `mule_size' and
5198         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5199         (valid_char_p): Return always 1 in UTF2000.
5200         (MAX_EMCHAR_LEN): 6 in UTF2000.
5201         (three_to_one_table): Don't define in UTF2000.
5202         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5203         UTF2000.
5204         (real_bytind_to_bufpos): Likewise.
5205
5206         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5207
5208 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5209
5210         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5211         representation change.
5212         (Vutf_2000_version): New variable.
5213         (leading_code_private_11): New variable.
5214         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5215         `leading-code-private-11'.
5216
5217         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5218         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5219         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5220         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5221         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5222         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5223         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5224         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5225         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5226         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5227         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5228         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5229         (MIN_CHAR_GREEK): New macro.
5230         (MAX_CHAR_GREEK): New macro.
5231         (MIN_CHAR_CYRILLIC): New macro.
5232         (MAX_CHAR_CYRILLIC): New macro.
5233         (MIN_CHAR_HEBREW): New macro.
5234         (MAX_CHAR_HEBREW): New macro.
5235         (MIN_CHAR_THAI): New macro.
5236         (MAX_CHAR_THAI): New macro.
5237         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5238         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5239         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5240         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5241         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5242         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5243         (CHAR_FIELD2): New inline function.
5244         (CHAR_FIELD3): New inline function.
5245         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5246         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5247         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5248         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5249         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5250         (MIN_CHAR_COMPOSITION): Likewise.
5251         (CHAR_LEADING_BYTE): Modified for character representation change.
5252         (MAKE_CHAR): Likewise.
5253
5254         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5255         (Vcharset_greek_iso8859_7): Likewise.
5256         (Vcharset_cyrillic_iso8859_5): Likewise.
5257         (Vcharset_hebrew_iso8859_8): Likewise.
5258         (Vcharset_thai_tis620): Likewise.
5259         (Vcharset_katakana_jisx0201): Likewise.
5260
5261 2003-09-03  Vin Shelton <acs@xemacs.org>
5262
5263         * XEmacs 21.4.14 is released
5264
5265 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5266
5267         * config.h.in (REGEX_MALLOC): Make it configure'able.
5268
5269 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5270
5271         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5272         linking.
5273         * sysdll.c (dll_init):
5274         * sysdll.c (dll_open):
5275         * sysdll.c (dll_close):
5276         * sysdll.c (dll_function):
5277         * sysdll.c (dll_variable):
5278         * sysdll.c (dll_error):
5279         Add support for loading bundles using Darwin/MacOSX
5280         native API.
5281
5282 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5283
5284         * process.c (start-process-internal): Document coding systems.
5285
5286 2003-07-30  Jerry James  <james@xemacs.org>
5287
5288         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5289
5290 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5291
5292         * event-msw.c (mswindows_enqueue_mouse_button_event):
5293         * event-msw.c (mswindows_wnd_proc):
5294           enqueue button event when scrollwheel event isn't handled by 
5295           mswindows_handle_mousewheel_event, such as when the scrollbars
5296           are not showing.
5297
5298 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5299
5300         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5301
5302 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5303
5304         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5305
5306 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5307
5308         * regex.c (re_match_2_internal): Fix matching degenerate word
5309         boundaries.
5310
5311 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5312
5313         * XEmacs 21.4.13 is released
5314
5315 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5316
5317         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5318         * lisp.h (<inttypes.h>):
5319         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5320         the definition.
5321
5322 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5323
5324         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5325         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5326         Result: "temacs can only be run in -batch mode."
5327         Fix: Check xemacs executable candidate for directory-ness.
5328
5329 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5330
5331         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5332           they conflict with <sys/types.h>.
5333
5334 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5335
5336         * database.c: Berkeley DB wants __STDC__ to be defined.
5337
5338 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5339
5340         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5341
5342 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5343
5344         * process-unix.c (unix_send_process): Fix C++ compile error.
5345
5346 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5347
5348         * Added .dylib as an acceptable shared library file extension
5349         * to support MacOSX.
5350
5351 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5352
5353         * EmacsFrameP.h (EmacsFramePart):
5354         Kludge to allow compiling with Motif1, but linking with Motif2.
5355
5356 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5357
5358         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5359
5360
5361 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5362
5363         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5364
5365 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5366
5367         * sysdll.c: Included lisp.h to define needed alloca_array.
5368
5369 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5370
5371         Make XEmacs redisplay 10 times faster.
5372         If, that is, you're using a slow X connection and MoveOpaque.
5373         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5374         Use compress_motion = TRUE.
5375         * EmacsFrame.c (emacsFrameClassRec): 
5376         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5377         * EmacsManager.c (emacsManagerClassRec):
5378         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5379
5380 2003-01-30  Vin Shelton  <acs@xemacs.org>
5381
5382         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5383
5384 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5385
5386         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5387         Patch by Martin Buchholz.
5388
5389 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5390
5391         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5392         Thanks to icc for warning and Martin Buchholz for reporting.
5393
5394 2003-01-29  Vin Shelton <acs@xemacs.org>
5395
5396         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5397
5398         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5399         remember to multiply by the element size.
5400
5401 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5402
5403         * XEmacs 21.4.12 "Portable Code" is released.
5404
5405 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5406
5407         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5408         * s/cygwin.sc: new linker file.
5409
5410 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5411
5412         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5413
5414         * redisplay-x.c (x_output_string): Use X11-specified types.
5415         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5416         * emacs.c (__free_hook): Use typeof with Intel compiler.
5417         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5418
5419 2003-01-08  Andy Piper  <andy@xemacs.org>
5420
5421         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5422         reserve size during unexec().
5423
5424 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5425
5426         * process-unix.c (unix_create_process): Don't let outchannel block.
5427
5428 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5429
5430         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5431         Needed for IsBadReadPtr().
5432
5433 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5434
5435         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5436
5437 2002-12-14  Ben Wing  <ben@xemacs.org>
5438
5439         * callint.c: Declaration error.
5440         * dumper.c (pdump):
5441         * dumper.c (pdump_load): Warning fix.
5442         * process.c: GCPRO error.
5443         * glyphs.c (unmap_subwindow):
5444         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5445         * event-stream.c (maybe_kbd_translate): Wrong argument to
5446         character_to_event().
5447
5448         * alloc.c (garbage_collect_1):
5449         * emacs.c:
5450         * emacs.c (debug_can_access_memory):
5451         * emacs.c (fatal_error_signal):
5452         * emacs.c (mswindows_handle_hardware_exceptions):
5453         * emacs.c (main_1):
5454         * emacs.c (main):
5455         * emacs.c (assert_failed):
5456         * emacs.c (syms_of_emacs):
5457         * lisp.h:
5458         * print.c:
5459         * print.c (std_handle_out_va):
5460         * print.c (write_string_to_stdio_stream):
5461         * print.c (write_fmt_string):
5462         * print.c (printing_badness):
5463         * print.c (printing_major_badness):
5464         * print.c (print_internal):
5465         * print.c (debug_print_no_newline):
5466         * print.c (debug_backtrace):
5467         Be more defensive in handling bad values when printing.  Add code
5468         from trunk involving inhibit_non_essential_printing_operations.
5469         When going down or in debug_print(), don't do external conversion
5470         and such and try really, really hard when printing to avoid core
5471         dumping.  Add force-debugging-signal, debug_break().
5472
5473 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5474
5475         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5476         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5477
5478 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5479
5480         * database.c: Fix open_database. Berkeley DB API has changed in
5481         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5482
5483 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5484
5485         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5486
5487 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5488
5489         * event-Xt.c (Xt_timeout):
5490         (Xt_timeout_callback):
5491         (emacs_Xt_add_timeout):
5492         (emacs_Xt_remove_timeout):
5493         (Xt_timeout_to_emacs_event):
5494         Turn completed_timeouts from a stack into a queue.  Fixes
5495         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5496
5497 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5498
5499         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5500         * emacs.c (main): Assert that mmap'd allocation is disabled.
5501
5502 2002-10-14  Andy Piper  <andy@xemacs.org>
5503
5504         * glyphs-widget.c (layout_query_geometry): add in fiddle
5505         factor. Include border text in width layout calculation.
5506         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5507
5508 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5509
5510         * XEmacs 21.4.10 "Military Intelligence" is released.
5511
5512 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5513
5514         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5515         using the NAS private array SoundFileInfo that no longer exists in
5516         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5517         and earlier.  This is broken for some versions between 1.5a and
5518         1.5f.
5519
5520 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5521
5522         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5523
5524         * emacs.c (shut_down_emacs): Improve crash message.
5525
5526 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5527
5528         * file-coding.c (determine_real_coding_system): Check for coding
5529         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5530         shebangs and Python PEP 263.
5531
5532 2002-10-08  Andy Piper  <andy@xemacs.org>
5533
5534         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5535         if static sizes haven't been set.
5536
5537 2002-08-30  Mike Alexander  <mta@arbortext.com>
5538
5539         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5540         to close a socket.
5541
5542 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5543
5544         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5545
5546 2002-09-20  Mike Sperber <mike@xemacs.org>
5547
5548         (This partially gets back my patch from 2002-07-20 without the
5549         bug.)
5550         * callproc.c (child_setup): Remove Ben's comment noting confusion
5551         over the file descriptors >= 3: close_process_descs() doesn't
5552         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5553         * process-unix.c (unix_create_process): Call
5554         begin_dont_check_for_quit to inhibit unwanted interaction (and
5555         thus breaking of X event synchronicity) in the child.
5556
5557 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5558
5559         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5560         widget.
5561
5562 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5563
5564         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5565         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5566         the xemacs process did not exit, but looped infinitely here.  This
5567         fixes that problem.
5568
5569 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5570
5571         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5572         (find_context): Improve comments.
5573
5574         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5575         (re_match_2): An XCHAR_TABLE operation was missing.
5576
5577         Many of the following changes were inspired by Andy Piper's (now
5578         obsolete) patch to make syntax-table text property lookup optional.
5579
5580         [Documentation]
5581
5582         * syntax.h (top level): Document semantics of syntax flags.
5583         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5584         * syntax.c, syntax.h (top level): Document syntax cache better in
5585         comments.
5586
5587         [Instrument syntax caching (temporary change)]
5588
5589         * syntax.h (enum syntax_cache_statistics_functions, struct
5590         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5591         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5592         * syntax.c (scan_words, Fforward_comment, scan_lists,
5593         Fbackward_prefix_characters):
5594         * font-lock.c (find_context):
5595         Use them to instrument syntax caching. 
5596         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5597         syntax_cache_statistics_function_names): New type and variables.
5598         * syntax.c (update_syntax_cache): Update and report statistics.
5599
5600         [Major syntax cache optimizations]
5601
5602         syntax.c (lookup_syntax_properties): Default off.
5603
5604         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5605         * syntax.c (update_syntax_cache):
5606         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5607
5608         [Minor syntax cache optimizations and code clarifications]
5609
5610         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5611         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5612         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5613         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5614         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5615         (Code clarification.)
5616
5617         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5618         scan_lists): Compute code from syncode, use Boolean macros instead
5619         of redundant masking operations.  (Code clarification; any decent
5620         compiler can do this optimization.)
5621
5622         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5623         for clarity.
5624
5625         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5626         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5627         use F*_single_property_change instead of F*_extent_change.
5628         Currently F*_single_property_change is _much_ less efficient.
5629
5630         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5631         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5632         syntax_cache.object properly, don't leave Qt or Qnil.
5633         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5634         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5635         tests for Qt or Qnil.
5636
5637 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5638
5639         * redisplay.c (point_in_line_start_cache): 
5640         * extents.c (print_extent_1):
5641         Fix warnings.
5642
5643         * extents.c (Fset_extent_property): Document `syntax-table' property.
5644
5645         * extents.h (Fnext_single_property_change): EXFUN it.
5646
5647 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5648
5649         * search.c (clear_unused_search_regs): New static function.
5650         (search_buffer): 
5651         (simple_search): 
5652         (boyer_moore):
5653         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5654         Minor clarifications in comments.
5655
5656         * regex.c (re_match_2_internal): Ensure no stale submatches.
5657
5658 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5659
5660         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5661
5662 2002-08-29  Jerry James  <james@xemacs.org>
5663
5664         * lisp.h: structrures -> structures.
5665
5666 2002-06-03  Andy Piper  <andy@xemacs.org>
5667
5668         * frame.c (frame_conversion_internal): add conversion appropriate
5669         for setting frame dimensions in pixels.
5670
5671         * console.h (struct console_methods): add device-specific widget
5672         layout functions.
5673
5674         * emacs.c (main_1): initialize glyph vars.
5675
5676         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5677         (handle_focus_event_2): new function. Allow focus to
5678         be set to a particular window and widget.
5679         (enqueue_focus_event): new function. Create a
5680         synthetic focus event.
5681         (emacs_Xt_handle_magic_event): call
5682         handle_focus_event_2.
5683
5684         * frame.c (Fset_frame_pixel_height): new function. Allow
5685         pixel-based sizing. Does the right thing on character-oriented
5686         displays.
5687         (Fset_frame_pixel_width): ditto.
5688         (Fset_frame_pixel_size): ditto.
5689         (syms_of_frame): declare.
5690
5691         * general-slots.h: add :vertically-justify and
5692         :horizontally-justify.
5693
5694         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5695         (mswindows_widget_border_width): new function.
5696         (mswindows_combo_box_instantiate): set border widths.
5697         (console_type_create_glyphs_mswindows): declare.
5698
5699         * glyphs-widget.c:
5700         (check_valid_justification): allow vertical and horizontal
5701         justification.
5702         (widget_border_width): new function. Call device methods.
5703         (widget_instance_border_width): ditto.
5704         (logical_unit_height): new function. Determine the height of a
5705         logical-unit. Logical units are intended to provide grid-like
5706         layout for subcontrols in a layout. If the layout is
5707         :vertically-justify top then subcontrols will be positioned on
5708         logical-unit boundaries, thus allowing adjacent subcontrols to
5709         line up.
5710         (widget_logical_unit_height): ditto for widgets.
5711         (redisplay_widget): misc cleanup.
5712         (widget_spacing): new function. Call device specific
5713         methods. Intended to be the default gap between adjacent widgets.
5714         (widget_query_geometry): use new spacing functions to determine
5715         appropriate geometry.
5716         (initialize_widget_image_instance): initialize horizontal and
5717         vertical justification.
5718         (widget_instantiate): use logica-units where appropriate for
5719         sizing large widgets.
5720         (button_query_geometry): use widget_instance_border_width.
5721         (tree_view_query_geometry): ditto.
5722         (tab_control_query_geometry): ditto.
5723         (edit_field_query_geometry): new function.
5724         (layout_update): pick up :justify, :horizontally-justify and
5725         :vertically-justify none of which worked previously. :justify is
5726         used as a fallback for both horizontal and vertical justification.
5727         (layout_query_geometry): use logical units to size appropriately.
5728         (layout_layout): ditto.
5729         (Fwidget_logical_to_character_width): new function. Allow users to
5730         convert from logical units to characters so that frame sizes can
5731         be set appropriately.
5732         (Fwidget_logical_to_character_height): ditto.
5733         (syms_of_glyphs_widget): declare.
5734         (image_instantiator_edit_fields): add edit_field_query_geometry.
5735         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5736         :horizontally-justify.
5737         (specifier_vars_of_glyphs_widget): new function. Declare
5738         Vwidget_border_width which is not yet used.
5739
5740         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5741         (x_widget_border_width): new function.
5742         (x_widget_instantiate): create a sensible name for widgets.
5743         (console_type_create_glyphs_x): declare x_widget_border_width.
5744
5745         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5746         (struct Lisp_Image_Instance): add :vertically-justify and
5747         :horizontally-justify.
5748         (LAYOUT_JUSTIFY_TOP): new.
5749         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5750         (ROUND_UP): new macro. Round argument up to next integral
5751         interval.
5752
5753         * redisplay-output.c (redisplay_output_layout): misc formatting.
5754
5755         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5756
5757 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5758
5759         * XEmacs 21.4.9 "Informed Management" is released.
5760
5761 2002-08-19  Andy Piper  <andy@xemacs.org>
5762
5763         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5764         win32 format.
5765
5766         * realpath.c (xrealpath): normalize drive spec also so that dir
5767         sep chars are not mixed on cygwin.
5768
5769 2002-08-06  Jerry James  <james@xemacs.org>
5770
5771         * window.c (Fsplit_window): Count only half of the divider width
5772         against the left window when splitting horizontally. 
5773
5774 2002-06-24  Andy Piper  <andy@xemacs.org>
5775
5776         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5777         toolbar was cleared.
5778
5779         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5780         function. Split out from mswindows_output_frame_toolbars.
5781         (mswindows_output_frame_toolbars): move clear pieces to
5782         mswindows_output_frame_toolbars.
5783
5784         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5785         out from gtk_output_frame_toolbars.
5786         (gtk_output_frame_toolbars): move clear pieces to
5787         gtk_clear_frame_toolbars.
5788
5789         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5790         the frame is cleared. How this ever worked before is a mystery.
5791         (x_output_frame_toolbars): Only output toolbars.
5792         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5793
5794         * gutter.c (update_gutter_geometry):
5795         Mark frame layout changed.
5796         (update_frame_gutter_geometry, update_frame_gutters):
5797         Respect frame_layout_changed.
5798
5799         * console.h (struct console_methods): add
5800         clear_frame_toolbars_method.
5801
5802         * redisplay.c (redisplay_frame): call
5803         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5804
5805         * toolbar.h: declare update_frame_toolbars_geometry.
5806
5807         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5808         out from update_frame_toolbars.  Call clear_frame_toolbars.
5809         (update_frame_toolbars): only output, do not change geometry.
5810
5811         * redisplay.c: add frame_layout_changed.
5812
5813         * redisplay.h: add frame_layout_changed.
5814         (CLASS_RESET_CHANGED_FLAGS): set it.
5815         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5816         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5817         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5818
5819         * device.h (struct device): add frame_layout_changed.
5820         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5821
5822         * frame.h (struct frame): add frame_layout_changed.
5823         (MARK_FRAME_LAYOUT_CHANGED): new.
5824
5825 2002-06-30  Mike Alexander  <mta@arbortext.com>
5826
5827         * event-msw.c (mswindows_need_event): Don't wait for a new message
5828         if the queue is not empty.  Suggested by Paul Moore.
5829
5830 2002-06-12  Andy Piper  <andy@xemacs.org>
5831
5832         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5833         for printing on accurately.
5834
5835 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5836
5837         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5838         WM_ACTIVATE message. Make sure that the frame is visible if the
5839         window is visible. This seemss to fix the problem where XEmacs
5840         appears to freeze after switching desktops with certain virtual
5841         window managers.
5842         (debug_output_mswin_message): Added code to output message
5843         parameters for WM_WINDOWPOSCHANGED, 
5844         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5845
5846 2002-05-25  Andy Piper  <andy@xemacs.org>
5847
5848         * select-x.c (vars_of_select_x): Fix docstring of
5849         x-selection-strict-motif-ownership
5850
5851 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5852
5853         * keymap.c (get_keymap):
5854         Add comment about do_autoload GCPROs own args.
5855
5856 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5857
5858         * bytecode.c (execute_optimized_program): check_opcode ifdef
5859         ERROR_CHECK_BYTE_CODE.
5860
5861 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5862
5863         Thanks to Ben Wing and Michael Sperber.
5864
5865         * eval.c (Fcommand_execute):
5866         (Feval):
5867         (Ffuncall):
5868         (Fmacroexpand_internal):
5869         (function_argcount):
5870         callint.c (Fcall_interactively):
5871         Add comment about do_autoload GCPROs own args.
5872
5873         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5874
5875         * eval.c (Ffuncall): Extra braces to placate GCC.
5876
5877 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5878
5879         * backtrace.h (grow_specpdl):
5880         (SPECPDL_RESERVE):
5881         * EmacsFrame.c (EmacsFrameSetValues):
5882         * eval.c (grow_specpdl):
5883         * ExternalShell.c (hack_event_masks_1):
5884         * glyphs-x.c (convert_EImage_to_XImage): 
5885         (x_finalize_image_instance):
5886         * ralloc.c (page_size):
5887         (r_alloc_sbrk):
5888         * xgccache.c (gc_cache_hash):
5889         Fix unsigned comparison warnings.
5890
5891 2002-07-29  Jerry James  <james@xemacs.org>
5892
5893         * lread.c (locate_file): Any nonnegative return value indicates
5894         success if MODE is nonnegative.
5895
5896 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5897
5898         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5899         argument. 
5900
5901 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5902
5903         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5904
5905         * dumper.c (pdump_get_indirect_count):
5906         (pdump_scan_by_alignment):
5907         (pdump_dump_root_struct_ptrs):
5908         (pdump_dump_rtables):
5909         (pdump_dump_root_objects):
5910         (pdump):
5911         * nas.c (WaveOpenDataForReading):
5912         * fns.c (print_bit_vector):
5913         * font-lock.c (SINGLE_SYNTAX_STYLE):
5914         * glyphs.c (check_for_ignored_expose):
5915         (find_matching_subwindow):
5916         * glyphs-eimage.c:
5917         * imgproc.c (get_histogram):
5918         * redisplay.c (point_in_line_start_cache):
5919         * redisplay-output.c (redisplay_unmap_subwindows):
5920         * symbols.c (defsymbol_massage_name_1):
5921         (defkeyword_massage_name):
5922         (deferror_massage_name_and_message):
5923         * redisplay-x.c (x_output_string): 
5924         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5925         * frame.h (struct frame):
5926         * filelock.c (current_lock_owner):
5927         * doprnt.c (emacs_doprnt_1):
5928         * lisp.h (struct Lisp_Bit_Vector):
5929         (DO_REALLOC):
5930         Fix warnings.
5931
5932 2002-02-13  Ben Wing  <ben@xemacs.org>
5933
5934         * event-stream.c (reset_key_echo):
5935         * event-stream.c (reset_this_command_keys):
5936         * event-stream.c (execute_command_event):
5937         If console is dead as a result of C-x 5 0, then post-command stuff
5938         needs to be careful and do only non-console-specific stuff.
5939
5940 2002-07-01  Mike Sperber <mike@xemacs.org>
5941
5942         * process-unix.c (unix_send_process): Mark coding_outstream as
5943         non-open upon SIGPIPE.
5944
5945         * event-stream.c (Fnext_event): Reorder switch cases to something
5946         that makes sense.
5947
5948 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5949
5950         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5951         Don't bogusly reinitialize ascii_character property.
5952
5953 2002-07-08  Mike Sperber <mike@xemacs.org>
5954
5955         * process.c (Fstart_process_internal): Do error checking before we
5956         fork off the child, so the child can't muck with the state of the
5957         parent.
5958
5959 2002-07-08  Mike Sperber <mike@xemacs.org>
5960
5961         * ralloc.c (init_ralloc): Allocate properly for pdump.
5962
5963 2002-06-12  Andy Piper  <andy@xemacs.org>
5964
5965         * glyphs.c (query_string_geometry): check the string.
5966
5967         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5968         widget names.
5969
5970 2002-06-17  Jerry James  <james@xemacs.org>
5971
5972         * sysdll.c: Remove RTLD_GLOBAL initialization.
5973         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5974
5975 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5976
5977         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5978
5979 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5980
5981         * sysdep.c (sys_rename): Make sys_rename work for the case where
5982         Windows rename sets errno to EACCES if target file exists.
5983
5984 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
5985
5986         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5987         Fix detection of metric units to work on Win95
5988
5989 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
5990
5991         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5992
5993 2002-04-25  Andy Piper  <andy@xemacs.org>
5994
5995         * redisplay.c (create_text_block): Remove extra comment trailer.
5996
5997 2002-04-24  Andy Piper  <andy@xemacs.org>
5998
5999         * redisplay.c (create_text_block): Don't actually add propagation
6000         data if the line ends after we have added a glyph.
6001
6002 2002-04-22  Andy Piper  <andy@xemacs.org>
6003
6004         * extents.c (extent_fragment_update): check for glyphs we have
6005         previously displayed.
6006         * extents.c (print_extent_1): warning removal.
6007         * extents.h: change prototype.
6008         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6009         widths correctly for wide glyphs.
6010         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6011         * redisplay.c (prop_type): add PROP_GLYPH.
6012         * redisplay.c (struct prop_block): add glyph type
6013         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6014         to the propagation data.
6015         * redisplay.c (create_text_block): if there is a glyph in the
6016         propagation data use it to salt extent_fragment_update.
6017         * redisplay.c (create_string_text_block): ditto.
6018
6019 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6020
6021         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6022         * redisplay-output.c (compare_runes): Compare them.
6023         * redisplay.c: Update copyright date.
6024         * redisplay.c (pos_data): Add need_baseline_computation field.
6025         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6026         need_baseline_computation; zero yoffset. Set max_pixmap_height
6027         for all pixmaps, not just automatically positioned ones.
6028         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6029         * redisplay.c (calculate_baseline): New, compute textual baseline.
6030         * redisplay.c (add_glyph_rune): Call them.
6031         * redisplay.c (create_text_block): Likewise.
6032         * redisplay.c (create_overlay_glyph_block): Likewise.
6033         * redisplay.c (add_margin_runes): Likewise.
6034         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6035
6036         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6037         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6038         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6039         * redisplay-msw.c (mswindows_output_string): Likewise.
6040         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6041         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6042         * redisplay-x.c (x_output_display_block): Likewise.
6043
6044 2002-03-28  Ben Wing  <ben@xemacs.org>
6045
6046         * redisplay.c: Fixed bug in redisplay
6047         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6048         and down of the lines, since they're bigger than the line
6049         size. (It was seen most obviously when there's a horizontal scroll
6050         bar, e.g. do C-h a glyph or something like that.) The problem was
6051         that the glyph-contrib-p setting on glyphs was ignored even if it
6052         was set properly, which it wasn't until now.
6053
6054 2002-04-24  Andy Piper  <andy@xemacs.org>
6055
6056         * lisp.h (Dynarr_end): Fix definition.
6057
6058 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6059
6060         * redisplay.c (mark_redisplay): Remove call to
6061         update_frame_window_mirror.
6062
6063 2001-11-15  Andy Piper  <andy@xemacs.org>
6064
6065         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6066         cygwin (again).
6067
6068 2002-02-13  Andy Piper  <andy@xemacs.org>
6069
6070         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6071         we did in fact enqueue the XM_MAPFRAME event.
6072
6073 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6074
6075         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6076         to fix problem switching between virtual desktops under virtuawin
6077         virtual window manager.
6078
6079 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6080
6081         * event-msw.c: Typo fix.
6082         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6083         magic XM_MAPFRAME event has been sent.
6084
6085 2001-11-23  Andy Piper  <andy@xemacs.org>
6086
6087         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6088
6089 2001-11-21  Andy Piper  <andy@xemacs.org>
6090
6091         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6092         mouse events outside the frame.
6093
6094 2002-03-20  Andy Piper  <andy@xemacs.org>
6095
6096         * menubar-msw.c (mswindows_popup_menu): warning removal.
6097         * dialog-msw.c (dialog_popped_down): ditto.
6098
6099 2001-12-11  Andy Piper  <andy@xemacs.org>
6100
6101         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6102         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6103         popup_up_p.
6104         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6105         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6106         * menubar-msw.c (mswindows_popup_menu): ditto.
6107
6108 2001-10-29  Andy Piper  <andy@xemacs.org>
6109
6110         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6111         cancels.
6112
6113 2002-01-03  Andy Piper  <andy@xemacs.org>
6114
6115         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6116         letters.
6117         (xrealpath): ditto.
6118
6119 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6120
6121         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6122         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6123         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6124         Detect and handle case where machine is set up for metric units
6125
6126 2002-04-02  Andy Piper  <andy@xemacs.org>
6127
6128         * dired-msw.c (mswindows_get_files): 
6129         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6130         completely handled by XEmacs. Suggested by Thomas Vogler
6131         <mail@thomas-vogler.de>.
6132
6133 2001-11-14  Andy Piper  <andy@xemacs.org>
6134
6135         * nt.c (REG_ROOT): change registry key to XEmacs.
6136
6137 2002-04-27  Andy Piper  <andy@xemacs.org>
6138
6139         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6140
6141 2002-04-26  Andy Piper  <andy@xemacs.org>
6142
6143         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6144         behavior.
6145
6146 2002-03-14  Mike Alexander  <mta@arbortext.com>
6147
6148         * event-msw.c (mswindows_unwait_process): New, remove process from
6149         wait list
6150         * process-nt.c (nt_finalize_process_data): Call
6151         mswindows_unwait_process
6152         * console-msw.h: Declare mswindows_unwait_process
6153
6154 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6155
6156         * editfns.c (Fdecode_time):
6157         (Fformat_time_string):
6158         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6159         (make_time): Warning elimination (change arg name).
6160
6161 2001-11-24  Andy Piper  <andy@xemacs.org>
6162
6163         * window.c (Fsplit_window): Doc return type.
6164
6165 2002-04-01  Andy Piper  <andy@xemacs.org>
6166
6167         * emacs.c (Fkill_emacs): Only output message box in interactive
6168         mode.
6169
6170 2002-04-26  Andy Piper  <andy@xemacs.org>
6171  
6172         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6173         cygwin.
6174
6175 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6176
6177         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6178         bit platform.
6179
6180 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6181
6182         * XEmacs 21.4.8 "Honest Recruiter" is released.
6183
6184 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6185
6186         Supersedes 2002-04-17 patch.
6187
6188         * process.h (PROCESS_LIVE_P): Use the process status as
6189         evidence of health, not the state of the input stream.
6190         (PROCESS_READABLE_P): Say if the process is readable
6191         from. (It may be dead nonetheless.)
6192         (CHECK_READABLE_PROCESS): Test for that condition.
6193
6194         * process.c (create_process): Use PROCESS_READABLE_P.
6195         (read_process_output, set_process_filter): Likewise.
6196
6197         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6198         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6199
6200         This code is #if 0'd, this is not the time to add new functions:
6201
6202         * process.c (Fprocess_readable_p): Report readability status.
6203         * process.c (Qprocess_readable_p): New, associated symbol...
6204         * process.c (syms_of_process): ... initialize it.
6205
6206 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6207
6208         * XEmacs 21.4.7 "Economic Science" is released.
6209
6210 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6211
6212         * process.h (PROCESS_LIVE_P): Use the process status as
6213         evidence of health, not the state of the input stream.
6214
6215 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6216
6217         * sysdep.c (sys_siglist): change "signum" to "signal"
6218
6219 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6220
6221         * s/darwin.h: New file.
6222         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6223         
6224 2002-04-23  Andreas Jaeger  <aj@suse.de>
6225
6226         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6227         which use lib64 for 64-bit libs.
6228         (START_FILES): Likewise.
6229
6230 2002-02-11  Mike Sperber  <mike@xemacs.org>
6231
6232         * device-x.c: 
6233         (x_IO_error_handler):
6234         (x_init_device): Temporarily keep device in static variable
6235         `device_being_initialized' so we can recover gracefully from
6236         internal XOpenDevice failure.  (XOpenDevice is documented to
6237         return NULL on failure, but sometimes calls the IO error handler
6238         instead.)
6239
6240 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6241
6242         * dired.c (Ffile_name_all_completions): Change documentation --
6243         remove reference to completion-ignored-extensions.
6244         * dired.c (vars_of_dired): Change documentation for
6245         completion-ignored-extensions -- remove reference to
6246         file-name-all-completions.
6247
6248 2002-03-06  Jerry James  <james@xemacs.org>
6249
6250         * emodules.c (emodules_load): Fix multiple loading of same module.
6251
6252 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6253         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6254         RTLD_LAZY to avoid incorrect symbol binding when using nested
6255         shared libraries on Solaris.
6256
6257 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6258
6259         * fileio.c (Ffind_file_name_handler): Improve docstring.
6260
6261 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6262
6263         * fns.c (Fmapconcat): Improve docstring.
6264
6265 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6266
6267         * device-gtk.c: Add prototype for
6268         emacs_gtk_selection_clear_event_handle.
6269         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6270         selection.  Setup signal handler for "selection_clear_event"
6271         (emacs_gtk_selection_clear_event_handle).
6272
6273         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6274         other applications owning the clipboard (based on
6275         x_handle_selection_clear).
6276
6277 2001-12-23  William M. Perry  <wmperry@gnu.org>
6278
6279         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6280         
6281 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6282
6283         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6284
6285 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6286
6287         * XEmacs 21.4.6 "Common Lisp" is released.
6288
6289 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6290
6291         * search.c (Freplace_match): Add missing sub-expression functionality.
6292
6293         * buffer.c (decode_buffer): Add a check for pointer type to
6294         decode_buffer, before gcc's CSE optimization reorders a
6295         dereference in front of the allow_string test.
6296
6297 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6298
6299         * window.c (window_loop): Fix bug that sometimes prevented
6300         window_loop() from iterating across multiple devices.  Also, at
6301         Ben's request, changed infloop-detecting code to abort() instead
6302         of silently terminating window_loop().
6303
6304 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6305
6306         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6307         * editfns.c (make_time): New function.
6308         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6309         * lisp.h (make_time): Prototype and comment it.
6310         * dired.c (wasteful_word_to_lisp): Deprecate.
6311         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6312
6313 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6314
6315         * fileio.c (auto_save_1): Use current coding system, not
6316         escape-quoted.
6317
6318 2001-11-13  Ben Wing  <ben@xemacs.org>
6319
6320         * window.c:
6321         * window.c (window_truncation_on):
6322         * window.c (syms_of_window):
6323         truncate-partial-width-windows should respect the buffer being
6324         displayed, like other redisplay vars.
6325
6326 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6327
6328         * event-stream.c (Fread_key_sequence): save current buffer.
6329
6330 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6331
6332         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6333
6334 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6335
6336         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6337
6338 2001-10-26  Mike Alexander  <mta@arbortext.com>
6339
6340         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6341
6342 2001-10-25  Andy Piper  <andy@xemacs.org>
6343
6344         * ChangeLog:
6345         * dialog-msw.c (handle_directory_proc): new function.
6346          (handle_directory_dialog_box): new fucntion.
6347          (handle_file_dialog_box): use new directory dialog support.
6348          (mswindows_make_dialog_box_internal): ditto.
6349         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6350         handling.
6351         (mswindows_find_frame): make global.
6352         * fileio.c (Fexpand_file_name): build fix.
6353         * general-slots.h: add Qdirectory.
6354         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6355         handling.
6356         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6357         cygwin not leaving win32 paths unchanged.
6358         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6359         cygwin runtime to do path conversion.
6360         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6361         (syms_of_win32): add new function.
6362         * window.c (window_loop): build fix.
6363
6364 2001-10-15  Andy Piper  <andy@xemacs.org>
6365
6366         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6367
6368 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6369
6370         * XEmacs 21.4.5 "Civil Service" is released.
6371
6372 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6373
6374         * glyphs-x.c: Force buffer-tab highlight update when moving the
6375         buffer, avoiding an ugly black border, used for keyboard focus
6376         indication, on a widget that can never have keyboard focus, the
6377         buffer tab.
6378
6379 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6380
6381         * process-unix.c (unix_open_multicast_group): Remove too much
6382         conversion between host and network byte order.
6383
6384 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6385
6386         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6387         before replacing them.
6388
6389         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6390         operation.
6391
6392         * src/window.c (undedicate_windows): Use it.
6393         * src/window.h: Add prototype.
6394
6395 2001-09-17  Ben Wing  <ben@xemacs.org>
6396
6397         * fileio.c (normalize_filename):
6398         * fileio.c (Fexpand_file_name):
6399         Fix various C++ compile errors in Andy's recent code.
6400         
6401         * callint.c (Fcall_interactively):
6402         * editfns.c (Ftemp_directory):
6403         * editfns.c (Fuser_full_name):
6404         * emacs.c (argmatch):
6405         * lread.c (locate_file_map_suffixes):
6406         * redisplay-x.c (x_ring_bell):
6407         Fix sign-compare warnings.
6408         
6409 2001-09-08  Andy Piper  <andy@xemacs.org>
6410
6411         * fileio.c (normalize_filename): copied from nt.c
6412         * (Ffile_name_directory): enable win32 paths under cygwin.
6413         * (Ffile_name_nondirectory): ditto.
6414         * (directory_file_name): ditto.
6415         * (Fexpand_file_name): ditto.
6416         * (Ffile_truename): ditto.
6417         * (Fsubstitute_in_file_name): ditto.
6418         * (Ffile_name_absolute_p): ditto.
6419         * (Ffile_readable_p): ditto.
6420
6421 2001-09-08  Andy Piper  <andy@xemacs.org>
6422
6423         * device-msw.c (mswindows_finish_init_device): remove dde
6424         initialization.
6425         * device-msw.c (mswindows_init_dde): factor out from
6426         mswindows_finish_init_device()
6427         * device-msw.c (init_mswindows_very_early): new function
6428         initialize but don't enable dde.
6429         * emacs.c (main_1): call init_mswindows_very_early.
6430         * event-msw.c:
6431         * event-msw.c (mswindows_dde_callback): only execute when we are
6432         ready.
6433         * symsinit.h: declare init_mswindows_very_early.
6434
6435 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6436
6437         [sjt: This has been in 21.5 for months with no complaints.]
6438
6439         * console.h (struct console_methods): Added flags member.
6440         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6441         (CONMETH_IMPL_FLAG):
6442         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6443         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6444
6445         * device.c (window_system_pixelated_geometry): Use the above macros.
6446
6447         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6448         implememntation flag.
6449         * device.h (DEVICE_DISPLAY_P): Use it.
6450
6451         * frame.c (delete_frame_internal): Use the above macro.
6452
6453         * redisplay.c (redisplay_device): Use it.
6454         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6455         (redisplay_frame): Ditto.
6456
6457         * device-msw.c (mswindows_device_implementation_flags): Removed.
6458         (msprinter_device_implementation_flags): Removed.
6459         (console_type_create_device_mswindows): Removed references to
6460         implementation_flags methods, set implementation flags here.
6461         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6462
6463         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6464         (console_type_create_device_gtk): Removed method declaration.
6465         Added commented out statement which semantically matches the
6466         commented out statement in the above removed method.
6467
6468 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6469
6470         The attached patch fixes a few warnings. 
6471
6472         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6473         * src/frame-gtk.c: guard against GNOME calls in GTK only
6474         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6475         * src/select-gtk.c: prototype lisp_to_time
6476
6477 2001-06-08  Ben Wing  <ben@xemacs.org>
6478
6479         ------ gc-in-window-procedure fixes ------
6480         
6481         * alloc.c:
6482         * alloc.c (struct post_gc_action):
6483         * alloc.c (register_post_gc_action):
6484         * alloc.c (run_post_gc_actions):
6485         * alloc.c (garbage_collect_1):
6486         Create "post-gc actions", to avoid those dreaded "GC during window
6487         procedure" problems.
6488
6489         * event-msw.c:
6490         Abort, clean and simple, when GC in window procedure.  We want
6491         to flush these puppies out.
6492
6493         * glyphs-msw.c:
6494         * glyphs-msw.c (finalize_destroy_window):
6495         * glyphs-msw.c (mswindows_finalize_image_instance):
6496         Use a post-gc action when destroying subwindows.
6497
6498         * lisp.h:
6499         Declare register_post_gc_action().
6500
6501         * scrollbar-msw.c:
6502         * scrollbar-msw.c (unshow_that_mofo):
6503         Use a post-gc action when unshowing scrollbar windows, if in gc.
6504
6505         * redisplay.c (mark_redisplay):
6506         Add comment about the utter evilness of what's going down here.
6507
6508         ------ cygwin setitimer fixes ------
6509         
6510         * Makefile.in.in (sheap_objs):
6511         * Makefile.in.in (profile_objs):
6512         * Makefile.in.in (objs):
6513         Compile profile.c only when HAVE_SETITIMER.
6514         
6515         * nt.c (mswindows_sigset):
6516         * nt.c (mswindows_sighold):
6517         * nt.c (mswindows_sigrelse):
6518         * nt.c (mswindows_sigpause):
6519         * nt.c (mswindows_raise):
6520         * nt.c (close_file_data):
6521         Style fixes.
6522         
6523         * nt.c:
6524         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6525         
6526         * profile.c:
6527         * profile.c (Fstart_profiling):
6528         * profile.c (Fstop_profiling):
6529         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6530         instead of just plain setitimer().
6531         
6532         * signal.c:
6533         * signal.c (set_one_shot_timer):
6534         * signal.c (alarm):
6535         Define qxe_setitimer() as an encapsulation around setitimer() --
6536         call setitimer() directly unless Cygwin or MS Win, in which case
6537         we use our simulated version in win32.c.
6538         
6539         * systime.h:
6540         * systime.h (struct itimerval):
6541         * systime.h (ITIMER_REAL):
6542         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6543         comment about "qxe" and the policy regarding encapsulation.
6544
6545         * win32.c:
6546         * win32.c (setitimer_helper_proc):
6547         * win32.c (setitimer_helper_period):
6548         * win32.c (setitimer_helper):
6549         * win32.c (mswindows_setitimer):
6550         Move setitimer() emulation here, so Cygwin can use it.
6551         Rename a couple of functions and variables to be longer and more
6552         descriptive.  In setitimer_helper_proc(), send the signal
6553         using either mswindows_raise() or (on Cygwin) kill().  If for
6554         some reason we are still getting lockups, we'll change the kill()
6555         to directly invoke the signal handlers.
6556
6557         ------ windows shell fixes ------
6558         
6559         * callproc.c:
6560         * ntproc.c:
6561         Comments about how these two files must die.
6562
6563         * callproc.c (init_callproc):
6564         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6565         not just COMSPEC. (more correct and closer to FSF.) Don't
6566         force a value for SHELL into the environment. (Comments added
6567         to explain why not.)
6568         
6569         * nt.c (init_user_info):
6570         Don't shove a fabricated SHELL into the environment.  See above.
6571
6572 2001-06-01  Ben Wing  <ben@xemacs.org>
6573
6574         * Makefile.in.in (ldflags):
6575         eliminate that pesky "defaulting to 00401000" warning.
6576         * nt.h:
6577         eliminate warnings.
6578
6579 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6580
6581         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6582         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6583
6584 2001-04-24  Jerry James <james@xemacs.org>
6585
6586         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6587         correct order.
6588
6589 2001-06-01  Ben Wing  <ben@xemacs.org>
6590
6591         * event-msw.c (debug_mswin_messages):
6592         conditionalize the messages that were causing compile errors.
6593         (if only macros could generate #ifdef statements ...)
6594
6595 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6596
6597         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6598
6599 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6600
6601         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6602
6603 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6604
6605         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6606         * process-unix.c (unix_canonicalize_host_name):
6607         sysdep.c (init_system_name):
6608         Use it to conditionally support IPv6 canonicalization.
6609
6610 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6611
6612         * event-msw.c:
6613         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6614
6615 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6616
6617         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6618         attempt is made to scroll when no scroll bar is available.
6619
6620 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6621
6622         * input-method-motif.c (XIM_delete_frame): New callback.
6623         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6624         got deleted from 21.4.3.)
6625
6626 2001-06-01  Ben Wing  <ben@xemacs.org>
6627
6628         * nt.c (mswindows_utime):
6629         * nt.c (close_file_data):
6630         fix off-by-one-indirection error.
6631
6632 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6633
6634         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6635         because set_file_times() now takes Lisp_Object path, instead of
6636         char*.
6637         * nt.c: Include buffer.h.
6638         * nt.c (convert_from_time_t): New.
6639         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6640         not set mtime correctly.
6641         * nt.h: Declare mswindows_utime().
6642         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6643         path, instead of char*.
6644         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6645
6646 2001-05-30  Ben Wing  <ben@xemacs.org>
6647
6648         For 21.4:
6649
6650         (Stephen, just take all event-msw.c patches.  This includes
6651         the "iconify" fix below.)
6652
6653         * event-msw.c:
6654         * event-msw.c (mswindows_dequeue_dispatch_event):
6655         * event-msw.c (assert):
6656         * event-msw.c (emacs_mswindows_quit_p):
6657         * event-msw.c (debug_mswin_messages):
6658         * event-msw.c (debug_output_mswin_message):
6659         * event-msw.c (vars_of_event_mswindows):
6660         Fix yet more problems with C-g handling.
6661         Implement debug-mswindows-events.
6662         
6663 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6664
6665         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6666         
6667 2001-05-23  Ben Wing  <ben@xemacs.org>
6668
6669         * event-msw.c (winsock_writer):
6670         * event-msw.c (winsock_closer):
6671         prior kludgy code was clobbering the buffer, thinking it was
6672         "unused" space to store an unneeded return value; instead, use
6673         the variable we've already got staring us in the face.
6674
6675 2001-05-17  Andy Piper  <andy@xemacs.org>
6676
6677         * sysfile.h: don't assume that file attributes are boolean
6678
6679 2001-05-23  Ben Wing  <ben@xemacs.org>
6680
6681         * device-msw.c (msprinter_init_device):
6682         signal an error rather than crash with an unavailable network
6683         printer (from Mike Alexander).
6684         
6685         * event-msw.c:
6686         * event-msw.c (struct winsock_stream):
6687         * event-msw.c (winsock_writer):
6688         * event-msw.c (winsock_closer):
6689         * event-msw.c (make_winsock_stream_1):
6690         cleanup headers.  fix (hopefully) an error with data corruption
6691         when sending to a network connection.
6692
6693         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6694         to handle the ~user prefix by (a) always assuming we're referencing
6695         ourselves and not even verifying the user -- hence any file with
6696         a tilde as its first char is invalid! (b) if there wasn't a slash
6697         following the filename, the pointer was set *past* the end of
6698         file and we started reading from uninitialized memory.  Now we
6699         simply treat these as files, always.
6700
6701         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6702         
6703 2001-05-19  Ben Wing  <ben@xemacs.org>
6704
6705         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6706
6707         * process-nt.c:
6708         * process-nt.c (vars_of_process_nt):
6709         remove unused mswindows-quote-process-args.  rec for 21.4.
6710         
6711 2001-05-12  Ben Wing  <ben@xemacs.org>
6712
6713         * event-msw.c (mswindows_dde_callback):
6714         * event-msw.c (mswindows_wnd_proc):
6715         eliminate cygwin warnings.
6716
6717 2001-05-06  Ben Wing  <ben@xemacs.org>
6718
6719         * console-msw.h:
6720         * device-msw.c:
6721         * device-msw.c (print_dialog_worker):
6722         * device-msw.c (mswindows_handle_print_dialog_box):
6723         * device-msw.c (syms_of_device_mswindows):
6724         * dialog-msw.c (mswindows_make_dialog_box_internal):
6725         * general-slots.h:
6726         implement printing the selection when it's selected.
6727
6728 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6729
6730         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6731
6732 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6733
6734         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6735         EMACS_INT is signed.
6736
6737 2001-04-15  Michael Lausch  <mla@1012surf.net>
6738
6739         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6740         gtk_widget_request_size() to give scrollbar >0 width for
6741         GTK >1.2.8.
6742
6743 2001-05-30  William M. Perry  <wmperry@gnu.org>
6744
6745         * event-gtk.c: Check for buttons as modifier keys.
6746
6747 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6748
6749         * s\mingw32.h:
6750         Properly find MinGW's <process.h> inside Cygwin's restructured
6751         include directories.  Don't try to include <cygwin/version.h>
6752         since we are dropping support for MinGW in versions of Cygwin
6753         earlier than b21.
6754         * nt.c:
6755         Drop support for MinGW in versions of Cygwin before b21.
6756         * sysdep.c:
6757         Properly find MinGW's <process.h> inside Cygwin's restructured
6758         include directories.
6759         * syswindows.h:
6760         Drop support for MinGW in versions of Cygwin before b21.
6761         * unexcw.c:
6762         Even though a.out.h is no longer detected by configure, allow
6763         MinGW to use it until we figure out how to do the job with Win32.
6764
6765 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6766
6767         * syntax.c (find_start_of_comment):
6768         Fix `unbalanced parentheses' bug when dealing with mixed comment
6769         styles in c++/java/etc. mode
6770
6771 2001-05-29  Mike Alexander  <mta@arbortext.com>
6772
6773         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6774         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6775
6776 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6777
6778         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6779
6780 2001-03-31  Mike Sperber <mike@xemacs.org>
6781
6782         * search.c (Freplace_match): Support FSF-style specification of
6783         match subexpression when applied to a buffer.
6784
6785 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6786
6787         * event-stream.c (is_scrollbar_event): add missing semicolon
6788
6789 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6790
6791         * Makefile.in.in: Use TAR macro instead of hardcoding
6792           tar.  Allows use of GNU tar instead of system tar
6793
6794 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6795
6796         * event-stream.c (is_scrollbar_event): add missing semicolon
6797
6798 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6799
6800         * XEmacs 21.4.3 "Academic Rigor" is released.
6801
6802 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6803
6804         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6805
6806 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6807
6808         * buffer.c (Vcase_fold_search): Remove obsolete
6809           comment about non ASCII case-fold-search.  This
6810           bug has been fixed by case-table changes.
6811
6812 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6813
6814         * event-msw.c: Restore include of events-mod.h.
6815
6816 2001-04-22   zhaoway  <zw@debian.org>
6817
6818         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6819         !HAVE_SCROLLBARS.
6820
6821 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6822
6823         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6824
6825 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6826
6827         * mule-charset.c (Fmake_charset): Add missing else.
6828
6829 2001-04-23  Ben Wing  <ben@xemacs.org>
6830
6831         * event-msw.c (FAKE_MOD_QUIT):
6832         * event-msw.c (mswindows_dequeue_dispatch_event):
6833         * event-msw.c (mswindows_wnd_proc):
6834         * event-msw.c (emacs_mswindows_quit_p):
6835         Get critical quit working.
6836
6837 2001-05-05  Ben Wing  <ben@xemacs.org>
6838
6839         * console-msw.h:
6840         * device-msw.c:
6841         * device-msw.c (mswindows_get_default_margin):
6842         * frame-msw.c (mswindows_size_frame_internal):
6843         * frame-msw.c (msprinter_init_frame_1):
6844         * frame-msw.c (vars_of_frame_mswindows):
6845         Change top/bottom margin defaults to 0.5 inches.
6846
6847 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6848
6849         Fix link error with gcc 3.0 on Linux.
6850         * terminfo.c (UP): Remove.
6851         * terminfo.c (BC): Remove.
6852         * terminfo.c (PC): Remove.
6853         They weren't used, and in any case, these symbols should be
6854         defined in the *library*.
6855
6856 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6857
6858         * s/aix4.h: Fix crash with xlc -O3.
6859         Improve comment explaining how -O3 works.
6860
6861 2001-04-15  Ben Wing  <ben@xemacs.org>
6862
6863         * event-stream.c:
6864         * event-stream.c (Fnext_event):
6865         * event-stream.c (is_scrollbar_event):
6866         * event-stream.c (execute_command_event):
6867         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6868         crash' problem.  His fix introduces other problems.  We filter
6869         out scrollbar events specifically, making them somewhat invisible
6870         to command-building, and not appearing in `this-command-keys'.
6871         More work is still needed (see comments in event-stream.c), but
6872         this fixes all the major problems.
6873
6874 2001-04-20  Ben Wing  <ben@xemacs.org>
6875
6876         * .cvsignore: Added stuff for Windows.
6877
6878 2001-04-28  Ben Wing  <ben@xemacs.org>
6879
6880         * buffer.c (Ferase_buffer):
6881         * editfns.c (buffer_insert1):
6882         * editfns.c (Finsert_before_markers):
6883         * editfns.c (Finsert_string):
6884         * editfns.c (Finsert_char):
6885         * editfns.c (Fdelete_region):
6886         * editfns.c (Fwiden):
6887         * editfns.c (Fnarrow_to_region):
6888         remove bogus lines setting zmacs_region_stays to 0.
6889         
6890 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6891
6892         * process-unix.c (unix_open_network_stream): If connect() fails
6893         invalidate file descriptor after closing it.
6894
6895 2001-03-08  Mike Alexander  <mta@arbortext.com>
6896
6897         * event-msw.c (mswindows_need_event_in_modal_loop):
6898         Don't dispatch a message if we didn't get one.
6899         (mswindows_need_event):
6900         Terminate the correct process when one exits instead of the first
6901         one on Vprocess_list and look for process termination when in
6902         mswindows_protect_modal_loop.
6903
6904 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6905
6906         * XEmacs 21.4.1 "Copyleft" is released.
6907
6908 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6909
6910         * input-method-motif.c (XIM_delete_frame): New callback.
6911         (XIM_init_frame): Register it.
6912
6913 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6914
6915         * XEmacs 21.4.0 "Solid Vapor" is released.
6916
6917 2001-04-15  Ben Wing  <ben@xemacs.org>
6918
6919         * cmdloop.c (call_command_loop):
6920         Fix braino in bit-rotting code.
6921         
6922 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6923
6924         * extents.c (Fset_extent_endpoints): Force creation of extent info
6925         in buffer_or_string.
6926
6927         * extents.c (process_extents_for_insertion_mapper): Correctly
6928         check for open-open zero-length extents.
6929
6930 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6931
6932         * lisp.h: New typedefs Memory_count, Element_count.
6933         * regex.c:
6934         * regex.h:
6935         Sign-compare warning elimination: several unsigned -> signed.
6936         Based on work by Ben Wing <ben@xemacs.org>.
6937
6938 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6939
6940         * XEmacs 21.2.47 "Zephir" is released.
6941
6942 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6943
6944         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6945
6946 2001-04-03  Mike Sperber <mike@xemacs.org>
6947
6948         * search.c: Revert previous patch due because of release.
6949
6950 2001-03-30  Ben Wing  <ben@xemacs.org>
6951
6952         * s\cygwin32.h:
6953         Add missing killpg prototype.
6954
6955         * elhash.c:
6956         Add a comment about fixing problems when a new entry is added
6957         while mapping.
6958
6959         * frame-msw.c (mswindows_init_frame_1):
6960         Fix compile warnings.
6961
6962         * menubar.c (vars_of_menubar):
6963         Provide `menu-accelerator-support' to indicate that we properly
6964         support %_ in menu specifications, so that package code can
6965         conditionalize on this (and remove %_ from menu specifications
6966         on older versions).
6967
6968         * event-msw.c:
6969         * scrollbar-msw.c:
6970         * scrollbar-msw.c (can_scroll):
6971         * scrollbar-msw.h:
6972         Fix handling of mouse wheel under Windows to follow standards --
6973         now scrolls window under pointer, not selected window.
6974
6975 2001-03-31  Mike Sperber <mike@xemacs.org>
6976
6977         * search.c (Freplace_match): Support FSF-style specification of
6978         match subexpression when applied to a buffer.
6979
6980 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6981
6982         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6983         function to modify KEYMAP, so map over a copy of the hash table.
6984
6985 2001-03-21  Martin Buchholz <martin@xemacs.org>
6986
6987         * XEmacs 21.2.46 "Urania" is released.
6988
6989 2001-03-20  Dan Holmsand  <dan@eyebee.com>
6990
6991         * realpath.c (xrealpath): Make file-truename work with symlinks to
6992         /cygdrive paths on cygwin. Always lowercase drive-letters on
6993         native windows.
6994         (cygwin_readlink): Don't try to find canonical filename unless
6995         file exists.
6996
6997 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6998
6999         * ChangeLog: Log GTK merge.
7000
7001         * dumper.c:
7002         * select-x.c:
7003         * specifier.c:
7004         * symeval.h:
7005         Revert gratuitous whitespace changes from GTK merge.
7006
7007         * emacs.c: Document end of complex #ifdef @ l. 1495.
7008
7009
7010 2001-03-12  Andy Piper  <andy@xemacs.org>
7011
7012         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7013         have to do likewise.
7014
7015 2001-03-12  Andy Piper  <andy@xemacs.org>
7016
7017         * sysdep.c: we only support mingw now.
7018
7019 2001-03-09  Andy Piper  <andy@xemacs.org>
7020
7021         * unexcw.c (copy_executable_and_dump_data_section): making approx
7022         overrun a warning only.
7023
7024 2001-03-10  William M. Perry  <wmperry@aventail.com>
7025
7026         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7027         satisfy Stephen's identical-after-cpp plea.
7028
7029 2001-03-02  Ben Wing  <ben@xemacs.org>
7030
7031         * cmds.c:
7032         * cmds.c (Fforward_char):
7033         * syntax.c:
7034         * window.c:
7035
7036         Augment documentation of the most common motion commands to make
7037         note of the shifted-motion support.
7038         
7039 2001-03-02  Ben Wing  <ben@xemacs.org>
7040
7041         * nt.c (mswindows_fstat):
7042         * nt.c (mswindows_stat):
7043         * search.c (boyer_moore):
7044         Fix compile warnings under Windows.
7045         
7046         * sysdep.c (sys_readdir):
7047         Fix buggy filename-conversion code under Mule.
7048
7049 2001-03-09  William M. Perry  <wmperry@aventail.com>
7050
7051         * Makefile.in.in:
7052         * config.h.in:
7053         * console.c:
7054         * console.h:
7055         * device.c:
7056         * device.h:
7057         * dragdrop.c:
7058         * emacs.c:
7059         * event-stream.c:
7060         * events.c:
7061         * events.h:
7062         * faces.c:
7063         * frame.h:
7064         * general-slots.h:
7065         * glyphs.c:
7066         * gutter.c:
7067         * inline.c:
7068         * lisp.h:
7069         * lrecord.h:
7070         * make-src-depend:
7071         * redisplay-output.c:
7072         * redisplay.c:
7073         * symsinit.h:
7074         * sysfile.h:
7075         * toolbar.c:
7076         * window.c:
7077         The Great GTK Merge.
7078
7079         * ChangeLog.GTK:
7080         * console-gtk.c:
7081         * console-gtk.h:
7082         * device-gtk.c:
7083         * emacs-marshals.c:
7084         * emacs-widget-accessors.c:
7085         * event-gtk.c:
7086         * frame-gtk.c:
7087         * gccache-gtk.c:
7088         * gccache-gtk.h:
7089         * glade.c:
7090         * glyphs-gtk.c:
7091         * glyphs-gtk.h:
7092         * gtk-glue.c:
7093         * gtk-xemacs.c:
7094         * gtk-xemacs.h:
7095         * gui-gtk.c:
7096         * gui-gtk.h:
7097         * menubar-gtk.c:
7098         * native-gtk-toolbar.c:
7099         * objects-gtk.c:
7100         * objects-gtk.h:
7101         * redisplay-gtk.c:
7102         * scrollbar-gtk.c:
7103         * scrollbar-gtk.h:
7104         * select-gtk.c:
7105         * toolbar-gtk.c:
7106         * ui-byhand.c:
7107         * ui-gtk.c:
7108         * ui-gtk.h:
7109         The Great GTK Merge: new files.
7110
7111 2001-02-26  Ben Wing  <ben@xemacs.org>
7112
7113         Reapplied Lstream change.
7114
7115 2001-02-26  Ben Wing  <ben@xemacs.org>
7116
7117         Undid the last change, since it is more controversial than I
7118         thought.  It should be back in at some point soon.
7119         
7120 2001-02-25  Ben Wing  <ben@xemacs.org>
7121
7122         * buffer.c:
7123         * callproc.c (Fold_call_process_internal):
7124         * event-msw.c (ntpipe_slurp_reader):
7125         * event-msw.c (ntpipe_shove_writer):
7126         * event-msw.c (winsock_reader):
7127         * event-msw.c (winsock_writer):
7128         * file-coding.c:
7129         * file-coding.c (detect_eol_type):
7130         * file-coding.c (detect_coding_type):
7131         * file-coding.c (determine_real_coding_system):
7132         * file-coding.c (Fdetect_coding_region):
7133         * file-coding.c (decoding_reader):
7134         * file-coding.c (decoding_writer):
7135         * file-coding.c (mule_decode):
7136         * file-coding.c (Fdecode_coding_region):
7137         * file-coding.c (encoding_reader):
7138         * file-coding.c (encoding_writer):
7139         * file-coding.c (mule_encode):
7140         * file-coding.c (Fencode_coding_region):
7141         * file-coding.c (detect_coding_sjis):
7142         * file-coding.c (decode_coding_sjis):
7143         * file-coding.c (encode_coding_sjis):
7144         * file-coding.c (detect_coding_big5):
7145         * file-coding.c (decode_coding_big5):
7146         * file-coding.c (encode_coding_big5):
7147         * file-coding.c (detect_coding_ucs4):
7148         * file-coding.c (decode_coding_ucs4):
7149         * file-coding.c (encode_coding_ucs4):
7150         * file-coding.c (detect_coding_utf8):
7151         * file-coding.c (decode_coding_utf8):
7152         * file-coding.c (encode_coding_utf8):
7153         * file-coding.c (detect_coding_iso2022):
7154         * file-coding.c (decode_coding_iso2022):
7155         * file-coding.c (encode_coding_iso2022):
7156         * file-coding.c (decode_coding_no_conversion):
7157         * file-coding.c (encode_coding_no_conversion):
7158         * glyphs-x.c (write_lisp_string_to_temp_file):
7159         * gpmevent.c (tty_get_foreign_selection):
7160         * lisp.h:
7161         * lstream.c:
7162         * lstream.c (Lstream_flush_out):
7163         * lstream.c (Lstream_adding):
7164         * lstream.c (Lstream_write_1):
7165         * lstream.c (Lstream_write):
7166         * lstream.c (Lstream_raw_read):
7167         * lstream.c (Lstream_read_more):
7168         * lstream.c (Lstream_read):
7169         * lstream.c (Lstream_unread):
7170         * lstream.c (Lstream_fputc):
7171         * lstream.c (stdio_reader):
7172         * lstream.c (stdio_writer):
7173         * lstream.c (filedesc_reader):
7174         * lstream.c (filedesc_writer):
7175         * lstream.c (lisp_string_reader):
7176         * lstream.c (struct fixed_buffer_stream):
7177         * lstream.c (make_fixed_buffer_input_stream):
7178         * lstream.c (make_fixed_buffer_output_stream):
7179         * lstream.c (fixed_buffer_reader):
7180         * lstream.c (fixed_buffer_writer):
7181         * lstream.c (struct resizing_buffer_stream):
7182         * lstream.c (resizing_buffer_writer):
7183         * lstream.c (dynarr_writer):
7184         * lstream.c (lisp_buffer_reader):
7185         * lstream.c (lisp_buffer_writer):
7186         * lstream.h:
7187         * lstream.h (lstream_implementation):
7188         * lstream.h (struct lstream):
7189         * md5.c (Fmd5):
7190         * process-nt.c (nt_send_process):
7191         * process-unix.c (unix_send_process):
7192         
7193         Correct Lstream lossage due to mixing of signed and unsigned
7194         quantities.  All Lstream uses of size_t and ssize_t are now a
7195         single signed data type Lstream_data_count.  This fixes problems
7196         under Windows with sending large quantities of data to a process,
7197         and may well fix other subtle bugs.
7198
7199 2001-02-23  Martin Buchholz <martin@xemacs.org>
7200
7201         * XEmacs 21.2.45 "Thelxepeia" is released.
7202
7203 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7204
7205         * lisp-union.h (XSETINT): 
7206         (XSETCHAR):
7207         (XSETOBJ): 
7208         Reverse previous change of 2001-02-06.
7209
7210 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7211
7212         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7213         buffers.
7214         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7215         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7216         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7217         * regex.c (POS_AS_IN_BUFFER): removed
7218         * regex.c (re_search_2):
7219         * regex.c (re_match_2):
7220         Don't use an offset of 1 when calculating buffer positions, since
7221         `BI_BUF_BEGV' does it already.
7222
7223 2001-02-18  Wim Dumon  <wim@easics.be>
7224
7225         * insdel.c (prepare_to_modify_buffer): Also check for
7226         supersession when clash-detection is enabled. 
7227
7228 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7229
7230         * regex.c (re_match_2_internal):
7231         Convert temp characters from 'const unsigned char' to 're_char'.
7232         Fix crashing bug with extended characters under mule.
7233         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7234         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7235         font-lock, pdump, and new syntax-table code.
7236         * syntax.c (find_start_of_comment):
7237         (find_end_of_comment):
7238         (forward-comment):
7239         Fix crashing bugs involving moving beyond end of buffer.
7240         * syntax.c (find_start_of_comment):
7241         Fixed logic to allow proper detection of cases where the same
7242         character is used to end both a two-char comment start and a
7243         two-char comment end sequence. Fixes `(forward-comment -1)'.
7244         * syntax.c (find_start_of_comment):
7245         Return position just past last comment-end character for all cases
7246         (previously was only done for two-char comment-end sequences).
7247         * syntax.c (forward-comment):
7248         Take value returned from `find_end_of_comment', rather than
7249         incrementing it.
7250         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7251         Properly deal with BUFFERP (syntax_cache.object)
7252
7253 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7254
7255         * alloc.c (Fgarbage_collect): 
7256         * alloc.c (make_bit_vector_from_byte_vector):
7257         -Wsign-compare-correctness.
7258
7259 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7260
7261         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7262         (XSETCHAR): Likewise.
7263         (XSETOBJ): Likewise.
7264
7265 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7266
7267         * mule-canna.c (canna-func-delete_previous): 
7268         Rename to canna-func-delete-previous.
7269
7270 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7271
7272         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7273
7274 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7275
7276         * font-lock.c (find_context): Fix C++ compile errors introduced by
7277         recent patch
7278
7279 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7280
7281         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7282         pragma, but earlier ones barf on the same pragma.
7283
7284 2001-02-06  Mike Sperber <mike@xemacs.org>
7285
7286         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7287         `configure-mule-lisp-directory'.
7288
7289 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7290
7291         Make sure dump-id.c is compiled in the same way as other .c's.
7292         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7293         * dump-id.h: Remove.
7294         * emacs.c: Move dump-id.h into dumper.h.
7295         * dumper.h: Move dump-id.h into dumper.h.
7296         * Makefile.in.in:
7297         Use standard .c.o rule for building dump-id.o.
7298         Remove preprocessor flags from link command.
7299         Add dump-id.o to ${otherobjs} if PDUMP.
7300
7301 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7302
7303         Port FSF 20.7 syntax table improvements.
7304         * syntax.c.
7305         * syntax.h.
7306
7307         Fixups for new syntax table stuff.
7308         * dired.c: Include syntax.c.
7309         (Fdirectory_files): Initialize regex_match_object and
7310         regex_emacs_buffer.
7311         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7312         and Fget_char_property.
7313
7314         Use ported FSF 20.7 syntax table improvements.
7315         * font-lock.c.
7316         * regex.c.
7317         * search.c.
7318         
7319 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7320
7321         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7322         Unixware's enum boolean from sys/types.h.
7323
7324 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7325
7326         Fix support for building with latest Purify.
7327         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7328         (PURIFY_FLAGS): Likewise.
7329
7330 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7331
7332         * fileio.c (lisp_string_set_file_times): New.
7333         * fileio.c (Fcopy_file): Use it.
7334         Fixes bug:
7335         (copy-file filename non-ascii-filename t t)
7336         ==> No such file or directory, non-ascii-filename
7337
7338 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7339
7340         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7341         USHRT_MAX seems clearer than ~0 anyways.
7342
7343 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7344
7345         dumper improvements.  Inspired by Olivier.
7346         * dumper.c (pdump_max_align): New.
7347         * dumper.c (pdump_add_entry): Use pdump_max_align.
7348         * dumper.c (pdump_get_entry_list): Likewise.
7349         * dumper.c (pdump_scan_by_alignment): Likewise.
7350         Don't iterate through unnecessary alignments.
7351         * dumper.c (pdump_file_get): No need to align result of malloc().
7352         * dumper.c (pdump_mallocadr): Remove.  
7353         The result of malloc() is guaranteed to be maximally aligned.
7354         * dumper.c: s/elmt/elt/g;
7355         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7356         * dumper.c (pdump_alert_undump_object): Likewise.
7357         * dumper.c (pdump_align_table): 
7358         Don't support alignments > 64.
7359         Store ALIGNOF's, not shift counts, in table.
7360
7361 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7362
7363         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7364         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7365         * systime.h: Use HAVE_UTIME.
7366         * sysdep.c (struct utimbuf): Remove.
7367         * sysdep.c (set_file_times): Prefer utime() to utimes().
7368         * config.h.in (HAVE_UTIME): New.
7369         * config.h.in (HAVE_UTIME_H): Remove.
7370         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7371
7372 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7373
7374         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7375
7376 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7377
7378         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7379
7380 2001-02-08  Martin Buchholz <martin@xemacs.org>
7381
7382         * XEmacs 21.2.44 "Thalia" is released.
7383
7384 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7385
7386         Fixes crashes in kill-emacs on some systems.
7387         * process-unix.c (unix_kill_child_process):
7388         It's OK for kill() to fail with ESRCH.
7389
7390 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7391
7392         Contortions to make .gdbinit tricks work on most systems.
7393         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7394         * alloc.c (dbg_valmask): Make non-const.
7395         * alloc.c (dbg_typemask): Make non-const.
7396         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7397         * alloc.c (dbg_valbits): Make non-const.
7398         * alloc.c (dbg_gctypebits): Make non-const.
7399         * .gdbinit (decode_object): Make it work with AIX cc.
7400
7401 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7402
7403         * elhash.c (make_general_lisp_hash_table):
7404         Use simpler and more efficient calloc to clear entries.
7405
7406 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7407
7408         * window.c (window_scroll): Work around an AIX C compiler bug.
7409         Fixes 'scroll-up' does nothing problem with xlC.
7410
7411 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7412
7413         * .gdbinit: Remove obsolete comment.
7414
7415 2001-01-31  Mike Alexander  <mta@arbortext.com>
7416
7417         * select.c (Fown_selection_internal): Set owned_p for device
7418         method correctly.
7419
7420 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7421
7422         Port to g++ 2.97.
7423         "not" cannot be used as a macro name as it is an operator in C++
7424         * config.h.in: Stop #defining `not'.
7425         * chartab.c (check_category_char): not ==> not_p
7426         * chartab.h: Likewise.
7427         * regex.c (re_match_2_internal): Likewise.
7428
7429 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7430
7431         * lisp-disunion.h: Fix up comments.
7432
7433 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7434
7435         * keymap.c (define_key_check_and_coerce_keysym):
7436         (syms_of_keymap):
7437         Support mouse-6 and mouse-7 bindings in the obvious way.
7438
7439 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7440
7441         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7442
7443 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7444
7445         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7446         Previous patch missed DEFVAR_INT_MAGIC.
7447         Make sure future DEFVAR_foo use correct types.
7448         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7449         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7450         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7451         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7452         * (DEFVAR_INT): Likewise.
7453         * redisplay.c (vertical_clip): Should be of type Fixnum.
7454         * redisplay.c (horizontal_clip): Likewise.
7455         * lisp.h (dump_add_opaque_int): New.
7456         (dump_add_opaque_fixnum): New.
7457
7458 2001-01-29  Andy Piper  <andy@xemacs.org>
7459
7460         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7461         since they can be eval'ed
7462
7463 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7464
7465         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7466         Oops, XEmacs redefines `class'.  Use `typename' instead.
7467
7468 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7469
7470         * dumper.c: Fix C++ compile errors.
7471
7472 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7473
7474         * tparam.c: Use correct prototypes.
7475
7476 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7477
7478         * sysproc.h: #include util.h for NetBSD's openpty.
7479
7480 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7481
7482         More 64-bit correctness.
7483         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7484         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7485         Fix up comments.
7486         This finally finishes the 64-bit SGI port.
7487         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7488         * symbols.c: Fix up comments and type casts.
7489         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7490         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7491         * symeval.h (Fixnum): New type.
7492         * symeval.h (symbol_value_type): Fix up comment.
7493
7494         * commands.h:
7495         * nt.c:
7496         * emacs.c:
7497         * data.c:
7498         * redisplay.c:
7499         * abbrev.c:
7500         * dired-msw.c:
7501         * event-Xt.c:
7502         * eldap.c:
7503         * window.c:
7504         * sound.c:
7505         * event-stream.c:
7506         * eval.c:
7507         * buffer.c:
7508         * mule-canna.c: A million DEFVAR_INTs here...
7509         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7510         * extents.c:
7511         * cmdloop.c:
7512         * lisp.h:
7513         * select-x.c:
7514         * console-x.h:
7515         * event-msw.c:
7516         * mule-wnnfns.c:
7517         * hpplay.c:
7518         * ralloc.c:
7519         * alloc.c:
7520         * keymap.c:
7521         * profile.c:
7522         s/int/Fixnum/g in DEFVAR_INT declarations.
7523
7524 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7525
7526         Port pdump to SGI alignment-sensitive environment.
7527         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7528         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7529         properly aligned.
7530         Define and use aligned reading and writing macros.
7531         Use buffered stdio instead of posix i/o for faster dumping.
7532         Eliminate kludgy 256 byte space for header.
7533         Read and write from dump file using structs for alignment safety.
7534         * dumper.c (pdump_align_stream): New.
7535         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7536         * dumper.c (PDUMP_READ_ALIGNED): New.
7537         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7538         * dumper.c (pdump_static_Lisp_Object): New struct.
7539         * dumper.c (pdump_static_pointer): New struct.
7540         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7541         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7542         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7543         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7544
7545         * dumper.c (pdump_backtrace):
7546         * dumper.c (pdump_get_indirect_count):
7547         * dumper.c (pdump_register_object):
7548         * dumper.c (pdump_register_struct):
7549         * dumper.c (pdump_reloc_one):
7550         * dumper.c (pdump_scan_by_alignment):
7551         * dumper.c (pdump_dump_from_root_struct_ptrs):
7552         * dumper.c (pdump_dump_opaques):
7553         * dumper.c (pdump_dump_rtables):
7554         * dumper.c (pdump_dump_from_root_objects):
7555         * dumper.c (pdump):
7556         * dumper.c (pdump_load_finish):
7557         Use aligned reading and writing.
7558
7559         * dumper.c (pdump_free): Make static.
7560         * dumper.c (pdump_hFile): Likewise.
7561         * dumper.c (pdump_hMap): Likewise.
7562
7563 2001-01-26  Martin Buchholz <martin@xemacs.org>
7564
7565         * XEmacs 21.2.43 "Terspichore" is released.
7566
7567 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7568
7569         Type fiddling for window_config.saved_windows_count
7570         * window.c (struct window_config): 
7571         Make saved_windows_count member unsigned.
7572         * window.c (sizeof_window_config_for_n_windows): 
7573         Make parameter unsigned.
7574         * window.c (mark_window_config):
7575         * window.c (window_config_equal):
7576         * window.c (free_window_configuration):
7577         * window.c (Fset_window_configuration):
7578         * window.c (count_windows):
7579         * window.c (Fcurrent_window_configuration):
7580         * window.c (reinit_vars_of_window):
7581         Update all callers and users.
7582
7583 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7584
7585         Alignment correctness for flexible arrays.
7586         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7587         Make alignment-correct. Add interesting comments.
7588         * alloc.c (size_vector):
7589         * alloc.c (make_vector_internal):
7590         * alloc.c (make_bit_vector_internal):
7591         * alloc.c (sweep_bit_vectors_1):
7592         * fns.c (size_bit_vector):
7593         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7594         * window.c (sizeof_window_config_for_n_windows): 
7595         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7596
7597 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7598
7599         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7600
7601 2001-01-23  Andy Piper  <andy@xemacs.org>
7602
7603         * select.c (Fown_selection_internal): pass owned_p
7604
7605         * select-msw.c (mswindows_own_selection): New Signature.
7606
7607         * console.h (struct console_methods): add owned_p to
7608         _own_selection.
7609
7610         * select-x.c (x_own_selection): pass owned_p
7611         (hack_motif_clipboard_selection): use owned_p
7612         (vars_of_select_x): new variable -
7613         x_selection_strict_motif_ownership.
7614
7615 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7616
7617         * specifier.h (specifier_data_offset): Remove pointless parens.
7618         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7619
7620 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7621
7622         Make Lisp_Object sizeof methods be alignment-correct.
7623         pdump must restore objects to the same alignment as the C compiler
7624         assumes.  It really matters on SGIs.
7625         * lstream.c (aligned_sizeof_lstream): New.
7626         (sizeof_lstream): Use aligned_sizeof_lstream.
7627         (Lstream_new): Likewise.
7628         * opaque.c (aligned_sizeof_opaque): New.
7629         (sizeof_opaque): Use aligned_sizeof_opaque.
7630         (make_opaque): Likewise.
7631         * specifier.c (aligned_sizeof_specifier): New.
7632         (sizeof_specifier): Use aligned_sizeof_specifier.
7633         (make_specifier_internal): Likewise.
7634
7635 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7636
7637         * lstream.h (struct lstream): Use max_align_t for trailing data.
7638         * specifier.h (struct Lisp_Specifier): Likewise.
7639
7640 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7641
7642         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7643         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7644         (CCL_SUSPEND): Likewise.
7645         (CCL_INVALID_CMD): Likewise.
7646         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7647         (ccl_driver): Likewise.
7648         (CCL_WRITE_CHAR): Macro hygiene.
7649         (CCL_WRITE_STRING): Macro hygiene.
7650
7651 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7652
7653         Port "portable" dumper to SunOS 4 and HP-UX.
7654         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7655         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7656         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7657
7658 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7659
7660         * lisp.h (ALIGNOF): A better definition for C++.
7661
7662 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7663
7664         Macro hygiene.
7665         Fix printf warnings: int format, long int arg.
7666         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7667         (PUSH_FAILURE_POINT): Use correct printf formats.
7668         (POP_FAILURE_POINT): Use correct printf formats.  
7669         Use do {...} while (0)
7670
7671 2001-01-20  Martin Buchholz <martin@xemacs.org>
7672
7673         * XEmacs 21.2.42 "Poseidon" is released.
7674
7675 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7676
7677         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7678
7679 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7680
7681         De-kludgify FIXED_TYPE free list frobbing.
7682         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7683         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7684         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7685         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7686         * alloc.c (LRECORD_FREE_P): New.
7687         * alloc.c (MARK_LRECORD_AS_FREE): New.
7688         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7689         * alloc.c (STRUCT_FREE_P): Deleted.
7690         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7691         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7692         * alloc.c (STRING_CHARS_FREE_P): New.
7693         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7694         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7695         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7696         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7697         * alloc.c (resize_string): Use new definitions.
7698         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7699         * alloc.c (verify_string_chars_integrity): Use new definitions.
7700         * alloc.c (compact_string_chars): Use new definitions.
7701         * alloc.c: Update monster comments.
7702         * lrecord.h (lrecord_type): Add some new lrecord types for
7703         alloc.c's use.
7704
7705 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7706
7707         Improve alignment hackery.
7708         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7709         (max_align_t): Moved from opaque.h - general purpose.
7710         (ALIGN_PTR): Use size_t, not long.
7711         * opaque.h (max_align_t): Move to lisp.h.
7712
7713 2001-01-18  Norbert Koch  <nk@LF.net>
7714
7715         * gui.h: Fix and add prototypes to fix build problems.
7716
7717 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7718
7719         temacs is going away, so `dump-temacs' is now a bad name.
7720         * .dbxrc (dump-temacs): Rename to `dmp'.
7721         * .gdbinit (dump-temacs): Rename to `dmp'.
7722
7723 2001-01-17  Andy Piper  <andy@xemacs.org>
7724
7725         * glyphs.c (print_image_instance): comment to make martin happy.
7726
7727         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7728         change.
7729
7730         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7731         activation.
7732         (mswindows_tab_control_redisplay): warning suppression.
7733
7734         * glyphs-widget.c (widget_update): re-write to cope with updated
7735         items.
7736         (widget_instantiate): use new gui_item functions.
7737         (tab_control_update): deleted.
7738         (progress_gauge_update): deleted.
7739         (image_instantiator_progress_guage): take out update reference.
7740         (image_instantiator_tree_view): ditto.
7741         (image_instantiator_tab_control): ditto.
7742
7743         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7744         Right the new way.
7745         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7746         return whether anything was changed.
7747         (update_gui_item_keywords): as it sounds.
7748
7749         * gui.h: declare widget_gui_parse_item_keywords.
7750
7751         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7752         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7753
7754 2001-01-17  Martin Buchholz <martin@xemacs.org>
7755
7756         * XEmacs 21.2.41 "Polyhymnia" is released.
7757
7758 2001-01-16  Didier Verna  <didier@xemacs.org>
7759
7760         * glyphs.c (image_instantiate): don't use fallbacks when
7761         instantiating a face's background pixmap by inheritance.
7762
7763 2001-01-14  Mike Sperber <mike@xemacs.org>
7764
7765         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7766         Conditionalize accordingly.
7767
7768 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7769
7770         * dumper.c (pdump_file_get): Fix a compiler warning.
7771
7772 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7773
7774         Make Purify happy when pdumping.
7775         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7776         iniitalizing all bits of new lisp object memory.
7777         * symbols.c (Fmake_local_variable): Likewise.
7778         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7779         * symbols.c (Fdefvaralias): Likewise.
7780         * mule-charset.c (vars_of_mule_charset): Likewise.
7781
7782 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7783         Add the `-nd' flag when running pre-dump operations under the debugger.
7784         * .dbxrc (run-temacs): Add `-nd'.
7785         * .dbxrc (update-elc): Likewise.
7786         * .dbxrc (dump-temacs): Likewise.
7787         * .gdbinit (run-temacs): Likewise.
7788         * .gdbinit (check-temacs): Likewise.
7789         * .gdbinit (update-elc): Likewise.
7790         * .gdbinit (dump-temacs): Likewise.
7791
7792 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7793
7794         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7795         export OBJECT_MODE=64
7796         configure --pdump --use-union-type=no
7797         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7798         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7799
7800         * miscplay.c (sndcnv8U_2mono):
7801         Avoid two uses of `++' in the same expression.
7802         Suppresses a GCC warning.
7803
7804 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7805
7806         Make sure future compilers don't miscompile alloc.c.
7807         * alloc.c:
7808         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7809         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7810
7811 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7812
7813         * dumper.c: A little post-pdump-rename comment fixup.
7814
7815 2001-01-09  Jerry James  <james@eecs.ku.edu>
7816
7817         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7818
7819 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7820
7821         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7822         script:
7823         #!/bin/sh
7824         replace_symbol () {
7825           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7826         }
7827
7828         replace_symbol pdump_wire_lists pdump_weak_object_chains
7829         replace_symbol pdump_wire_list dump_add_weak_object_chain
7830
7831         replace_symbol pdump_wires pdump_root_objects
7832         replace_symbol pdump_wire dump_add_root_object
7833
7834         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7835         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7836
7837         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7838         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7839         replace_symbol dumpstructinfo pdump_root_struct_ptr
7840         replace_symbol dumpstruct dump_add_root_struct_ptr
7841
7842         replace_symbol dumpopaque dump_add_opaque
7843         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7844         replace_symbol dumpopaqueinfos pdump_opaques
7845         replace_symbol dumpopaqueinfo pdump_opaque
7846
7847         replace_symbol nb_structdump nb_root_struct_ptrs
7848         replace_symbol nb_opaquedump nb_opaques
7849
7850         replace_symbol align_table pdump_align_table
7851         replace_symbol dump_header pdump_header
7852
7853         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7854         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7855
7856
7857 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7858
7859         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7860         optimizing bytecount_to_charcount().
7861
7862 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7863
7864         * config.h.in:
7865         (HAVE_DLFCN_H): Removed.
7866         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7867
7868 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7869
7870         Portable dumper maintainability improvements.
7871         * alloc.c (staticpro):
7872         * alloc.c (staticpro_nodump):
7873         * alloc.c (garbage_collect_1):
7874         * alloc.c (reinit_alloc_once_early):
7875         * alloc.c (init_alloc_once_early):
7876         * alloc.c: Move dumper functions to alloc.c.
7877         * dumper.c (pdump_backtrace):
7878         * dumper.c (pdump_dump_structs):
7879         * dumper.c (pdump_dump_opaques):
7880         * dumper.c (pdump_dump_rtables):
7881         * dumper.c (pdump_dump_wired):
7882         * dumper.c (pdump):
7883         * dumper.c (pdump_load_check):
7884         * dumper.c (pdump_load_finish):
7885         * dumper.c (pdump_file_unmap):
7886         * dumper.c (pdump_file_get):
7887         * dumper.c (pdump_resource_free):
7888         * dumper.c (pdump_resource_get):
7889         * dumper.c (pdump_file_free):
7890         * dumper.c (pdump_file_try):
7891         * dumper.c (pdump_load):
7892         Remove fixed size limits on staticpro(), staticpro_nodump(),
7893         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7894         Remove custom code for dumping lrecord_implementations_table - use
7895         dumpopaque instead.
7896         Remove (most of the) custom code for dumping staticpros - dump it
7897         like any other dynarr.
7898
7899         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7900         * dumper.c: Moved functions from alloc.c.
7901         * alloc.c (dumpstruct): Moved to dumper.c.
7902         * alloc.c (dumpopaque): Likewise.
7903         * alloc.c (pdump_wire): Likewise.
7904         * alloc.c (pdump_wire_list): Likewise.
7905
7906         * lisp.h (Dynarr_sizeof): New.
7907         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7908         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7909         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7910
7911         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7912         * lisp.h (dumpopaque): ditto.
7913         * lisp.h (pdump_wire): ditto.
7914         * lisp.h (pdump_wire_list): ditto.
7915
7916 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7917
7918         * make-src-depend (PrintPatternDeps):
7919         Use `sort' to make output independent of perl version.
7920
7921 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7922
7923         Port to Netbsd 1.5.
7924         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7925         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7926
7927 2001-01-03  Didier Verna  <didier@xemacs.org>
7928
7929         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7930         that `focus_frame' is alive before thinking of calling
7931         `redisplay_redraw_cursor' on it.
7932
7933 2001-01-08  Martin Buchholz <martin@xemacs.org>
7934
7935         * XEmacs 21.2.40 is released.
7936
7937 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7938
7939         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7940
7941 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7942
7943         * alloc.c (dbg_valmask): Make const.
7944         * alloc.c (dbg_typemask): Make const.
7945         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7946         * alloc.c (dbg_valbits): Make const.
7947         * alloc.c (dbg_gctypebits): Make const.
7948
7949 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7950
7951         * redisplay-x.c (x_bevel_area):
7952         redisplay.h (struct rune):
7953         Typo fixes in comments.
7954
7955 2001-01-05  Andy Piper  <andy@xemacs.org>
7956
7957         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7958         adjustment.
7959
7960         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7961
7962 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7963
7964         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7965
7966         * mule-ccl.c (stack_idx_of_map_multiple):
7967         Non const global data must not be initialized!
7968         Found by MIYASHITA Hisashi.
7969
7970 2001-01-02  Andy Piper  <andy@xemacs.org>
7971
7972         * frame.c (change_frame_size): make sure frame size is always
7973         marked as changed.
7974
7975         * glyphs.c (image_instance_layout): minor code reuse.
7976
7977         * window.c (Fcurrent_window_configuration): revert previous
7978         change.
7979
7980 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7981
7982         * glyphs.h:
7983         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7984
7985 2000-12-31  Andy Piper  <andy@xemacs.org>
7986
7987         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
7988         when widget gets unmapped.
7989
7990         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
7991         function. Make sure widgets losing focus don't just drop it.
7992         (handle_focus_event_1): record the widget with focus.
7993
7994 2000-12-31  Andy Piper  <andy@xemacs.org>
7995
7996         * window.c (allocate_window): use
7997         make_image_instance_cache_hash_table.
7998         (make_dummy_parent): ditto.
7999         (Fset_window_configuration): ditto.
8000
8001         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8002
8003         * glyphs.c (process_image_string_instantiator): use
8004         INSTANTIATOR_TYPE.
8005         (get_image_instantiator_governing_domain): ditto.
8006         (normalize_image_instantiator): ditto.
8007         (instantiate_image_instantiator): ditto.
8008         (make_image_instance_1): ditto.
8009         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8010         (instantiator_eq_equal): new function for use with instance hash
8011         tables.
8012         (instantiator_eq_hash): ditto.
8013         (make_image_instance_cache_hash_table): create a suitable hash
8014         table for storing image instances.
8015
8016         * elhash.h (hash_table_weakness): new internal weakness type
8017         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8018         declare new functions.
8019
8020         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8021         another weakness type for glyphs.
8022         (make_standard_lisp_hash_table): new function split out from
8023         make_general_lisp_hash_table.
8024         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8025         (hash_table_instantiate): ditto.
8026         (Fmake_hash_table): ditto.
8027
8028 2000-12-31  Martin Buchholz <martin@xemacs.org>
8029
8030         * XEmacs 21.2.39 is released.
8031
8032 2000-12-29  Andy Piper  <andy@xemacs.org>
8033
8034         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8035
8036         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8037         the frame has changed so that we pick up geometry changes such as
8038         menubar visibility.
8039
8040 2000-12-28  Andy Piper  <andy@xemacs.org>
8041
8042         * lastfile.c (my_ebss): make a char array so we can pad the
8043         bss. Fixes cygwin unexec.
8044
8045         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8046
8047 2000-12-26  Andy Piper  <andy@xemacs.org>
8048
8049         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8050         comments and try and be more precise about a non-/SIGIO world.
8051         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8052         SIGIO.
8053
8054         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8055         we don't normalize to zero width or height.
8056
8057 2000-12-24  Andy Piper  <andy@xemacs.org>
8058
8059         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8060
8061 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8062
8063         * s/sco5.h: SCO 5 has pty support.
8064
8065 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8066
8067         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8068         input-method-xlib.c contains whole contents of input-method-xfs.c,
8069         so we can use input-method-xlib.c's code for USE_XFONTSET
8070         using #ifdefs.
8071         * input-method-xfs.c: removed.
8072
8073 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8074
8075         * file-coding.h (enum coding_category_type): reorder enumerators to
8076         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8077         (now one greater than largest real coding_category_type enumerator).
8078         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8079         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8080         Fcoding_category_list, Fset_coding_priority_list,
8081         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8082         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8083
8084 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8085
8086         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8087         * redisplay-output.c (redisplay_output_window): Clear top of window
8088         when face is changed.
8089         * redisplay-x.c (x_redraw_exposed_window): Call
8090         redisplay_clear_top_of_window.
8091         * redisplay.h: Publish redisplay_clear_top_of_window.
8092
8093 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8094
8095         * buffer.c (Fkill_buffer): Map over all devices.
8096         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8097         (list_windows): New function.
8098         (list_all_windows): Ditto.
8099         (Freplace_buffer_in_windows): Use them.
8100
8101 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8102
8103         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8104         (Fopen_database): Use `db_create' instead of `db_open'.
8105         (syms_of_database): Initialize Qqueue.
8106
8107 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8108
8109         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8110         buffer_local_face_property.
8111         * buffer.h (struct buffer): New member buffer_local_face_property.
8112         * window.c (Fset_window_buffer):  Mark window's face as changed
8113         when buffer has buffer local face.
8114         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8115         * objects.c (color_after_change): Set buffer_local_face_property
8116         when locale of face specifier is buffer.
8117         * objects.c (font_after_change): Ditto.
8118         * objects.c (face_boolean_after_change): Ditto.
8119         * glyphs.c (image_after_change): Ditto.
8120
8121 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8122
8123         * nt.c (mswindows_fstat): Report file permissions, volume serial
8124         number, etc. Code adapted from FSF Emacs 20.7.
8125
8126 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8127
8128         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8129         of stat when we don't have symbolic links, to make sure
8130         mswindows_stat is called on mswindows.
8131
8132 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8133
8134         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8135
8136 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8137
8138         * doprnt.c (emacs_doprnt_1): More printing fixes.
8139         Make printing of numbers compatible with libc and FSF Emacs.
8140         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8141         Use the system printf to do most of the hard work of formatting,
8142         instead of doprnt_1().
8143         Calculate memory to allocate for format string.
8144         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8145         (doprnt_1): Cleaner code and documentation.
8146
8147 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8148
8149         * Makefile.in.in: Use the loop variable to install headers.
8150
8151 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8152
8153         * window.c (Fsplit_window): Don't invalidate face cache.
8154
8155 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8156
8157         * minibuf.c (Fall_completions): Undo the previous change
8158         which removed checking elements start with space.
8159
8160 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8161
8162         * mule-canna.c: Didier suppression.
8163
8164 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8165
8166         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8167         (warning suppression).  Add English comment translations.
8168
8169 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8170
8171         * unexelfsgi.c (unexec): Better test for mmap failure.
8172
8173 2000-12-05  Martin Buchholz <martin@xemacs.org>
8174
8175         * XEmacs 21.2.38 is released.
8176
8177 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8178
8179         * redisplay.c (bar-cursor): Make a user variable.
8180
8181         * symsinit.h: Add init_postgresql_from_environment.
8182
8183 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8184
8185         * regex.c: Convert to clean C.
8186
8187 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8188
8189         * realpath.c:
8190         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8191         initialization.
8192         (sys_readlink): renamed to system_readlink to avoid conflict with
8193         the other sys_readlink.
8194
8195 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8196
8197         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8198
8199 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8200
8201         * postgresql.c (init_postgresql_from_environment): new function.
8202         (vars_of_postgresql): Move code initializing Lisp variables out and
8203         into init_postgresql_from_environment.
8204         emacs.c (main_1): Call init_postgresql_from_environment if and only
8205         if running a dumped XEmacs.
8206
8207 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8208
8209         * buffer.c: Make find-file-compare-truenames default to true on
8210         windows.
8211
8212         * realpath.c (win32_abs_start):
8213         (cygwin_readlink):
8214         (win32_readlink): New functions.
8215         (xrealpath): Return really real filenames on windows.
8216
8217         * fileio.c (Ffile_truename): Make file-truename work on windows.
8218
8219 2000-11-29  Didier Verna  <didier@xemacs.org>
8220
8221         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8222         * faces.c (update_face_cachel_data): use it.
8223         * faces.c (add_face_cachel): use it. Complete background pixmap
8224         frobbing in face cache if `update_face_cachel_data' has not done so.
8225
8226 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8227
8228         * search.c (string_match_1): Don't set last_thing_searched
8229         when search failed.
8230
8231 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8232
8233         * buffer.c: Include casetab.h
8234         (common_init_complex_vars_of_buffer): Use new case-table object.
8235         * buffer.h: Include casetab.h
8236         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8237         (DOWNCASE_TABLE_OF): Ditto.
8238         * bufslots.h: Remove char-tables and add case-table.
8239         * casetab.c: Include casetab.h
8240         (CASE_TABLE_P): Removed.
8241         (mark_case_table): New function.
8242         (allocate_case_table): New function.
8243         (Fcase_table_p): Use new case-table.
8244         (case_table_char): New function.
8245         (Fget_case_table): Ditto.
8246         (Fput_case_table): Ditto.
8247         (Fput_case_table_pair): Ditto.
8248         (Fcopy_case_table): Ditto.
8249         (Fcurrent_case_table): Return case-table.
8250         (Fstandard_case_table): Return case-table.
8251         (Fset_case_table): Fix doc-string.
8252         (set_case_table): Use case-table
8253         (syms_of_casetab): DEFSUBR new functions.
8254         (complex_vars_of_casetab): Set up standard case-table.
8255         * casetab.h: New file.
8256         * editfns.c: Include casetab.h
8257         (Fcompare_buffer_substrings): Use case-table.
8258         * inline.c: Include casetab.h
8259         * lisp.h: Remove bogus extern.
8260         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8261         * search.c: Include casetab.h
8262         (TRANSLATE_ASCII): Removed.
8263         (TRANSLATE): Unconditionally translate character.
8264         (looking_at_1): Use case-table.
8265         (string_match_1): Ditto.
8266         (fast_string_match): Ditto.
8267         (search_command): Ditto.
8268         (search_buffer): Separate boyer_moore.  Check whether
8269         boyer_moore is possible.
8270         (simple_search): New function.
8271         (boyer_moore): Separated from search_buffer. Translate char.
8272
8273 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8274
8275         * regex.c (RE_TR_ASCII): Removed.
8276         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8277         (PATFETCH): Call PATFETCH_RAW.
8278         (PATFETCH_RAW): Fetch Emchar.
8279         (PATUNFETCH): Decrement charptr.
8280         (GET_BUFFER_SPACE): Rename b to buf_end.
8281         (BUF_PUSH): Ditto.
8282         (BUF_PUSH_2): Ditto.
8283         (BUF_PUSH_3): Ditto.
8284         (EXTEND_BUFFER): Ditto.
8285         (SET_LIST_BIT): Ditto.
8286         (regex_compile): Ditto.  Translate non ASCII char.
8287         (compile_range): Ditto.
8288         (re_search_2): Ditto.
8289         (re_match_2_internal): Compare Emchar.
8290         (bcmp_translate): Ditto.
8291
8292 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8293
8294         * lisp.h (basic char/int typedefs):  comment improvement.
8295
8296 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8297
8298         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8299         unstomp inhibit_site_lisp.  Improve comments.
8300
8301 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8302
8303         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8304
8305 2000-11-28  Andy Piper  <andy@xemacs.org>
8306
8307         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8308         clipped display for windows in the gutter also.
8309         (redisplay_display_boxes_in_window_p): change semantics of return
8310         codes to be more intuitive.
8311
8312         * gutter.h: declare display_boxes_in_gutter_p.
8313
8314         * gutter.c (display_boxes_in_gutter_p): new function for
8315         redisplay.
8316
8317 2000-11-22  Andy Piper  <andy@xemacs.org>
8318
8319         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8320         autodetect domain.
8321
8322 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8323
8324         * callproc.c (Fold_call_process_internal):
8325         * gpm.c (Freceive_gpm_event):
8326         (tty_get_foreign_selection): Might be just warning supression.
8327         * fileio.c (Fwrite_region_internal):
8328         (Fset_visited_file_modtime):
8329         * keymap.c (event_matches_key_specifier_p):
8330         Initialize GCPROed variable.
8331
8332         * menubar-x.c (command_builder_find_menu_accelerator):
8333         Initialize before use.
8334
8335 2000-11-23  Andy Piper  <andy@xemacs.org>
8336
8337         * unexcw.c (unexec): make the resulting executable executable.
8338
8339 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8340
8341         * doc.c (get_doc_string):
8342         Use size_t, not int, for result of XSTRING_LENGTH.
8343
8344         * cmds.c (Fdelete_char):
8345         * cmds.c (Fpoint_at_eol):
8346         * cmds.c (Fself_insert_command):
8347         Use EMACS_INT, not int, for result of XINT.
8348         Someday, someone will want to insert more than 2**31 identical characters.
8349
8350         * cmds.c (Fdelete_char):
8351         * cmds.c (Fdelete_backward_char):
8352         * syntax.c (Fforward_word):
8353         * syntax.c (Fforward_comment):
8354         Make COUNT argument optional, for consistency with forward-char et al.
8355
8356 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8357
8358         * lisp.h:
8359         * print.c (long_to_string):
8360         Return a useful value: the pointer at end of data written.
8361
8362         * doprnt.c:
8363         Use `static const char * const' for constant strings.
8364         (union printf_arg): Delete `i', `ui' members.
8365         (get_doprnt_args):
8366         (emacs_doprnt_1):
8367         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8368         Do all printf-ing via the `l' specifier.
8369         Use EMACS_INT instead of int.
8370         Optimize.
8371
8372 2000-11-20  Didier Verna  <didier@xemacs.org>
8373
8374         * faces.c (update_face_cachel_data): don't frob the background
8375         pixmap when the window is being created. The face is needed but
8376         does not exist yet.
8377
8378 2000-11-20  Andy Piper  <andy@xemacs.org>
8379
8380         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8381         messing with a debug environment.
8382
8383 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8384
8385         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8386
8387 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8388
8389         * casetab.c (Fcase_table_p): Fix compile error and crash.
8390
8391 2000-11-18  Philip Aston  <philipa@mail.com>
8392
8393         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8394
8395 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8396
8397         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8398         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8399
8400 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8401
8402         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8403         * unexelf.c: Use HAVE_ELF_H.
8404         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8405         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8406         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8407         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8408         for testing.
8409         So this is an unexelfsgi.c from a different line of development.
8410
8411 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8412
8413         * regex.c (RE_TR_ASCII): New function.
8414         (RE_TRANSLATE): Call it.
8415
8416 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8417
8418         * buffer.h (TRT_TABLE_OF): Remove assert.
8419         (IN_TRT_TABLE_DOMAIN): Removed.
8420
8421 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8422
8423         * free-hook.c (log_gcpro):
8424         (show_gcprohist): Add support for GCPRO5.
8425
8426 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8427
8428         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8429
8430 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8431
8432         * symeval.h: Declare flush_all_buffer_local_cache.
8433
8434         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8435         (flush_buffer_local_cache): Added.
8436         (flush_all_buffer_local_cache): Added.
8437
8438         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8439
8440         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8441         (pdump_dump_data): Ditto.
8442         (pdump_reloc_one): Ditto.
8443         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8444         before dumping.
8445
8446
8447 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8448
8449         * buffer.c: Remove if 0'ed entry.
8450         * buffer.h: Rewrite TRT to use char-table.
8451         * bufslots.h: Remove mirror tables.
8452         * casetab.c: Remove mirror tables.
8453         (CASE_TABLE_P): New macro.
8454         (Fcase_table_p): Element of a case table is string or char-table.
8455         (make_mirror_trt_table): Removed.
8456         (set_case_table): Setup char-table from strings for backward
8457         compatibility.
8458         * dired.c (Fdirectory_files):
8459         * dired-msw.c: (mswindows_get_files):
8460         * lisp.h: Change prototype of re_pattern_buffer.
8461         * regex.c: (RE_TRANSLATE): New macro.
8462         (TRANSLATE_P): Ditto.
8463         Change translate to type RE_TRANSLATE_TYPE.
8464         * regex.h: Define RE_TRANSLATE_TYPE
8465         * search.c (TRANSLATE): New macro.
8466         (TRANSLATE_ASCII): New macro.
8467         Translate table is changed to Lisp_Object.
8468         (signal_failure): Inhibit return.
8469
8470 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8471
8472         * device-msw.c:
8473         * eldap.c:
8474         * event-Xt.c:
8475         * event-stream.c:
8476         * print.c:
8477         Do UNGCPRO before return.
8478
8479 2000-11-14  Martin Buchholz <martin@xemacs.org>
8480
8481         * XEmacs 21.2.37 is released.
8482
8483 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8484
8485         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8486         Add comments about discarded return value.
8487
8488 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8489
8490         * callint.c:
8491         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8492
8493 2000-10-27  Andy Piper  <andy@xemacs.org>
8494
8495         * gutter.c (Fset_default_gutter_position): default left and right
8496         gutters to visible.
8497         (calculate_gutter_size): calculate resonable heuristic for left
8498         and right gutter sizes.
8499         (specifier_vars_of_gutter): change left and right gutter sizes to
8500         autodetect.
8501         (calculate_gutter_size_from_display_lines): new function.
8502         (output_gutter): check for resizing on left and right gutters.
8503         (clear_gutter): don't special case top and left gutters.
8504         (specifier_vars_of_gutter): use new signature for
8505         set_specifier_caching.
8506
8507         * glyphs-x.c (x_redisplay_widget): spelling fix.
8508         * glyphs.c (specifier_vars_of_glyphs):
8509         * menubar.c (specifier_vars_of_menubar):
8510         * redisplay.c (specifier_vars_of_redisplay):
8511         * toolbar.c (specifier_vars_of_toolbar):
8512         * window.c (specifier_vars_of_window):
8513         * scrollbar.c (specifier_vars_of_scrollbar):
8514         (complex_vars_of_scrollbar): use new signature for
8515         set_specifier_caching.
8516
8517         * specifier.c (set_specifier_caching): include recompute flag.
8518         (recompute_one_cached_specifier_in_window): always recompute if
8519         flag set.
8520         (recompute_one_cached_specifier_in_frame): ditto.
8521
8522         * specifier.h (struct specifier_caching): add recompute flag.
8523
8524 2000-10-24  Andy Piper  <andy@xemacs.org>
8525
8526         * unexcw.c (copy_executable_and_dump_data_section): add new
8527         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8528         5.0 happy.
8529
8530 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8531
8532         * console-x.h (x_device): New member modifier_release_time.
8533         * event-Xt.c (x_handle_sticky_modifiers):
8534         Bound interval modifier keys are sticky.
8535         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8536         * events.h: extern it.
8537
8538 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8539
8540         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8541
8542 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8543
8544         * event-stream.c (execute_command_event): Preserve current_events
8545         and the like when event is misc-user-event.
8546         Inhibit quit during the call to maybe_echo_keys.
8547
8548 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8549
8550         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8551         symlink when buffer is killed.
8552         (inhibit_clash_detection): New variable.
8553
8554 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8555
8556         * console.c (Fset_input_method): Trigger redisplay on tty.
8557
8558 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8559
8560         * process.c (Fprocess_status): Revert to previous behavior:
8561         (process-status "nosuchprocess") ==> nil
8562
8563 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8564
8565         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8566         Work around another GCC 2.95.2 optimizer bug.
8567
8568 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8569
8570         * process.c (Fget_process): Use LIST_LOOP_2.
8571         (kill_buffer_processes): Use LIST_LOOP_2.
8572
8573         * minibuf.c (Fall_completions):
8574         Delete old non-functional code for FSF fourth argument.
8575
8576         * frame.c (frame_matches_frame_spec):
8577         Renamed from `frame_matches_frametype'.  Update all callers.
8578         (device_matches_device_spec):
8579         Renamed from 'device_matches_console_spec'.  Update all callers.
8580
8581         * doc.c (Fsubstitute_command_keys):
8582         Remove buffer overflow crash.  Small code cleanups.
8583
8584         * casetab.c (check_case_table): Simpler code.
8585
8586         * window.c (Freplace_buffer_in_windows):
8587         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8588         (and similar implementation) as Fdelete_windows_on.
8589         Update all callers.
8590
8591         * alloc.c (Fmake_list):
8592         * alloc.c (make_vector):
8593         * alloc.c (Fmake_vector):
8594         * alloc.c (make_bit_vector):
8595         * alloc.c (Fmake_bit_vector):
8596         * alloc.c (Fbit_vector):
8597         * alloc.c (Fmake_string):
8598         * alloc.c (Fpurecopy):
8599         * alloc.c (Fmemory_limit):
8600         * buffer.c:
8601         * buffer.c (Fget_buffer):
8602         * buffer.c (Fkill_buffer):
8603         * buffer.c (complex_vars_of_buffer):
8604         * bytecode.c (Fcompiled_function_stack_depth):
8605         * callint.c (Fprefix_numeric_value):
8606         * event-stream.c:
8607         * event-stream.c (Fread_key_sequence):
8608         * casetab.c:
8609         * casetab.c (Fcase_table_p):
8610         * casetab.c (check_case_table):
8611         * casetab.c (Fset_case_table):
8612         * casetab.c (Fset_standard_case_table):
8613         * chartab.c:
8614         * chartab.c (Fchar_table_type):
8615         * chartab.c (Freset_char_table):
8616         * chartab.c (Fget_char_table):
8617         * chartab.c (Fget_range_char_table):
8618         * chartab.c (Fput_char_table):
8619         * chartab.c (Fmap_char_table):
8620         * chartab.c (Fcategory_table_p):
8621         * chartab.c (Fcheck_category_at):
8622         * chartab.c (Fchar_in_category_p):
8623         * chartab.c (Fcategory_table):
8624         * chartab.c (Fcopy_category_table):
8625         * chartab.c (Fset_category_table):
8626         * chartab.c (Fcategory_designator_p):
8627         * chartab.c (Fcategory_table_value_p):
8628         * cmds.c (Fdelete_char):
8629         * cmds.c (Fdelete_backward_char):
8630         * cmds.c (Fself_insert_command):
8631         * cmds.c (Fself_insert_internal):
8632         * console.c (Fvalid_console_type_p):
8633         * console.c (Fcdfw_console):
8634         * console.c (Fconsole_type):
8635         * console.c (Fconsole_name):
8636         * console.c (Fconsole_device_list):
8637         * console.c (Fconsole_on_window_system_p):
8638         * data.c:
8639         * data.c (Feq):
8640         * data.c (Fold_eq):
8641         * data.c (Fsubr_interactive):
8642         * data.c (Fchar_to_int):
8643         * data.c (Fint_to_char):
8644         * data.c (Fsetcar):
8645         * data.c (Fsetcdr):
8646         * data.c (Fnumber_to_string):
8647         * data.c (Fstring_to_number):
8648         * data.c (Frem):
8649         * database.c (mark_database):
8650         * database.c (finalize_database):
8651         * database.c (Fdatabase_live_p):
8652         * database.c (Fdatabasep):
8653         * device-x.c (Fx_get_resource):
8654         * device.c (Fdfw_device):
8655         * dired.c:
8656         * dired.c (Ffile_name_completion):
8657         * dired.c (Ffile_name_all_completions):
8658         * dired.c (Fuser_name_completion):
8659         * dired.c (Fuser_name_completion_1):
8660         * dired.c (Fuser_name_all_completions):
8661         * doc.c (Fdocumentation):
8662         * doc.c (Fdocumentation_property):
8663         * doc.c (Fsubstitute_command_keys):
8664         * editfns.c:
8665         * editfns.c (Fchar_to_string):
8666         * editfns.c (Fstring_to_char):
8667         * editfns.c (Ftemp_directory):
8668         * editfns.c (Finsert_char):
8669         * editfns.c (Fbuffer_substring_no_properties):
8670         * editfns.c (Fnarrow_to_region):
8671         * editfns.c (Fchar_equal):
8672         * editfns.c (Fchar_Equal):
8673         * editfns.c (Ftranspose_regions):
8674         * emacs.c (Fdump_emacs):
8675         * eval.c (Fthrow):
8676         * eval.c (Fcommand_execute):
8677         * eval.c (Fautoload):
8678         * eval.c (Fbacktrace):
8679         * eval.c (Fbacktrace_frame):
8680         * events.c:
8681         * events.c (Fcopy_event):
8682         * events.c (Fcharacter_to_event):
8683         * events.c (Fevent_button):
8684         * events.c (Fevent_process):
8685         * extents.c:
8686         * extents.c (Fnext_extent_change):
8687         * extents.c (Fextent_property):
8688         * faces.c (Ffacep):
8689         * faces.c (Fmake_face):
8690         * file-coding.c:
8691         * file-coding.c (Fencode_shift_jis_char):
8692         * file-coding.c (Fencode_big5_char):
8693         * fileio.c (Ffile_name_directory):
8694         * fileio.c (Ffile_name_nondirectory):
8695         * fileio.c (Ffile_name_as_directory):
8696         * fileio.c (Fdirectory_file_name):
8697         * fileio.c (Ffile_truename):
8698         * fileio.c (Fsubstitute_in_file_name):
8699         * fileio.c (Ffile_modes):
8700         * fileio.c (Fset_file_modes):
8701         * fileio.c (Fset_default_file_modes):
8702         * fileio.c (Fverify_visited_file_modtime):
8703         * floatfns.c (Facos):
8704         * floatfns.c (Fasin):
8705         * floatfns.c (Fatan):
8706         * floatfns.c (Fcos):
8707         * floatfns.c (Fsin):
8708         * floatfns.c (Ftan):
8709         * floatfns.c (Fbessel_j0):
8710         * floatfns.c (Fbessel_j1):
8711         * floatfns.c (Fbessel_jn):
8712         * floatfns.c (Fbessel_y0):
8713         * floatfns.c (Fbessel_y1):
8714         * floatfns.c (Fbessel_yn):
8715         * floatfns.c (Ferf):
8716         * floatfns.c (Ferfc):
8717         * floatfns.c (Flog_gamma):
8718         * floatfns.c (Fexp):
8719         * floatfns.c (Fexpt):
8720         * floatfns.c (Flog):
8721         * floatfns.c (Flog10):
8722         * floatfns.c (Fsqrt):
8723         * floatfns.c (Fcube_root):
8724         * floatfns.c (Facosh):
8725         * floatfns.c (Fasinh):
8726         * floatfns.c (Fatanh):
8727         * floatfns.c (Fcosh):
8728         * floatfns.c (Fsinh):
8729         * floatfns.c (Ftanh):
8730         * floatfns.c (Fabs):
8731         * floatfns.c (Ffloat):
8732         * floatfns.c (Flogb):
8733         * floatfns.c (Fceiling):
8734         * floatfns.c (Ffloor):
8735         * floatfns.c (Fround):
8736         * floatfns.c (Ftruncate):
8737         * floatfns.c (Ffceiling):
8738         * floatfns.c (Fffloor):
8739         * floatfns.c (Ffround):
8740         * floatfns.c (Fftruncate):
8741         * fns.c (Fstring_equal):
8742         * fns.c (Fstring_lessp):
8743         * fns.c (concat2):
8744         * fns.c (concat3):
8745         * fns.c (vconcat2):
8746         * fns.c (vconcat3):
8747         * fns.c (Fsubstring):
8748         * fns.c (Fassoc):
8749         * fns.c (Fold_assoc):
8750         * fns.c (assoc_no_quit):
8751         * fns.c (Fassq):
8752         * fns.c (Fold_assq):
8753         * fns.c (assq_no_quit):
8754         * fns.c (Frassoc):
8755         * fns.c (Fold_rassoc):
8756         * fns.c (Frassq):
8757         * fns.c (Fold_rassq):
8758         * fns.c (rassq_no_quit):
8759         * fns.c (Fremassoc):
8760         * fns.c (remassoc_no_quit):
8761         * fns.c (Fremassq):
8762         * fns.c (remassq_no_quit):
8763         * fns.c (Fremrassoc):
8764         * fns.c (Fremrassq):
8765         * fns.c (remrassq_no_quit):
8766         * fns.c (Fsort):
8767         * fns.c (Fplist_get):
8768         * fns.c (Fplist_put):
8769         * fns.c (Fplist_remprop):
8770         * fns.c (Fplist_member):
8771         * fns.c (Flax_plist_get):
8772         * fns.c (Flax_plist_put):
8773         * fns.c (Flax_plist_remprop):
8774         * fns.c (Flax_plist_member):
8775         * fns.c (Fequal):
8776         * fns.c (Fold_equal):
8777         * fns.c (Frequire):
8778         * fns.c (Fbase64_encode_region):
8779         * fns.c (Fbase64_encode_string):
8780         * fns.c (Fbase64_decode_region):
8781         * frame.c:
8782         * frame.c (frame_matches_frame_spec):
8783         * frame.c (device_matches_device_spec):
8784         * frame.c (next_frame):
8785         * frame.c (previous_frame):
8786         * frame.c (Fnext_frame):
8787         * frame.c (Fprevious_frame):
8788         * frame.c (Fframe_property):
8789         * frame.c (Fset_frame_height):
8790         * frame.c (Fset_frame_size):
8791         * frame.h:
8792         * glyphs.c:
8793         * glyphs.c (if):
8794         * glyphs.c (decode_error_behavior_flag):
8795         * glyphs.c (Fmake_image_instance):
8796         * indent.c (Findent_to):
8797         * intl.c (Fignore_defer_gettext):
8798         * keymap.c (Fkeymapp):
8799         * keymap.c (Flookup_key):
8800         * lread.c:
8801         * lread.c (Fload_internal):
8802         * lread.c (Feval_buffer):
8803         * lread.c (Feval_region):
8804         * macros.c (Fexecute_kbd_macro):
8805         * marker.c (set_marker_internal):
8806         * marker.c (Fset_marker):
8807         * marker.c (set_marker_restricted):
8808         * marker.c (Fcopy_marker):
8809         * marker.c (noseeum_copy_marker):
8810         * menubar.c:
8811         * menubar.c (Fpopup_menu):
8812         * minibuf.c:
8813         * mule-charset.c (Fcharset_name):
8814         * mule-charset.c (Fchar_charset):
8815         * mule-charset.c (Fchar_octet):
8816         * mule-charset.c (Fsplit_char):
8817         * mule-wnnfns.c (Fwnn_open):
8818         * mule-wnnfns.c (Fwnn_dict_comment):
8819         * mule-wnnfns.c (Fwnn_quit_henkan):
8820         * mule-wnnfns.c (Fwnn_word_toroku):
8821         * mule-wnnfns.c (Fwnn_word_sakujo):
8822         * mule-wnnfns.c (Fwnn_word_use):
8823         * mule-wnnfns.c (Fwnn_hindo_set):
8824         * objects.c:
8825         * objects.c (Fmake_color_instance):
8826         * objects.c (Fmake_font_instance):
8827         * print.c (Fwrite_char):
8828         * process.c:
8829         * process.c (mark_process):
8830         * process.c (print_process):
8831         * process.c (get_process_from_usid):
8832         * process.c (Fprocessp):
8833         * process.c (Fprocess_live_p):
8834         * process.c (Fget_process):
8835         * process.c (Fget_buffer_process):
8836         * process.c (get_process):
8837         * process.c (Fprocess_id):
8838         * process.c (Fprocess_name):
8839         * process.c (Fprocess_command):
8840         * process.c (init_process_io_handles):
8841         * process.c (start_process_unwind):
8842         * process.c (Fstart_process_internal):
8843         * process.c (Fopen_multicast_group_internal):
8844         * process.c (Fset_process_window_size):
8845         * process.c (read_process_output):
8846         * process.c (send_process):
8847         * process.c (Fprocess_tty_name):
8848         * process.c (Fset_process_buffer):
8849         * process.c (Fprocess_buffer):
8850         * process.c (Fprocess_mark):
8851         * process.c (set_process_filter):
8852         * process.c (Fset_process_filter):
8853         * process.c (Fprocess_filter):
8854         * process.c (Fprocess_send_region):
8855         * process.c (Fprocess_send_string):
8856         * process.c (exec_sentinel):
8857         * process.c (Fset_process_sentinel):
8858         * process.c (Fprocess_sentinel):
8859         * process.c (status_notify):
8860         * process.c (Fprocess_status):
8861         * process.c (Fprocess_exit_status):
8862         * process.c (process_send_signal):
8863         * process.c (Fprocess_send_eof):
8864         * process.c (deactivate_process):
8865         * process.c (remove_process):
8866         * process.c (Fdelete_process):
8867         * process.c (kill_buffer_processes):
8868         * process.c (Fprocess_kill_without_query):
8869         * process.c (Fprocess_kill_without_query_p):
8870         * rangetab.c:
8871         * rangetab.c (Fget_range_table):
8872         * rangetab.c (Fput_range_table):
8873         * rangetab.c (Fremove_range_table):
8874         * rangetab.c (Fclear_range_table):
8875         * search.c:
8876         * search.c (Fskip_chars_forward):
8877         * search.c (Fskip_chars_backward):
8878         * search.c (Fskip_syntax_forward):
8879         * search.c (Fskip_syntax_backward):
8880         * search.c (search_command):
8881         * search.c (Freplace_match):
8882         * search.c (Fregexp_quote):
8883         * select.c (Fown_selection_internal):
8884         * select.c (Fselection_owner_p):
8885         * select.c (Fselection_exists_p):
8886         * select.c (Fget_selection_internal):
8887         * specifier.c:
8888         * symbols.c:
8889         * symbols.c (Fintern):
8890         * symbols.c (Fintern_soft):
8891         * symbols.c (Funintern):
8892         * symbols.c (Fapropos_internal):
8893         * symbols.c (Fset_default):
8894         * syntax.c:
8895         * syntax.c (Fsyntax_table_p):
8896         * syntax.c (Fcopy_syntax_table):
8897         * syntax.c (Fset_syntax_table):
8898         * syntax.c (Fchar_syntax):
8899         * syntax.c (syntax_match):
8900         * syntax.c (Fmatching_paren):
8901         * syntax.c (Fforward_word):
8902         * syntax.c (scan_lists):
8903         * syntax.c (Fscan_lists):
8904         * syntax.c (Fscan_sexps):
8905         * syntax.c (Fparse_partial_sexp):
8906         * toolbar.c (Fcheck_toolbar_button_syntax):
8907         * tooltalk.doc:
8908         * window.c:
8909         * window.c (Fwindowp):
8910         * window.c (Fwindow_live_p):
8911         * window.c (Fwindow_point):
8912         * window.c (Fdelete_window):
8913         * window.c (Fnext_window):
8914         * window.c (Fprevious_window):
8915         * window.c (Fother_window):
8916         * window.c (window_loop):
8917         * window.c (Fget_lru_window):
8918         * window.c (Fsplit_window):
8919         * window.c (Fenlarge_window):
8920         * window.c (Fenlarge_window_pixels):
8921         * window.c (Fshrink_window):
8922         * window.c (Fshrink_window_pixels):
8923         * window.c (change_window_height):
8924         * window.c (Fwindow_configuration_p):
8925         * window.c (Fcurrent_window_configuration):
8926         * window.h:
8927         * casefiddle.c (casify_object):
8928         * casefiddle.c (Fupcase):
8929         * casefiddle.c (Fdowncase):
8930         * casefiddle.c (Fcapitalize):
8931         * casefiddle.c (Fupcase_initials):
8932         * casefiddle.c (casify_region_internal):
8933         * casefiddle.c (casify_region):
8934         * casefiddle.c (Fupcase_region):
8935         * casefiddle.c (Fdowncase_region):
8936         * casefiddle.c (Fcapitalize_region):
8937         * casefiddle.c (Fupcase_initials_region):
8938         * casefiddle.c (Fupcase_word):
8939         * casefiddle.c (Fdowncase_word):
8940         * casefiddle.c (Fcapitalize_word):
8941         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8942         Replace 0 with '\0' when working with bytes.
8943         Replace initial "(" with "\(" in docstrings.
8944
8945 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8946
8947         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8948
8949         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8950
8951 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8952
8953         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8954
8955 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8956
8957         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8958         correctly.
8959
8960 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8961
8962         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8963         (inhibit_auto_save_session): New variable.
8964         (vars_of_fileio): Declare and initialize them.
8965         * fileio.c (Fdo_auto_save): Don't create session file if
8966         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8967
8968 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8969
8970         * sgiplay.c (play_internal): C++ compilability.
8971         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8972         * callproc.c (Fold_call_process_internal):
8973         Remove unused vars `env', `first'.
8974         * scrollbar.c (update_scrollbar_instance):
8975         #### unused var `current_window'.
8976         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8977         etc. within #ifdef NOT_YET.
8978         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8979         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8980         * specifier.c (specifier_instance):
8981         #### unused var `tag'.
8982         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8983
8984 2000-10-27  Martin Buchholz  <martin@xemacs.org>
8985
8986         * fns.c (Fbutlast):
8987         * fns.c (list_sort):
8988         * fns.c (Ffillarray):
8989         * fns.c (bytecode_nconc2):
8990         * fns.c (Fnconc):
8991         * fns.c (mapcar1):
8992         * fns.c (Fmapconcat):
8993         Be pedantically 64-bit correct.  For the time when someone will
8994         want to have a list with length > 2**32.
8995
8996         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8997         Work around MIPSpro compiler bug.
8998
8999         * process-unix.c (unix_kill_child_process): Add snarky comment.
9000         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9001
9002         * config.h.in: Oops, _getpt ==> _getpty
9003
9004 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9005
9006         * config.h.in:
9007         * regex.c:
9008         Use void*, not char*, as return type of alloca().
9009
9010         * alloc.c (free_marker): Side effect inside assert expression!
9011
9012 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9013
9014         * mule-charset.c (Fset_charset_ccl_program): To check
9015         if the given ccl program is valid, use setup_ccl_program()
9016         instead of CHECK_VECTOR().
9017         (Fmake_charset): Likewise.
9018
9019 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9020
9021         * faces.c (get_extent_fragment_face_cache_index):
9022         Fix cachel.merged_faces memory leak.
9023
9024 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9025
9026         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9027         Reset MSB of octets obtained by DECODE_SJIS
9028         because of the incompatibility with Emacs.
9029         (ccl_driver)<CCL_ENCODE_SJIS>:
9030         Set MSB of octets before passing them to
9031         ENCODE_SJIS because of the incompatibility
9032         with Emacs.
9033
9034 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9035
9036         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9037         (DECLARE_LRECORD): Undo the last change.
9038         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9039
9040 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9041
9042         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9043         the implementation to lrecord_implementations_table.
9044
9045 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9046
9047         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9048         initial value of `lrecord_type_##c_name' and
9049         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9050         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9051         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9052         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9053         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9054
9055 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9056
9057         * miscplay.c (sndcnv8S_2mono):
9058         (sndcnv2monounsigned):
9059         (sndcnvULaw_2linear):
9060         (sndcnv16swap):
9061         Remove implementation-defined behavior.
9062
9063 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9064
9065         * input-method-xlib.c: Warning suppression.
9066
9067 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9068
9069         * mule-ccl.c: Sync up with Emacs 21.0.90.
9070         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9071         Do nothing.
9072         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9073         Likewise.
9074         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9075         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9076         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9077         leading char belongs to official 2-dimensional charset.
9078         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9079         write the given character as is.  Otherwise,
9080         if it is a multibyte char, convert it by
9081         non_ascii_set_charptr_emchar, then write it.
9082         (CCL_WRITE_STRING): Likewise.
9083         (ccl_get_compiled_code): New function.
9084         (setup_ccl_program): When ccl_prog is invalid,
9085         return -1.
9086         (Fregister_code_conversion_map): New function.
9087         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9088
9089         * mule-ccl.h: Sync up with Emacs 21.0.90.
9090         (Fregister_ccl_program): export it.
9091
9092         * redisplay-msw.c (separate_textual_runs):
9093         If ccl program is not valid, don't do ccl conversion.
9094
9095         * redisplay-x.c (separate_textual_runs): Ditto.
9096
9097         * file-coding.c (Fmake_coding_system):
9098         When type is ccl and value is vector, register it
9099         with a proper symbol.  And checks whether the
9100         given ccl program is valid.
9101         (mule_decode): When calling ccl_driver, if src indicates
9102         NULL pointer, set an empty string instead.
9103         (mule_encode): Likewise.
9104
9105 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9106
9107         The following large batch of changes gets us back to a state of
9108         C++ compilability.  Extbyte is now a char, which means that
9109         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9110
9111         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9112
9113         * sound.c (Fplay_sound): Type correctness.
9114
9115         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9116         (x_get_window_property): Type correctness.
9117         (receive_incremental_selection): unsigned char ==> Extbyte
9118         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9119         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9120         (Fx_store_cutbuffer_internal): Type correctness.
9121
9122         * process-unix.c (try_to_initialize_subtty): Type correctness.
9123
9124         * objects-x.c (x_print_color_instance): Type correctness.
9125         (x_print_font_instance): Type correctness.
9126         (x_list_fonts): SExtbyte ==> Extbyte.
9127         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9128         (x_find_charset_font): SExtbyte ==> Extbyte.
9129         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9130         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9131         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9132         Use bufbyte_strcmp.
9133
9134         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9135         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9136         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9137         (BYTE_C0_P): Use bit ops for char-signedness safety.
9138         (BYTE_C1_P): Use bit ops for char-signedness safety.
9139         (CHARSET_BY_LEADING_BYTE):
9140         (CHARSET_BY_ATTRIBUTES):
9141         Always use inline function.
9142         Use type_checking_assert.
9143         Hide chlook.
9144
9145         * mule-charset.c (non_ascii_charptr_copy_char):
9146         Modify to work with both ASCII and non-ASCII characters.
9147         Improve docs and variable names.
9148         Replace over-clever fall-through switch with a simple loop.
9149         (Lstream_get_emchar_1):
9150         Replace over-clever fall-through switch with a simple loop.
9151
9152         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9153         Warning suppression.
9154
9155         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9156         the return value of Lstream_getc, which could be EOF as well.
9157
9158         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9159
9160         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9161         APIs can be used on Extbytes without casts.  Risky!
9162         (SExtbyte): Remove.
9163         (UExtbyte): Remove.
9164
9165         * input-method-xlib.c (XIM_init_device):
9166         Use Xlib.h instead of IntrinsicP.h.
9167         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9168         which will break in X11R7.
9169         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9170         to call XRegisterIMInstantiateCallback with correct types.
9171
9172         * gui-x.c (button_item_to_widget_value): Type correctness.
9173
9174         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9175
9176         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9177         (xbm_instantiate_1): Type correctness.
9178         (BUILD_GLYPH_INST):  Type correctness.
9179
9180         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9181
9182         * file-coding.c:
9183         (decode_coding_sjis):
9184         (decode_coding_big5):
9185         (decode_coding_ucs4):
9186         (decode_coding_utf8):
9187         (decode_coding_iso2022):
9188         (decode_coding_no_conversion):
9189         Make all decoding functions take an Extbyte * arg.
9190         (encode_coding_sjis):
9191         (encode_coding_big5):
9192         (encode_coding_ucs4):
9193         (encode_coding_utf8):
9194         (encode_coding_iso2022):
9195         (encode_coding_no_conversion):
9196         Make all encoding functions take a Bufbyte * arg.
9197         Use size_t instead of unsigned int for memory sizes.
9198         Only cast to unsigned char whenever dereferencing Extbyte *.
9199
9200         * doc.c (unparesseuxify_doc_string): Type correctness.
9201
9202         * console-x.c (split_up_display_spec):
9203         Rewrite without using details of internal string representation.
9204         (x_semi_canonicalize_device_connection): Type correctness.
9205
9206         * config.h.in:
9207         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9208         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9209         (HAVE_XFREE386): Removed.
9210
9211         * buffer.h (DEC_CHARPTR): `const' correctness.
9212         (bufbyte_strcmp): New.
9213         (bufbyte_memcmp): New.
9214
9215         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9216
9217         * buffer.h (XCHAR_OR_CHAR_INT):
9218         Always use inline function.
9219         Remove redundant type checking assert() - XINT will abort quite nicely.
9220
9221 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9222
9223         * search.c (Freplace_match): Set newtext to an empty string.
9224
9225 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9226
9227         * s/decosf1-3.h: Remove #include of stropts.h
9228         * s/ptx.h: Remove #include of stropts.h
9229         * s/usg5-4.h: Remove #include of stropts.h
9230         * sysproc.h:
9231         * config.h.in:
9232         Use stropts.h, not sys/stropts.h.
9233         Use strtio.h, not sys/strtio.h.
9234
9235 2000-10-04  Martin Buchholz <martin@xemacs.org>
9236
9237         * XEmacs 21.2.36 is released.
9238
9239 2000-09-21  Andy Piper  <andy@xemacs.org>
9240
9241         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9242         changes still involve copying the widget tree.
9243         (update_widget_face): make sure a change is register in the widget
9244         tree. Call update_tab_widget_face appropriately.
9245         (update_tab_widget_face): ditto.
9246         (x_tab_control_redisplay): make sure non-structural changes still
9247         involve copying the widget tree.
9248
9249 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9250
9251         * lread.c (locate_file): Check the path element is non-nil.
9252
9253 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9254
9255         * lisp.h: Warning suppression for SCO compilers.
9256
9257         * redisplay-tty.c (reset_tty_modes): Fix crash.
9258         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9259
9260 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9261
9262         Big signal/process handling overhaul.  Bugs fixed:
9263         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9264         M-x comint-kill-subjob should work for both values nil and t of
9265         process-connection-type. It was broken on most platforms.
9266         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9267         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9268         * process-unix.c: Signal/Process handling overhaul.
9269         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9270         (allocate_pty): Use all available modern methods of allocating
9271         ptys, falling back to old style BSD allocation as a last resort.
9272         Use allegedly more secure Unix98 pty allocation by default.
9273         (allocate_pty_the_old_fashioned_way): New. the last resort.
9274         (unix_create_process): Push ptem, ldterm, ttcompat where
9275         available.  Autoconfiscate.
9276         (try_to_initialize_subtty): New.
9277         (unix_kill_child_process): Proper signal handling for ptys on most
9278         platforms, using special knowledge of AIX, BSD, etc...
9279         (unix_create_process): Always disconnect_controlling_terminal() for
9280         subprocesses, whether using ptys or not.
9281         * process.h: Remove old getpt-dependent PTY code.
9282         * process.c (Fprocess_send_signal): New, obvious generic function.
9283         (decode_signal): New.
9284         (Finterrupt_process):
9285         (Fkill_process):
9286         (Fquit_process):
9287         (Fstop_process):
9288         (Fcontinue_process):
9289         (Fsignal_process): Use decode_signal.
9290         (process_send_signal):
9291         Many docstring corrections.
9292         Allow any signal to be sent to a process object.
9293         * config.h.in: Add symbols for big signal/process overhaul.
9294         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9295         * sysproc.h: Include process-related headers, where available:
9296         sys/stropts.h sys/strtio.h pty.h libutil.h
9297         * s/irix4-0.h:
9298         * s/irix5-0.h:
9299         * s/cygwin32.h:
9300         * s/gnu.h:
9301         * s/linux.h:
9302         * s/hpux.h:
9303         * s/aix3-1.h:
9304         Remove old S&M pty stuff.
9305         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9306         * systty.h: Simplify cpp hackery, improve comments.
9307         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9308
9309         * editfns.c (Fformat_time_string):
9310         Be a little more paranoid with the return value of ctime.
9311
9312         * fileio.c (check_executable):
9313         (check_writable):
9314         Use symbolic constants X_OK, W_OK.
9315
9316         * console-x.c (split_up_display_spec): Fix a warning.
9317
9318 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9319
9320         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9321         * ntproc.c (sys_spawnve): make_string ==> build_string
9322         Small clarity improvements.
9323
9324 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9325
9326         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9327
9328         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9329
9330         * config.h.in (HAVE_STRCASECMP): Remove.
9331
9332 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9333
9334         * redisplay-output.c (redisplay_output_pixmap):
9335         Cleaner and possibly more 64-bit correct code.
9336
9337 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9338
9339         * dumper.c (pdump_load_finish): move restoration of
9340         `noninteractive1' to emacs.c (main_1).
9341         * emacs.c (main_1): protect LISP-visible command-line flags
9342         from pdump_load().
9343
9344 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9345
9346         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9347         DUMP_TARGET instead of literal program names.
9348
9349 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9350
9351         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9352
9353 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9354
9355         * *: Spelling mega-patch
9356
9357 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9358
9359         * fns.c (bad_bad_turtle):
9360         Delete "Eek!" comment, since we fixed the bug to which it refers.
9361
9362 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9363
9364         * alloca.c: Replace REGISTER with register.
9365
9366 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9367
9368         * file-coding.c (ucs_to_char): Use countof.
9369
9370 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9371
9372         * file-coding.c: (ucs_to_char):
9373         (complex_vars_of_file_coding):
9374         Use countof instead of sizeof.
9375         Use CHECK_NATNUM instead of CHECK_INT.
9376
9377         * sysdep.c (strcasecmp): Remove.
9378         * device-x.c (ascii_strcasecmp): New.
9379         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9380         Avoid using non-standard non-portable strcasecmp.
9381
9382 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9383
9384         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9385         * font-lock.c: remove reference to emacsfns.h.
9386         * search.c: small doc improvement.
9387         * event-Xt.c: correct file names in comments.
9388         * console-x.h Correct file names in comments.
9389         * frame.c: Correct file names in comments.
9390         * event-stream.c: remove Energize from comments.
9391
9392 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9393
9394         * symeval.h (DEFERROR_STANDARD):
9395         (DEFERROR):
9396         (DEFSYMBOL):
9397         (DEFSYMBOL_NO_DUMP):
9398         (DEFSYMBOL_MULTIWORD_PREDICATE):
9399         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9400         (DEFKEYWORD):
9401         The construct &##name is not sensible C.
9402         Fixes compilation errors with Unixware native compiler.
9403
9404 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9405
9406         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9407         (next_frame_internal): Removed.  We now just have next_frame.
9408         (next_frame):
9409         Write a simpler and cleaner one-pass algorithm.
9410         Remove called_from_delete_device arg and #ifdefed-out code.
9411         (previous_frame):
9412         Renamed from prev_frame.  Update callers.
9413         Cleaned up to have an analogous implementation to next_frame.
9414         (other_visible_frames_internal): Remove the
9415         called_from_delete_device bogus arg, and hence, remove this
9416         function.  Just use other_visible_frames().
9417
9418         * window.c (Fnext_window):
9419         Prettify docstring.
9420         Since next_frame() is guaranteed to return a frame, remove check
9421         for nil inserted in previous patch.
9422         (Fprevious_window):
9423         Prettify docstring.
9424         Make code look more like Fnext_window.
9425         (window_loop):
9426         Respect the `console' arg when iterating through windows.
9427         Fixes bug: (get-buffer-window buffer t device) not respecting
9428         the `device' arg.
9429         This function needs more work, as others have pointed out.
9430
9431         * frame.h: Rename prev_frame to previous_frame.
9432         device_matches_console_spec no longer takes a `frame' arg.
9433
9434         * s/gnu.h:
9435         * s/linux.h:
9436         * s/hpux.h:
9437         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9438         From "Golubev I. N." <gin@mo.msk.ru>.
9439
9440         * make-src-depend: Fix typo.
9441
9442 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9443
9444         * window.c (Fnext_window):
9445         next_frame() might return nil, not a frame.
9446         Fixes this crash:
9447         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9448
9449         * frame.c (next_frame_internal):
9450         We've passed a frame if we've passed its device.
9451         Fixes this crash:
9452         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9453 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9454
9455 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9456
9457         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9458         Allow option to suppress accelerators in menu/dialog items.
9459         (populate_or_checksum_helper): Pass dialog title through above.
9460
9461 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9462
9463         * event-msw.c (mswindows_key_to_emacs_keysym):
9464         Add "pause" key, fix "menu" key.
9465
9466 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9467
9468         * eval.c (reinit_vars_of_eval):
9469         Increase max_lisp_eval_depth to 1000,
9470         required for thai-xtis.el to byte-compile under some circumstances.
9471
9472 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9473
9474         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9475         From Kenichi Handa.
9476
9477 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9478
9479         * make-src-depend: Make the generated Makefiles smaller.
9480
9481         * s/hpux.h (SETUP_SLAVE_PTY):
9482         Provide a %d in the format string for the errno argument.
9483
9484         * editfns.c (Ftemp_directory):
9485         Warning fix.
9486         Avoid buffer overrun on very long file name.
9487
9488         * input-method-xlib.c (XIM_init_device):
9489         6th parameter of XRegisterIMInstantiateCallback has different
9490         pointer types on different OSes, so simply cast to (void *).
9491
9492         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9493
9494         * sysdll.c (dll_open):
9495         shl_load will hang hard if passed a NULL filename.
9496         Simply return NULL for compatibility with dlopen.
9497         * sysdll.c: Conform to XEmacs coding standards.
9498
9499         * sysdep.c (get_pty_max_bytes):
9500         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9501
9502 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9503
9504         * tooltalk.c: Add #include <syssignal.h>
9505
9506 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9507
9508         * s/hpux.h: Don't use undefined function sigunblock().
9509
9510 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9511
9512         * config.h.in: Add HAVE_BALLOON_HELP.
9513         * emacs.c: Use HAVE_BALLOON_HELP.
9514         * Makefile.in.in (x_objs):
9515         Make Balloon Help conditional on finding shape.h.
9516
9517 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9518
9519         * syntax.c (regex_emacs_buffer_p): New variable.
9520         * syntax.h (regex_emacs_buffer_p): extern.
9521         * search.c (looking_at_1):
9522         (string_match_1):
9523         (fast_string_match):
9524         (search_buffer): Set regex_emacs_buffer_p.
9525         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9526         when before_dot, at_dot, after_dot.
9527
9528 2000-08-23  Andy Piper  <andy@xemacs.org>
9529
9530         * gui-x.c (popup_selection_callback): Only set action_occurred
9531         when we really have an image instance.
9532         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9533
9534 2000-08-23  Andy Piper  <andy@xemacs.org>
9535
9536         * gui-msw.c (mswindows_handle_gui_wm_command): set
9537         action_occurred.
9538         * gui-x.c (popup_selection_callback): ditto.
9539
9540         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9541         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9542         (struct Lisp_Image_Instance): add action_occurred flag.
9543
9544         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9545         (image_instance_changed): ditto.
9546         (reset_frame_subwindow_instance_cache): only unmap windows - do
9547         not remove them from the cache also.
9548
9549         * glyphs-widget.c (tab_control_update): better debug.
9550         (progress_gauge_update): ditto.
9551         (layout_update): ditto.
9552         (layout_instantiate): ditto.
9553         (tab_control_order_only_changed): cope with null pending items.
9554
9555         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9556         debug. Force selection of an item when an action occurred. Cope
9557         with null pending_items.
9558         (mswindows_progress_gauge_redisplay): better debug.
9559         * glyphs-x.c (x_tab_control_redisplay): ditto.
9560
9561         * redisplay.c (redisplay_frame): reset the frame cache if the
9562         frame is garbaged.
9563
9564         * window.c (Fset_window_configuration): potentially re-enable
9565         frame cache reset.
9566         (window_unmap_subwindows): need to finalize instances here since
9567         it is only used in mark_window_as_deleted.
9568
9569 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9570
9571         * nas.c (SndOpenDataForReading):
9572         nas.c (WaveOpenDataForReading):
9573         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9574         Somehow escaped from the 2000-08-14 patch.
9575
9576 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9577
9578         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9579         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9580
9581 2000-08-21  Andy Piper  <andy@xemacs.org>
9582
9583         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9584         window if it is not already displayed.
9585
9586         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9587         it is not already displayed.
9588
9589         * window.c (Fset_window_configuration): don't reset the frame
9590         cache.
9591
9592         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9593         instances from the frame cache if we are actually finalizing them.
9594         (reset_frame_subwindow_instance_cache): reset frame cache only
9595         after unmapping everything.
9596         (map_subwindow): set displayed flag after mapping.
9597
9598 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9599
9600         * data.c (indirect_function):
9601         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9602
9603         * eval.c (function_argcount):
9604         Use original function when signaling errors.
9605
9606 2000-08-18  Andy Piper  <andy@xemacs.org>
9607
9608         * frame.c (delete_frame_internal): use new
9609         free_frame_subwindow_instances name.
9610
9611         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9612         (add_tab_item): make return type correct.
9613         (mswindows_tab_control_instantiate): assert index of tab.
9614         (mswindows_tab_control_redisplay): Re-code to use
9615         gui_item_equal_sans_selected and gui_item_list_find_selected.
9616
9617         * glyphs-widget.c (tab_control_update): Correct comment.
9618
9619         * window.c (window_unmap_subwindows): use new
9620         unmap_subwindow_instance_cache_mapper.
9621         (window_unmap_subwindows_cache_mapper): deleted.
9622         (Fset_window_configuration): comparisons should now be with
9623         EQ. Preserve the subwindow instance cache across configuration
9624         changes.
9625         (allocate_window): ditto.
9626         (make_dummy_parent): ditto.
9627
9628         * glyphs.c (free_frame_subwindow_instances): rename from
9629         free_frame_subwindow_instance_cache. finalize all instances rather
9630         than just those in the display cache.
9631         (finalize_all_subwindow_instances): walk windows unmapping and
9632         finalizing subwindows.
9633         (unmap_subwindow_instance_cache_mapper): moved from
9634         window.c. Allow finalization as well as unmapping.
9635
9636         * gui.c (gui_item_list_find_selected): new function.
9637
9638         * gui.h (gui_item_list_find_selected): declare.
9639
9640         * glyphs-x.c (x_tab_control_redisplay): pick tab
9641         explicitly. Re-code to use gui_item_equal_sans_selected and
9642         gui_item_list_find_selected.
9643
9644         * glyphs-x.h: add lwlib-utils.h
9645
9646         * buffer.c (Frecord_buffer): undo previous change.
9647
9648 2000-08-09  Vin Shelton  <acs@xemacs.org>
9649
9650         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9651         possible.  Create temporary files more securely.  The patch was
9652         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9653         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9654         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9655         for details.
9656
9657 2000-08-07  Ben Wing  <ben@xemacs.org>
9658
9659         * getloadavg.c: remove duplicate (and windows-breaking)
9660         includes of fcntl.h and sys/file.h.
9661
9662         * nt.c: remove duplicate getloadavg() definition.
9663
9664         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9665         encodings.
9666
9667 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9668
9669         * eval.c (function_argcount): If function needs to be autoloaded
9670         actually use the loaded definition.
9671         GCPRO function.
9672
9673 2000-08-05  Ben Wing  <ben@xemacs.org>
9674
9675         * getloadavg.c: add prototype for getloadavg().  remove
9676         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9677         of the code).  remove duplicate header includes.
9678
9679         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9680
9681         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9682         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9683         useful load average.
9684
9685         * alloc.c (reinit_alloc_once_early): removed references to
9686         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9687         the lisp vars are the only things referencing the malloc_sbrk_*
9688         vars, and they were already if 0'd out.  these vars only exist
9689         in the older malloc.c, which is basically unused, and they're
9690         only for informational purposes.
9691
9692         * m\*.h: removed useless VIRT_ADDR_VARIES.
9693
9694         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9695
9696 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9697
9698         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9699         color if the image is a mono pixmap.
9700
9701 2000-07-30  Ben Wing  <ben@xemacs.org>
9702
9703         * Makefile.in.in (release):
9704         Remove stray @.
9705
9706         * buffer.c (directory_is_current_directory):
9707         * dired-msw.c (mswindows_get_files):
9708         * dired.c:
9709         * dired.c (Fdirectory_files):
9710         * dired.c (file_name_completion_stat):
9711         * dired.c (Ffile_attributes):
9712         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9713         preprocessor tricks, to avoid problems on some machines
9714         (e.g. SCO).
9715
9716         * callproc.c (egetenv): GC docs.
9717
9718         * console-msw.h:
9719         * console-msw.h (struct mswindows_dialog_id):
9720         * lrecord.h (lrecord_type):
9721         New object for use with MSW dialogs.
9722
9723         * console.h (struct console_methods):
9724         New enable/disable frame methods, for proper modal dialogs.
9725
9726         * device-msw.c (msprinter_default_printer): Fix to follow
9727         proper Mule conventions.
9728
9729         * device-msw.c:
9730         * device-msw.c (signal_open_printer_error):
9731         * device-msw.c (msprinter_init_device):
9732         * device-msw.c (ensure_not_printing):
9733         * device-msw.c (plist_get_margin):
9734         * device-msw.c (Fmsprinter_select_settings):
9735         * device-msw.c (finalize_devmode):
9736         * device-msw.c (Fmsprinter_settings_despecialize):
9737         * device-msw.c (signal_enum_priner_error):
9738         * extents.c (decode_extent):
9739         * extents.c (decode_map_extents_flags):
9740         * extents.c (decode_extent_at_flag):
9741         * extents.c (Fextent_at):
9742         * extents.c (Fextents_at):
9743         * extents.c (symbol_to_glyph_layout):
9744         [[[[2]]]] Use structured errors.
9745
9746         * dialog-msw.c:
9747         * dialog-msw.c (mswindows_is_dialog_msg):
9748         * dialog-msw.c (mark_mswindows_dialog_id):
9749         * dialog-msw.c (dialog_proc):
9750         * dialog-msw.c (handle_question_dialog_box):
9751         * dialog-msw.c (syms_of_dialog_mswindows):
9752         Define new object to clean up marking; use it as a dialog identifier.
9753         Call new delete-dialog-box-hook.
9754
9755         * dialog-x.c (dbox_selection_callback):
9756         * dialog-x.c (dbox_descriptor_to_widget_value):
9757         * dialog-x.c (x_make_dialog_box_internal):
9758         Call new delete-dialog-box-hook.
9759         Return an id.
9760
9761         * dialog.c:
9762         * dialog.c (syms_of_dialog):
9763         * dialog.c (vars_of_dialog):
9764         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9765
9766         * eval.c:
9767         * eval.c (signal_call_debugger):
9768         when noninteractive, output stack traces on the console instead
9769         of in a (never-seen) buffer.
9770
9771         * eval.c (signal_type_error):
9772         * eval.c (invalid_argument_2):
9773         * lisp.h:
9774         new funs for use w/structured errors.
9775
9776         * event-Xt.c:
9777         * event-Xt.c (x_to_emacs_keysym):
9778         * event-Xt.c (describe_event):
9779         * event-Xt.c (emacs_Xt_event_handler):
9780         * event-Xt.c (vars_of_event_Xt):
9781         * event-msw.c:
9782         * event-msw.c (mswindows_wnd_proc):
9783         * event-msw.c (vars_of_event_mswindows):
9784         rename {x,mswindows}-debug-events to debug-{}-events for
9785         consistency with other debug-foo variables.
9786
9787         * event-stream.c:
9788         document next-event more clearly.
9789
9790         * fileio.c (Ffile_name_directory):
9791         * fileio.c (Ffile_name_nondirectory):
9792         * fileio.c (Funhandled_file_name_directory):
9793         * fileio.c (file_name_as_directory):
9794         * fileio.c (Ffile_name_as_directory):
9795         * fileio.c (directory_file_name):
9796         * fileio.c (Fdirectory_file_name):
9797         * fileio.c (Fmake_temp_name):
9798         * fileio.c (Ffile_truename):
9799         * fileio.c (Fsubstitute_in_file_name):
9800         * fileio.c (expand_and_dir_to_file):
9801         * fileio.c (barf_or_query_if_file_exists):
9802         * fileio.c (check_executable):
9803         * fileio.c (Ffile_exists_p):
9804         * fileio.c (Ffile_writable_p):
9805         * fileio.c (Ffile_directory_p):
9806         * fileio.c (Ffile_regular_p):
9807         * fileio.c (Ffile_modes):
9808         * fileio.c (Ffile_newer_than_file_p):
9809         * fileio.c (Fverify_visited_file_modtime):
9810         * fileio.c (Fset_visited_file_modtime):
9811         * fileio.c (auto_save_1):
9812         (1). (2).
9813         fix up gcpro's.
9814
9815         * frame-msw.c:
9816         * frame-msw.c (mswindows_init_frame_1):
9817         * frame-msw.c (mswindows_enable_frame):
9818         * frame-msw.c (error_frame_unsizable):
9819         * frame-msw.c (msprinter_init_frame_1):
9820         * frame-msw.c (msprinter_init_frame_3):
9821         * frame-msw.c (console_type_create_frame_mswindows):
9822         (2).
9823         implement new enable/disable frame methods.
9824
9825         * frame-x.c:
9826         * frame-x.c (x_enable_frame):
9827         * frame-x.c (console_type_create_frame_x):
9828         implement new enable/disable frame methods.
9829
9830         * frame.c:
9831         * frame.c (Fdisable_frame):
9832         * frame.c (syms_of_frame):
9833         * frame.h (struct frame):
9834         implement new enable/disable frame methods/functions.
9835
9836         * general-slots.h:
9837         add initial-focus.
9838
9839         * glyphs-msw.c (mswindows_widget_instantiate):
9840         comment that initial-focus should be implemented.
9841
9842         * glyphs-widget.c:
9843         * glyphs-widget.c (check_valid_instantiator):
9844         * glyphs-widget.c (check_valid_orientation):
9845         * glyphs-widget.c (check_valid_tab_orientation):
9846         * glyphs-widget.c (check_valid_justification):
9847         * glyphs-widget.c (check_valid_border):
9848         * glyphs-widget.c (check_valid_callback):
9849         * glyphs-widget.c (check_valid_int_or_function):
9850         * glyphs-widget.c (check_valid_string_or_vector):
9851         * glyphs-widget.c (check_valid_item_list_1):
9852         * glyphs-widget.c (widget_validate):
9853         * glyphs-widget.c (combo_box_validate):
9854         * glyphs-widget.c (widget_instantiate):
9855         * glyphs-widget.c (syms_of_glyphs_widget):
9856         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9857         * glyphs-widget.c (image_instantiator_combo_box):
9858         * glyphs-widget.c (image_instantiator_scrollbar):
9859         * glyphs-widget.c (image_instantiator_tab_control):
9860         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9861         (2).
9862         support (unimplemented) keyword initial-focus.
9863         reindent long macros.
9864
9865         * glyphs-x.c (x_redisplay_widget):
9866         * glyphs-x.c (x_button_instantiate):
9867         * glyphs-x.c (x_button_redisplay):
9868         * glyphs-x.c (x_progress_gauge_instantiate):
9869         * glyphs-x.c (x_edit_field_instantiate):
9870         * glyphs-x.c (x_combo_box_instantiate):
9871         * glyphs-x.c (x_tab_control_instantiate):
9872         * glyphs-x.c (x_label_instantiate):
9873         * gui-x.c:
9874         * gui-x.c (button_item_to_widget_value):
9875         * gui-x.c (gui_items_to_widget_values_1):
9876         * gui-x.c (gui_item_children_to_widget_values):
9877         * gui-x.c (gui_items_to_widget_values):
9878         * gui-x.h:
9879         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9880         add new flag to gui-parsing routines to indicate whether
9881         accelerator specs should be supported.
9882
9883         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9884
9885         * glyphs.h (struct Lisp_Image_Instance):
9886         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9887         add initial-focus flag.
9888
9889         * gui.c:
9890         * gui.c (syms_of_gui):
9891         * gui.c (vars_of_gui):
9892         clean up menu-no-selection-hook.
9893
9894         * gui.h:
9895         support delete-dialog-box-hook.
9896
9897         * lread.c (Fload_internal):
9898         * lread.c (locate_file_in_directory_mapper):
9899         (1).
9900
9901         * lrecord.h:
9902         * lrecord.h (struct toolbar_button):
9903         * lrecord.h (syms_of_toolbar):
9904         document how to create a new object.
9905
9906         * menubar-msw.c (mswindows_char_is_accelerator):
9907         may be called on frames w/o menus.
9908
9909         * menubar.c (vars_of_menubar):
9910         clean up :filter docs.
9911
9912         * nt.c (readdir):
9913         * ntproc.c:
9914         (1).
9915
9916         * process-nt.c:
9917         * process-nt.c (validate_signal_number):
9918         * process-nt.c (signal_cannot_launch):
9919         * process-nt.c (nt_create_process):
9920         * process-nt.c (nt_send_process):
9921         * process-nt.c (nt_kill_child_process):
9922         * process-nt.c (nt_open_network_stream):
9923         * process-nt.c (syms_of_process_nt):
9924         (2).
9925         delete quote-handling.  call new lisp code that does it better.
9926
9927         * process-unix.c (connect_to_file_descriptor):
9928         * process-unix.c (allocate_pty):
9929         * process-unix.c (unix_send_process):
9930         * process-unix.c (unix_kill_child_process):
9931         * process-unix.c (unix_open_network_stream):
9932         * process-unix.c (unix_open_multicast_group):
9933         (1). (2).
9934
9935         * process.c:
9936         * process.c (Fstart_process_internal):
9937         (2).  need to canonicalize process path even if absolute.
9938
9939         * select-msw.c (symbol_to_ms_cf):
9940         * select-msw.c (ms_cf_to_symbol):
9941         * select-msw.c (cf_is_autofreed):
9942         * select-msw.c (mswindows_destroy_selection):
9943         * select.c:
9944         * select.c (syms_of_select):
9945         * select.h:
9946         support dibv5, fix bugs. (from Mike Alexander)
9947
9948         * select.c (Fget_selection_internal):
9949         * select.c (select_convert_out):
9950
9951         * sysdep.c:
9952         * sysdep.c (xemacs_stat):
9953         renamed.
9954
9955         * sysdep.c (mkdir):
9956         * sysdep.c (rmdir):
9957         but keep original stat() here because we provide encapsulation
9958         around these funs.
9959
9960         * sysfile.h:
9961         * sysfile.h (fstat):
9962         remove stat garbage.
9963
9964         * syswindows.h:
9965         fix X/MSW conflict.
9966         don't include tchar.h.  it's inappropriate because it makes
9967         compile-time distinctions when we want runtime distinctions.
9968         (we provide our own tchar replacements)
9969
9970         * toolbar.c:
9971         use default object printer for toolbar-button.
9972
9973         * unexcw.c:
9974         make sure we don't encapsulate.
9975
9976         * window.c (vars_of_window):
9977         emphasize that temp-buffer-show-hook is obsolete.
9978
9979 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9980
9981         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9982         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9983
9984         * events.c (Fevent_timestamp_lessp):
9985         Not 64-bit clean.  Use EMACS_INT, not int.
9986
9987 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
9988
9989         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
9990         unsigned int and changed the last enum to
9991         lrecord_type_last_built_in_type.
9992         (lrecord_implementations_table): changed prototype to know how
9993         long the array is supposed to be.
9994         (lrecord_type_count): new unsigned int to keep track of the
9995         current number of lisp lrecord types.
9996         (DEFINE_EXTERNAL_LRECORD):
9997         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9998         dynamic-modules to declare new lisp types. They are the same
9999         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10000         int for each new type, and increment lrecord_type_count by 1.
10001
10002         * alloc.c (lrecord_implementations_table): Changed to reference
10003         lrecord_type_last_built_in_type for the size of the array.
10004         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10005
10006 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10007
10008         * glyphs.h (check_valid_item_list): Renamed from
10009         check_valid_item_list_1.
10010
10011 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10012
10013         * select.c (Qselect_coerce): New.
10014         * select.c (Vselection_coercion_alist): New.
10015         * select.c (syms_of_select): Declare.
10016         * select.c (get-selection-internal): Use it.
10017         Use the new select-coerce functionality.
10018
10019         * select.c (select_coerce): New.
10020         * select.h (select_coerce): Declare.
10021         New function to coerce one type of data into another.
10022
10023 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10024
10025         * callproc.c (Fcall_process_internal):
10026         (Fcall_process_internal):
10027         * process-unix.c (unix_create_process):
10028         Save and restore the value of errno, so that error messages are accurate.
10029
10030 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10031
10032         * elhash.c (print_hash_table):
10033         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10034         Prettify docstrings and indentation.
10035
10036 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10037
10038         * window.c (Fwindow_pixel_edges): Subtract frame border and
10039         gutter size.
10040
10041 2000-07-31  Andy Piper  <andy@xemacs.org>
10042
10043         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10044         will acknowledge the change.
10045
10046         * glyphs.h: declare tab_control_order_only_changed.
10047
10048         * glyphs-x.c (x_tab_control_redisplay): use
10049         tab_control_order_only_changed.
10050
10051         * glyphs-widget.c (tab_control_order_only_changed): new function.
10052
10053         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10054         tab_control_order_only_changed.
10055
10056         * gui.c (gui_item_equal_sans_selected): new function.
10057         (gui_item_equal): use it.
10058
10059         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10060         :properties in favor of :items..
10061
10062         * glyphs-widget.c (check_valid_item_list): rename from
10063         check_valid_item_list_1.
10064         (check_valid_item_list_1): renamed.
10065         (combo_box_validate): deprecate :properties in favor of :items.
10066         (widget_instantiate): ditto.
10067         (tab_control_update): ditto.
10068         (image_instantiator_combo_box): ditto.
10069         (image_instantiator_tree_view): ditto.
10070         (image_instantiator_tab_control): ditto.
10071         (layout_post_instantiate): remove dead code.
10072
10073         * print.c (debug_print_no_newline): only write to debugger if in
10074         WIN32_NATIVE.
10075
10076         * elhash.c (Fmake_hash_table): update doc string.
10077
10078         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10079         messages whilst in GC. This at least stops XEmacs crashing but has
10080         the potential for wierd behaviour.
10081
10082 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10083
10084         * config.h.in:
10085         Make existence of s&m files optional.
10086
10087         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10088         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10089         * s/gnu.h: Remove HAVE_GETLOADAVG.
10090         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10091         * s/sol2.h: Remove HAVE_GETLOADAVG.
10092         * lisp.h: Remove getloadavg() declaration.
10093         * fns.c:
10094         Include <sys/loadavg.h> if available.
10095         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10096         * config.h.in:  Group together getloadavg()-related macros.
10097         Use only configure-time tests to detect getloadavg().
10098
10099 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10100
10101         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10102
10103 2000-07-25  Andy Piper  <andy@xemacs.org>
10104
10105         * syswindows.h: add tchar.h for native builds.
10106
10107         * frame.c (syms_of_frame): remove set-glyph-image.
10108
10109         * general-slots.h: add Qset_glyph_image.
10110
10111         * glyphs-widget.c (layout_update): add domain arg to
10112         set-glyph-image.
10113         (syms_of_glyphs_widget): remove set-glyph-image.
10114
10115 2000-07-23  Ben Wing  <ben@xemacs.org>
10116
10117         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10118         Vpopup_frame_list.
10119
10120 2000-07-22  Andy Piper  <andy@xemacs.org>
10121
10122         * symsinit.h: add syms_of_win32().
10123
10124         * gui-msw.c (syms_of_gui_mswindows): remove
10125         Fmswindows_shell_execute.
10126         (Fmswindows_shell_execute): moved to win32.c.
10127
10128         * emacs.c (main_1): add syms_of_win32 ().
10129
10130         * win32.c (init_potentially_nonexistent_functions): rewrite in
10131         compiler-friendly terms.
10132         (Fmswindows_shell_execute): move here from gui-msw.c.
10133         (syms_of_win32): new.
10134
10135         * device-msw.c (Fmswindows_printer_list): clean up args to
10136         EnumPrinters.
10137         Don't include tchar under cygwin or mingw.
10138         (msprinter_default_printer): make cygwin-friendly.
10139
10140 2000-07-21  Andy Piper  <andy@xemacs.org>
10141
10142         * glyphs-widget.c (image_instantiator_tree_view): use tab
10143         control's update function.
10144         (layout_property): new function. Retrieve items.
10145
10146         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10147         function. Re-populate the tree view from the pending items.
10148
10149         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10150         is designated the parent if the domain is an image instance. This
10151         is needed so that dirtiness can be cascade up the hierarchy and
10152         thus for layout children to be redisplayed correctly.
10153         (allocate_image_instance): rename glyph -> parent.
10154
10155         * redisplay.h: change redisplay_output_layout signature.
10156
10157         * redisplay-msw.c (mswindows_output_display_block): use domain
10158         arg.
10159
10160         * redisplay-x.c (x_output_display_block): use domain arg.
10161
10162 2000-07-10  Andy Piper  <andy@xemacs.org>
10163
10164         * window.c (Fset_window_configuration): add comment.
10165
10166         * redisplay-output.c (compare_runes):
10167         (redisplay_output_subwindow): redisplay rather than update subwindow.
10168         (redisplay_output_layout): ditto.
10169
10170         * redisplay-msw.c (mswindows_frame_output_end):
10171         (mswindows_frame_output_end): make defer window pos optional.
10172
10173         * lisp.h: add Flast.
10174
10175         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10176         normalize method. Change update method to be for changed
10177         instantiators. Add redisplay method. Change signature of layout
10178         method.
10179         (struct Lisp_Image_Instance): add instantiator.
10180         (IMAGE_INSTANCE_INSTANTIATOR): new.
10181         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10182         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10183         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10184
10185         * glyphs.c:
10186         (find_instantiator_differences): new function.
10187         (Fset_instantiator_property): new convenience function.
10188         (check_image_instance_structure): strictly check for vector
10189         instantiators.
10190         (normalize_image_instantiator): make non-static.
10191         (instantiate_image_instantiator): pass on dest_mask and use new
10192         signatures for image_instance_layout and friends.
10193         (mark_image_instance): mark the instantiator. Mark the subwindow
10194         face not the widget face.
10195         (image_instance_equal): add instantiator.
10196         (image_instance_hash): ditto.
10197         (allocate_image_instance): ditto.
10198         (Fset_image_instance_property): removed.
10199         (Fimage_instance_file_name): ditto.
10200         (Fcolorize_image_instance): ditto.
10201         (image_instance_layout): add offsets to be set.
10202         (update_image_instance): new function. update an image instance
10203         from its changed instantiator.
10204         (inherit_normalize): add dest_mask.
10205         (xbm_normalize): ditto.
10206         (xface_normalize): ditto.
10207         (xpm_normalize): ditto.
10208         (text_update): set_property -> update.
10209         (image_instantiate): use the glyph identity as a hash key, not the
10210         instantiator.
10211         (glyph_width): use new image_instance_layout signature.
10212         (glyph_ascent): ditto.
10213         (glyph_descent): ditto.
10214         (glyph_height): ditto.
10215         (glyph_query_geometry): ressurrect.
10216         (glyph_layout): ditto.
10217         (redisplay_subwindow): update -> redisplay.
10218         (syms_of_glyphs): add Fset_instantiator_property.
10219         (image_instantiator_format_create): set_property -> update.
10220
10221         * glyphs-x.c:
10222         (autodetect_normalize): add dest_maks to signature.
10223         (x_redisplay_subwindow): update -> redisplay.
10224         (x_redisplay_widget): ditto.
10225         (x_button_redisplay): ditto.
10226         (x_progress_gauge_redisplay): ditto.
10227         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10228         stacking order.
10229         (console_type_create_glyphs_x): update -> redisplay.
10230         (image_instantiator_format_create_glyphs_x): ditto.
10231
10232         * glyphs-widget.c:
10233         (check_valid_instantiator): disallow glyphs in the instantiator,
10234         they must now be vectors.
10235         (check_valid_instantiator_list): ditto.
10236         (glyph_instantiator_to_glyph): use internal symbol rather than
10237         intern.
10238         (widget_update): renamed from widget_set_property. Call cascaded
10239         update methods.
10240         (redisplay_widget): renamed from update_widget.
10241         (widget_layout): image_instance_layout now takes position as well
10242         as size.
10243         (widget_normalize): ditto.
10244         (widget_instantiate): ditto.
10245         (tab_control_query_geometry) ditto.:
10246         (tab_control_update): renamed from tab_control_set_property.
10247         (progress_gauge_update): set_property -> update.
10248         (layout_normalize): rewrite so that child instantiators are
10249         normalized also.
10250         (layout_update): new function. Create glyphs from the normalized
10251         children and cope with any other layout keywords. We do not
10252         instantiate children here that will be take care of by
10253         redisplay_output_layout.
10254         (layout_instantiate): call layout_update and not much else.
10255         (layout_post_instantiate): not sure whether this is needed
10256         anymore.
10257         (layout_query_geometry): query glyph geometry rather than
10258         image_instance geometry.
10259         (layout_layout): set offsets from pass in parameters. Use glyph
10260         geometry and layout functions rather than image instance ones.
10261         (native_layout_layout): ditto.
10262         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10263         (image_instantiator_widget): set_property -> update.
10264         (image_instantiator_buttons): ditto.
10265         (image_instantiator_progress_guage): ditto.
10266         (image_instantiator_tab_control): ditto.
10267         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10268         (image_instantiator_layout): add update method.
10269
10270         * glyphs-msw.c (bmp_normalize):
10271         (mswindows_resource_normalize): add dest_mask so that it can be
10272         proprogated by layout_normalize.
10273         (begin_defer_window_pos): make optional because it may not be the
10274         right thing to do and it introduces differences with X.
10275         (mswindows_unmap_subwindow): ditto.
10276         (mswindows_map_subwindow): ditto.
10277         (mswindows_redisplay_subwindow): renamed from
10278         mswindows_update_subwindow.
10279         (mswindows_redisplay_widget): ditto.
10280         (mswindows_button_redisplay): renamed from
10281         mswindows_button_update. Update is now what the instantiation
10282         function does for a changed instantiator.
10283         (mswindows_progress_gauge_instantiate): set the progress value
10284         here if appropriate.
10285         (mswindows_tab_control_redisplay): cope with re-ordering of the
10286         members of the tab widget by simply selecting the new top
10287         widget. This makes things appear ok if you click on a tab.
10288         (mswindows_combo_box_instantiate): image_instance_layout now takes
10289         position as well as size.
10290         (mswindows_progress_gauge_redisplay): renamed from
10291         mswindows_progress_gauge_update.
10292         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10293         (image_instantiator_format_create_glyphs_mswindows): ditto.
10294
10295         * glyphs-eimage.c (jpeg_normalize):
10296         (gif_normalize):
10297         (png_normalize):
10298         (tiff_normalize): add dest_mask so that it can be proprogated by
10299         layout_normalize.
10300
10301         * elhash.c:
10302         (print_hash_table):
10303         (hash_table_weakness_validate):
10304         (decode_hash_table_weakness):
10305         (Fhash_table_weakness):
10306         (Fhash_table_type):
10307         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10308
10309         * console.h (struct console_methods): move update_* to
10310         redisplay_*.
10311
10312 2000-07-20  Ben Wing  <ben@xemacs.org>
10313
10314         * *.[ch] (XSETOBJ): remove unused middle argument.
10315         lisp-disunion.h: correct wrap_object() to one argument.
10316
10317 2000-07-15  Ben Wing  <ben@xemacs.org>
10318
10319         * s/cygwin32.h:
10320         * s/cygwin32.h (CYGWIN_CONV_PATH):
10321         Add missing logb prototype for v1.1.
10322         Use post-b20 names and alias to pre-b20 names when pre-b20.
10323
10324         * s/windowsnt.h: [5].
10325
10326 2000-07-15  Ben Wing  <ben@xemacs.org>
10327
10328         * Makefile.in.in (x_objs):
10329         * Makefile.in.in (sheap_objs):
10330         * Makefile.in.in (objs):
10331         added win32.o, cosmetic cleanups.
10332
10333         * alloc.c (Fmake_byte_code):
10334         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10335         etc. macros which declare their own args now.
10336
10337         * alloc.c (syms_of_alloc):
10338         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10339
10340         * buffer.c:
10341         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10342
10343         * buffer.c (Fget_file_buffer):
10344         Fixed GCPRO problem.
10345
10346         * buffer.c (get_truename_buffer):
10347         Fixed comment about GC checking.
10348
10349         * buffer.c (syms_of_buffer):
10350         Undeclared those dedicated frame funs.
10351         [2].
10352
10353         * buffer.h:
10354         Define convenience macros for internal/external conversions.
10355         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10356         and Qenvironment_variable_encoding for cleaner code.
10357
10358         * bufslots.h:
10359         Remove dedicated-frame; in lisp.
10360
10361         * bytecode.c (funcall_compiled_function):
10362         [1].
10363
10364         * bytecode.c (syms_of_bytecode):
10365         [2].
10366
10367         * console-msw.c:
10368         * console-msw.c (mswindows_show_console): Rewrote.
10369
10370         * console-msw.c (Fmswindows_debugging_output): New.
10371         Sends to OutputDebugString (special MSWin debugger interface).
10372
10373         * console-msw.c (Fmswindows_message_box):
10374         Fixed stupid bugs so it works when called from kill-emacs.
10375
10376         * console-msw.c (syms_of_console_mswindows):
10377         Declare Fmswindows_debugging_output.
10378
10379         * console-msw.h:
10380         New MSWin prototypes.
10381
10382         * console-msw.h (struct mswindows_frame):
10383         New entry last-click-mods for improved button-modifier support.
10384
10385         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10386         New struct entry `popup' with corresponding accessor.
10387
10388         * console-x.c:
10389         * console-x.c (split_up_display_spec):
10390         * console-x.c (get_display_arg_connection):
10391         * console-x.c (x_semi_canonicalize_console_connection):
10392         * console-x.c (x_canonicalize_device_connection):
10393         [[[6]]]: Change char to more specific type.
10394         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10395
10396         * console-x.c (x_semi_canonicalize_console_connection):
10397         * console-x.c (x_canonicalize_device_connection):
10398         [[[9]]]: Fix up error signalling to use new structured error system.
10399
10400         * console-x.h:
10401         [[[4]]]: Define codesys aliases:
10402         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10403         Qx_color_name_encoding, Qx_display_name_encoding.
10404
10405         * console.h (struct console_methods):
10406         New method make_dialog_box_internal supersedes older
10407         popup_dialog_box method.
10408
10409         * data.c:
10410         Define many new errors, part of new structured errors.
10411
10412         * data.c (init_errors_once_early):
10413         * data.c (syms_of_data):
10414         [2].
10415
10416         * device-msw.c (mswindows_init_device):
10417         [[[5]]]: Cleanup to support NT 3.51.
10418
10419         * device-msw.c (decode_devmode): Cleanup.
10420
10421         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10422         * device-msw.c (mswindows_handle_print_dialog_box):
10423         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10424         * device-msw.c (syms_of_device_mswindows):
10425         Delete the dialog box primitives recently introduced by Kirill and
10426         instead interface to general dialog box interface.
10427
10428         * device-x.c:
10429         * device-x.c (compute_x_app_name):
10430         * device-x.c (x_init_device):
10431         * device-x.c (Fx_valid_keysym_name_p):
10432         * device-x.c (Fx_set_font_path):
10433         [6].
10434         [7].
10435
10436         * device.h (wrap_device): New.
10437         First of its kind; meant to replace XSETDEVICE.
10438
10439         * dialog-msw.c: Many file-dialog symbols.
10440
10441         * dialog-msw.c (mswindows_register_popup_frame): New.
10442         * dialog-msw.c (mswindows_is_dialog_msg): New.
10443         For supporting kbd traversal in dialog boxes.
10444
10445         * dialog-msw.c (dialog_proc):
10446         Support hitting ESC in dialogs.
10447
10448         * dialog-msw.c (struct):
10449         Common dialog box errors.
10450
10451         * dialog-msw.c (handle_file_dialog_box): New.
10452         Add file dialog code.
10453
10454         * dialog-msw.c (handle_question_dialog_box):
10455         Redo existing code to support new question dialog syntax.
10456
10457         * dialog-msw.c (console_type_create_dialog_mswindows):
10458         We support new dialog console method.
10459
10460         * dialog-msw.c (syms_of_dialog_mswindows):
10461         * dialog-msw.c (vars_of_dialog_mswindows):
10462         New file dialog symbols, vars.
10463
10464         * dialog-x.c:
10465         * dialog-x.c (maybe_run_dbox_text_callback):
10466         * dialog-x.c (dbox_descriptor_to_widget_value):
10467         * dialog-x.c (x_make_dialog_box_internal):
10468         * dialog-x.c (console_type_create_dialog_x):
10469         Mule-ize entire file.
10470         Redo to support question dialog syntax.
10471         [6].
10472
10473         * dialog.c:
10474         * dialog.c (Fmake_dialog_box_internal):
10475         * dialog.c (syms_of_dialog):
10476         Kill old popup-dialog-box, replace with new primitive.
10477         Just call device method or signal error.
10478
10479         * eldap.c (Fldap_open):
10480         * eldap.c (Fldap_search_basic):
10481         * eldap.c (Fldap_add):
10482         * eldap.c (Fldap_modify):
10483         [1].
10484         [7].
10485
10486         * emacs.c:
10487         * emacs.c (make_arg_list_1):
10488         * emacs.c (make_arg_list):
10489         Mule-ize call to dll_init().
10490         [6].
10491         [8].
10492
10493         * emacs.c (make_argc_argv):
10494         * emacs.c (free_argc_argv):
10495         * emacs.c (init_cmdargs):
10496         * emacs.c (main_1):
10497         * emacs.c (Fkill_emacs):
10498         * emacs.c (Fdump_emacs):
10499         Update comments about what can be used in syms_* etc.
10500         Call init_win32() when necessary.
10501         Fix up MS Win dialog box in kill-buffer to actually work right.
10502         [7].
10503
10504         * eval.c:
10505         * eval.c (For):
10506         * eval.c (Fand):
10507         * eval.c (Fprogn):
10508         * eval.c (Fprog1):
10509         * eval.c (Fprog2):
10510         * eval.c (FletX):
10511         * eval.c (Flet):
10512         * eval.c (condition_case_3):
10513         * eval.c (Feval):
10514         * eval.c (function_argcount):
10515         * eval.c (funcall_lambda):
10516         [1].
10517
10518         * eval.c (type_error): New.
10519         * eval.c (maybe_type_error): New.
10520         * eval.c (continuable_type_error): New.
10521         * eval.c (maybe_continuable_type_error): New.
10522         * eval.c (type_error_with_frob): New.
10523         * eval.c (maybe_type_error_with_frob): New.
10524         * eval.c (continuable_type_error_with_frob): New.
10525         * eval.c (maybe_continuable_type_error_with_frob): New.
10526         New functions for use with structured errors.
10527
10528         * event-Xt.c:
10529         * event-Xt.c (x_event_to_emacs_event):
10530         Buttons are now modifiers too.
10531
10532         * event-Xt.c (emacs_Xt_current_event_timestamp):
10533         Implement new event method.
10534         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10535
10536         * event-msw.c:
10537         * event-msw.c (ntpipe_shove_writer): [5].
10538         * event-msw.c (mswindows_enqueue_mouse_button_event):
10539         * event-msw.c (mswindows_drain_windows_queue):
10540         * event-msw.c (mswindows_wnd_proc): [7].
10541         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10542         * event-msw.c (mswindows_modifier_state):
10543         Throughout: support new button modifiers.
10544
10545         * event-msw.c (emacs_mswindows_current_event_timestamp):
10546         Implement new event method.
10547         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10548
10549         * event-stream.c:
10550         * event-stream.c (event_stream_current_event_timestamp): New.
10551         * event-stream.c (maybe_kbd_translate): New functionality.
10552         * event-stream.c (vars_of_event_stream):
10553         Document new kbd-translate-table functionality.
10554
10555         * event-stream.c (Fcurrent_event_timestamp): New.
10556         New primitive for use in fabricated events.
10557         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10558
10559         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10560
10561         * events.c:
10562         * events.c (Fmake_event):
10563         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10564         [1].
10565         [9].
10566
10567         * events.c (format_event_object): fix gcc warnings.
10568
10569         * events.c (Fevent_timestamp): Document new primitives.
10570
10571         * events.c (TIMESTAMP_HALFSPACE): New.
10572
10573         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10574         comparing timestamps correctly (half-space algorithm).
10575
10576         * events.c (Fevent_modifier_bits): Doc fix.
10577
10578         * events.c (Fevent_modifiers): Major doc addition.
10579         * events.c (event_x_y_pixel_internal): Typo fix.
10580         * events.c (syms_of_events): Declare new primitives.
10581
10582         * events.h:
10583         Update long comment for button modifiers, timestamps.
10584
10585         * events.h (struct event_stream):
10586         New current_event_timestamp method.
10587
10588         * extents.c:
10589         * extents.c (extent_in_region_p):
10590         * extents.c (decode_extent):
10591         * extents.c (Fset_extent_parent):
10592         * extents.c (decode_map_extents_flags):
10593         Fix gcc warnings.
10594         [9].
10595
10596         * extents.c (struct extent_at_arg):
10597         * extents.c (decode_extent_at_flag):
10598         * extents.c (extent_at_mapper):
10599         * extents.c (extent_at_bytind):
10600         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10601         * extents.c (Fextents_at): New primitive. [9].
10602         * extents.c (symbol_to_glyph_layout): [9].
10603         Support new primitive `extents-at'.
10604
10605
10606         * extents.c (get_text_property_bytind):
10607         extent_at_bytind has another arg.
10608         [9].
10609
10610         * extents.c (syms_of_extents): New primitive.
10611
10612         * file-coding.c (Fmake_coding_system): [1].
10613         * file-coding.c (subsidiary_coding_system): fix gcc warning
10614         * file-coding.c (syms_of_file_coding): [2].
10615
10616         * fileio.c (Fexpand_file_name):
10617         * fileio.c (Fsysnetunam):
10618         * fileio.c (Ffile_exists_p):
10619         * fileio.c (Ffile_executable_p):
10620         * fileio.c (Fverify_visited_file_modtime):
10621         Clean up GCPROing.
10622
10623         * fileio.c (syms_of_fileio): [2].
10624
10625         * filelock.c (lock_file_1):
10626         * filelock.c (current_lock_owner):
10627         * filelock.c (lock_if_free):
10628         * filelock.c (lock_file):
10629         * filelock.c (unlock_file):
10630         Clean up GCPROing.
10631
10632         * fns.c (concat): Fix gcc warning.
10633
10634         * fns.c (Fmember):
10635         * fns.c (Fold_member):
10636         * fns.c (Fmemq):
10637         * fns.c (Fold_memq):
10638         * fns.c (memq_no_quit):
10639         * fns.c (Fassoc):
10640         * fns.c (Fold_assoc):
10641         * fns.c (Fassq):
10642         * fns.c (Fold_assq):
10643         * fns.c (assq_no_quit):
10644         * fns.c (Frassoc):
10645         * fns.c (Fold_rassoc):
10646         * fns.c (Frassq):
10647         * fns.c (Fold_rassq):
10648         * fns.c (rassq_no_quit):
10649         * fns.c (Fdelete):
10650         * fns.c (Fold_delete):
10651         * fns.c (Fdelq):
10652         * fns.c (Fold_delq):
10653         * fns.c (delq_no_quit):
10654         * fns.c (Fremassoc):
10655         * fns.c (Fremassq):
10656         * fns.c (remassq_no_quit):
10657         * fns.c (Fremrassoc):
10658         * fns.c (Fremrassq):
10659         * fns.c (remrassq_no_quit):
10660         * fns.c (Freverse):
10661         * fns.c (mapcar1):
10662         [1].
10663
10664         * frame-msw.c (mswindows_init_frame_1):
10665         * frame-msw.c (mswindows_delete_frame):
10666         Register popups with dialog code so keyboard traversing works.
10667
10668         * frame-tty.c (tty_raise_frame_no_select): [1].
10669
10670         * frame-x.c:
10671         * frame-x.c (x_set_frame_text_value):
10672         * frame-x.c (x_set_frame_properties):
10673         * frame-x.c (x_create_widgets):
10674         [7].
10675
10676         * frame.c:
10677         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10678
10679         * frame.h (wrap_frame): New.
10680         Macro like wrap_device.
10681
10682         * general.c:
10683         * general.c (SYMBOL):
10684         * general.c (syms_of_general):
10685         Major reorg.  This is now just a wrapper and symbols themselves
10686         are listed in general-slots.h.
10687
10688         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10689         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10690
10691         * glyphs-msw.c (mswindows_native_layout_instantiate):
10692         Add DS_CONTROL so keyboard traversal will work.
10693
10694         * glyphs-widget.c:
10695         * glyphs-widget.c (syms_of_glyphs_widget):
10696         Move some symbols to general-slots.h.
10697
10698         * glyphs-x.c:
10699         * glyphs-x.c (xbm_instantiate_1):
10700         * glyphs-x.c (x_xbm_instantiate):
10701         * glyphs-x.c (x_xface_instantiate):
10702         * glyphs-x.c (autodetect_instantiate):
10703         * glyphs-x.c (cursor_font_instantiate):
10704         * glyphs-x.c (x_update_widget):
10705         * glyphs-x.c (x_widget_instantiate):
10706         * glyphs.c (bitmap_to_lisp_data):
10707         * glyphs.c (pixmap_to_lisp_data):
10708         [7].
10709
10710         * glyphs.c (syms_of_glyphs):
10711         [2].
10712
10713         * gui-x.c:
10714         * gui-x.c (print_widget_value):
10715         * gui-x.c (menu_separator_style_and_to_external):
10716         * gui-x.c (add_accel_and_to_external):
10717         * gui-x.c (button_item_to_widget_value):
10718         * gui-x.c (gui_items_to_widget_values_1):
10719         * gui-x.c (gui_items_to_widget_values):
10720         * gui-x.c (syms_of_gui_x):
10721         * gui-x.c (vars_of_gui_x):
10722         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10723         [9].
10724
10725         * gui-x.h:
10726         Muleize, prototype changes matching gui-x.c.
10727
10728         * gui.c:
10729         * gui.c (separator_string_p):
10730         * gui.c (gui_item_add_keyval_pair):
10731         * gui.c (make_gui_item_from_keywords_internal):
10732         * gui.c (signal_too_long_error):
10733         * gui.c (parse_gui_item_tree_item):
10734         * gui.c (syms_of_gui):
10735         * gui.c (vars_of_gui):
10736         * gui.h:
10737         menu-no-selection-hook moved here (used by MSWin).
10738         Move some symbols to general-slots.h.
10739         [6].
10740         [9].
10741
10742         * insdel.c (get_buffer_pos_char):
10743         * insdel.c (get_buffer_range_char):
10744         Add GC comments.
10745
10746         * keymap.c (keymap_lookup_directly):
10747         * keymap.c (keymap_store):
10748         * keymap.c (ensure_meta_prefix_char_keymapp):
10749         * keymap.c (describe_map):
10750         * keymap.h:
10751         Support new button modifiers.
10752
10753         * lisp-disunion.h (wrap_object):
10754         * lisp-disunion.h (XSETOBJ):
10755         Rename make_obj to wrap_object.
10756
10757         * lisp-union.h:
10758         * lisp-union.h (make_int):
10759         * lisp-union.h (make_char):
10760         Support wrap_object.
10761
10762         * lisp.h:
10763         * lisp.h (LIST_LOOP):
10764         * lisp.h (EXTERNAL_LIST_LOOP):
10765         * lisp.h (LIST_LOOP_2):
10766         * lisp.h (EXTERNAL_LIST_LOOP_1):
10767         * lisp.h (EXTERNAL_LIST_LOOP_2):
10768         * lisp.h (EXTERNAL_LIST_LOOP_3):
10769         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10770         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10771         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10772         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10773         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10774         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10775         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10776         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10777         * lisp.h (struct Lisp_Symbol):
10778         * lisp.h (maybe_continuable_error_with_frob):
10779         Fix up section comments.
10780         Add new types for char to indicate usage.
10781         Delete symbols auto-generated from general-slots.h.
10782         Add prototypes for structured error functions.
10783         Add long comments describing looping macros and change interface
10784         so that lvalues are automatically declared.
10785         Add NO_DECLARE macro in case callers want to declare lvalues
10786         themselves.
10787
10788         * lread.c (read_syntax_error):
10789         * lread.c (continuable_read_syntax_error):
10790         * lread.c (read_structure):
10791         * lread.c (sequence_reader):
10792         * lread.c (read_list_conser):
10793         * lread.c (read_compiled_function):
10794         Rename syntax_error and continuable_syntax_error to avoid clash
10795         with same-named structured error functions.
10796
10797         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10798         * menubar-msw.c (populate_menu_add_item):
10799         * menubar-msw.c (populate_or_checksum_helper):
10800         [5].
10801         [9].
10802
10803         * menubar-x.c:
10804         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10805         Mule-ize whole file.
10806
10807         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10808
10809         * mule-charset.c (Fmake_charset):
10810         * mule-wnnfns.c (Fwnn_set_param):
10811         [1].
10812
10813         * ntproc.c (create_child):
10814         * ntproc.c (Fwin32_set_current_locale):
10815         Add comments portending doom.
10816
10817         * objects-msw.c:
10818         * objects-msw.c (old_font_enum_callback_2):
10819         * objects-msw.c (font_enum_callback_1):
10820         * objects-msw.c (mswindows_enumerate_fonts):
10821         [5].
10822
10823         * objects-x.c:
10824         * objects-x.c (allocate_nearest_color):
10825         * objects-x.c (x_parse_nearest_color):
10826         * objects-x.c (x_initialize_color_instance):
10827         * objects-x.c (x_print_color_instance):
10828         * objects-x.c (x_finalize_color_instance):
10829         * objects-x.c (x_valid_color_name_p):
10830         * objects-x.c (x_initialize_font_instance):
10831         * objects-x.c (x_print_font_instance):
10832         * objects-x.c (valid_x_font_name_p):
10833         * objects-x.c (truename_via_FONT_prop):
10834         * objects-x.c (truename_via_random_props):
10835         * objects-x.c (truename_via_XListFonts):
10836         * objects-x.c (x_font_truename):
10837         * objects-x.c (x_font_instance_truename):
10838         * objects-x.c (x_font_instance_properties):
10839         * objects-x.c (x_list_fonts):
10840         * objects-x.c (x_find_charset_font):
10841         Mule-ize entire file.
10842         [7].
10843
10844         * objects-x.h:
10845         Mule-verify.
10846
10847         * print.c:
10848         * print.c (std_handle_out_external):
10849         * print.c (debug_print_no_newline):
10850         * print.c (syms_of_print):
10851         Output to all debugger kinds in debug-print.
10852         Fix console-output code under MSWin to actually work.
10853
10854         * process-nt.c (send_signal):
10855         * process-nt.c (nt_create_process):
10856         Use newer Unicode macros.
10857
10858         * process-unix.c (unix_create_process):
10859         * process-unix.c (unix_canonicalize_host_name):
10860         * process-unix.c (unix_open_network_stream):
10861         [7].
10862
10863         * scrollbar-x.c:
10864         Mule-verify.
10865
10866         * search.c (syms_of_search):
10867         [2].
10868
10869         * select-msw.c (mswindows_destroy_selection):
10870         Use LIST_LOOP_2.
10871
10872         * select-x.c (symbol_to_x_atom):
10873         [7].
10874
10875         * select.c (syms_of_select):
10876         [2].
10877
10878         * sound.c (Fplay_sound_file):
10879         [7].
10880
10881         * specifier.c:
10882         * specifier.c (decode_specifier_type):
10883         * specifier.c (Fvalid_specifier_locale_type_p):
10884         * specifier.c (check_valid_locale_or_locale_type):
10885         * specifier.c (decode_locale):
10886         * specifier.c (decode_locale_type):
10887         * specifier.c (decode_locale_list):
10888         * specifier.c (check_valid_domain):
10889         * specifier.c (decode_specifier_tag_set):
10890         * specifier.c (Fcanonicalize_tag_set):
10891         * specifier.c (Fdefine_specifier_tag):
10892         * specifier.c (Fspecifier_tag_predicate):
10893         * specifier.c (check_valid_inst_list):
10894         * specifier.c (check_valid_spec_list):
10895         * specifier.c (decode_how_to_add_specification):
10896         * specifier.c (check_modifiable_specifier):
10897         * specifier.c (specifier_add_spec):
10898         * specifier.c (boolean_validate):
10899         * specifier.c (display_table_validate):
10900         [9].
10901
10902         * specifier.c (syms_of_specifier):
10903         Move some symbols to general-slots.h.
10904         [2].
10905
10906         * symbols.c:
10907         * symbols.c (Fmapatoms):
10908         * symbols.c (Fapropos_internal):
10909         Add GCPROs.
10910
10911         * symbols.c (set_default_buffer_slot_variable):
10912         * symbols.c (set_default_console_slot_variable):
10913         [1].
10914
10915         * symbols.c (defsymbol_massage_name_1):
10916         * symbols.c (defkeyword_massage_name):
10917         * symbols.c (deferror_1):
10918         * symbols.c (deferror):
10919         * symbols.c (deferror_massage_name_and_message):
10920         * symeval.h:
10921         * symeval.h (DEFSYMBOL):
10922         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10923
10924         * symbols.c (syms_of_symbols):
10925         [2].
10926
10927         * symsinit.h:
10928         * symsinit.h (init_win32): New.
10929         Also new is syms_of_dialog_mswindows.
10930
10931         * syswindows.h:
10932         Add new Unicode macros, missing Cygwin wide-char functions,
10933         convenience conversion macros for Qmswindows_tstr, macros for
10934         encapsulating required MSWin <-> Cygwin filename conversions,
10935         prototype for dynamically-extracted (not in NT 3.51) functions.
10936
10937         * toolbar-x.c:
10938         Mule-verify.
10939
10940         * tooltalk.c (Fadd_tooltalk_message_arg):
10941         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10942         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10943         [7].
10944
10945         * tooltalk.c (syms_of_tooltalk):
10946         [2].
10947
10948         * unexnt.c:
10949         * unexnt.c (unexec):
10950         Fix up headers, declaration of unexec() to be more standard.
10951
10952 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10953
10954         * offix.h: Revert change to guard macros - they're used in offix.c!
10955
10956 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10957
10958         * lisp.h: Defsubred Fdelete.
10959
10960         * console-msw.h:  (msprinter_default_printer): Added.
10961
10962         * console-msw.c (msprinter_canonicalize_console_connection):
10963         (msprinter_canonicalize_device_connection): Added.
10964
10965         * device-msw.c (msprinter_default_printer):
10966         (Fmswingows_get_default_printer):
10967         (signal_enum_priner_error):
10968         (Fmswingows_printer_list): Added.
10969
10970 2000-07-19  Martin Buchholz <martin@xemacs.org>
10971
10972         * XEmacs 21.2.35 is released.
10973
10974 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10975
10976         * select-x.c (x_handle_selection_request):
10977         Text selected in xemacs and pasted into xterm failed to appear.
10978         Spelling fixes and cosmetic changes.
10979
10980 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10981
10982         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10983         XEmacs frame (fix for doubling chars in dialog boxes).
10984
10985 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10986
10987         * select.c (select_convert_in, select_convert_out):
10988         Don't call intern() every time.
10989
10990         * select.c (Qselect_convert_in, Qselect_convert_out): New.
10991         * select.c (vars_of_select): Initialise them.
10992
10993 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10994
10995         * select.c (selection-coercible-types): New.
10996
10997         * select.c (own-selection-internal):
10998         * select.c (get-selection-internal):
10999         MULE bug fix - these should default to COMPOUND_TEXT and not
11000         STRING for MULE. I think.
11001
11002         * select.c (select_convert_out): Use selection-coercible-types
11003         to find types that we can attempt to perform coercions on.
11004
11005 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11006
11007         * mule-wnnfns.c:
11008         * mule-canna.c:
11009         Add coding: cookie to identify encoding.
11010
11011         * mule-canna.c (CANNA_mode_keys): make static.
11012         Use proper prototypes, even for functions of no arguments.
11013         Remove external prototype for Fding().
11014
11015         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11016
11017         * select.c (syms_of_select): Add missing DEFSUBR.
11018
11019 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11020
11021         * select.c (get_selection_internal, own_selection_internal):
11022         Make the type default to STRING, rather than placing a nil type
11023         into Vselection_alist.
11024
11025 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11026
11027         * gpmevent.c (tty_selection_exists_p):
11028         * gpmevent.c (tty_own_selection):
11029         Updated parameter lists.
11030
11031 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11032
11033         * select.h (selection-alist): Removed declaration.
11034
11035         * select.h (get_local_selection):
11036         * select.c (get_local_selection):
11037         Made static.
11038
11039         * select.h (convert_selection): Removed declaration.
11040         * select.c (convert_selection): Removed.
11041         This function belongs in Lisp.
11042
11043         * select.h (select_convert_in): Declare.
11044         * select.h (select_convert_out): Declare.
11045         * select.c (select_convert_in): New.
11046         * select.c (select_convert_out): New.
11047         New conversion functions for other files to call.
11048
11049         * select.h (select_notify_buffer_kill): Declare.
11050         * select.c (select_notify_buffer_kill): New.
11051         New functions that get called from kill-buffer.
11052
11053         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11054         X-specific lisp code.
11055
11056         * select.h: Declare some of the lisp-visible functions for
11057         external use.
11058
11059         * select.c (clean_local_selection_data): Removed. This was
11060         a disgusting function, and previously should have been in
11061         select-x.c in any case. The functionality is now provided
11062         in select-convert-from-integer (select.el).
11063
11064         * select.c (available-selection-types): Fixed stupidity where
11065         INTEGER and ATOM got added twice. Also add STRING when we see an
11066         extent.
11067
11068         * select.c (get-selection-internal): Removed symbol stripping. No
11069         longer causes conversion when data comes from the internal cache.
11070
11071         * select.c (syms_of_select): Added new functions.
11072
11073         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11074         error checking - previously this called abort!
11075
11076         * select-x.c (x_own_selection): Changed comment.
11077
11078         * select-x.c (x_handle_selection_request): Use select_convert_out.
11079         Don't mess with selection-alist; it's an internal variable of select.c.
11080
11081         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11082
11083         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11084         rather than messing with selection-alist.
11085
11086         * select-msw.c (mswindows_get_foreign_selection):
11087         Use TO_INTERNAL_FORMAT rather than hacking.
11088
11089 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11090
11091         * process-unix.c (unix_open_multicast_group):
11092         (unix_open_multicast_group): Remove useless casts.
11093
11094 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11095
11096         * sound.c (Fplay_sound): Fix `unused variable' warning.
11097
11098         * emacs.c (main): Use correct type for _environ on SCO5.
11099
11100 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11101
11102         * console.h (own_selection_method):
11103         * console.h (selection_exists_p_method):
11104         * console.h (available_selection_types_method): New.
11105         * console.h (register_selection_data_type_method): New.
11106         * console.h (selection_data_type_name): New.
11107
11108         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11109         function & alist to track GlobalAlloc()'d handles that need
11110         releasing when the clipboard data gets replaced or emptied.
11111
11112         * event-msw.c (mswindows_wnd_proc): Call it.
11113
11114         * lisp.h, general.c (Qappend): New symbol representing a
11115         `how-to-add' mode.
11116
11117         * select.c (own-selection-internal):
11118         * select.c (selection-exists-p):
11119         * select.c (available-selection-types): New.
11120         * select.c (register-selection-data-type): New.
11121         * select.c (selection-data-type-name): New.  New functions to deal
11122         with device-specific selection data formats.
11123         * select.c (selection-converter-out-alist): Renamed.
11124         * select.c (selection-converter-in-alist): New.
11125         * select.c (selection-appender-alist): New.  Added new alists.
11126         * select.c (syms_of_select, vars_of_select): Added new symbols &
11127         variables.
11128         * select.c (get_local_selection): Split.
11129         * select.c: Removed spurious type checking - selections may now be
11130         of any type, not just strings.
11131         * select.c (own-selection-internal):
11132
11133         * select.h, select.c (convert_selection): New. Created
11134         convert_selection() function based on get_local_selection().
11135         * select.h, select.c (QCF_*): New symbols representing mswindows
11136         clipboard formats.
11137         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11138         symbols representing `how-to-add' modes.
11139
11140         * select-msw.c (x_sym_p): New.
11141         * select-msw.c (symbol_to_ms_cf): New.
11142         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11143         symbols & clipboard formats. Can also handle string names.
11144         * select-msw.c (mswindows_own_selection):
11145         * select-msw.c (mswindows_selection_exists_p):
11146         Added `data-type' parameter. Use it.
11147         * select-msw.c (mswindows_available_selection_types): New.
11148         * select-msw.c (mswindows_register_selection_data_type): New.
11149         * select-msw.c (mswindows_selection_data_type_name): New.
11150         * select-msw.c (mswindows_own_selection):
11151         * select-msw.c (mswindows_get_foreign_selection):
11152         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11153         * select-msw.c (console_create_select_mswindows): Added new methods.
11154         * select-msw.c (mswindows_destroy_selection): New.
11155         * select-msw.c (Vhandle_alist): New list.
11156         * select-msw.c (mswindows_own_selection):
11157
11158         * select-x.c (x_own_selection):
11159         * select-x.c (x_selection_exists_p):
11160         * select-x.c: Added some comments about maybe using new
11161         functionality.
11162         * select-x.c (x_own_selection):
11163
11164         * specifier.c: Remove definition of Qappend (now in general.c)
11165         * specifier.c (syms_of_specifier): Remove Qappend.
11166
11167 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11168
11169         * config.h.in: Add socklen_t.
11170
11171         * s/decosf4-0.h: No special compiler flags needed or desired.
11172         In particular, undefine _BSD for DEC OSF 4.0.
11173
11174 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11175
11176         * redisplay-msw.c (msprinter_frame_output_end): Added.
11177         (console_type_create_redisplay_mswindows): Referred the above.
11178
11179         * frame.c (setup_frame_without_minibuffer): Do not create a
11180         default minibuffer frame on a printer device.
11181
11182         * frame-msw.c (apply_dc_geometry): Added.
11183         (msprinter_start_page):
11184         (msprinter_init_frame_3):
11185         (msprinter_eject_page): Use it.
11186
11187         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11188         and removed residual duplex and orientation properties.
11189
11190 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11191
11192         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11193
11194         * unexalpha.c: Remove system prototypes from C sources!
11195
11196 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11197
11198         * eval.c: Remove references to M-x edit-options in DEFUNs for
11199         `defvar' and `defconst'.
11200
11201 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11202
11203         * config.h.in: Remove SMART_INCLUDE hackery.
11204
11205         PostgreSQL hacking:
11206         * config.h.in: Don't use SMART_INCLUDE.
11207
11208         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11209         * inline.c: Simply #include "postgresql.h"
11210         * postgresql.c:
11211         - Don't use SMART_INCLUDE
11212         - Use simply "const".
11213         - Use standard doc string conventions.
11214         - Use correct type for result of PQstatus.
11215
11216 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11217
11218         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11219
11220         C++ compilation changes.
11221         * config.h.in (EXTERN_C): Define.
11222         * config.h.in (not): This is also a C++ keyword.
11223         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11224         * cm.c: Use EXTERN_C.
11225         * redisplay-tty.c: Use EXTERN_C.
11226         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11227
11228 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11229
11230         * general.c: Remove duplicate definition for Qfunction.
11231
11232 2000-07-08  Ben Wing  <ben@xemacs.org>
11233
11234         * device-msw.c (msprinter_init_device):
11235         * device-msw.c (sync_printer_with_devmode):
11236         * device-msw.c (handle_devmode_changes):
11237         * device-msw.c (print_dialog_worker):
11238         * device-msw.c (Fmsprinter_apply_settings):
11239         * device-msw.c (hash_devmode):
11240         * device-msw.c (Fmsprinter_settings_despecialize):
11241         use Qmswindows_tstr, not Qctext.
11242
11243         * vm-limit.c (check_memory_limits):
11244         avoid infinite loop printing warning messages.
11245
11246 2000-07-05  Craig Lanning  <lanning@scra.org>
11247
11248         * Makefile.in.in: Add support for including the Windows resources
11249         when building with the cygwin and mingw targets.
11250
11251         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11252         not set or not correct.
11253         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11254         (init_initial_directory): Don't try to use $PWD on the
11255         WIN32_NATIVE target.
11256
11257         * s\cygwin32.h:
11258         [[Add -mwindows to eliminate console window.]] not required --ben
11259         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11260         (MAIL_USE_POP): removed; now handled by configure.
11261
11262         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11263         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11264         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11265         (MAIL_USE_POP): removed; now handled by configure.
11266         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11267         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11268         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11269         constant string.
11270         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11271         up from <winsock.h> via systime.h.
11272         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11273         (getpagesize): from Dan Holmsand, added.
11274         Added #endif which was left dangling by Ben's mega patch; added
11275         comment to help prevent this in the future.
11276
11277         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11278
11279 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11280
11281         * console-msw.h (struct mswindows_device): Removed unnecessary
11282         cached device geometry values.
11283         Added update_tick and an accessor macro.
11284         (Lisp_Devmode): Added lrecord declaration.
11285         (struct msprinter_device): Contain devmode as a Lisp object.
11286         Added mswindows_get_selected_frame_hwnd();
11287
11288         * console.h (struct console_methods): Indentation nitpicking.
11289
11290         * device-msw.c (mswindows_init_device): Do not initialize geometry
11291         cache. Initialize update tick.
11292         (mswindows_device_system_metrics): Ask the device for its geometry.
11293         (global_free_2_maybe):
11294         (devmode_to_hglobal):
11295         (handle_printer_changes):
11296         (ensure_not_printing):
11297         (print_dialog_worker):
11298         (Fmsprinter_print_setup_dialog):
11299         (Fmsprinter_print_dialog):
11300         (plist_get_margin):
11301         (plist_set_margin):
11302         (Fmsprinter_page_setup_dialog): Added functions.
11303         (sync_printer_with_devmode):
11304         (handle_devmode_changes):
11305         (Fmsprinter_get_settings):
11306         (Fmsprinter_select_settings):
11307         (Fmsprinter_apply_settings):
11308         (allocate_devmode):
11309         (Fmsprinter_settings_copy):
11310         (Fmsprinter_settings_despecialize):
11311         (print_devmode):
11312         (finalize_devmode):
11313         (equal_devmode):
11314         (hash_devmode): Added functions
11315         (syms_of_device_mswindows): Init devmode lrecord class.
11316
11317         * device.h: Added an exfun for find-device.
11318
11319         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11320         geometry; although, recreate the device compatible DC.
11321
11322         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11323         (msprinter_init_frame_3):
11324         (msprinter_frame_property):
11325         (msprinter_internal_frame_property_p):
11326         (msprinter_frame_properties):
11327         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11328         print job properties (will move to device settings).
11329
11330         * lisp.h: Added symbols.
11331
11332         * general.c (syms_of_general): Declared them.
11333
11334         * hash.c (string_hash): Added.
11335
11336         * lrecord.h (lrecord_type): Added devmode lrecord type.
11337
11338 2000-07-02  Mike Sperber <mike@xemacs.org>
11339
11340         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11341         FreeBSD 4.0.
11342
11343 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11344
11345         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11346         integer.
11347
11348 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11349
11350         * data.c (Fstring_to_number): Don't recognize floating point if
11351         base is not 10.
11352
11353 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11354
11355         * glyphs-widget.c (tab_control_query_geometry):
11356         (widget_query_geometry):
11357         (button_query_geometry):
11358         * glyphs.c (text_query_geometry):
11359         Enforce type correctness.
11360
11361 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11362
11363         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11364         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11365
11366 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11367
11368         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11369         conflicts with gcc's fixincluded version of FOO.h.
11370
11371         * glyphs.h (image_instance_geometry): Remove trailing `,'
11372
11373 2000-06-08  Mike Alexander  <mta@arbortext.com>
11374
11375         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11376         (shove_thread): Don't write the same output twice
11377         (make_ntpipe_output_stream): Increase priority of shove thread
11378         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11379         chance to run
11380         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11381         it.
11382
11383 2000-06-12  Ben Wing  <ben@xemacs.org>
11384
11385         * s\mingw32.h (sigset):
11386         * s\windowsnt.h (sigset):
11387         rename msw_ to mswindows_ for consistency with general convention.
11388
11389 2000-06-12  Ben Wing  <ben@xemacs.org>
11390
11391         * console-msw.c:
11392         * console-msw.c (mswindows_get_console_hwnd):
11393         * console-msw.c (mswindows_ensure_console_allocated):
11394         * console-msw.c (mswindows_hide_console):
11395         * console-msw.c (mswindows_show_console):
11396         * console-msw.c (mswindows_ensure_console_buffered):
11397         * console-msw.c (mswindows_output_console_string):
11398         * console-msw.c (mswindows_windows9x_p):
11399         * console-msw.h:
11400         * device-msw.c (mswindows_get_workspace_coords):
11401         * device-msw.c (mswindows_device_system_metrics):
11402         * dialog-msw.c (mswindows_popup_dialog_box):
11403         * event-msw.c (mswindows_wnd_proc):
11404         * frame-msw.c (mswindows_size_frame_internal):
11405         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11406         * menubar-msw.c (displayable_menu_item):
11407         * menubar-msw.c (mswindows_char_is_accelerator):
11408         * nt.c:
11409         * nt.c (mswindows_sigset):
11410         * nt.c (mswindows_sigrelse):
11411         * nt.c (mswindows_sigpause):
11412         * nt.c (mswindows_raise):
11413         * nt.c (timer_proc):
11414         * ntproc.c:
11415         * ntproc.c (find_child_console):
11416         * ntproc.c (sys_kill):
11417         * print.c:
11418         * print.c (std_handle_out_external):
11419         * process-nt.c (find_child_console):
11420         * process-nt.c (send_signal_the_95_way):
11421         * process-nt.c (ensure_console_window_exists):
11422         * process-nt.c (nt_create_process):
11423         * syssignal.h:
11424         rename msw_ to mswindows_ for consistency with general convention.
11425
11426         * emacs.c:
11427         * dumper.c:
11428         include nt.h, not syswindows.h.
11429
11430         * nt.c (mswindows_fstat):
11431         * nt.c (mswindows_stat):
11432         prefix mswindows_ instead of attempting to directly override the
11433         library functions.  fix declarations.
11434
11435         * nt.h:
11436         include syswindows.h.  move some sysdep.h stuff here.
11437
11438         * ntheap.h:
11439         include syswindows.h, not <windows.h>.
11440
11441         * ntplay.c:
11442         clean up headers.
11443
11444         * sysdep.c:
11445         clean up headers.
11446
11447         * sysdep.c (sys_fstat):
11448         * sysdep.c (sys_stat):
11449         call mswindows versions when appropriate.
11450
11451         * sysdep.h:
11452         move mswin decls to nt.h.
11453
11454         * syswindows.h:
11455         add long comment describing appropriate use of the various windows
11456         headers.
11457
11458 2000-06-11  Ben Wing  <ben@xemacs.org>
11459
11460         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11461
11462 2000-06-10  Ben Wing  <ben@xemacs.org>
11463
11464         * Makefile.in.in (release):
11465         Correction to make sure xemacs.exe always dumped when correct.
11466
11467         * alloca.c:
11468         * balloon_help.c:
11469         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11470
11471         * buffer.c (set_buffer_internal):
11472         [[[[2]]]]: Remove HAVE_FEP code.
11473
11474         * buffer.c (init_initial_directory):
11475         [3].
11476
11477         * bytecode.c:
11478         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11479         individual files.
11480
11481         * callproc.c:
11482         * callproc.c (call_process_cleanup):
11483         * callproc.c (Fold_call_process_internal):
11484         * callproc.c (child_setup):
11485         * callproc.c (getenv_internal):
11486         * callproc.c (init_callproc):
11487         * callproc.c (vars_of_callproc):
11488         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11489         __CYGWIN32__ -> CYGWIN.
11490         DOS_NT -> WIN32_NATIVE.
11491         Remove MSDOS support/references, converting to WIN32_NATIVE
11492           where correct.
11493         __MINGW32__ -> MINGW.
11494         Fix windows.h includes.
11495         Remove bogus HAVE_NTGUI.
11496
11497         * config.h.in:
11498         [2].
11499
11500         * console-msw.c:
11501         mswindows_message_outputted added for use in allowing startup
11502         errors on the console to be seen.
11503
11504         * console-msw.c (msw_ensure_console_allocated):
11505         * console-msw.c (msw_output_console_string):
11506         * console-msw.c (DHEADER):
11507         * console-msw.c (DOPAQUE_DATA):
11508         * console-msw.c (DEVENT):
11509         * console-msw.c (DCONS):
11510         * console-msw.c (DCONSCDR):
11511         * console-msw.c (DSTRING):
11512         * console-msw.c (DVECTOR):
11513         * console-msw.c (DSYMBOL):
11514         * console-msw.c (DSYMNAME):
11515         Fix warnings.
11516
11517         * console-stream.c (stream_init_console):
11518         Fix text/binary problems.
11519
11520         * device-msw.c:
11521         * device-msw.c (mswindows_finish_init_device):
11522         * device-msw.c (mswindows_delete_device):
11523         [1].
11524
11525         * device.c (handle_asynch_device_change):
11526         [3].
11527
11528         * dgif_lib.c:
11529         * dgif_lib.c (DGifOpenFileName):
11530         * dgif_lib.c (DGifOpenFileHandle):
11531         * dgif_lib.c (DGifGetLine):
11532         * dgif_lib.c (DGifGetPixel):
11533         Added config.h/lisp.h, fix up includes.
11534         [1].
11535
11536         * dired-msw.c:
11537         [4].
11538
11539         * dired.c:
11540         * dired.c (file_name_completion):
11541         * dired.c (Ffile_attributes):
11542         * dired.c (syms_of_dired):
11543         [1].
11544
11545         * dumper.c:
11546         * dumper.c (pdump_file_unmap):
11547         * dumper.c (pdump_load):
11548         [1].
11549
11550         * editfns.c:
11551         * editfns.c (Ftemp_directory):
11552         * editfns.c (user_login_name):
11553         * editfns.c (Fuser_real_login_name):
11554         * editfns.c (get_home_directory):
11555         [1].
11556
11557         * elhash.c (finish_marking_weak_hash_tables):
11558         [[[[5]]]]: Fix GCC warnings.
11559
11560         * emacs.c:
11561         * emacs.c (mswindows_handle_hardware_exceptions):
11562         * emacs.c (make_arg_list_1):
11563         * emacs.c (main_1):
11564         * emacs.c (Fkill_emacs):
11565         * emacs.c (Fdump_emacs):
11566         [1].
11567         Fix problems with nested crashes, add long comment.
11568
11569         * event-Xt.c (init_event_Xt_late):
11570         [1].
11571
11572         * event-msw.c:
11573         * event-msw.c (mswindows_dde_callback):
11574         * event-msw.c (mswindows_handle_sticky_modifiers):
11575         * event-msw.c (mswindows_wnd_proc):
11576         [1].
11577         [5].
11578
11579         * events.c (character_to_event):
11580         [1].
11581
11582         * fileio.c:
11583         * fileio.c (Ffile_name_directory):
11584         * fileio.c (Ffile_name_nondirectory):
11585         * fileio.c (directory_file_name):
11586         * fileio.c (Fexpand_file_name):
11587         * fileio.c (Fsubstitute_in_file_name):
11588         * fileio.c (Ffile_name_absolute_p):
11589         * fileio.c (check_executable):
11590         * fileio.c (Ffile_readable_p):
11591         * fileio.c (Ffile_accessible_directory_p):
11592         * fileio.c (Ffile_modes):
11593         * fileio.c (Funix_sync):
11594         * fileio.c (vars_of_fileio):
11595         [1]. [4].
11596
11597         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11598
11599         Expand getdefdir defn.
11600         Fix bogus rename() comment.
11601
11602         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11603         to use standard XEmacs include files, e.g. sysfile.h, rather
11604         than system-specific includes.
11605
11606         * fns.c:
11607         * fns.c (Fsubseq):
11608         [5]. [6].
11609
11610         * frame.c (vars_of_frame):
11611         [1].
11612
11613         * getloadavg.c:
11614         * getloadavg.c (getloadavg):
11615         [1]. [6].
11616         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11617         (We don't use it elsewhere in the code; just add a comment.)
11618
11619         * gif_io.c:
11620         [6].
11621         Add config.h.
11622
11623         * glyphs-msw.c:
11624         * glyphs-msw.c (mswindows_resource_instantiate):
11625         [1].
11626
11627         * glyphs-x.c (x_native_layout_instantiate):
11628         [5].
11629
11630         * gui-msw.c (Fmswindows_shell_execute):
11631         [1].
11632
11633         * insdel.c:
11634         [4].
11635
11636         * lisp.h:
11637         [4]. [5].
11638
11639         * lread.c (locate_file_in_directory_mapper):
11640         [1].
11641
11642         * lstream.c:
11643         [4].
11644
11645         * mem-limits.h:
11646         * mem-limits.h (get_lim_data):
11647         [1].
11648
11649         * menubar-msw.c:
11650         [4].
11651
11652         * ndir.h:
11653         [1].
11654
11655         * nt.c:
11656         * nt.c (getwd):
11657         * nt.c (closedir):
11658         * nt.c (rva_to_section):
11659         * nt.c (mswindows_executable_type):
11660         [1]. [6].
11661         Fix closedir() defn.
11662
11663         * nt.h:
11664         [[[[8]]]]: *_OK defs moved to sysfile.h.
11665
11666         * ntproc.c:
11667         [6]. [7].
11668
11669         * objects-x.c:
11670         [4].
11671
11672         * print.c:
11673         * print.c (std_handle_out_external):
11674         [1]. [4].
11675
11676         * process-nt.c:
11677         * process-nt.c (nt_create_process):
11678         [6].
11679         try to fix process quoting somewhat.
11680
11681         * process-unix.c (unix_create_process):
11682         [1].
11683
11684         * process.c:
11685         * process.c (vars_of_process):
11686         Add Vnull_device.
11687
11688         * process.h:
11689         [1].
11690
11691         * realpath.c:
11692         * realpath.c (xrealpath):
11693         [1].
11694
11695         * redisplay-tty.c (init_tty_for_redisplay):
11696         [3].
11697
11698         * redisplay.c:
11699         [4]. [6].
11700
11701         * scrollbar-msw.c:
11702         [4].
11703
11704         * sheap.c:
11705         * sheap.c (more_static_core):
11706         * sheap.c (report_sheap_usage):
11707         [5]. [6].
11708
11709         * signal.c:
11710         * signal.c (alarm_signal):
11711         [1]. [6].
11712
11713         * sound.c:
11714         [6].
11715
11716         * strftime.c:
11717         * strftime.c (zone_name):
11718         [1]. [5].
11719
11720         * symsinit.h (init_sunpro):
11721         [1].
11722
11723         * syscommctrl.h:
11724         commctrl.h not in Cygwin b20.1.
11725
11726         * sysdep.c:
11727         * sysdep.c (endif):
11728         * sysdep.c (sys_subshell):
11729         * sysdep.c (init_baud_rate):
11730         * sysdep.c (emacs_get_tty):
11731         * sysdep.c (emacs_set_tty):
11732         * sysdep.c (tty_init_sys_modes_on_device):
11733         * sysdep.c (init_system_name):
11734         * sysdep.c (sys_open):
11735         * sysdep.c (interruptible_open):
11736         * sysdep.c (sys_fopen):
11737         * sysdep.c (sys_mkdir):
11738         * sysdep.c (sys_rename):
11739         * sysdep.c (get_process_times_1):
11740         [1]. [6].
11741
11742         * sysdep.h:
11743         [1].
11744
11745         * sysdir.h:
11746         * sysdir.h (DIRENTRY_NONEMPTY):
11747         [1]. [6].
11748
11749         * sysdll.c (dll_init):
11750         * sysdll.h:
11751         [1].
11752
11753         * sysfile.h:
11754         [1]. [6]. [8].
11755         added text/binary defs.
11756
11757         * sysfloat.h:
11758         [1].
11759
11760         * sysproc.h:
11761         * sysproc.h (EDESTADDRREQ):
11762         * sysproc.h (poll_fds_for_input):
11763         [1]. [6].
11764
11765         * syspwd.h:
11766         [6].
11767
11768         * syssignal.h:
11769         [1].
11770
11771         * systime.h:
11772         [1]. [6].
11773
11774         * systty.h:
11775         [1].
11776
11777         * syswindows.h:
11778         [1].
11779         Always define WIN32_LEAN_AND_MEAN.
11780
11781         * unexcw.c (unexec):
11782         [5].
11783
11784         * unexec.c:
11785         * unexec.c (copy_text_and_data):
11786         * unexec.c (adjust_lnnoptrs):
11787         [1].
11788
11789         * unexnt.c:
11790         * unexnt.c (_start):
11791         [1].
11792
11793 2000-06-07  Ben Wing  <ben@xemacs.org>
11794
11795         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11796         was used only as a model.  We've long since extracted any useful
11797         logic or code out of this. (I just did an exhaustive search.)
11798
11799         * s\msdos.h: Removed.
11800
11801         * s\windows95.h: Removed.
11802
11803 2000-06-10  Ben Wing  <ben@xemacs.org>
11804
11805         * s\cygwin32.h:
11806         [1]. [5].
11807         Don't use extern with fun defs.
11808
11809         * s\mingw32.h:
11810         [1]. [7].
11811         Remove nt\inc include.
11812         Remove getdisk, getdefdir. (The former is unused, the latter
11813         expanded in fileio.h.)
11814
11815         * s\windowsnt.h:
11816         * s\windowsnt.h (WIN32_NATIVE):
11817         * s\windowsnt.h (HAVE_STRCASECMP):
11818         [1]. [7].
11819         Add long comment about preprocessor changes.
11820         Remove getdisk, getdefdir. (The former is unused, the latter
11821         expanded in fileio.h.)
11822
11823 2000-06-10  Ben Wing  <ben@xemacs.org>
11824
11825         * m\arm.h:
11826         * m\delta.h:
11827         * m\intel386.h:
11828         * m\sequent.h:
11829         * m\template.h:
11830         * m\windowsnt.h:
11831         [1].
11832         Remove bogus/unused NO_SOCK_SIGIO.
11833
11834 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11835
11836         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11837         not an Emchar.
11838
11839 2000-06-04  Mike Sperber <mike@xemacs.org>
11840
11841         * casetab.c (set_case_table): For `set-standard-case-table',
11842         actually deposit the new case tables where the rest of XEmacs can
11843         see them.
11844
11845 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11846
11847         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11848
11849 2000-06-05  Ben Wing  <ben@xemacs.org>
11850
11851         * callproc.c (child_setup): Don't do close_load_descs() under
11852         MS Windows.  Put in a comment explaining why.
11853
11854 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11855
11856         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11857         Toolkit shell" which breaks `kill-compilation' on Windows NT
11858         native, retaining STDERR handling improvements.
11859
11860 2000-06-01  Andreas Jaeger  <aj@suse.de>
11861
11862         * s/s390.h: Support for S390, based on a patch by Martin
11863         Schwidefsky <schwidefsky@de.ibm.com>.
11864
11865 2000-05-30  Andy Piper  <andy@xemacs.org>
11866
11867         * window.c (allocate_window):
11868         (make_dummy_parent):
11869         (Fset_window_configuration): use new hashtable type.
11870
11871         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11872         (struct image_instantiator_methods):
11873         (struct Lisp_Image_Instance): make instance geometry signed.
11874
11875         * glyphs.c (instantiate_image_instantiator):
11876         (image_instance_query_geometry):
11877         (image_instance_layout):
11878         (image_instance_layout):
11879         (query_string_geometry):
11880         (text_query_geometry):
11881         (image_instantiate):
11882         (image_instantiate):
11883         (cache_subwindow_instance_in_frame_maybe):
11884         (subwindow_query_geometry): make instance geometry signed.
11885
11886         * glyphs-widget.c (widget_query_geometry):
11887         (widget_layout):
11888         (button_query_geometry):
11889         (tree_view_query_geometry):
11890         (tab_control_query_geometry):
11891         (layout_query_geometry):
11892         (layout_layout):
11893         (native_layout_layout): make instance geometry signed.
11894
11895 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11896
11897         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11898         constant.
11899
11900         * general.c (syms_of_general): Add Qfull_assoc symbol.
11901
11902         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11903         correctly.
11904         (decode_weak_list_type): Decode full-assoc type.
11905         (encode_weak_list_type): Encode full-assoc type.
11906         (Fmake_weak_list): Update doc string.
11907
11908 2000-05-30  Andy Piper  <andy@xemacs.org>
11909
11910         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11911
11912         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11913         (decode_hash_table_weakness): ditto.
11914         (Fhash_table_weakness): ditto.
11915         (Fhash_table_type): ditto.
11916         (finish_marking_weak_hash_tables): ditto.
11917         (hash_table_weakness_validate): ditto.
11918         (syms_of_elhash): ditto.
11919
11920 2000-05-28  Martin Buchholz <martin@xemacs.org>
11921
11922         * XEmacs 21.2.34 is released.
11923
11924 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11925
11926         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11927         start cache.
11928         (updating_line_start_cache): Gone.
11929         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11930         generic code to force a minimum of 1 line laid out in the
11931         CMOTION_DISP case.
11932
11933 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11934
11935         * glyphs.c (instantiate_image_instantiator): Check for initialized
11936         height & width no longer special cases IMAGE_NOTHING.
11937         (nothing_instantiate): Set height and width of instance.
11938
11939 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11940
11941         * unexelf.c (unexec): Search for ".data" section.
11942         Initialize new_data2_offset from old_data_index.
11943         Remove redundant check for ElfW.
11944
11945 2000-05-23  Andy Piper  <andy@xemacs.org>
11946
11947         * glyphs.c (get_image_instantiator_governing_domain): allow more
11948         specific domains as the governing domain rather than expecting an
11949         exact match. This fixes problems with layouts.
11950
11951 2000-05-22  Andy Piper  <andy@xemacs.org>
11952
11953         * redisplay-output.c (compare_runes): check for non-images
11954
11955         * glyphs.c (set_glyph_dirty_p): ditto.
11956         (update_glyph_cachel_data): ditto.
11957
11958         * glyphs-widget.c (layout_post_instantiate): ditto.
11959         (layout_post_instantiate): ditto.
11960
11961         * event-msw.c (mswindows_wnd_proc): warning removal.
11962
11963 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11964
11965         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11966
11967         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11968
11969         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11970
11971         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11972         (mswindows_executable_type): mingw32 now has enough headers for
11973         this to work.
11974
11975 2000-05-20  Andy Piper  <andy@xemacs.org>
11976
11977         * console-msw.c (mswindows_output_last_error): ; -> ,
11978
11979 2000-05-12  Andy Piper  <andy@xemacs.org>
11980
11981         * console-msw.c (FROB): compare ints with ints.
11982
11983 2000-05-11  Andy Piper  <andy@xemacs.org>
11984
11985         * glyphs-x.c (x_finalize_image_instance): make minimal build
11986         happy.
11987
11988 2000-05-20  Ben Wing  <ben@xemacs.org>
11989
11990         * event-Xt.c:
11991         * event-Xt.c (vars_of_event_Xt):
11992         move modifier-keys-are-sticky to event-stream.c.
11993
11994         * event-msw.c:
11995         * event-msw.c (mswindows_enqueue_mouse_button_event):
11996         * event-msw.c (key_needs_default_processing_p):
11997         * event-msw.c (XEMSW_LCONTROL):
11998         * event-msw.c (mswindows_handle_sticky_modifiers):
11999         * event-msw.c (FROB):
12000         * event-msw.c (clear_sticky_modifiers):
12001         * event-msw.c (output_modifier_keyboard_state):
12002         * event-msw.c (output_alt_keyboard_state):
12003         * event-msw.c (mswindows_wnd_proc):
12004         * event-msw.c (mswindows_modifier_state):
12005         * event-msw.c (emacs_mswindows_handle_magic_event):
12006         implement sticky modifiers.
12007
12008         * event-stream.c:
12009         * event-stream.c (vars_of_event_stream):
12010         move modifier-keys-are-sticky here.
12011
12012         * lisp.h:
12013         add CHECK_FUNCTION.
12014
12015         * rangetab.c:
12016         implement map-range-table.
12017
12018
12019 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12020
12021         * redisplay-tty.c (reset_tty_modes):
12022         (tty_redisplay_shutdown): Adjust argument type to
12023         tty_frame_output_end.
12024
12025 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12026
12027         * eval.c (Fbacktrace): Don't output a line with only right
12028         parenthesis.
12029
12030 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12031
12032         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12033         (Fpq_reset_poll): Ditto.
12034
12035 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12036
12037         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12038
12039 2000-05-16  Ben Wing  <ben@xemacs.org>
12040
12041         * buffer.c:
12042         * buffer.c (dfc_convert_to/from_internal_format):
12043         * buffer.c (reinit_vars_of_buffer):
12044         Fix conversion functions to allow reentrancy.
12045
12046         * console-msw.c:
12047         * console-msw.c (mswindows_output_last_error):
12048         New fun, generally useful -- output a human-readable
12049         version of GetLastError() on the console.
12050
12051         * console-msw.h:
12052         * console-msw.h (struct mswindows_frame):
12053         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12054
12055         * console-stream.c (stream_output_begin):
12056         * console-stream.c (stream_output_end):
12057         * console-stream.c (stream_output_vertical_divider):
12058         * console-stream.c (stream_clear_region):
12059         * console-stream.c (stream_flash):
12060         * console-stream.c (console_type_create_stream):
12061         Delete blank stream methods, not needed.
12062
12063         * console.h (struct console_methods):
12064         Split begin/end methods into window and frame.
12065
12066         * event-msw.c:
12067         * event-msw.c (mswindows_handle_paint):
12068         * event-msw.c (output_alt_keyboard_state):
12069         * event-msw.c (mswindows_wnd_proc):
12070         * event-msw.c (vars_of_event_mswindows):
12071         Comment about problems with ignored-expose.
12072         Define mswindows-debug-events; not really implemented.
12073
12074         * frame-msw.c (mswindows_init_frame_1):
12075         random cleanups.
12076
12077         * glyphs-msw.c:
12078         * glyphs-msw.c (begin_defer_window_pos):
12079         * glyphs-msw.c (mswindows_unmap_subwindow):
12080         * glyphs-msw.c (mswindows_map_subwindow):
12081         * glyphs-msw.c (mswindows_resize_subwindow):
12082         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12083
12084         * glyphs.c (make_image_instance_1):
12085         Fix crash.
12086
12087         * gutter.c (Fredisplay_gutter_area):
12088         Use new begin/end methods.
12089
12090         * lisp.h (Dynarr_new2):
12091         New creation fun.
12092
12093         * redisplay-msw.c:
12094         * redisplay-msw.c (mswindows_frame_output_begin):
12095         * redisplay-msw.c (mswindows_frame_output_end):
12096         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12097         New begin/end methods -- handle DeferWindowPos.
12098
12099         * redisplay-output.c (redisplay_move_cursor):
12100         * redisplay-output.c (redraw_cursor_in_window):
12101         * redisplay-output.c (redisplay_update_line):
12102         * redisplay-output.c (redisplay_output_window):
12103         New begin/end methods.
12104
12105         * redisplay-tty.c:
12106         * redisplay-tty.c (tty_frame_output_begin):
12107         * redisplay-tty.c (tty_frame_output_end):
12108         * redisplay-tty.c (console_type_create_redisplay_tty):
12109         New begin/end methods.
12110
12111         * redisplay-x.c:
12112         * redisplay-x.c (x_window_output_begin):
12113         * redisplay-x.c (x_window_output_end):
12114         * redisplay-x.c (console_type_create_redisplay_x):
12115         New begin/end methods.
12116
12117         * redisplay.c (redisplay_frame):
12118         * redisplay.c (Fredisplay_echo_area):
12119         New begin/end methods.
12120         use MAYBE_DEVMETH for clear_frame; it may not exist.
12121
12122         * window.h (WINDOW_XFRAME):
12123         WINDOW_XFOO macros -- get locale and decode struct pointer.
12124
12125
12126 2000-05-12  Ben Wing  <ben@xemacs.org>
12127
12128         * emacs.c:
12129         * emacs.c (ensure_no_quitting_from_now_on):
12130         * emacs.c (fatal_error_signal):
12131         * emacs.c (mswindows_handle_hardware_exceptions):
12132         * emacs.c (main):
12133         * emacs.c (Fkill_emacs):
12134         * emacs.c (shut_down_emacs):
12135         * emacs.c (assert_failed):
12136         various improvements in fatal error handling.
12137
12138         * eval.c:
12139         move preparing_for_armageddon to emacs.c.
12140
12141         * lisp.h:
12142         declare fatal_error_in_progress.
12143
12144         * print.c:
12145         * print.c (std_handle_out_external):
12146         * print.c (std_handle_out_va):
12147         * print.c (stderr_out):
12148         * print.c (stdout_out):
12149         use console under mswin when no standard output.
12150         don't do code conversion during fatal error.
12151
12152         * scrollbar.c (Fscrollbar_page_up):
12153         * scrollbar.c (Fscrollbar_page_down):
12154         fix missing else.  reindent.
12155
12156 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12157
12158         Emergency fix.
12159
12160         * glyphs.h (GLYPH_CACHEL_DESCENT):
12161         (GLYPH_CACHEL_DESCENT):
12162         (GLYPH_CACHEL_DESCENT):
12163         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12164         used in case these are inline functions.
12165         Use more absurd values to error check.
12166
12167         include window.h for error check functions.
12168
12169 2000-05-11  Ben Wing  <ben@xemacs.org>
12170
12171         * cmdloop.c (Freally_early_error_handler):
12172         Display message box under windows; otherwise, message will disappear
12173         before it can be viewed.
12174
12175         * console-msw.c:
12176         * console-msw.c (Fmswindows_message_box):
12177         * console-msw.c (FROB):
12178         * console-msw.c (syms_of_console_mswindows):
12179         Define new fun `mswindows-message-box'.
12180         #### I will merge this into `popup-dialog-box'; just give me
12181         a bit of time.
12182
12183         * general.c:
12184         * general.c (syms_of_general):
12185         Some new symbols used in `mswindows-message-box'.
12186
12187         * glyphs.c:
12188         * glyphs.c (Fset_image_instance_property):
12189         put warning in this fun.
12190
12191         * glyphs.h:
12192         * glyphs.h (GLYPH_CACHEL_WIDTH):
12193         * glyphs.h (GLYPH_CACHEL_ASCENT):
12194         * glyphs.h (GLYPH_CACHEL):
12195         * glyphs.h (GLYPH_CACHEL_GLYPH):
12196         define error-checking versions to try to catch a bug i've seen --
12197         redisplay gets in an infinite loop because the glyph width of the
12198         continuation glyph is 65535.
12199
12200         * lisp.h:
12201         Extern message-box stuff.
12202
12203         * window.c (allocate_window):
12204         * window.c (make_dummy_parent):
12205         * window.c (Fset_window_configuration):
12206         Use EQUAL not EQ for subwindow caches to make them work a bit
12207         better. (Something is still very broken.)
12208
12209
12210 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12211
12212         * glyphs.c (image_instantiate): Suppress gcc warnings.
12213         (Fmake_image_instance): Fix doc string.
12214         * specifier.c (Fmake_specifier): Ditto.
12215
12216 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12217
12218         * paths.h.in (PATH_LOCK): Removed.
12219         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12220         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12221
12222 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12223
12224         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12225         Document (featurep '(and xemacs 21.02)).
12226
12227 2000-05-09  Ben Wing  <ben@xemacs.org>
12228
12229         * buffer.c (complex_vars_of_buffer):
12230         update modeline-format doc.
12231
12232         * device.h:
12233         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12234
12235         * emacs.c:
12236         timeline of all released versions of Emacs, for use in creating
12237         authorship comments and in synching up.
12238
12239         * glyphs-widget.c (image_instantiator_buttons):
12240         * glyphs-widget.c (image_instantiator_edit_fields):
12241         * glyphs-widget.c (image_instantiator_combo_box):
12242         * glyphs-widget.c (image_instantiator_scrollbar):
12243         * glyphs-widget.c (image_instantiator_progress_guage):
12244         * glyphs-widget.c (image_instantiator_tree_view):
12245         * glyphs-widget.c (image_instantiator_tab_control):
12246         * glyphs-widget.c (image_instantiator_labels):
12247         * glyphs-widget.c (image_instantiator_layout):
12248         * glyphs-widget.c (image_instantiator_native_layout):
12249         rename decode_domain method to governing_domain.
12250
12251         * glyphs.c:
12252         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12253         * glyphs.c (add_entry_to_device_ii_format_list):
12254         make sure we don't put an entry more than once into the list.
12255         * glyphs.c (check_instance_cache_mapper):
12256         *************************************************************
12257         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12258         HAVE BEEN GETTING.
12259         *************************************************************
12260         * glyphs.c (get_image_instantiator_governing_domain):
12261         clean up, expand on new concept of governing domain.
12262         * glyphs.c (instantiate_image_instantiator):
12263         * glyphs.c (allocate_image_instance):
12264         use governing_domain instead of cache_domain in naming.
12265         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12266         * glyphs.c (make_image_instance_1):
12267         * glyphs.c (Fmake_image_instance):
12268         allow for any domain (not just device), and process the
12269         governing domain correctly.  very big doc fix.
12270         * glyphs.c (Fimage_instance_domain):
12271         new primitive, to retrieve the governing domain of an image instance.
12272         * glyphs.c (image_instantiate):
12273         use new governing_domain stuff.  this fixes a crash you could get
12274         by instantiating certain widget glyphs in frame locales. (should
12275         signal an error instead of crashing.)
12276         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12277         * glyphs.c (Fglyphp): clean up doc.
12278         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12279         * glyphs.c (syms_of_glyphs):
12280         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12281         * glyphs.c (image_instantiator_format_create): add some comments about
12282         bogus code.
12283         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12284         for current-display-table. (Apparently Hrjove implemented in 1998 a
12285         design I wrote up in 1996, but didn't update the doc string.)
12286
12287         * glyphs.h: clean up a doc string.
12288         * glyphs.h (governing_domain):
12289         * glyphs.h (struct image_instantiator_methods):
12290         changes for governing_domain stuff.
12291
12292         * gutter.c:
12293         * gutter.c (Fgutter_specifier_p):
12294         * gutter.c (Fgutter_size_specifier_p):
12295         * gutter.c (Fgutter_visible_specifier_p):
12296         * objects.c:
12297         * objects.c (Fcolor_specifier_p):
12298         * objects.c (Ffont_specifier_p):
12299         * objects.c (Fface_boolean_specifier_p):
12300         doc strings moved to make-*-specifier.
12301
12302         * redisplay.c (add_disp_table_entry_runes_1):
12303         * redisplay.c (generate_fstring_runes):
12304         * redisplay.c (screen):
12305         add random comments and doc strings.
12306
12307         * specifier.c:
12308         * specifier.c (Fmake_specifier):
12309         major overhaul of this doc string.
12310
12311         * specifier.c (Fvalid_specifier_domain_p):
12312         comment about the bogosity of image instances being domains.
12313         * specifier.c (decode_domain):
12314         now non-static, used in glyphs.c.
12315         * specifier.c (specifier_instance):
12316         comment about the bogosity of image instances being domains.
12317         * specifier.c (Fgeneric_specifier_p):
12318         move doc string to make-generic-specifier.
12319         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12320         rebackslashify.
12321
12322         * specifier.h:
12323         * specifier.h (DOMAIN_FRAME):
12324         * specifier.h (DOMAIN_LIVE_P):
12325         * specifier.h (DOMAIN_XDEVICE):
12326         rebackslashify.
12327         add comments about problems with these macros.
12328         prototype for decode_domain.
12329
12330         * toolbar.c:
12331         * toolbar.c (Ftoolbar_specifier_p):
12332         move doc string to `make-toolbar-specifier'.
12333
12334         * window.c (window_unmap_subwindows_cache_mapper):
12335         *************************************************************
12336         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12337         HAVE BEEN GETTING.
12338         *************************************************************
12339
12340 2000-05-09  Andy Piper  <andy@xemacs.org>
12341
12342         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12343
12344         * window.c (Fset_window_configuration): reset the frame subwindow
12345         cache and re-initialize the window subwindow caches.
12346
12347         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12348
12349 2000-05-09  Ben Wing  <ben@xemacs.org>
12350
12351         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12352         DWORD.
12353
12354 2000-04-26  Mike Woolley  <mike@bulsara.com>
12355
12356         * ntheap.c: Changed recreate_heap to limit the amount reserved
12357         for the heap to that which is actually available. Also now
12358         displays a message box (with some dignostics) in the event that
12359         it still can't start.
12360
12361 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12362
12363         * callproc.c (Fold_call_process_internal): GCPRO path
12364
12365 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12366
12367         Patch by Bill Perry.
12368
12369         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12370         back data instead of #ifdef.
12371         (Fscrollbar_page_down): ditto.
12372
12373 2000-05-07  Ben Wing  <ben@xemacs.org>
12374
12375         * buffer.h:
12376         Kludge for defining Qmswindows_tstr.
12377
12378         * nt.c:
12379         * nt.c (open_input_file):
12380         * nt.c (open_output_file):
12381         * nt.c (rva_to_section):
12382         * nt.c (mswindows_executable_type):
12383         Move all memory-mapped-file routines here (some were in unexnt.c,
12384         which is bad because they are used by process-nt.c, and unexnt
12385         won't be around when portable dumping).  Synched the above routines
12386         with FSF 20.6.
12387
12388         * nt.h:
12389         Removed ifdef'd out bogus code.
12390         Fixed some prototypes.
12391
12392         * nt.h (file_data):
12393         * nt.h (OFFSET_TO_RVA):
12394         * nt.h (RVA_TO_OFFSET):
12395         * nt.h (RVA_TO_PTR):
12396         Moved the memory-mapped-file structures, macros and prototypes
12397         here, to parallel nt.c.  ntheap.h should really be removed
12398         entirely, and it's a non-portable-dumper specific file.
12399
12400         * ntheap.h (round_to_next):
12401         Moved the memory-mapped-file structures, macros and prototypes
12402         to nt.h.
12403
12404         * ntproc.c (compare_env):
12405         Moved rva_to_section and mswindows_executable_type to nt.c.
12406         Moved compare_env to process-nt.c.
12407         ntproc.c will die, one day.
12408
12409         * ntproc.c (sys_spawnve):
12410         Account for win32_ -> mswindows_.
12411
12412         * process-nt.c:
12413         * process-nt.c (struct nt_process_data):
12414         * process-nt.c (ensure_console_window_exists):
12415         * process-nt.c (compare_env):
12416         * process-nt.c (nt_create_process):
12417         * process-nt.c (nt_kill_process_by_pid):
12418         * process-nt.c (syms_of_process_nt):
12419         * process-nt.c (vars_of_process_nt):
12420         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12421         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12422         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12423         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12424         Move compare_env here from ntproc.c.
12425
12426         * process.c (Fprocess_send_region):
12427         Takes an optional fourth argument, BUFFER, which should fix some
12428         problems with call-process.
12429
12430         * syscommctrl.h:
12431         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12432
12433         * syswindows.h:
12434         Move ICC_BAR_CLASSES to syscommctrl.h.
12435         Add preliminary macros for MSWindows/Mule.  More to come.
12436
12437         * unexnt.c:
12438         * unexnt.c (unexec):
12439         open_output_file moved to nt.c.
12440
12441
12442 2000-05-05  Andy Piper  <andy@xemacs.org>
12443
12444         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12445         instance from the frame cache also since GC may catch up too late
12446         to make frame deletion sane.
12447
12448 2000-05-04  Andy Piper  <andy@xemacs.org>
12449
12450         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12451         (x_finalize_image_instance): ungcpro on deletion.
12452
12453         * glyphs.c (image_instantiator_format_create): give pointers a
12454         query geometry method so that the geometry is at least set.
12455
12456         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12457         initialize layouts if using widgets.
12458
12459 2000-05-03  Andy Piper  <andy@xemacs.org>
12460
12461         * nt.c: remove bogus reference to sysmmsystem.h
12462
12463         * gui-x.c (popup_selection_callback): fix no selection abort.
12464
12465 2000-05-02  Andy Piper  <andy@xemacs.org>
12466
12467         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12468         (mswindows_widget_instantiate): ditto.
12469
12470         * glyphs-widget.c (initialize_widget_image_instance): initialize
12471         children correctly.
12472         (widget_instantiate): cope with children and items in the same
12473         instance.
12474
12475         * glyphs.c (mark_image_instance): cope with children as a first
12476         class member.
12477         (image_instance_equal): ditto.
12478         (image_instance_hash): ditto.
12479         (image_instance_changed): ditto.
12480
12481 2000-04-30  Andy Piper  <andy@xemacs.org>
12482
12483         * glyphs.c (subwindow_query_geometry): new function. Return some
12484         defaults.
12485         (subwindow_instantiate): don't assign dimensions if none have been
12486         given.
12487         (image_instantiator_format_create): add subwindow_query_geometry.
12488         (print_image_instance): cope with layouts as widgets.
12489
12490 2000-04-29  Andy Piper  <andy@xemacs.org>
12491
12492         * frame.c (delete_frame_internal): call
12493         free_frame_subwindow_instance_cache so that all subwindows are
12494         finalized before their parent.
12495         (mark_frame): remove subwindow_cachels.
12496         (Fmake_frame): remove subwindow_cachel manipulation.
12497         (allocate_frame_core): subwindow_instance_cache is a weak list.
12498         (delete_frame_internal): set subwindow_instance_cache to nil.
12499
12500         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12501         finalization safe.
12502         (mswindows_finalize_image_instance): use the device
12503         not the domain as the domain may have died already.
12504
12505         * glyphs-x.c (x_finalize_image_instance): ditto.
12506         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12507         HEIGHT.
12508
12509         * redisplay-output.c (redisplay_unmap_subwindows): update for
12510         subwindow instance cache as a weak list.
12511         (redisplay_unmap_subwindows_maybe): ditto.
12512         (redisplay_unmap_subwindows_except_us): ditto.
12513
12514         * glyphs.c (unmap_subwindow): error checking will check the domain
12515         so don't deal with it here. Don't use cachels anymore.
12516         (map_subwindow): ditto.
12517         (update_subwindow_cachel_data): remove old accessor names.
12518         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12519         (Fresize_subwindow): don't update cachel.
12520         (mark_subwindow_cachels):
12521         (update_subwindow_cachel_data):
12522         (add_subwindow_cachel):
12523         (get_subwindow_cachel_index):
12524         (update_subwindow_cachel):
12525         (reset_subwindow_cachels):
12526         (mark_subwindow_cachels_as_not_updated): deleted.
12527         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12528         subwindow instance to the frame cache.
12529         (find_matching_subwindow): update for subwindow instance cache as
12530         a weak list.
12531         (update_widget_instances): ditto.
12532         (image_instance_type_to_mask):inlined.
12533         (free_frame_subwindow_instance_cache): new function. finalize all
12534         subwindows that are instantiated.
12535
12536         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12537         of cachel information.
12538         (IMAGE_INSTANCE_DISPLAY_X):
12539         (IMAGE_INSTANCE_DISPLAY_Y):
12540         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12541         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12542         (XIMAGE_INSTANCE_DISPLAY_X):
12543         (XIMAGE_INSTANCE_DISPLAY_Y):
12544         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12545         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12546         remove subwindow_cachel structure and function references.
12547         (image_instance_type_to_mask): inline from glyphs.c
12548
12549         * redisplay.c (redisplay_frame): remove subwindow_cachel
12550         references.
12551
12552         * frame.h (struct frame): remove subwindow_cachels.
12553         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12554
12555         * frameslots.h: add subwindow_instance_cache.
12556
12557         * window.c (replace_window): check subwindow cache of replacement.
12558         (window_unmap_subwindows_cache_mapper):
12559         (window_unmap_subwindows): new functions. Unmap all subwindows
12560         cached on this window.
12561         (mark_window_as_deleted): unmap all subwindows.
12562
12563 2000-04-27  Andy Piper  <andy@xemacs.org>
12564
12565         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12566
12567         * glyphs-widget.c (widget_layout): return something.
12568         (layout_layout): return something. Fail if not initialized.
12569         (layout_query_geometry): ditto.
12570         (image_instantiator_native_layout): new function. Initialized the
12571         native layout type.
12572         (widget_instantiate): don't do layout stuff here.
12573
12574         * glyphs.c (instantiate_image_instantiator): reorded calling or
12575         instantiate and post_instantiate with layout in between.
12576         (image_instance_layout): be more selective about deciding whether
12577         the layout has been done or not.
12578
12579         * glyphs.h (struct image_instantiator_methods): return a value
12580         from layout_method.
12581
12582 2000-04-26  Andy Piper  <andy@xemacs.org>
12583
12584         * glyphs.c (allocate_image_instance): make initial width and
12585         height unspecified. Set initialized to 0.
12586
12587         * syscommctrl.h new file. Encapsulates commctrl.h.
12588
12589         * syswindows.h new file. Encapsulates windows.h.
12590
12591         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12592         * nt.c: ditto.
12593         * console-msw.h: ditto.
12594
12595         * redisplay-tty.c (tty_output_display_block): remove layout references.
12596
12597         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12598         window handle rather than just the frame.
12599
12600         * glyphs.c (mark_image_instance): remove layout references.
12601         (print_image_instance): ditto.
12602         (image_instance_equal): ditto.
12603         (image_instance_hash): ditto.
12604         (decode_image_instance_type): ditto.
12605         (encode_image_instance_type): ditto.
12606         (image_instantiate): ditto.
12607         (allocate_glyph): ditto.
12608         (Fimage_instance_height): ditto.
12609         (Fimage_instance_width): ditto.
12610         (update_subwindow): ditto.
12611
12612         * redisplay-x.c (x_output_display_block): recode for layouts as
12613         widgets.
12614
12615         * redisplay-output.c (redisplay_output_layout): recode for layouts
12616         as widgets.
12617         (compare_runes): remove layout references.
12618
12619         * redisplay-msw.c (mswindows_output_display_block): recode for
12620         layouts as widgets.
12621
12622         * glyphs-widget.c (image_instantiator_layout): remove
12623         layout_possible_dest_types.
12624         (layout_possible_dest_types): deleted.
12625
12626         * glyphs.h (image_instance_type): remove layout references.
12627         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12628         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12629         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12630
12631 2000-04-25  Andy Piper  <andy@xemacs.org>
12632
12633         * glyphs-widget.c (image_instantiator_buttons):
12634         (image_instantiator_edit_fields):
12635         (image_instantiator_combo_box):
12636         (image_instantiator_scrollbar):
12637         (image_instantiator_progress_guage):
12638         (image_instantiator_tree_view):
12639         (image_instantiator_tab_control):
12640         (image_instantiator_labels):
12641         (image_instantiator_layout): call default post_instantiate method.
12642         (widget_post_instantiate): new function. Simply lays out the
12643         widgets.
12644
12645         * glyphs.h (struct image_instantiator_methods): add
12646         post_instantiate method.
12647
12648         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12649         method calls.
12650
12651 2000-04-23  Andy Piper  <andy@xemacs.org>
12652
12653         * glyphs.h (struct image_instantiator_methods): add
12654         decode_domain_method.
12655         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12656         derived from the domain.
12657         (IMAGE_INSTANCE_FRAME): new accessor.
12658         (XIMAGE_INSTANCE_FRAME): ditto.
12659
12660         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12661         instead of _SUBWINDOW_FRAME.
12662         (finalize_image_instance): ditto.
12663         (Fimage_instance_foreground): ditto.
12664         (Fimage_instance_background): ditto.
12665         (image_instantiate): ditto.
12666         (update_subwindow_cachel): ditto.
12667         (update_subwindow): ditto.
12668         (unmap_subwindow): ditto.
12669         (map_subwindow): ditto
12670         (subwindow_instantiate): ditto.
12671         * glyphs-msw.c (mswindows_update_widget): ditto.
12672         (mswindows_progress_gauge_instantiate): ditto.
12673         (mswindows_tab_control_update): ditto.
12674         * glyphs-x.c (x_update_widget): ditto.
12675         (x_widget_instantiate): ditto.
12676         (x_tab_control_instantiate): ditto.
12677         (x_tab_control_update): ditto.
12678         * event-msw.c (mswindows_wnd_proc): ditto
12679
12680         * glyphs-widget.c (image_instantiator_layout): use
12681         subwindow_decode_domain.
12682         (image_instantiator_buttons): ditto.
12683         (image_instantiator_edit_fields): ditto.
12684         (image_instantiator_combo_box): ditto.
12685         (image_instantiator_scrollbar): ditto.
12686         (image_instantiator_progress_guage): ditto.
12687         (image_instantiator_tree_view): ditto.
12688         (image_instantiator_tab_control): ditto.
12689         (image_instantiator_labels): ditto.
12690         (image_instantiator_layout): ditto.
12691
12692         * glyphs.c: add instance error checking to many functions.
12693         (instantiate_image_instantiator): decode device from cache_domain.
12694         (image_instantiate): partially rewrite by using
12695         decode_image_instantiator_domain to determine what domain the
12696         instance needs to be cached in.
12697         (decode_image_instantiator_domain): new function. Determine what
12698         domain the image needs to be cached in.
12699         (check_window_subwindow_cache): new error checking function.
12700         (check_instance_cache_mapper): ditto.
12701         (check_image_instance_structure): ditto.
12702         (subwindow_decode_domain): new function. Encodes a window as a
12703         subwindow's cache domain.
12704         (image_instantiator_format_create): use it for text and
12705         subwindows.
12706
12707 2000-04-21  Andy Piper  <andy@xemacs.org>
12708
12709         * glyphs.c (image_instance_device): new function.
12710         (image_instance_frame): new function.
12711         (image_instance_window): new function.
12712         (image_instance_live_p): new function.
12713
12714         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12715         cache to nil.
12716
12717         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12718         (IMAGE_INSTANCE_DOMAIN): new accessor.
12719         (XIMAGE_INSTANCE_DOMAIN): ditto.
12720
12721         * glyphs-x.c (x_finalize_image_instance): device->domain.
12722
12723         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12724         (mswindows_finalize_image_instance): ditto.
12725
12726         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12727         (gif_instantiate): ditto.
12728         (png_instantiate): ditto.
12729         (tiff_instantiate): ditto.
12730
12731         * glyphs.c (instantiate_image_instantiator): use domain rather
12732         than device.
12733         (mark_image_instance): device -> domain.
12734         (print_image_instance): ditto.
12735         (finalize_image_instance): ditto.
12736         (image_instance_equal): ditto.
12737         (allocate_image_instance): ditto.
12738         (Fcolorize_image_instance): ditto.
12739         (query_string_geometry): ditto.
12740         (image_instantiate): ditto
12741         (query_string_font): ditto.
12742         (image_instantiate): ditto.
12743         (update_subwindow): ditto.
12744         (unmap_subwindow): ditto.
12745         (map_subwindow): ditto.
12746         (subwindow_instantiate): ditto.
12747
12748         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12749         (DOMAIN_FRAME): ditto.
12750         (DOMAIN_WINDOW): ditto.
12751         (DOMAIN_LIVE_P): ditto.
12752         (XDOMAIN_DEVICE): ditto.
12753         (XDOMAIN_FRAME): ditto.
12754         (XDOMAIN_WINDOW): ditto.
12755
12756         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12757         a valid specifier domain.
12758
12759 2000-04-19  Andy Piper  <andy@xemacs.org>
12760
12761         * glyphs-widget.c (syms_of_glyphs_widget): remove
12762         widget-callback-current-channel.
12763         (vars_of_glyphs_widget): ditto.
12764         * glyphs.h: ditto
12765
12766         * gui.c (get_gui_callback): revert to previous behaviour.
12767
12768 2000-04-18  Andy Piper  <andy@xemacs.org>
12769
12770         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12771         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12772         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12773
12774         * glyphs.c (image_instance_equal): add margin_width.
12775         (image_instance_hash): ditto.
12776
12777         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12778         (layout_query_geometry): ditto.
12779         (layout_layout): ditto.
12780         (syms_of_glyphs_widget): add margin-width.
12781         (image_instantiator_layout): allow margin-width.
12782
12783         * glyphs.c (update_widget_instances): make a normal function.
12784         (syms_of_glyphs): remove Qupdate_widget_instances.
12785         * glyphs.h: ditto.
12786
12787         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12788         so that we don't corrupt ideas about the last event or
12789         command. Remove widget-callback-current-channel fiddling.
12790         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12791
12792 2000-05-01  Martin Buchholz <martin@xemacs.org>
12793
12794         * XEmacs 21.2.33 is released.
12795
12796 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12797
12798         * make-src-depend: Allow dots in header file name.
12799
12800 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12801
12802         * mule-charset.h (struct charset_lookup): Add
12803         next_allocated_1_byte_leading_byte and
12804         next_allocated_2_byte_leading_byte.
12805         * mule-charset.c: Move above two variables so that those values
12806         will be dumped.
12807
12808 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12809
12810         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12811         when string length is zero.
12812         (find_charsets_in_emchar_string): Ditto.
12813
12814 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12815
12816         * lisp.h: extern Qdialog and Qmenubar.
12817
12818         * gui-x.c: added events.h.
12819                 also fixed typo which made the file uncompilable.
12820
12821         * general.c: Added Qmenubar and Qdialog
12822
12823 2000-04-28  Ben Wing  <ben@xemacs.org>
12824
12825         * frame-msw.c (mswindows_init_frame_1):
12826         * frame-msw.c (mswindows_mark_frame):
12827         * event-msw.c (mswindows_enqueue_dispatch_event):
12828         * console-msw.h:
12829         * console-msw.h (struct mswindows_frame):
12830         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12831         there are now three hash tables for callbacks.
12832         mswindows_enqueue_dispatch_event is no longer static.
12833
12834         * dialog-x.c (maybe_run_dbox_text_callback):
12835         * dialog-x.c (dbox_descriptor_to_widget_value):
12836         switch to new cons3 form for callbacks.
12837
12838         * glyphs-msw.c (mswindows_register_gui_item):
12839         * glyphs-msw.c (mswindows_widget_instantiate):
12840         * glyphs-msw.c (add_tree_item):
12841         * glyphs-msw.c (add_tab_item):
12842         new image instance parameter, so it can be passed to callback-ex.
12843         respect :callback-ex as well as :callback.
12844
12845         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12846         add :callback-ex.
12847
12848         * glyphs.c (print_image_instance):
12849         prettify, e.g. now prints widget type.
12850
12851         * gui-x.h:
12852         certain funs have new image instance parameter.
12853
12854         * gui.c:
12855         * gui.c (get_gui_callback):
12856         * gui.c (gui_item_add_keyval_pair):
12857         * gui.c (gui_item_init):
12858         * gui.c (gui_add_item_keywords_to_plist):
12859         * gui.c (mark_gui_item):
12860         * gui.c (gui_item_hash):
12861         * gui.c (gui_item_equal):
12862         * gui.c (copy_gui_item):
12863         * gui.c (syms_of_gui):
12864         recognize callback-ex in a number of places.
12865         also, fix the annoying "can't get out of yes-no dialog" bug.
12866
12867         * gui.h:
12868         * gui.h (struct Lisp_Gui_Item):
12869         recognize callback-ex in a number of places.
12870
12871         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12872         new parameter in button_item_to_widget_value.
12873
12874         * glyphs-x.c (x_update_widget):
12875         * glyphs-x.c (x_button_instantiate):
12876         * glyphs-x.c (x_button_update):
12877         * glyphs-x.c (x_progress_gauge_instantiate):
12878         * glyphs-x.c (x_edit_field_instantiate):
12879         * glyphs-x.c (x_combo_box_instantiate):
12880         * glyphs-x.c (x_tab_control_instantiate):
12881         * glyphs-x.c (x_label_instantiate):
12882         new image instance parameter in various places.
12883
12884         * event-Xt.c:
12885         * event-Xt.c (enqueue_Xt_dispatch_event):
12886         this fun gets exported.
12887
12888         * gui-msw.c:
12889         * gui-msw.c (mswindows_handle_gui_wm_command):
12890         handle both :callback and :callback-ex, and generate our own
12891         event because it's one of the callback-ex arguments.
12892
12893         * gui-x.c:
12894         * gui-x.c (popup_selection_callback):
12895         handle both :callback and :callback-ex, and generate our own
12896         event because it's one of the callback-ex arguments.
12897         * gui-x.c (button_item_to_widget_value):
12898         * gui-x.c (gui_items_to_widget_values_1):
12899         * gui-x.c (gui_item_children_to_widget_values):
12900         * gui-x.c (gui_items_to_widget_values):
12901         new image instance parameter in various places.
12902
12903         * fns.c (Freplace_list):
12904         fix small typo in doc string.
12905
12906         * lisp.h:
12907         declare enqueue_Xt_dispatch_event.
12908
12909 2000-04-28  Ben Wing  <ben@xemacs.org>
12910
12911         * buffer.c:
12912         * buffer.c (Frecord_buffer):
12913         * buffer.c (syms_of_buffer):
12914         delete record-buffer-hook.
12915
12916         * fns.c:
12917         * fns.c (Freplace_list):
12918         * fns.c (syms_of_fns):
12919         new primitive replace-list.
12920
12921         * frameslots.h:
12922         slot for old buffer-alist.
12923
12924         * lisp.h:
12925         exfun replace-list.
12926
12927         * redisplay.c:
12928         * redisplay.c (redisplay_frame):
12929         * redisplay.c (syms_of_redisplay):
12930         * redisplay.c (vars_of_redisplay):
12931         new hook buffer-list-changed-hook.
12932         call it.
12933
12934 2000-04-27  Ben Wing  <ben@xemacs.org>
12935
12936         * extents.h: extern in_modeline_generation.
12937
12938         * redisplay.c (generate_formatted_string_db): set
12939         in_modeline_generation.
12940
12941         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12942         flags if in modeline generation.  otherwise frame-modified-tick
12943         is ticked far too often.
12944         Declare in_modeline_generation.
12945
12946 2000-04-26  Ben Wing  <ben@xemacs.org>
12947
12948         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12949         option.
12950         (vars_of_emacs): add quick-build as an error-checking option.
12951         A bit kludgy, but there doesn't seem much point in creating
12952         a real var for this.
12953
12954         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12955
12956 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12957
12958         * redisplay.h (struct display_line): Add a new variable,
12959         line_continuation.
12960
12961         * redisplay.c (create_text_block): Set dl->line_continuation if
12962         the line continues.
12963         (create_string_text_block): Ditto.
12964         (regenerate_window_incrementally): Use line_continuation instead
12965         of searching continuation glyph.
12966         (add_margin_runes): Call add_glyph_rune.
12967         (add_glyph_rune): Handle margin glyph.
12968
12969 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12970
12971         * filelock.c (fill_in_lock_file_name):
12972         ANSIfy.
12973         Check for IS_ANY_SEP instead of '/'.
12974         (lock_file_1):
12975         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12976         Never check errno without first seeing that system call failed.
12977         (unlock_file): Add GCPRO.
12978         (Flock_buffer): Fix docstring.
12979         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12980
12981 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12982
12983         * sysdep.c (get_pty_max_bytes):
12984         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
12985         strings longer than 252 bytes.
12986
12987         * md5.c: Unconditionally include ANSI header <limits.h>
12988
12989         * glyphs-x.c (convert_EImage_to_XImage):
12990         * lisp-union.h (union Lisp_Object):
12991         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12992
12993 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12994
12995         * filelock.c (current_lock_owner): Remove unused variable o, p.
12996
12997 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12998
12999         * callint.c: Remove multiply defined symbol Qlet
13000         (syms_of_callint): ditto.
13001
13002 2000-04-14  Andy Piper  <andy@xemacs.org>
13003
13004         * general.c (syms_of_general): add last-command, this-command, let
13005         and funcall.
13006
13007         * lisp.h: declare various symbols.
13008
13009         * glyphs.h: declare Qwidget_callback_current_channel;
13010
13011         * glyphs-widget.c (syms_of_glyphs_widget): add
13012         Qgui_callback_current_channel.
13013         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13014
13015         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13016         widget-callback-current-channel when invoking the interactive
13017         arg. Also bind last-command and next-command when invoking the
13018         widget updates.
13019         * gui-x.c (popup_selection_callback): ditto.
13020
13021         * gui.c (get_gui_callback): massage args so that we are always
13022         calling eval. This allows us to add our own variable bindings
13023         outside.
13024
13025         * glyphs-x.c (x_button_instantiate): use
13026         gui_items_to_widget_values since this is GC safe.
13027         (x_progress_gauge_instantiate): ditto.
13028         (x_edit_field_instantiate): ditto.
13029         (x_label_instantiate): ditto.
13030
13031         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13032         (emacs_Xt_event_widget_focus_out): new function
13033         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13034         focus.
13035         (emacs_Xt_event_add_widget_actions): new function. add focus
13036         functions as actions.
13037         (init_event_Xt_late): use it.
13038
13039 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13040
13041         * event-stream.c (Fdispatch_event): Doc fix.
13042
13043 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13044
13045         * postgresql.c: Remove all references to PQsetenv*.
13046
13047         * postgresql.h: Remove references to PGsetenvHandler object.
13048         * lrecord.h (lrecord_type): Ditto.
13049
13050 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13051
13052         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13053         real_heigh and real_width members, and accessor macros for these.
13054
13055         * glyphs-msw.c (init_image_instance_geometry): New function.
13056         (init_image_instance_from_dibitmap): Use it.
13057         (mswindows_resource_instantiate): Use it.
13058         (init_image_instance_from_xbm_inline): Use it.
13059         (mswindows_initialize_image_instance_mask): Use real bitmap
13060         geometry.
13061         (mswindows_create_resized_bitmap): Ditto.
13062         (mswindows_create_resized_mask): Ditto.
13063
13064         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13065         and bitmap to their surface size.
13066
13067 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13068
13069         * process-unix.c (unix_send_process): Guard against process MIA
13070         after Faccept_process_output.
13071
13072 2000-04-11  Ben Wing  <ben@xemacs.org>
13073
13074         * eval.c (unbind_to_hairy): fix brokenness introduced by
13075         nanosecond speed improvements.
13076
13077 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13078
13079         * sunplay.c (init_device): To play sounds correctly, the device
13080         apparently needs to be initialized at least once by XEmacs.  Make
13081         it so.
13082
13083 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13084
13085         * redisplay.c (add_margin_runes): Add text image glyph
13086           handling.
13087
13088 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13089
13090         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13091         gcc is newer than 2.5.
13092
13093 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13094
13095         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13096
13097         * fns.c (size_bit_vector):
13098         * alloc.c (size_vector):
13099         (make_vector_internal):
13100         (make_bit_vector_internal):
13101         (sweep_bit_vectors_1):
13102         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13103
13104 2000-04-06  Andy Piper  <andy@xemacs.org>
13105
13106         * gmalloc.c (malloc): undo previous change.
13107         (malloc): ditto.
13108         (free): ditto.
13109         (realloc): ditto.
13110
13111 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13112
13113         * line-number.c (buffer_line_number): Revert to former version.
13114
13115 2000-04-06  Andy Piper  <andy@xemacs.org>
13116
13117         * gmalloc.c (malloc): add error checking.
13118         (malloc): ditto.
13119         (free): ditto.
13120         (realloc): ditto.
13121
13122         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13123         button_item_to_widget_value arg.
13124
13125         * glyphs-x.c (x_button_instantiate): add extra
13126         button_item_to_widget_value arg.
13127         (x_progress_gauge_instantiate): ditto.
13128         (x_edit_field_instantiate): ditto.
13129         (x_label_instantiate): ditto.
13130
13131         * gui-x.c (gui_items_to_widget_values_1): add extra
13132         button_item_to_widget_value arg.
13133         (button_item_to_widget_value): add extra menu_item_p arg.
13134
13135         * gui-x.h: change signature of button_item_to_widget_value.
13136
13137         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13138         button_item_to_widget_value arg.
13139
13140 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13141
13142         * buffer.h (struct buffer): auto_save_modified should be long.
13143
13144 2000-04-05  Andy Piper  <andy@xemacs.org>
13145
13146         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13147         type.
13148         (button_query_geometry): give a little more room so that athena
13149         buttons fit.
13150
13151 2000-04-05  Andy Piper  <andy@xemacs.org>
13152
13153         * faces.c (complex_vars_of_faces): The widget face should inherit
13154         the font of the gui-element face.
13155
13156 2000-04-04  Andy Piper  <andy@xemacs.org>
13157
13158         * glyphs-x.c (x_button_update): new function. unconditionally
13159         update a button's state when the instance is dirty.
13160         (image_instantiator_format_create_glyphs_x): add x_button_update.
13161         (x_widget_instantiate): remove old resize cruft.
13162
13163 2000-04-02  Andy Piper  <andy@xemacs.org>
13164
13165         * frame.c (change_frame_size_1): The introduction of gutters means
13166         that we need to allow 0 as a potential frame dimension.
13167
13168 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13169
13170         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13171         image glyph if allow_cursor.
13172         (add_hscroll_rune): Don't allow cursor to border glyph.
13173         (create_text_block): Ditto.
13174
13175         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13176         text not in buffer.
13177         (redisplay_output_layout): Call ensure_face_cachel_complete for
13178         text image glyph.
13179
13180
13181 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13182
13183         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13184
13185         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13186         not in buffer
13187
13188         * redisplay-tty.c (tty_output_display_block): Delete the routine
13189         for text image glyph
13190         * redisplay-x.c (x_output_display_block): ditto
13191         * redisplay-msw.c (mswindows_output_display_block): ditto
13192
13193 2000-02-02  Mike Alexander  <mta@arbortext.com>
13194
13195         Note: Some of these were committed by accident as part of other
13196         patches.
13197
13198         * regex.c (regex_compile): Avoid compiler warnings.
13199
13200         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13201
13202         * nt.h: Declare term_ntproc correctly.
13203
13204         * nt.c: Remove incorrect declaration of get_home_directory which
13205         is declared correctly in lisp.h.
13206
13207         * keymap.c (get_keyelt): Avoid compiler warnings.
13208         (raw_lookup_key_mapper): Avoid compiler warnings.
13209
13210         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13211
13212         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13213
13214         * filemode.c (mode_string): Avoid compiler warnings.
13215
13216         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13217         avoid warning.
13218
13219         * events-mod.h: Undef some things that winuser.h defines differently.
13220
13221         * data.c (Faset): Avoid compiler warnings.
13222
13223         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13224
13225 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13226
13227         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13228         Fall through to simple beep on error.
13229         Replace "extern" by real header file.
13230
13231         * linuxplay.c: Use nativesound.h
13232         (play_sound_data): Return error code. Be less verbose on error.
13233
13234         * sunplay.c: Use nativesound.h
13235         (play_sound_data): Return error code. Be less verbose on error.
13236
13237         * ntplay.c: Use nativesound.h
13238         (play_sound_data): Return fake error code
13239
13240         * sgiplay.c: Use nativesound.h
13241         (play_sound_data): Return error code
13242
13243         * hpplay.c: Use nativesound.h, partially implement
13244         new error code. Break compilation until finished.
13245         (play_sound_data): error code.
13246
13247         * nativesound.h (play_sound_file):
13248           (play_sound_data): Prototype in new header.
13249
13250 2000-03-31  Andy Piper  <andy@xemacs.org>
13251
13252         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13253         for toggle and radio buttons.
13254         (image_instantiator_buttons): use it.
13255
13256 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13257
13258         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13259         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13260         found. Scrollbar event probably belonged to some old config.
13261
13262 2000-03-31  Andy Piper  <andy@xemacs.org>
13263
13264         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13265         than 1.
13266         (initialize_widget_image_instance): default layout to
13267         LAYOUT_HORIZONTAL rather than 0.
13268         (widget_instantiate): reverse the item list at the end rather than
13269         every iteration.
13270         (layout_layout): re-code for the border text at the front of the
13271         item list rather than at the end.
13272         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13273         provided by the user.
13274         (widget_query_geometry): comment.
13275
13276 2000-03-30  Andy Piper  <andy@xemacs.org>
13277
13278         * glyphs-widget.c (image_instantiator_layout): allow standard
13279         widget keywords in layouts.
13280
13281         * gutter.c (output_gutter): cope with nil gutter contents.
13282
13283         * frame.c (Fset_frame_properties): add gutter docs.
13284
13285 2000-03-29  Andy Piper  <andy@xemacs.org>
13286
13287         * toolbar-msw.c (TBSTYLE_FLAT): add.
13288         (mswindows_output_toolbar): minor fiddling.
13289
13290 2000-03-29  Andy Piper  <andy@xemacs.org>
13291
13292         * gutter.c (output_gutter): force gutter size recalculation if
13293         what we are trying to display won't fit.
13294         (update_gutter_geometry): new function. A per-gutter version of
13295         update_frame_gutter_geometry.
13296         (update_frame_gutter_geometry): use it.
13297         (redraw_exposed_gutter): add extra debugging output.
13298
13299 2000-03-28  Mike Alexander  <mta@arbortext.com>
13300
13301         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13302         (pdump_file_unmap): Implement it on Windows
13303         (pdump_file_get): Save alocated handles for pdump_file_unmap
13304
13305 2000-03-28  Andy Piper  <andy@xemacs.org>
13306
13307         * gui.c (get_gui_callback): treat Quit specially.
13308
13309 2000-03-27  Andy Piper  <andy@xemacs.org>
13310
13311         * glyphs.c (image_instantiate): be careful to check in the same
13312         way we assigned.
13313
13314 2000-03-27  Didier Verna  <didier@xemacs.org>
13315
13316         * config.h.in: define the proper SMART_INCLUDE macro.
13317         handle renaming of `foo_h_path' to `foo_h_file'.
13318
13319         * database.c: ditto.
13320
13321         * emacs.c: ditto.
13322
13323         * linuxplay.c: ditto.
13324
13325         * terminfo.c: ditto.
13326
13327         * tooltalk.h: ditto.
13328
13329 2000-03-27  Andy Piper  <andy@xemacs.org>
13330
13331         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13332         gets updated whenever the face might have changed.
13333
13334 2000-03-26  Mike Alexander  <mta@arbortext.com>
13335
13336         * dumper.c (pdump_resource_free): Fix the comment.
13337
13338 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13339
13340         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13341
13342 2000-03-22  Mike Alexander  <mta@arbortext.com>
13343
13344         * dumper.c: Include Windows headers on Windows
13345         (pdump_resource_free): Add a body to the function
13346         (pdump_load): exe_name -> exe_path and add some comments.
13347
13348 2000-03-25  Mike Alexander  <mta@arbortext.com>
13349
13350         * gui.c (copy_gui_item_tree): Return a value in all cases
13351
13352 2000-03-21  Didier Verna  <didier@xemacs.org>
13353
13354         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13355         lwlib/config.h.in.
13356         (SMART_INCLUDE): new macro.
13357         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13358         the proper location.
13359
13360         * postgresql.c: use it.
13361
13362         * inline.c: ditto.
13363
13364 2000-03-24  Andy Piper  <andy@xemacs.org>
13365
13366         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13367         do this.
13368
13369 2000-03-24  Andy Piper  <andy@xemacs.org>
13370
13371         * redisplay-output.c (compare_runes): use image_instance_changed
13372         to detect changes. Do not depend on glyphs_changed, only depend on
13373         dirtiness.
13374          (redisplay_output_layout): add debug messages.
13375         (compare_runes): ditto.
13376
13377         * glyphs.h: declare new functions.
13378         (struct Lisp_Image_Instance): remove percent and associated
13379         accessors.
13380
13381         * gui.h: declare new copying functions.
13382
13383         * gui.c (copy_gui_item_tree): new function.
13384         (copy_gui_item): new function.
13385         (gui_item_id_hash): revert to standard hash.
13386         (gui_item_hash): ditto.
13387         (gui_item_hash_internal): deleted.
13388         (mark_gui_item): mark value.
13389         (gui_item_add_keyval_pair): add value.
13390         (gui_item_init): ditto.
13391         (gui_add_item_keywords_to_plist): ditto.
13392         (gui_item_equal): ditto.
13393         (syms_of_gui): add Q_value.
13394
13395         * glyphs-x.c (x_progress_gauge_update): use pending items and
13396         value for setting the state.
13397         (x_update_widget): don't set items from pending here.
13398
13399         * glyphs-widget.c (update_widget): update items here.
13400         (progress_gauge_set_property): use items for storing value. Put
13401         new value in pending items.
13402
13403         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13404         items for new value. Convert percent -> value.
13405         (mswindows_tab_control_update): don't update items here.
13406
13407         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13408         (update_subwindow): ditto.
13409         (image_instance_changed): new function. Compare hash values and
13410         past and present widget items.
13411         (image_instantiate): We more careful about where we instantiate
13412         things.
13413         (image_instantiate): add error checking.
13414
13415         * gutter.c (syms_of_gutter): use -hook.
13416
13417 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13418
13419         * console-tty.c (Fset_console_tty_input_coding_system): Use
13420         Qkeyboard.
13421         (Fset_console_tty_output_coding_system): Use Qterminal.
13422         (tty_init_console): Use Qkeyboard and Qterminal.
13423
13424 2000-03-21  Ben Wing  <ben@xemacs.org>
13425
13426         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13427         From Mike Alexander <mta@arbortext.com>.
13428
13429 2000-03-21  Ben Wing  <ben@xemacs.org>
13430
13431         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13432         process brokenness.  Proper implementation to come.
13433         * callproc.c:
13434         Rename call-process-internal to old-call-process-internal.
13435         New impl. in process.el.
13436
13437 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13438
13439         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13440
13441 2000-03-20  Andy Piper  <andy@xemacs.org>
13442
13443         * glyphs.c (full_list_hash): make hashes of the same elements in
13444         different orders return different values.
13445
13446 2000-03-20  Martin Buchholz <martin@xemacs.org>
13447
13448         * XEmacs 21.2.32 is released.
13449
13450 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13451
13452         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13453         (DFC_MALLOC_USE_CONVERTED_DATA):
13454         Add aliasing-safe casts to allow use with char* or unsigned char*
13455         lvalues.
13456
13457         * eldap.c (Fldap_open):
13458         (Fldap_search_basic):
13459         (Fldap_add):
13460         (Fldap_modify):
13461         Make C++-compilable.
13462         Make sure GCPRO'ed variables are initialized.
13463         Use temp variables to avoid repeated calls to Flength.
13464
13465 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13466
13467         * sysfile.h:
13468         Make sure PATH_MAX is always defined.
13469         Include limits.h for PATH_MAX.
13470         Deprecate use of MAXPATHLEN.
13471
13472 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13473
13474         * emacs.c: Add reinit_vars_of_fileio.
13475         * symsinit.h: Add reinit_vars_of_fileio.
13476         * fileio.c (reinit_vars_of_fileio): New.
13477         * fileio.c (Fmake_temp_name):
13478         Initialize temp_name random number from microseconds to make
13479         collisions even less likely.  Initialize always at process startup
13480         time.  (make-temp-name) used to return the same file name twice in
13481         a row when PDUMP.
13482         Random stylistic fiddling.
13483         Comment fixes.
13484
13485 2000-03-20  Andy Piper  <andy@xemacs.org>
13486
13487         * glyphs.c (image_instantiate): allow text glyphs to be
13488         instantiated in the minibuffer window.
13489
13490 2000-03-19  Andy Piper  <andy@xemacs.org>
13491
13492         * glyphs.c (image_instance_hash): be careful about which items we
13493         hash on.
13494
13495         * glyphs-widget.c (tab_control_set_property): record into pending
13496         items rather than the actual items.
13497
13498         * glyphs-x.c (x_update_widget): use pending items to update with.
13499
13500         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13501         to update with.
13502
13503         * glyphs.c (mark_image_instance): mark pending items.
13504
13505         * window.c (Fset_window_configuration): record the buffer.
13506         (Fselect_window): totally revert previous change which breaks many
13507         things.
13508
13509 2000-03-18  Andy Piper  <andy@xemacs.org>
13510
13511         * glyphs-msw.c (mswindows_tab_control_update): force selected
13512         item.
13513
13514         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13515         window domain cache, otherwise we get inconsistencies at
13516         startup. There is something fishy at startup which can lead to the
13517         minibuffer being the selected window when the gutter content is
13518         instantiated.
13519
13520         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13521         gcpros.
13522         (parse_gui_item_tree_children): ditto.
13523         (parse_gui_item_tree_item): ditto.
13524
13525         * glyphs.c (Fupdate_widget_instances): return something.
13526
13527 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13528
13529         * window.c (Fselect_window): Undo 2000-03-17 change.
13530
13531 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13532
13533         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13534         against v7.0 libraries.  Insta-coredump city until the postgres
13535         folks fix it.
13536
13537 2000-03-17  Andy Piper  <andy@xemacs.org>
13538
13539         * faces.c (complex_vars_of_faces): don't give the widget face an
13540         inherited background pixmap.
13541
13542         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13543         selected item.
13544
13545         * event-stream.c (Fdispatch_non_command_events): return something.
13546
13547         * gutter.c (output_gutter): use widget face.
13548         (clear_gutter): ditto.
13549
13550         * NEWS: adjust again.
13551
13552         * window.c (Fselect_window): make sure this runs to completion to
13553         avoid oddities with Fset_window_configuration.
13554         (Fcurrent_window_configuration): in general do not save the
13555         minibuffer as the selected window.
13556
13557         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13558
13559 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13560
13561         * emacs.c (Frunning_temacs_p): Revert previous patch.
13562         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13563
13564 2000-03-16  Andy Piper  <andy@xemacs.org>
13565
13566         * glyphs-x.c (x_tab_control_update): if no widget values then
13567         return.
13568
13569         * NEWS: update for new features.
13570
13571         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13572         synthetic event to the native system.
13573         (reinit_vars_of_event_Xt): set force_event_pending to
13574         emacs_Xt_force_event_pending.
13575
13576         * events.h (struct event_stream): add force_event_pending.
13577
13578         * specifier.c (recompute_one_cached_specifier_in_window): add
13579         comment.
13580
13581         * redisplay.c (redisplay_frame): don't call
13582         update_frame_subwindows. Reset subwindow cachels when
13583         subwindows_changed, removing this was an optimization too far.
13584
13585         * redisplay-output.c (compare_runes): reorganize so that we catch
13586         glyph changes when we want them. Set optimize_output when this
13587         would help layouts.
13588         (redisplay_output_layout): remove frame_really_changed, use
13589         optimize_output instead.
13590
13591         * redisplay-msw.c (mswindows_output_display_block): reset
13592         optimize_output after outputting a glyph.
13593         * redisplay-x.c (x_output_display_block): ditto.
13594         * redisplay-tty.c (tty_output_display_block): ditto.
13595
13596         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13597         functions.
13598         (gutter_specs_changed): do specific gutter positions.
13599         (top_gutter_specs_changed): new function. Only update the
13600         specified gutter specs.
13601         (bottom_gutter_specs_changed): ditto.
13602         (left_gutter_specs_changed): ditto.
13603         (right_gutter_specs_changed): ditto.
13604
13605         * gui.c (gui_item_hash_internal): new function, does a real hash.
13606         (gui_item_id_hash): use it.
13607         (gui_item_hash): hash the eval'ed gui_item.
13608
13609         * gui-x.c (popup_selection_callback): send an eval event to call
13610         Fupdate_widget_instances.
13611
13612         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13613         to call Fupdate_widget_instances.
13614
13615         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13616         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13617
13618         * glyphs.c: (update_frame_subwindows): deleted.
13619         (Fupdate_widget_instances): new function for updating the dirty
13620         state of widgets that might have changed.
13621         (syms_of_glyphs): add Qupdate_widget_instances.
13622         (full_list_hash): hash a list completely.
13623         (image_instance_hash): use it for items and properties.
13624
13625         * frame-msw.c (mswindows_size_frame_internal): remove unused
13626         variable.
13627
13628         * faces.h (struct face_cachel): fix comment.
13629
13630         * event-stream.c (Fdispatch_non_command_events): new
13631         function. Process non-command events, forcing an event cycle
13632         beforehand.
13633         (syms_of_event_stream): declare.
13634         (event_stream_force_event_pending): new function. Force an event
13635         on the native event queue so that an event cycle will occur next
13636         time we check.
13637
13638         * event-msw.c:
13639         (struct ntpipe_shove_stream):
13640         (mswindows_enqueue_dispatch_event):
13641         (mswindows_dequeue_dispatch_event):
13642         (mswindows_cancel_dispatch_event):
13643         (mswindows_pump_outstanding_events):
13644         (mswindows_drain_windows_queue):
13645         (mswindows_handle_paint):
13646         (mswindows_wnd_proc):
13647         (mswindows_key_to_emacs_keysym):
13648         (get_process_input_waitable):
13649         (emacs_mswindows_delete_stream_pair): re-indent file.
13650         (mswindows_need_event): do not process further fds if the windows
13651         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13652         fixes the 100% cpu problem.
13653         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13654
13655 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13656
13657         * alloc.h: New.
13658         * dumper.h: New.
13659         * dumper.c: New.
13660
13661         * emacs.c: Moved dump file searching to dumper.c.
13662         (Frunning_temacs_p): Fixed.
13663
13664         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13665         last_lrecord_type_index_assigned.
13666
13667 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13668
13669         * symsinit.h: Added reinit parameter to init_console_stream
13670         declaration.
13671
13672         * lisp.h: Added file parameter to pdump_load declaration.
13673
13674         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13675         support.  Added dump file searching.
13676
13677         * config.h.in: Added EMACS_PROGNAME.
13678
13679         * console-stream.c (init_console_stream): Fix reinitialisation
13680         when running from temacs.
13681
13682         * alloc.c (pdump): Add id support.
13683         (pdump_load): Add file parameter and signature/id support.
13684
13685         * Makefile.in.in: Add full pdump support.
13686
13687 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13688
13689         * postgresql.c: Update documentation to reflect latest code
13690         status.
13691         (print_result): Show tuple counts in printed representation when
13692         appropriate.
13693         (Fpq_put_nbytes): MULE-ize.
13694         (Fpq_get_line_async): Ditto.
13695
13696 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13697
13698         * postgresql.c (Fpq_lo_import): Fix return value.
13699         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13700
13701 2000-03-13  Ben Wing  <ben@xemacs.org>
13702
13703         * alloc.c (pdump_load):
13704         Fix compile warning under mswin.
13705
13706 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13707
13708         * postgresql.c: Mule-ization, bug fixes.
13709         Use PG_CODING to encapsulate coding system name changes.
13710         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13711         (pg-coding-system): Create.
13712
13713         (Fpq_conn_defaults): Mule-ize.
13714         (Fpq_connectdb): Mule-ize & bug fix.
13715         (Fpq_connect_start): Mule-ize.
13716         (Fpq_set_client_encoding): Mule-ize.
13717         (Fpq_finish): Document `DEAD' connection status.
13718         (Fpq_clear): Ditto.
13719         (Fpq_pgconn): Mule-ize.
13720         (Fpq_exec): Mule-ize & bug fix.
13721         (Fpq_send_query): Ditto.
13722         (Fpq_get_result): Ditto.
13723         (Fpq_res_status): Mule-ize.
13724         (Fpq_result_error_message): Mule-ize.
13725         (Fpq_ntuples): fix comments.
13726         (Fpq_fname): Mule-ize.
13727         (Fpq_fnumber): Mule-ize.
13728         (Fpq_ftype): fix comments.
13729         (Fpq_get_value): Mule-ize.
13730         (Fpq_cmd_status): Ditto.
13731         (Fpq_cmd_tuples): Ditto.
13732         (Fpq_oid_value): Ditto.
13733         (Fpq_notifies): Ditto.
13734         (Fpq_lo_import): Ditto.
13735         (Fpq_lo_export): Ditto.
13736         (Fpq_get_line): Ditto.
13737         (Fpq_put_line): Mule-ize and bug fix.
13738         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13739
13740 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13741
13742         * postgresql.c (vars_of_postgresql): Mule-ize.
13743         (Fpq_conn_defaults): Ditto.
13744
13745 2000-03-12  Ben Wing  <ben@xemacs.org>
13746
13747         * alloc.c (Fmake_byte_code):
13748         * alloc.c (debug_string_purity_print):
13749         * alloc.c (pdump_backtrace):
13750         * alloc.c (pdump_get_indirect_count):
13751         * alloc.c (pdump_register_sub):
13752         * alloc.c (pdump_register_object):
13753         * alloc.c (pdump_register_struct):
13754         * alloc.c (pdump_dump_data):
13755         * alloc.c (pdump_reloc_one):
13756         Minor cleanups.
13757
13758         * console-msw.c:
13759         * console-msw.c (GetConsoleHwnd):
13760         * console-msw.c (msw_hide_console):
13761         * console-msw.c (msw_show_console):
13762         * console-msw.c (msw_ensure_console_buffered):
13763         * console-msw.c (msw_output_console_string):
13764         * console-msw.c (console_type_create_mswindows):
13765
13766         a) Added functions to manipulate the console window for use with
13767         shell support.
13768
13769         b) Added support for writing text to the console, which is now
13770         used under Windows when xemacs is not being run non-interactively,
13771         to write text that would otherwise be destined for stdout because
13772         under these circumstances, text written to stdout tends to
13773         disappear and not be seen.
13774
13775         * console-msw.h:
13776         * event-Xt.c:
13777         * event-Xt.c (x_event_to_emacs_event):
13778         * event-Xt.c (describe_event_window):
13779         * events-mod.h (XEMACS_MOD_CONTROL):
13780         * events.c:
13781         * events.c (Fmake_event):
13782         * events.c (character_to_event):
13783         * events.c (event_to_character):
13784         * events.c (format_event_object):
13785         * events.c (Fevent_modifiers):
13786         * events.h:
13787         * events.h (struct key_data):
13788         * events.h (struct button_data):
13789         * events.h (struct misc_user_data):
13790         * frame-x.c (Fcde_start_drag_internal):
13791         * frame-x.c (Foffix_start_drag_internal):
13792         * gpmevent.c (Freceive_gpm_event):
13793         * keymap.c:
13794         * keymap.c (bucky_sym_to_bucky_bit):
13795         * keymap.c (control_meta_superify):
13796         * keymap.c (make_key_description):
13797         * keymap.c (keymap_lookup_directly):
13798         * keymap.c (create_bucky_submap):
13799         * keymap.c (keymap_store):
13800         * keymap.c (define_key_check_and_coerce_keysym):
13801         * keymap.c (define_key_parser):
13802         * keymap.c (define_key_alternate_name):
13803         * keymap.c (Fdefine_key):
13804         * keymap.c (raw_lookup_key_mapper):
13805         * keymap.c (struct map_keymap_unsorted_closure):
13806         * keymap.c (map_keymap_unsorted_mapper):
13807         * keymap.c (map_keymap_sort_predicate):
13808         * keymap.c (map_keymap_sorted):
13809         * keymap.c (accessible_keymaps_mapper_1):
13810         * keymap.c (where_is_recursive_mapper):
13811         * keymap.c (describe_map_mapper):
13812         * keymap.c (describe_map_sort_predicate):
13813         * keymap.c (describe_map):
13814         * keymap.c (complex_vars_of_keymap):
13815         And a number of other files, the key modifier preprocessor
13816         constants that xemacs uses have names that conflict with constants
13817         defined under MS Windows for other purposes, so they were renamed
13818         to begin with the prefix XEMACS_. The variables that hold such
13819         modifiers were changed to consistently be of type int to fix
13820         various compile warnings.
13821
13822         * console.c (complex_vars_of_console):
13823         * device.c:
13824         * device-msw.c:
13825         * device-msw.c (mswindows_finish_init_device):
13826         * device-msw.c (msw_get_workspace_coords):
13827         * device-msw.c (mswindows_device_system_metrics):
13828         and various other files, added support for a new
13829         device property called offset-workspace which returns the position
13830         of the upper left corner of the workspace area and goes along with
13831         the existing size-workspace property.
13832
13833         * dialog-msw.c:
13834         * dialog-msw.c (push_bufbyte_string_as_unicode):
13835         * dialog-msw.c (mswindows_popup_dialog_box):
13836         Added support for XEmacs-style accelerator specifications in
13837         button text.  Note: I didn't add support for this under X Windows,
13838         and somebody needs to do this.
13839
13840         * dialog.c:
13841         * dialog.c (Fpopup_dialog_box):
13842         Documented the support for accelerators that was just mentioned.
13843
13844         editfns.c (get_home_directory): Changed behavior under Windows
13845         when HOME not defined; former behavior was irretrievably broken.
13846
13847         * emacs.c:
13848         * emacs.c (main_1):
13849         * emacs.c (main):
13850         * minibuf.c (clear_echo_area_internal):
13851         * minibuf.c (echo_area_append):
13852         * print.c:
13853         * print.c (std_handle_out_external):
13854         * print.c (std_handle_out_va):
13855         * print.c (fatal):
13856         * print.c (write_string_to_stdio_stream):
13857         * print.c (output_string):
13858         * print.c (debug_print):
13859         * print.c (debug_backtrace):
13860         * print.c (debug_short_backtrace):
13861         Cleaned up the code that prints text to stdout so that this can be
13862         changed to output into a console window instead under MS Windows,
13863         as described above.
13864
13865         * eval.c:
13866         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13867         * eval.c (internal_catch):
13868         * eval.c (unwind_to_catch):
13869         * eval.c (throw_or_bomb_out):
13870         * eval.c (condition_case_1):
13871         * eval.c (signal_1):
13872         * eval.c (check_error_state_sanity):
13873         * eval.c (call_with_suspended_errors_1):
13874         * eval.c (call_with_suspended_errors):
13875         * eval.c (reinit_vars_of_eval):
13876         Added code to catch throw loops and check for a pesky bug that may
13877         be gone now.
13878
13879         * event-msw.c:
13880         * event-msw.c (key_needs_default_processing_p):
13881         * event-msw.c (mswindows_wnd_proc):
13882         * event-msw.c (mswindows_modifier_state):
13883         * event-msw.c (emacs_mswindows_quit_p):
13884         * event-msw.c (vars_of_event_mswindows):
13885         a) Added support for using the alt key to select menu items as is
13886         standard under MS Windows.  This is controlled using the variable
13887         menu-accelerator-enabled, just like under X Windows.  There is an
13888         option on the options menu to turn this support on.  I really
13889         think that it should be on by default under Windows, but I'm not
13890         going to make this change yet.
13891
13892         b)  Added support for dynamic display size changes under Windows.
13893
13894         * event-stream.c:
13895         * event-stream.c (maybe_echo_keys):
13896         * event-stream.c (Fnext_event):
13897         * event-stream.c (command_builder_find_leaf):
13898         * event-stream.c (lookup_command_event):
13899         * event-stream.c (execute_command_event):
13900         * event-stream.c (pre_command_hook):
13901         * event-stream.c (post_command_hook):
13902         * event-stream.c (syms_of_event_stream):
13903         * event-stream.c (vars_of_event_stream):
13904         * event-stream.c (complex_vars_of_event_stream):
13905         * events.h (struct command_builder):
13906
13907         a) Tried to clean up a little bit the horribly written x-specific
13908         accelerator code that crept into this file.  I moved this code
13909         into menubar-x.c where it belongs. I also needed to move the
13910         command builder structure into the file events.h because it is
13911         accessed directly by this accelerator code.  What I didn't do, but
13912         which should be done at some point, is to properly abstract this
13913         code using device methods instead of the kludgy way that it
13914         currently hooks into the event code.
13915
13916         b) Added the lisp variables this-command-properties and
13917         last-command- properties, which should be used to synchronize two
13918         adjacent commands in preference to playing games with the variable
13919         this-command, which is typically what happens.
13920
13921         c) Added some slightly nasty code to hook into the lisp support
13922         for shifted- motion-key selection.  This is actually necessary for
13923         somewhat complicated reasons, which are described in
13924         simple.el. (NB: I think the proper thing would be to have the code
13925         that calls the pre and post command hooks also call out to generic
13926         lisp functions in simple.el, where all built-in stuff could be
13927         added.  I will think about this more.)
13928
13929         * event-unixoid.c (poll_fds_for_input):
13930         * lread.c (readchar):
13931         * redisplay-tty.c (tty_clear_frame):
13932         * redisplay-x.c (x_get_gc):
13933         * signal.c (interrupt_signal):
13934         And a whole bunch of other files: fixed up places that printed
13935         directly to stderr to instead call the function stderr_out so that
13936         the changes I made under Windows work correctly.
13937
13938         * filemode.c (mode_string):
13939         Warning fixes.
13940
13941         * frame-msw.c:
13942         * frame-msw.c (mswindows_size_frame_internal):
13943         Fixed the computation of frame size and position to keep the frame
13944         within the workspace area, rather than within the physical
13945         dimensions of the screen, so that the frame doesn't overlap window
13946         manager decorations, such as the start menu and toolbar, typically
13947         at the bottom of the screen.
13948
13949         * frame.c (vars_of_frame):
13950         Changed the default frame title format under MS Windows to consist
13951         of buffername-XEmacs, which is standard under MS Windows.  I think
13952         it might be a good idea to change this everywhere because I think
13953         it is superior to the current frame title format, but this is the
13954         kind of change that is likely to cause some people to get annoyed,
13955         so I'm not making it.
13956
13957         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13958
13959         * gui-msw.c (mswindows_handle_gui_wm_command):
13960         Fixed compile warnings.
13961
13962         * gui-x.c:
13963         * gui-x.c (strdup_and_add_accel):
13964         * gui-x.c (button_item_to_widget_value):
13965         * gui-x.h:
13966         Added code to automatically put an accelerator onto the beginning
13967         of menu items that don't have one as is now the standard, and is
13968         described more later.  Also fixed things so that the menu item
13969         name can be an evaluated expression, again a new standard.
13970
13971         * gui.c:
13972         * gui.c (gui_item_add_keyval_pair):
13973         * gui.c (make_gui_item_from_keywords_internal):
13974         * gui.c (gui_add_item_keywords_to_plist):
13975         * gui.c (gui_item_accelerator):
13976         * gui.c (gui_name_accelerator):
13977         * gui.c (gui_item_included_p):
13978         * gui.c (gui_item_display_flush_left):
13979         * gui.c (gui_item_display_flush_right):
13980         * gui.c (parse_gui_item_tree_item):
13981         * gui.c (parse_gui_item_tree_children):
13982         * gui.c (parse_gui_item_tree_list):
13983         Mule-ized.  Cleanup.  GCPRO addition.
13984
13985         * line-number.c (buffer_line_number):
13986         * lisp.h:
13987         * lisp.h (EMACS_INT_MAX):
13988         Added the manifest constant EMACS_INT_MIN corresponding to the
13989         existing constant EMACS_INT_MAX.  This is partially to fix compile
13990         warnings under Windows, and partly for cleanliness.
13991
13992         * menubar-msw.c:
13993         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13994         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13995         * menubar-msw.c (displayable_menu_item):
13996         * menubar-msw.c (populate_menu_add_item):
13997         * menubar-msw.c (populate_or_checksum_helper):
13998         * menubar-msw.c (populate_menu):
13999         * menubar-msw.c (update_frame_menubar_maybe):
14000         * menubar-msw.c (prune_menubar):
14001         * menubar-msw.c (msw_char_is_accelerator):
14002         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14003         * menubar-msw.c (mswindows_handle_wm_command):
14004         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14005         * menubar-msw.c (mswindows_handle_wm_initmenu):
14006         * menubar-msw.c (mswindows_update_frame_menubars):
14007         * menubar-msw.c (mswindows_free_frame_menubars):
14008         * menubar-msw.c (mswindows_popup_menu):
14009         Fixed a bug in handling accelerators where an extra character
14010         would be displayed in the menu item.  Also generalized the
14011         function displayable_menu_item because it is now used by the
14012         dialog box code as well.  And finally, added code in the functions
14013         that create the menubar to extract a list of accelerators for the
14014         top level menubar, which is used in the event code to determine
14015         whether a particular alt-key combination should be used to invoke
14016         a menu item, or should be passed through to access the standard
14017         XEmacs keymap binding for this key combination.
14018
14019         Much needed GCPROing.
14020
14021         * menubar-x.c:
14022         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14023         * menubar-x.c (menu_item_descriptor_to_widget_value):
14024         * menubar-x.c (restore_in_menu_callback):
14025         * menubar-x.c (x_popup_menu):
14026         * menubar-x.c (menu_move_up):
14027         * menubar-x.c (menu_move_down):
14028         * menubar-x.c (menu_move_left):
14029         * menubar-x.c (menu_move_right):
14030         * menubar-x.c (menu_select_item):
14031         * menubar-x.c (command_builder_operate_menu_accelerator):
14032         * menubar-x.c (menu_accelerator_junk_on_error):
14033         * menubar-x.c (command_builder_find_menu_accelerator):
14034         * menubar-x.c (Faccelerate_menu):
14035         * menubar.h:
14036         Moved a whole bunch of code here that was previously in
14037         event-stream.c as described above.  There is also code connected
14038         to the new standard of adding an accelerator to the beginning of
14039         menu items that don't have one as described above and below.
14040
14041         * menubar.c:
14042         * menubar.c (menu_parse_submenu_keywords):
14043         * menubar.c (Fmenu_find_real_submenu):
14044         * menubar.c (Fnormalize_menu_item_name):
14045         * menubar.c (syms_of_menubar):
14046         * menubar.c (vars_of_menubar):
14047         * menubar.c (complex_vars_of_menubar):
14048
14049         a) Cleaned up a bunch of documentation and improved it.
14050
14051         b) XEmacs now automatically adds an accelerator onto the beginning
14052         of any menu items that don't have one.  I did this because there
14053         will inevitably be some menu items on the main menubar that don't
14054         have accelerators on them because the package that adds that
14055         particular menu item hasn't yet been fixed up to have accelerators
14056         in them and it looked rather strange to have some items with and
14057         some items without accelerators, especially since even in items
14058         without accelerators, you can, at least under windows, still
14059         access the item through an accelerator corresponding to the first
14060         character in the item's name.  If people don't like this behavior,
14061         I can add a variable to turn it off optionally, but I'm not sure
14062         this is a good idea because we really do need to have accelerators
14063         on all of the menu items, and if a package doesn't like the
14064         accelerators being put on the first character, then it should put
14065         the accelerators where they belong.
14066
14067         c) I made a behavior change, which is that the descriptor that
14068         specifies the text of the menu item, which formerly was just a
14069         string, can now also be an evaluated expression.  This makes this
14070         descriptor parallel with all of the others, which could also be
14071         evaluated expressions.  This also obviates the need for the
14072         keyword :label, which was previously listed in the documentation
14073         as unimplemented, and which was for the same purpose.
14074
14075         d) GCPROing.
14076
14077         * ntproc.c:
14078         * ntproc.c (new_child):
14079         * ntproc.c (sys_spawnve):
14080         * ntproc.c (find_child_console):
14081         * ntproc.c (sys_kill):
14082         Fixed compile warnings.  By the way, this file should really go
14083         away entirely, and this will happen as soon as Kirill makes his
14084         final round of process cleanups, which affect the function
14085         call-process.
14086
14087         * process-nt.c:
14088         * process-nt.c (struct nt_process_data):
14089         * process-nt.c (find_process_from_pid):
14090         * process-nt.c (send_signal_the_nt_way):
14091         * process-nt.c (enable_child_signals):
14092         * process-nt.c (find_child_console):
14093         * process-nt.c (send_signal_the_95_way):
14094         * process-nt.c (nt_finalize_process_data):
14095         * process-nt.c (ensure_console_window_exists):
14096         * process-nt.c (nt_create_process):
14097         * process-nt.c (nt_kill_child_process):
14098         * process-nt.c (nt_kill_process_by_pid):
14099         * process-nt.c (nt_open_network_stream):
14100         * process-nt.c (vars_of_process_nt):
14101         Copied over code from Emacs 20.5 to correctly send signals to sub-
14102         processes under Windows 95.  Also added code to automatically
14103         create and hide console window when a sub-process is created under
14104         Windows 95, which obviates the need for the separate runemacs.exe
14105         executable, and finally implemented some variables that were
14106         implemented in Emacs 20.5, but previously not in XEmacs.  These
14107         include mswindows- start-process-share-console and
14108         mswindows-start-process-inherit-error-mode. (Both of these only
14109         apply to Windows 95.)
14110
14111         * regex.c (regex_compile): Fixed a compile warning.
14112
14113         * select-msw.c:
14114         * select-msw.c (mswindows_own_selection):
14115         * select-msw.c (mswindows_get_foreign_selection):
14116         * select-msw.c (mswindows_disown_selection):
14117         * select-msw.c (console_type_create_select_mswindows):
14118         * select-msw.c (syms_of_select_mswindows):
14119         Cleaned up the file and implemented the device method
14120         selection_exists_p, which had accidentally been left out.  Also
14121         removed four lisp functions that were remnants from before the
14122         time when the selection code was properly device abstracted.
14123         These functions are no longer needed because there are generic
14124         equivalents, and because they were added recently and don't exist
14125         in FSF Emacs, I don't think there's any problem with just deleting
14126         them.
14127
14128         * sysdep.c:
14129         * sysdep.c (sys_subshell):
14130         Fixed a compile warning, although in this case there's probably
14131         something wrong with this code, and it ought to be looked into
14132         more thoroughly by somebody who understands it.
14133
14134         * window.c:
14135         * window.c (Fwindow_text_area_height):
14136         * window.c (Fwindow_width):
14137         * window.c (Fwindow_full_width):
14138         * window.c (Fwindow_pixel_width):
14139         * window.c (debug_print_window):
14140         * window.c (syms_of_window):
14141         Added functions window-text-area-height and window-full-width,
14142         which are functions for returning various width and height
14143         characteristics of a window. (One of these functions is necessary
14144         for making the file dialog box work correctly, and the other one
14145         was added for completeness.)  Also added a table to the
14146         documentation for window-height which describes the entire scheme
14147         for accessing width and height characteristics of a window.
14148
14149 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14150
14151         * nt.c (fstat): Added a comment for another problem with
14152         non-encapsulated [f]stat(), reported by Adrian Aichner
14153         <aichner@ecf.teradyne.com>.
14154
14155 2000-03-11  Andy Piper  <andy@xemacs.org>
14156
14157         * window.c (make_dummy_parent): initialize subwindow instance
14158         cache.
14159         (Fset_window_configuration): zero extent_modiff.
14160
14161 2000-03-10  Andy Piper  <andy@xemacs.org>
14162
14163         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14164         more changes can be triggered.
14165         (Fredisplay_frame): ditto.
14166         (Fredraw_device): ditto.
14167         (Fredisplay_device): ditto.
14168         (redisplay_frame): make non-static.
14169         (redisplay_frame): call update_frame_gutter_geometry outside of
14170         display proper.
14171
14172         * gutter.h: declare update_frame_gutter_geometry.
14173
14174         * redisplay.h: declare redisplay_frame.
14175
14176         * gutter.c (update_frame_gutter_geometry): move geometry changes
14177         in update_frame_gutters here. Geometry changes can only occur
14178         outside of redisplay.
14179         (update_frame_gutters): remove geometry change code.
14180         (Fredisplay_gutter_area): make sure that we are in display when we
14181         update and that we have flushed any size changes.
14182
14183 2000-03-11  Andy Piper  <andy@xemacs.org>
14184
14185         * alloc.c (pdump_dump_data): remove i & count shadows.
14186
14187 2000-02-27  Mike Alexander  <mta@arbortext.com>
14188
14189         * sysdep.h: Declare pdump_read_file
14190
14191         * sysdep.c (pdump_read_file): New function
14192
14193         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14194         dump data
14195
14196 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14197
14198         * lrecord.h: add `lrecord_type_pgsetenv'.
14199
14200 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14201
14202         * symsinit.h: declare (vars|syms)_of* functions.
14203         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14204
14205 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14206
14207         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14208
14209         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14210         GCCs.
14211
14212         * emacs.c (main_1): Call postgres initialization code.
14213
14214         * postgresql.h: New file.  PostgreSQL RDBMS support.
14215         * postgresql.c: New file.
14216
14217 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14218
14219         * redisplay-output.c (redisplay_output_display_block): Disable
14220         redundant code.
14221
14222 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14223
14224         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14225         (Fcanna_henkan_next): Ditto.
14226         (Fcanna_bunsetu_henkou): Ditto.
14227         (Fcanna_henkan_kakutei): Ditto.
14228         (Fcanna_henkan_end): Ditto.
14229         (Fcanna_henkan_quit): Ditto.
14230         (Fcanna_henkan_next): Set retun value correctly.
14231         (c2mu): Use unsigned char instead of signed char.
14232
14233 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14234
14235         * emacs.c (main_1): Always call syms_of_gui.
14236         * inline.c: include gui.h
14237
14238 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14239
14240         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14241         converted to Lisp_Object.
14242         (Qtop_bottom): New variable.
14243         (syms_of_redisplay): Initialize it.
14244         * redisplay.h (Vvisible_bell): Ditto.
14245         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14246         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14247         only flash top and bottom.
14248
14249 2000-03-08  Andy Piper  <andy@xemacs.org>
14250
14251         * buffer.c (Frename_buffer): record new buffer name the right way.
14252
14253 2000-03-08  Andy Piper  <andy@xemacs.org>
14254
14255         * glyphs.c (update_subwindow): increase hash depth so that widget
14256         items get picked up properly.
14257
14258         * redisplay-output.c (compare_runes): increase hash depth so that
14259         widget items get picked up properly.
14260
14261 2000-03-08  Andy Piper  <andy@xemacs.org>
14262
14263         * gutter.c (output_gutter): add some debug.
14264
14265         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14266         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14267         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14268
14269         * redisplay-output.c (compare_runes): use display_hash to
14270         determine if glyphs really are not the same.
14271
14272         * glyphs.c (update_subwindow): check display_hash to see if
14273         anything really needs to be updated. If not then do
14274         nothing. Record the display_hash after updating.
14275         (image_instance_equal): compare the image_instance face also.
14276
14277 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14278
14279         * redisplay.h: Fix comment style.
14280
14281 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14282
14283         * consle-msw.h (struct mswindows_frame):
14284         Added new member paint_pending to indicate whether a WM_PAINT
14285         magic event has been queued for this frame.
14286
14287         * event-msw.c (mswindows_drain_windows_queue):
14288         Don't queue a WM_PAINT magic event if one is already queued.
14289         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14290
14291         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14292
14293 2000-03-07  Didier Verna  <didier@xemacs.org>
14294
14295         * dired.c: #include `regex.h' after `sysfile.h'.
14296
14297 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14298
14299         * sound.c (init_nas_sound): Fix compiler warning.
14300
14301         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14302         (FREE_STRUCT_P):
14303         (MARK_STRUCT_AS_FREE):
14304         (MARK_STRUCT_AS_NOT_FREE):
14305         Make `gcc -fstrict-aliasing' work properly.
14306
14307 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14308
14309         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14310         (mswindows_delete_device): Call CoUnnitialize().
14311
14312         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14313
14314 2000-02-25    <CraigL@DyCon.com>
14315
14316         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14317         <errno.h>.
14318
14319         * sysdep.c: This extern declaration for environ prevents MinGW
14320         from finding the variable in CRTDLL.DLL.
14321
14322         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14323         windows headers.
14324         (SHGFI_EXETYPE): ..
14325         (WM_MOUSEWHEEL): ..
14326         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14327         definitions.
14328         (MMRESULT): Removed, now defined in cygwin's windows headers.
14329         (TIMECAPS): ..
14330         (uid_t,gid_t,pid_t,ssize_t): ..
14331         (_timeb): Removed, MinGW defines both _timeb and timeb.
14332         (HAVE_H_ERRNO): Added.
14333         (HAVE_TZNAME): Added, configure is not detecting this.
14334
14335 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14336
14337         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14338         * syntax.c (syntax_match): Use it.
14339
14340         * cmds.c: Import auto-fill-chars from FSF Emacs.
14341         (Vauto_fill_chars): New variables.
14342         (internal_self_insert): Check Vauto_fill_chars.
14343         (vars_of_cmds):
14344         Declare auto-fill-chars as a Lisp variable and initialize it.
14345
14346 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14347
14348         * fileio.c (Fmake_symbolic_link):
14349         (Ffile_symlink_p):
14350         Run handlers even if local machine doesn't have symlinks.
14351
14352 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14353
14354         * event-msw.c (mswindows_drain_windows_queue):
14355         Don't generate paint magic events for non-XEmacs frames.
14356
14357 2000-03-05  Andy Piper  <andy@xemacs.org>
14358
14359         * redisplay.c (redisplay_frame): generate_displayable_area and
14360         friends assumes that we are not in GC, we therefore have to make
14361         sure that this doesn't happen.
14362
14363         * gutter.c (calculate_gutter_size): generate_displayable_area
14364         assumes that we are not in GC, we therefore have to make sure that
14365         this doesn't happen.
14366
14367 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14368
14369         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14370
14371 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14372
14373         * redisplay.c (regenerate_window): Make sure we set a sane value
14374         for end_pos even if we jump out of the loop.
14375         (regenerate_window): Answer Ben's question :-).
14376         (start_end_of_last_line): Add may_error argument.
14377         (start_of_last_line):
14378         (end_of_last_line): Pass may_error = 0.
14379         (end_of_last_line_may_error): New function.
14380         (pixel_to_glyph_translation): Use it, so we don't crash in
14381         event_to_glyph.
14382
14383 2000-03-04  Andy Piper  <andy@xemacs.org>
14384
14385         * window.h (struct window): add gutter_extent_modiff.
14386
14387         * window.c (allocate_window): zero out gutter_extent_modiff.
14388
14389         * redisplay.h: declare sync_display_line_structs.
14390
14391         * redisplay.c (add_glyph_rune): add a better comment.
14392
14393         * redisplay-output.c (sync_display_line_structs): made non-static.
14394         (compare_runes): remove unneccesary glyph cachel access.
14395
14396         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14397
14398         * gutter.c (output_gutter): don't output the gutter if extent
14399         changes only involve extents in buffers. use 4 sets of display
14400         lines.
14401         (gutter_extent_signal_changed_region_maybe): new function. Mark
14402         extents in gutters as changed.
14403         (update_frame_gutters): use 4 sets of display lines.
14404         (reset_gutter_display_lines): ditto.
14405         (free_frame_gutters): ditto.
14406         (redraw_exposed_gutter): force output of gutters.
14407
14408         * frame.h (struct frame): add 4 sets of gutter display lines.
14409
14410         * extents.c: (extent_changed_for_redisplay): signal changes to
14411         extents in strings in the gutter as well as extents in buffers.
14412
14413 2000-03-02  Andy Piper  <andy@xemacs.org>
14414
14415         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14416
14417         * frame.c (Fmake_frame): make sure the gutters get initialized
14418         after the frame is visible.
14419         (set_frame_selected_window): re-arrange compilation macros a
14420         little.
14421         (change_frame_size_1): mark gutters changed.
14422
14423         * device.c (Fset_device_class): mark gutters changed.
14424
14425 2000-03-01  Andy Piper  <andy@xemacs.org>
14426
14427         * window.c (window_top_frame_gutter_height): deleted.
14428         (window_bottom_frame_gutter_height): ditto.
14429         (window_left_frame_gutter_height): ditto.
14430         (window_right_frame_gutter_height): ditto.
14431         (window_top_gutter_height): don't use them.
14432         (window_bottom_gutter_height): ditto.
14433         (window_left_gutter_width): ditto.
14434         (window_right_gutter_width): ditto.
14435         (Fsplit_window): ditto.
14436         (Fwindow_pixel_edges): don't use border dimensions here.
14437
14438         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14439         (update_scrollbar_instance): ditto.
14440
14441         * redisplay.c (generate_modeline): don't take gutters into account.
14442         (generate_modeline): ditto.
14443         (redisplay_frame): small gutter display optimization.
14444
14445         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14446
14447         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14448         gutters into account.
14449
14450         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14451         for window position and type.
14452
14453         * gutter.c (get_gutter_coords): fix for frame gutters.
14454         (update_frame_gutters): update frame geometry if the gutters have
14455         changed.
14456         (init_frame_gutters): record current gutter geometries.
14457
14458         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14459         var.
14460         (mswindows_widget_instantiate): ditto.
14461
14462         * frame.h (struct frame): add current_gutter_bounds.
14463
14464         * frame.c (change_frame_size_1): position window and minibuffer
14465         appropriately taking into account the frame gutters.
14466
14467         * frame-x.c: (x_initialize_frame_size): take into account the
14468         frame gutters.
14469
14470 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14471
14472         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14473
14474 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14475
14476         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14477
14478 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14479
14480         * file-coding.c (reset_decoding_stream): Clear previous
14481         detection state when autodetect.
14482
14483 2000-02-29  Didier Verna  <didier@xemacs.org>
14484
14485         * extents.c (set_extent_glyph_1): don't require extents to be
14486         attached.
14487
14488 2000-02-27  Andy Piper  <andy@xemacs.org>
14489
14490         * gutter.c (Fset_default_gutter_position): don't default left and
14491         right gutter visibility to t.
14492         (Fset_default_gutter_position): run
14493         default-gutter-position-changed-hook.
14494         (syms_of_gutter): add default-gutter-position-changed-hook.
14495
14496 2000-02-26  Andy Piper  <andy@xemacs.org>
14497
14498         * specifier.c (Fmake_specifier): add gutter references.
14499
14500         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14501
14502         * lisp.h: declare Fvalid_plist_p.
14503
14504         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14505         as changed.
14506         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14507         well as its visibility so that it gets reconstructed.
14508         (construct_window_gutter_spec): new function. Construct a string
14509         to be displayed in the gutter from a plist of strings. Take care
14510         to only use elements that are declared as visible.
14511         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14512         WINDOW_GUTTER.
14513         (gutter_validate): allow plists of strings in the specifier.
14514         (gutter_specs_changed): construct the real_gutter from the gutter
14515         specs using construct_window_gutter_spec.
14516         (gutter_visible_validate): gutter-visible is a new specifier type.
14517         (Fgutter_visible_specifier_p): new function for the new specifier.
14518         (syms_of_gutter): declare gutter-visible and
14519         Fgutter_visible_specifier_p.
14520         (specifier_type_create_gutter): intitalize new gutter-visible
14521         specifier.
14522         (reinit_specifier_type_create_gutter): ditto.
14523         (specifier_vars_of_gutter): use new specifier type for gutter
14524         visibility.
14525         (init_frame_gutters): construct real_gutter correctly.
14526         (Fgutter_specifier_p): beef up documentation.
14527         (Fgutter_size_specifier_p): ditto.
14528
14529         * winslots.h: add real_gutter slots.
14530
14531 2000-02-25  Andy Piper  <andy@xemacs.org>
14532
14533         * device-msw.c: Be kind to older cygwin versions. From Raymond
14534         Toy <toy@rtp.ericsson.se>.
14535
14536         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14537         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14538
14539 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14540
14541         * elhash.c (MARK_OBJ): Practice macro hygiene.
14542
14543 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14544
14545         * miscplay.c: s/__inline__/inline/g;
14546         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14547         (get_device_compdc): INLINE ==> static inline
14548         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14549         find -name '*.h' | \
14550         xargs global-replace \
14551         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14552
14553 2000-02-25  Andy Piper  <andy@xemacs.org>
14554
14555         * window.c (window_top_frame_gutter_height): new function.
14556         (window_top_window_gutter_height): ditto.
14557         (window_top_gutter_height): use them.
14558         (window_bottom_frame_gutter_height): new function.
14559         (window_bottom_window_gutter_height): ditto.
14560         (window_bottom_gutter_height): use them.
14561         (window_left_window_gutter_width): new function.
14562         (window_left_frame_gutter_width): ditto.
14563         (window_left_gutter_width): use them.
14564         (window_right_window_gutter_width): new function.
14565         (window_right_frame_gutter_width): ditto.
14566         (window_right_gutter_width): use them.
14567         (window_pixel_height): new function. calulate window pixel height
14568         with frame gutter involvement.
14569         (Fsplit_window): calculate new sizes taking frame gutters into
14570         account.
14571         (window_char_height_to_pixel_height): don't include frame gutters.
14572         (window_char_height): use window_pixel_height.
14573         (window_pixheight): rename from window_pixel_height.
14574         (change_window_height): use it.
14575         (window_pixel_height_to_char_height): don't include frame gutters.
14576         (window_char_width_to_pixel_width): ditto.
14577
14578 2000-02-25  Andy Piper  <andy@xemacs.org>
14579
14580         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14581         if it is.
14582
14583 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14584
14585         * alloc.c (staticpro):
14586         (staticpro_nodump):
14587         (dumpstruct):
14588         (dumpopaque):
14589         (pdump_wire):
14590         (pdump_wire_list):
14591         (compact_string_chars):
14592         (pdump_dump_wired):
14593         Convert:  if (foo) abort();  ==>  assert (! foo);
14594
14595         * eldap.c (Fldap_search_basic):
14596         (Fldap_add):
14597         (Fldap_modify):
14598         (Fldap_delete):
14599         Fix compiler warnings, and possible crashes if (random) return
14600         value were to be used.
14601
14602 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14603
14604         * device-msw.c: Workaround ResetDC failure.
14605
14606         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14607         applying a devmode.
14608
14609         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14610         (mswindows_text_width): Do not start printer page.
14611
14612         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14613
14614         * glyphs-msw.c: Added image methods to msprinter console and
14615         msprinter-specific image instantiation.
14616
14617 2000-02-20  Mike Alexander  <mta@arbortext.com>
14618
14619         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14620         to avoid crashes when selection-sets-clipboard is on
14621         (mswindows_own_selection): ditto
14622
14623 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14624
14625         * glyphs-msw.c:
14626         * redisplay-msw.c (get_frame_dc):
14627         (get_frame_compdc):
14628         * console-msw.h:
14629         * device-msw.c (mswindows_init_device):
14630         (mswindows_delete_device):
14631         (msprinter_init_device):
14632         (msprinter_delete_device):
14633         * frame-msw.c (mswindows_init_frame_1):
14634         (mswindows_delete_frame):
14635         (msprinter_init_frame_3):
14636         (msprinter_delete_frame): Move compatible DC to device object from
14637         frame object, for both mswindows and msprinter. Only one at a time
14638         is needed, it is a real waste to have one per frame!
14639
14640 2000-02-23  Andy Piper  <andy@xemacs.org>
14641
14642         * glyphs.c: add dynamic width and height elements.
14643         (image_instance_equal): ditto.
14644
14645         * glyphs-widget.c (widget_query_geometry): calculate width and
14646         height dynamically if required.
14647         (initialize_widget_image_instance): initialize dynamic dimensions.
14648         (widget_instantiate): pick-up dynamic dimensions.
14649
14650         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14651         dynamic determination. Add appropriate macros.
14652
14653         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14654         dimensions safe.
14655         (WINDOW_GUTTER_SIZE): ditto.
14656         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14657
14658         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14659         inline.
14660         (get_frame_dc): ditto.
14661
14662         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14663         here.
14664
14665 2000-02-23  Martin Buchholz <martin@xemacs.org>
14666
14667         * XEmacs 21.2.31 is released.
14668
14669 2000-02-22  Ben Wing <ben@xemacs.org>
14670
14671         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14672
14673 2000-02-22  Andy Piper  <andy@xemacs.org>
14674
14675         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14676
14677 2000-02-21  Mike Sperber <mike@xemacs.org>
14678
14679         * .dbxrc:
14680         * .gdbinit:
14681         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14682         variables.
14683
14684 2000-02-21  Mike Sperber <mike@xemacs.org>
14685
14686         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14687
14688 2000-02-21  Martin Buchholz <martin@xemacs.org>
14689
14690         * XEmacs 21.2.30 is released.
14691
14692 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14693
14694         Performance hacking.
14695         * *.c (syms_of_*):
14696         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14697         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14698         * emacs.c (main_1):
14699         * lisp.h (DEFUN):
14700         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14701         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14702         * symeval.h (DEFVAR_SYMVAL_FWD):
14703         * symbols.c (guts_of_unbound_marker):
14704         Make all c_readonly objects also lisp_readonly and marked for life.
14705         * lrecord.h (struct lrecord_implementation):
14706         Document flags better.
14707         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14708         * lrecord.h (DECLARE_LRECORD):
14709         * lrecord.h (XSETRECORD):
14710         * lrecord.h (RECORDP):
14711         * lrecord.h (RECORD_TYPEP):
14712         * lrecord.h (RECORD_MARKER): New.
14713         * lrecord.h (error_check_*):
14714         * lrecord.h (CONCHECK_NONRECORD):
14715         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14716         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14717         * lrecord.h (set_lheader_implementation):
14718         * lrecord.h (enum lrecord_type): New.
14719         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14720         * alloc.c (disksave_object_finalization_1):
14721         * alloc.c (mark_object):
14722         * alloc.c (lrecord_type_index):
14723         * alloc.c (tick_lcrecord_stats):
14724         * alloc.c (Fgarbage_collect):
14725         * alloc.c (init_alloc_once_early):
14726         * alloc.c (pdump_load):
14727         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14728         * alloc.c (lrecord_type_index): Delete.
14729         Make lisp object type indexes be constant.
14730           Makes (byte-compile) 5% faster.
14731         Put all marker functions into their own array.
14732           Makes (garbage-collect) 5% faster.
14733         Optimize SYMBOL_VALUE_MAGIC_P.
14734           Makes (byte-compile) 2-3% faster.
14735         * config.h.in (gc_checking_assert): New.
14736         * alloc.c: Use gc_checking_assert().
14737         * .dbxrc: Make compatible with new object type implementation.
14738         * .gdbinit: Make compatible with new object type implementation.
14739         * alloc.c: Delete all symbols defined only for debugging, such as
14740         Lisp_Type_Vector and lrecord_charset.
14741
14742 2000-02-21  Andy Piper  <andy@xemacs.org>
14743
14744         * gui-msw.c (Fmswindows_shell_execute): fix file location
14745         problems.
14746
14747         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14748         unshowing so that set_window_buffer doesn't undo
14749         kill_buffer_hook's hard work.
14750
14751         * glyphs-widget.c (tab_control_query_geometry): don't count the
14752         first item when calculating geometry.
14753
14754         * glyphs.c (map_subwindow): remove redundant code.
14755         (update_frame_subwindows): be more circumspect about when to
14756         update subwindows.
14757
14758         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14759         when items haven't changed. Update faces if faces have changed as
14760         well as just the widget face.
14761         (x_tab_control_update): Update faces if faces have changed as well
14762         as just the widget face.
14763
14764 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14765
14766         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14767         registration.
14768         (build_syscolor_string): Use mswindows_color_to_string to try to
14769         get a named color.
14770         (mswindows_device_system_metrics): Reverse the foreground and
14771         background colors so that they match the documentation.
14772
14773         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14774         they match the default Windows palette.
14775         (mswindows_color_to_string): New function.
14776
14777 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14778
14779         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14780
14781 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14782
14783         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14784         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14785
14786         * symbols.c (init_symbols_once_early): Removed obsolete
14787         DATA_SEG_BITS related kludge.
14788         (defvar_magic): Ditto.
14789
14790         * malloc.c: Removed obsolete DATA_SEG_BITS
14791         * ralloc.c: Ditto.
14792         * mem-limits.h: Ditto.
14793
14794         * Makefile.in.in: Removed obsolete HAVE_SHM
14795         * emacs.c: Ditto.
14796
14797 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14798
14799         *  device-msw.c (mswindows_delete_device): Free DDE string
14800         handles.
14801
14802 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14803
14804         * keymap.c (get_keyelt):
14805         * unexnt.c (unexec):
14806         * vm-limit.c (memory_warnings):
14807         * ntheap.c (recreate_heap):
14808         * ntheap.h (UNINIT_PTR):
14809         * select-msw.c (Fmswindows_get_clipboard):
14810         (Fmswindows_set_clipboard):
14811         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14812         * objects-msw.c:
14813         * menubar-msw.c (displayable_menu_item):
14814         * glyphs-msw.c:
14815         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14816         * sysdep.c (sys_subshell):
14817         * process-nt.c (nt_create_process):
14818         * nt.c (normalize_filename):
14819         (dostounix_filename):
14820         (unixtodos_filename):
14821         * ntproc.c (win32_executable_type):
14822         * ntplay.c (play_sound_data_1):
14823         (play_sound_file):
14824         * editfns.c (get_home_directory):
14825         * event-msw.c (struct winsock_stream):
14826         (mswindows_dde_callback):
14827         * device-msw.c (msprinter_init_device):
14828         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14829
14830         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14831         mswindows_clear_toolbar were swapped!
14832
14833         * objects-msw.c:(colormap_t):
14834         (fontmap_t):
14835         * emacs.c (struct standard_args): Fixed const jumble.
14836
14837         * glyphs-widget.c (update_widget): Fixed comparison notation.
14838
14839         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14840
14841         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14842         __declspec(noreturn) syntax.
14843
14844 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14845
14846         * eldap.c (Fldap_open):
14847         (Fldap_search_basic):
14848         (Fldap_add):
14849         (Fldap_modify):
14850         Use new coding system conversion macros.
14851
14852 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14853
14854         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14855
14856 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14857
14858         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14859         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14860
14861         * eldap.c (Qadd, Qreplace): New constant symbols
14862         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14863         interruptions by XEmacs signals
14864         Remove unnecessary calls to slow_down_interrupts and
14865         speed_up_interrupts
14866         (Fldap_search_basic): Renamed from Fldap_search_internal
14867         Added new optional parameter VERBOSE that triggers the
14868         display of progress messages
14869         Remove unnecessary calls to slow_down_interrupts and
14870         speed_up_interrupts
14871         LDAP result code analysis rewritten
14872         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14873         (syms_of_eldap): Define the new symbols and functions
14874
14875
14876 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14877
14878         * realpath.c: Determine PATH_MAX maximally portably.
14879
14880         * insdel.c (bytecount_to_charcount): Optimize.
14881         The function used to be optimized for entirely ASCII sequences.
14882         Now it is optimized for successive characters from the same
14883         charset.  This also wins big for _mostly_ ASCII sequences.
14884
14885         * fileio.c (Ffile_truename): convert return from realpath() using
14886         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14887         - Rewrite GCPROing slightly.
14888
14889         * sysdep.c (sys_open): Do filename conversion, like all other
14890         sys_* functions.  Fixes bug:
14891         (let ((file-name-coding-system 'iso-8859-2))
14892            (write-region x y latin2-name))
14893         ==> writes filename using internal encoding.
14894
14895 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14896
14897         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14898         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14899         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14900         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14901         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14902         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14903         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14904         (CONST_IF_NOT_DEBUG): Delete.
14905         * alloc.c (this_one_is_unmarkable): Delete.
14906         (mark_object): Don't check for this_one_is_unmarkable. Use the
14907         c_readonly flag instead.
14908         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14909
14910 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14911
14912         * event-msw.c (mswindows_drain_windows_queue):
14913         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14914         away redundant repaint events.
14915
14916 2000-02-17  Andy Piper  <andy@xemacs.org>
14917
14918         * redisplay.h: declare mark_redisplay_structs.
14919
14920         * redisplay.c (redisplay_window):
14921         (redisplay_frame): don't check subwindows_state_changed.
14922         (mark_redisplay): mark gutters here.
14923
14924         * glyphs.c: (instantiate_image_instantiator): always layout if we
14925         haven't done so already.
14926         (allocate_image_instance): don't mark as dirty.
14927         (update_subwindow): bind inhibit_quit.
14928
14929         * gutter.c (mark_gutters): new function.
14930
14931         * glyphs-x.c (x_update_widget): Always resize to get round a
14932         widget bug.
14933
14934         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14935         breaking absolutely everything.
14936
14937         * gutter.h: declare mark_gutters.
14938
14939 2000-02-16  Martin Buchholz <martin@xemacs.org>
14940
14941         * XEmacs 21.2.29 is released.
14942
14943 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14944
14945         * fns.c (size_bit_vector): Fix computation of the size.
14946
14947 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14948
14949         * *.[ch]: Change CONST to const globally.
14950         find -name '*.[ch]' | \
14951         xargs global-replace \
14952         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14953         - Remove vestigial references to CONST_IS_LOSING
14954
14955 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14956
14957         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14958         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14959         events instead of dispatching them directly.
14960         (mswindows_handle_paint): New function to do repainting.
14961         (mswindows_wnd_proc):
14962         (emacs_mswindows_handle_magic_event): Call above function.
14963
14964 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14965
14966         * objects-msw.c (mswindows_create_font_variant): Return the new
14967         font handle.
14968         (initialize_font_instance): Get font metrics from the underlined
14969         variant of the font to cope with the case where the underlined
14970         font has a bigger descent.
14971
14972 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14973
14974         * gui.c (gui_item_accelerator): Return the first underlined
14975         character in item name.
14976
14977 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14978
14979         * lisp.h: Added Qprinter.
14980
14981         * general.c (syms_of_general): Initialized it.
14982
14983         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14984         (get_frame_dc):
14985         (get_frame_compdc): Made inline.
14986
14987         * console.h (struct console_methods): Added eject_page method.
14988
14989         * frame.h: Added FRAME_DISPLAY_P and friends.
14990         Aligned backslahes in many macros in more readable fashion.
14991         Added page_number to struct frame, and an accessor macro
14992         for it.
14993
14994         * defice.h: Added DEVICE_DISPLAY_P and friends.
14995
14996         * device.c (Fdevice_printer_p): Used these.
14997
14998         * frame.c (allocate_frame_core): Initialize page number.
14999         (Fprint_job_page_number):
15000         (Fprint_job_eject_page): Implemented.
15001
15002         * frame-msw.c (msprinter_eject_page): Added method.
15003         (msprinter_start_page): Added.
15004
15005         * window.c (Fwindow_truncated_p): Fixed docstring.
15006         (Fwindow_last_line_visible_height): Implemented.
15007
15008 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15009
15010         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15011
15012 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15013
15014         * syntax.c (scan_words): Always advance at least one character.
15015
15016 2000-02-13  Andy Piper  <andy@xemacs.org>
15017
15018         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15019         to make sure the glyph is in the cachels.
15020
15021         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15022         global image instance flag.
15023         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15024         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15025
15026         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15027         (Fset_image_instance_property): mark layout as changed.
15028         (invalidate_glyph_geometry_maybe): mark layout as changed.
15029         (glyph_width): use new NEEDS_LAYOUT macro.
15030         (glyph_ascent): ditto.
15031         (glyph_descent): ditto.
15032         (glyph_height): ditto.
15033         (image_instance_layout): mark layout as clean after laying out.
15034         (update_subwindow): don't mark layout as clean here.
15035
15036         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15037         should no longer be needed.
15038
15039         * glyphs-x.c (x_update_widget): sanitize asserts.
15040         (x_finalize_image_instance): sanitize assignment to widgets.
15041
15042         * glyphs-widget.c (widget_instantiate): don't need to clear the
15043         layout flag here.
15044
15045 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15046
15047         * sysdep.c (getcwd): Use standard prototype.
15048         * sysdep.h (getcwd): Use standard prototype.
15049
15050         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15051         (sequence, start, end).
15052         Remove redundant type checking.
15053         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15054         view of `caller-protects') to avoid a crash where the real fix was
15055         found elsewhere.
15056
15057 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15058
15059         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15060
15061         * s/sol2.h: Remove feature macro initialization.
15062
15063         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15064         (vector_hash): New.  Code from internal_hash.
15065         * lrecord.h:
15066         Fix up allocation subsystem comments.
15067
15068         * config.h.in: Add __EXTENSIONS__ for Solaris.
15069
15070         * systime.h (EMACS_GETTIMEOFDAY): New.
15071         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15072         Remove Solaris-specific code.
15073         Use void* for the (ignored) second arg for gettimeofday().
15074
15075         * elhash.c (hash_table_hash): Implement it, finally.
15076         * elhash.c:  Use hashcode_t.
15077
15078         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15079         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15080
15081         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15082         * fns.c (size_bit_vector):
15083         * alloc.c (size_vector):
15084         (make_vector_internal):
15085         (make_bit_vector_internal):
15086         (sweep_bit_vectors_1):
15087         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15088
15089 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15090
15091         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15092         Include strings.h to avoid warnings for bzero and strcasecmp.
15093
15094 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15095
15096         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15097         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15098
15099         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15100         sequence.
15101
15102 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15103
15104         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15105         use a value field instead.
15106         (symbol_value_forward_forward): Use value field.
15107         (DEFVAR_SYMVAL_FWD): Use value field.
15108         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15109         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15110         (DEFVAR_CONST_INT): Ditto.
15111         (DEFVAR_BOOL): Ditto.
15112         (DEFVAR_CONST_BOOL): Ditto.
15113         (DEFVAR_INT_MAGIC): Ditto.
15114         (DEFVAR_BOOL_MAGIC): Ditto.
15115
15116         * symbols.c (guts_of_unbound_marker): Use value field.
15117         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15118         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15119
15120         * lisp.h: Declare dumpopaque and noninteractive1.
15121
15122         * alloc.c (dumpopaque): Added.
15123         (pdump_dump_opaquevec): Added.
15124         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15125         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15126         noninteractive.
15127
15128 2000-02-10  Andy Piper  <andy@xemacs.org>
15129
15130         * glyphs.c (image_instance_layout): if the size changes, mark it
15131         as such.
15132
15133         * redisplay-output.c (redisplay_output_layout): Update the
15134         subwindow here.
15135         (redisplay_output_subwindow): ditto.
15136
15137         * glyphs.c (update_subwindow): make sure we reset flags for
15138         layouts as well as everything else.
15139
15140         * glyphs-widget.c (layout_layout): don't need to set the instances
15141         dimensions here.
15142
15143 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15144
15145         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15146         not HAVE_DLOPEN, which is a lower-level thing.
15147
15148         * .cvsignore: Ignore gmon.out
15149
15150 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15151
15152         * .cvsignore: Ignore portable dumper xemacs.dmp file
15153
15154 2000-02-09  Andy Piper  <andy@xemacs.org>
15155
15156         * redisplay-output.c (redisplay_output_layout): be more clever
15157         about when we output based on the changed flags.
15158
15159         * glyphs.h (struct image_instantiator_methods): add update_method.
15160         (struct Lisp_Image_Instance): add changed flags. Declare new
15161         macros for manipulating them.
15162
15163         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15164         (image_instance_parent_glyph): find an image_instance's parent
15165         glyph or image_instance.
15166         (image_instance_layout): mark the size as changed.
15167         (set_image_instance_dirty_p): new function. mark an image
15168         instance, plus all of its parents, as dirty.
15169         (Fset_image_instance_property): use it.
15170         (Fglyph_animated_timeout_handler): use it.
15171         (update_subwindow): call update_widget and device methods for
15172         update_subwindow. Mark all changed flags as clean.
15173         (Fresize_subwindow): mark size as changed.
15174
15175         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15176         failures.
15177         (x_update_subwindow): only resize subwindows here.
15178         (x_update_widget): new function. Update all changed properties of
15179         a widget.
15180         (x_resize_subwindow): deleted.
15181         (x_widget_set_property): deleted.
15182         (x_progress_gauge_set_property): deleted.
15183         (x_progress_gauge_update): new function. Implement recorded
15184         changes.
15185         (x_tab_control_update): ditto.
15186         (x_tab_control_set_property): deleted.
15187         (console_type_create_glyphs_x): declare new functions.
15188         (image_instantiator_format_create_glyphs_x): ditto.
15189
15190         * glyphs-widget.c (widget_set_property): mark text changed.
15191         (update_widget): new function. Update properties of a widget.
15192         (widget_instantiate): for layouts make sure we set their
15193         children's parent correctly.
15194         (tab_control_set_property): new function. Record changes that will
15195         take place under redisplay's control.
15196         (progress_gauge_set_property): ditto.
15197         (image_instantiator_progress_guage): declare new functions.
15198         (image_instantiator_tab_control): ditto.
15199
15200         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15201         now.
15202         (mswindows_update_widget): new function. Update all properties on
15203         a widget that have changed.
15204         (mswindows_button_update): new function. Update a button's set
15205         state.
15206         (mswindows_tab_control_update): new function. Update the items in
15207         a tab.
15208         (mswindows_tab_control_set_property): deleted.
15209         (mswindows_progress_gauge_update): new function. Update the
15210         progress gauge's progress.
15211         (mswindows_widget_set_property): deleted. This is all done
15212         asynchronously now.
15213         (mswindows_progress_gauge_set_property): ditto.
15214         (console_type_create_glyphs_mswindows): declare new methods.
15215         (image_instantiator_format_create_glyphs_mswindows): ditto.
15216
15217         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15218         (msprinter_set_frame_properties): ditto.
15219
15220         * console.h (struct console_methods): Add update_widget_method.
15221
15222 2000-02-09  Andy Piper  <andy@xemacs.org>
15223
15224         * gui-msw.c (Fmswindows_shell_execute): Make
15225         mswindows-shell-execute industrial strength.
15226
15227 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15228
15229         * lrecord.h: Make macro argument `props' match member function `plist'.
15230         * fns.c (Fget):
15231         * fns.c (Fput):
15232         * fns.c (Fremprop):
15233         * fns.c (Fobject_plist):
15234         * alloc.c:
15235         * symbols.c:
15236         Object property list frobbing cleanup.
15237         - Allow any lisp object (compared with `eq'), not just symbols, as
15238           keys in object plists.
15239         - Move symbol plist frobbing into symbols.c, where it belongs.
15240         - Move string plist frobbing into alloc.c, where it belongs.
15241         - Everything's an lrecord now, so no need to test for symbolp, etc.
15242         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15243
15244         * extents.c: Reorder code to remove declarations.
15245
15246         * frame.h (store_in_alist): Remove useless declaration.
15247
15248 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15249
15250         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15251         * config.h.in: Add HAVE_XCONVERTCASE.
15252
15253 2000-02-07  Andy Piper  <andy@xemacs.org>
15254
15255         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15256         it breaks many things.
15257
15258 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15259
15260         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15261         actually can start a common comment type.
15262         * src/syntax.h (SYNTAX_END_P): ditto for end.
15263
15264 2000-02-07  Martin Buchholz <martin@xemacs.org>
15265
15266         * XEmacs 21.2.28 is released.
15267
15268 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15269
15270         * event-Xt.c (x_keysym_to_character): New.
15271         (maybe_define_x_key_as_self_inserting_character): New.
15272         (x_has_keysym): New.
15273         Auto-define all keys on the keyboard as self-insert-key.
15274
15275 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15276
15277         * menubar.c (vars_of_menubar): A small code simplification.
15278
15279         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15280
15281         * ExternalShell.c:
15282         * ExternalClient.c:
15283         * EmacsShell-sub.c:
15284         * EmacsManager.c:
15285         * EmacsFrame.c:
15286         Use consistent style for specifying X resources.
15287
15288         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15289         This makes (dontusethis-set-symbol-value-handler) actually usable.
15290
15291         * lrecord.h (lrecord_decription_type):
15292         * alloc.c (pdump_register_sub):
15293         (pdump_dump_data):
15294         (pdump_reloc_one):
15295         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15296         Comply with XEmacs coding style.
15297         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15298         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15299
15300         * keymap.c (Faccessible_keymaps):
15301         Make (accessible-keymaps map "\C-h") do the Right Thing.
15302         Make (accessible-keymaps map []) do the Right Thing.
15303         Make (accessible-keymaps map "") do the Right Thing.
15304         (check_keymap_definition_loop): New function.
15305         (keymap_store_internal): Keep luser from shooting self in foot,
15306           via (define-key ctl-x-4-map "p" global-map).
15307         Remove fullness slot from struct Lisp_Keymap, since hash tables
15308         are now reliable.
15309         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15310
15311 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15312
15313         * redisplay.c (init_redisplay): Fix small memory leak.
15314         * elhash.h:
15315         * elhash.c (pdump_reorganize_hash_table):
15316         Rename from reorganize_hash_table. Change prototype.
15317         Reuse the original memory for hentries.  Save 100k.
15318         * alloc.c (PDUMP_READ): new macro.
15319         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15320         * alloc.c: No need to #ifndef before #undef.
15321
15322         * print.c: Allow debug_print() to print readably by modifying
15323         debug_print_readably.  Use consistent variable names.
15324
15325         * .dbxrc: Try to get things to work even if stopped in a function
15326         without source available by explicitly specifying source files.
15327 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15328
15329         * unexnt.c (_start): Removed bogus code which caused loading heap
15330         from differrent executable file.
15331         Removed bogus assignment to _fmode, which caused inconsistencies.
15332
15333 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15334
15335         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15336         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15337         Do not preliminary `#define signal sigset'.
15338
15339         * systime.h: Do not prototype environ on windows nt and cygwin,
15340         this conflicts with system header.
15341
15342         * syssignal.h: Use correct define for WINDOWSNT
15343
15344         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15345         with system header.
15346
15347         * sysdep.c (near start of file): Fixed commentary and rearranged
15348         ifdefs in readable order.
15349         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15350         (start_of_text):
15351         (end_of_text):
15352         (end_of_data): Do not compile in if using PDUMP.
15353
15354         * symsinit.h: Prototyped vars_of_nt().
15355
15356         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15357         (find_child_console): Use it.
15358         (sys_kill): Use it.
15359
15360         * ntheap.h: Do not extern os_subtype.
15361
15362         * ntheap.c (cache_system_info): Do not cache unneeded:
15363         nt_major_version, nt_minor_version and os_subtype.
15364         (recreate_heap): Do not compile in when PDUMPing.
15365
15366         * nt.c (geteuid and friends): Use the new varibale
15367         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15368         (init_user_info): Removed the above mentioned hackery.
15369         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15370         stat has been fixed in the C runtime.
15371         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15372
15373         * file-coding.c (struct file_coding_dump): Do not define
15374         ucs_to_mule_table in the struct if not MULE.
15375         (struct struct lrecord_description fcd_description_1): Do not dump
15376         the above.
15377
15378         * emacs.c (main_1): Call vars_of_nt().
15379         (right before Fdump_emacs_data): Don't need lastfile if using both
15380         portabe dumper and system malloc.
15381
15382         * alloc.c (Fmemory_limit): Conditionalized out.
15383         (pdump): Use OPEN_BINARY for the portable dump file.
15384         (pdump_load): Ditto.
15385
15386 2000-02-02  Mike Alexander  <mta@arbortext.com>
15387
15388         * nt.c (convert_time): Set tm_isdst before calling mktime and
15389         avoid calling it at all if the compiler supports 64 bit integers.
15390         Also initialize utc_base_ft before using it.
15391
15392 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15393
15394         * frame.c (change_frame_size_1): Take f->internal_border_width
15395         into consideration when calculating the width of the frame.
15396
15397 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15398
15399         * window.c (frame_min_height):
15400         (frame_size_valid_p):
15401         (frame_pixsize_valid_p): Added.
15402         (check_frame_size): Generalized.
15403
15404         * window.h: Prototyped the above.
15405
15406         * lisp.h:
15407         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15408         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15409         Deleted Vwin32_* and Vbinary_process_* unused variables.
15410
15411         * device-msw.c (msprinter_init_device): Do not get printer font
15412         list; Added DEVMODE functions.
15413
15414         * frame-msw.c: Added lots of printer code.
15415
15416         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15417         general.c.
15418
15419         * console-msw.h: Added more msprinter device private slots.
15420
15421 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15422
15423         * event-msw.c (key_needs_default_processing_p): Added.
15424         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15425
15426 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15427
15428         * glyphs.c (image_instance_layout): Mark image instance as clean
15429         after layout.
15430         (glyph_dirty_p): Removed redundant function.
15431         (invalidate_glyph_geometry_maybe): Added.
15432         (update_glyph_cachel_data): Call it.
15433
15434         * glyphs.h: Prototyped it.
15435
15436         * redisplay.c (add_glyph_rune): Call it.
15437         (redisplay_window): Reset glyphs cachels when frame faces have
15438         changed, thus forcing recomputation of built-in border glyphs.
15439
15440 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15441
15442         * Makefile.in.in: Make portable dumper and purify play well together.
15443         Add imperfect, but better than nothing, support for pdump.
15444         Remove xemacs.dmp when temacs is re-generated.
15445         Don't ignore errors when dumping xemacs.
15446
15447         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15448
15449 2000-01-28  Andy Piper  <andy@xemacs.org>
15450
15451         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15452         (setup_normal_frame): ditto.
15453         (setup_frame_without_minibuffer): ditto.
15454         (setup_minibuffer_frame): ditto.
15455         (delete_frame_internal): ditto.
15456         (Fmake_frame_invisible): ditto.
15457         (Ficonify_frame): ditto.
15458
15459         * window.h: change Fset_window_buffer signature.
15460
15461         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15462         (Fset_window_buffer): allow recording of buffer if the window is
15463         the selected window.
15464         (window_loop): Use new Fset_window signature.
15465
15466 2000-01-23  Daniel Pittman  <daniel@danann.net>
15467
15468         * config.h.in: Added template for `HAVE_ATHENA_3D'
15469
15470 2000-01-29  Andy Piper  <andy@xemacs.org>
15471
15472         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15473
15474         * gutter.c (output_gutter): Don't output if the window isn't live.
15475
15476 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15477
15478         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15479         of 01/12/00: Moved SetFocus back here where it belongs.
15480
15481 2000-01-23  Andy Piper  <andy@xemacs.org>
15482
15483         * s/cygwin32.h: declare printer things.
15484
15485 2000-01-26  Andy Piper  <andy@xemacs.org>
15486
15487         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15488         Alexander.
15489
15490 2000-01-24  Andy Piper  <andy@xemacs.org>
15491
15492         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15493         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15494
15495         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15496
15497         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15498
15499         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15500
15501         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15502         (mswindows_output_display_block): Avoid local shadows.
15503
15504         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15505         (mswindows_enqueue_mouse_button_event): ditto.
15506         (mswindows_handle_gui_wm_command): remove declaration.
15507
15508         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15509         warnings.
15510
15511         * console-msw.h: Avoid shadows.
15512         (mswindows_get_toolbar_button_text):
15513         (emacs_mswindows_create_stream_pair):
15514         (emacs_mswindows_delete_stream_pair):
15515         (mswindows_handle_toolbar_wm_command): declare.
15516
15517         * device-msw.c (build_syscolor_string): Avoid shadows.
15518
15519 2000-01-23  Andy Piper  <andy@xemacs.org>
15520
15521         * glyphs-widget.c (widget_instantiate): reverse the items for
15522         layouts so that children are in the expected order.
15523
15524 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15525
15526         * ralloc.c: safe_bcopy ==> memmove
15527         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15528         * s/msdos.h: Remove BCOPY macros.
15529         * insdel.c (gap_right): Remove BCOPY conditional code.
15530         * insdel.c (gap_left): Remove BCOPY conditional code.
15531         XEmacs demands a working ANSI C compiler - hence memmove.
15532
15533         * regex.c (regex_compile): Remove accidental use of trigraphs.
15534
15535 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15536
15537         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15538         event timestamp.
15539
15540 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15541
15542         * event-msw.c (mswindows_drain_windows_queue): Added the
15543         parameter.
15544         (mswindows_need_event): Commented the call to
15545         mswindows_drain_windows_queue().
15546         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15547         only.
15548
15549         * console-msw.h: Moved a few function prototypes here from
15550         event-msw.c.
15551
15552         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15553         parameter from unsigned short to unsigned long.
15554         (Fmswindows_shell_execute): Added return value.
15555
15556 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15557
15558         * sysdep.c (init_system_name):
15559           process-unix.c (unix_canonicalized_host_name):
15560         Don't call freeaddrinfo() if getaddrinfo() fails.
15561
15562         * process-unix.c (unix_open_unix_network_stream):
15563         Moved the code to get a port # into address loop.
15564
15565 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15566
15567         * buffer.c (reinit_vars_of_buffer):
15568         The right place to initialize conversion_in_dynarr and
15569         conversion_out_dynarr.
15570
15571         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15572
15573         * process-unix.c (unix_canonicalize_host_name): Muleize.
15574         (unix_open_network_stream): Muleize.
15575
15576         * buffer.h: Fix up prototypes for ralloc.c functions.
15577
15578 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15579         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15580         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15581                 instead of gethostbyname()
15582         * process-unix.c: In unix_canonicalize_host_name() and
15583                 unix_open_network_stream(), add code to use getaddrinfo()
15584                 instead of gethostbyname().
15585
15586 2000-01-27  Daniel Pittman <daniel@danann.net>
15587
15588         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15589         libs when built with flat Athena.
15590
15591 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15592
15593         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15594         Use coding standards for function prototypes.
15595
15596 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15597
15598         * dialog-msw.c (push_lisp_string_as_unicode):
15599         * doc.c (unparesseuxify_doc_string):
15600         * dired.c (Fuser_name_completion_1):
15601         * dired.c (Fuser_name_all_completions):
15602         * dired.c (free_user_cache):
15603         * dired.c (user_name_completion):
15604         * console-x.c (get_display_arg_connection):
15605         * minibuf.c (clear_echo_area_internal):
15606         * minibuf.c (echo_area_append):
15607         * eldap.c (Fldap_open):
15608         * eldap.c (Fldap_search_internal):
15609         * frame-x.c (x_set_frame_text_value):
15610         * frame-x.c (x_set_frame_properties):
15611         * frame-x.c (x_create_widgets):
15612         * redisplay-tty.c (term_get_fkeys_1):
15613         * objects-x.c (x_parse_nearest_color):
15614         * objects-x.c (x_valid_color_name_p):
15615         * objects-x.c (x_initialize_font_instance):
15616         * objects-x.c (x_list_fonts):
15617         * objects-x.c (x_find_charset_font):
15618         * tooltalk.c (Fadd_tooltalk_message_arg):
15619         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15620         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15621         * process-unix.c (unix_create_process):
15622         * ntproc.c (sys_spawnve):
15623         * sound.c (Fplay_sound_file):
15624         * sound.c (Fplay_sound):
15625         * buffer.c (init_initial_directory):
15626         * buffer.c (init_buffer):
15627         * editfns.c (init_editfns):
15628         * editfns.c (Ftemp_directory):
15629         * editfns.c (Fuser_full_name):
15630         * editfns.c (uncache_home_directory):
15631         * editfns.c (get_home_directory):
15632         * editfns.c (Fuser_home_directory):
15633         * editfns.c (Fformat_time_string):
15634         * editfns.c (Fcurrent_time_string):
15635         * gui-x.c (button_item_to_widget_value):
15636         * database.c (Fopen_database):
15637         * event-Xt.c (x_to_emacs_keysym):
15638         * event-Xt.c (x_event_to_emacs_event):
15639         * event-Xt.c (describe_event_window):
15640         * event-msw.c (mswindows_wnd_proc):
15641         * glyphs-eimage.c (jpeg_instantiate):
15642         * glyphs-eimage.c (gif_instantiate):
15643         * glyphs-eimage.c (png_instantiate):
15644         * glyphs-eimage.c (tiff_instantiate):
15645         * glyphs-x.c (xbm_instantiate_1):
15646         * glyphs-x.c (x_xbm_instantiate):
15647         * glyphs-x.c (x_xface_instantiate):
15648         * glyphs-x.c (autodetect_instantiate):
15649         * glyphs-x.c (cursor_font_instantiate):
15650         * glyphs-x.c (x_widget_instantiate):
15651         * glyphs-x.c (x_widget_set_property):
15652         * glyphs-x.c (x_widget_property):
15653         * glyphs-x.c (BUILD_GLYPH_INST):
15654         * print.c (write_string_to_stdio_stream):
15655         * print.c (output_string):
15656         * print.c (Falternate_debugging_output):
15657         * print.c (Fexternal_debugging_output):
15658         * glyphs-msw.c (extract_xpm_color_names):
15659         * glyphs-msw.c (mswindows_xpm_instantiate):
15660         * glyphs-msw.c (bmp_instantiate):
15661         * glyphs-msw.c (resource_name_to_resource):
15662         * glyphs-msw.c (mswindows_resource_instantiate):
15663         * glyphs-msw.c (xbm_instantiate_1):
15664         * glyphs-msw.c (mswindows_xbm_instantiate):
15665         * glyphs-msw.c (mswindows_xface_instantiate):
15666         * glyphs-msw.c (mswindows_widget_instantiate):
15667         * glyphs-msw.c (add_tree_item):
15668         * glyphs-msw.c (add_tab_item):
15669         * glyphs-msw.c (mswindows_combo_box_instantiate):
15670         * glyphs-msw.c (mswindows_widget_property):
15671         * glyphs-msw.c (mswindows_combo_box_property):
15672         * glyphs-msw.c (mswindows_widget_set_property):
15673         * console.c (stuff_buffered_input):
15674         * objects-msw.c (mswindows_initialize_color_instance):
15675         * objects-msw.c (mswindows_valid_color_name_p):
15676         * objects-msw.c (mswindows_list_fonts):
15677         * objects-msw.c (mswindows_font_instance_truename):
15678         * bytecode.c (optimize_compiled_function):
15679         * select-x.c (symbol_to_x_atom):
15680         * select-x.c (x_atom_to_symbol):
15681         * select-x.c (hack_motif_clipboard_selection):
15682         * select-x.c (selection_data_to_lisp_data):
15683         * select-x.c (lisp_data_to_selection_data):
15684         * select-x.c (Fx_get_cutbuffer_internal):
15685         * select-x.c (Fx_store_cutbuffer_internal):
15686         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15687         * buffer.h (TO_INTERNAL_FORMAT): New function.
15688         * emacs.c (make_arg_list_1):
15689         * emacs.c (make_argc_argv):
15690         * emacs.c (main_1):
15691         * emacs.c (Fdump_emacs):
15692         * emacs.c (split_string_by_emchar_1):
15693         * file-coding.h:
15694         * lisp.h:
15695         * lstream.h:
15696         * symsinit.h:
15697         * device-x.c (x_init_device):
15698         * device-x.c (Fx_valid_keysym_name_p):
15699         * device-x.c (Fx_get_font_path):
15700         * device-x.c (Fx_set_font_path):
15701         * glyphs.c (bitmap_to_lisp_data):
15702         * glyphs.c (pixmap_to_lisp_data):
15703         * alloc.c (make_ext_string): Use coding system arguments.  Update
15704         all callers.
15705         * alloc.c (build_string):
15706         * callproc.c (child_setup):
15707         * callproc.c (init_callproc):
15708         * fileio.c (lisp_strerror):
15709         * fileio.c (directory_file_name):
15710         * fileio.c (Fexpand_file_name):
15711         * fileio.c (Ffile_truename):
15712         * fileio.c (Fsysnetunam):
15713         * fileio.c (Fdo_auto_save):
15714         * sysdep.c (sys_readdir):
15715         * tests.c: New file.  Allow adding C tests.
15716         Replace GET_* macros with a more comprehensible and flexible
15717         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15718         Modify all calls.
15719         Any coding system can be used to do format conversion.
15720         Eliminate enum external_data_format.
15721         Eliminate convert_to_external_format.
15722         Eliminate convert_to_internal_format.
15723         Make sure file-name, keyboard, terminal, and ctext are always
15724         defined as coding systems or aliases.  Make
15725         file-name-coding-system, terminal-coding-system, and
15726         keyboard-coding-system magical variables that are equivalent to
15727         defining the corresponding coding system aliases.
15728
15729         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15730         * file-coding.c (Fcoding_system_alias_p): New function.
15731         * file-coding.c (Fcoding_system_aliasee): New function.
15732         * file-coding.c (append_suffix_to_symbol): New function.
15733         * file-coding.c (dangling_coding_system_alias_p): New function.
15734         * file-coding.c (Ffind_coding_system):
15735         * file-coding.c (Fcopy_coding_system):
15736         * file-coding.c (encode_coding_no_conversion):
15737         * file-coding.c (syms_of_file_coding):
15738         * file-coding.c (vars_of_file_coding):
15739         Rewrite coding system alias code.
15740         Allow nested aliases, like symbolic links.
15741         Allow redefinition of coding system aliases.
15742         Prevent existence of dangling coding system aliases.
15743
15744         * dired.c (Fuser_name_completion_1):
15745         * dired.c (Fuser_name_all_completions):
15746         A crash would happen if user did QUIT in the middle of building
15747         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15748
15749         * lisp.h:
15750         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15751
15752         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15753         an unsigned char *.  Update all callers.
15754
15755 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15756
15757         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15758
15759 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15760
15761         * elhash.c (hentry_description): Use more portable definition.
15762         (resize_hash_table): Initialize new hentries using
15763         xnew_array_and_zero, thereby simplifying the code.
15764
15765         * mule-charset.c (make_charset): Make sure entire object is
15766         initialized, to avoid Purify warnings.
15767
15768         * alloc.c (resize_string): Fix unlikely crash with big strings.
15769
15770 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15771
15772         * realpath.c (xrealpath):
15773         Don't call getwd().
15774
15775 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15776
15777         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15778
15779 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15780
15781         * unexelfsgi.c (unexec): Change the way we decide which segment
15782         should be extended.
15783
15784         Assumption that .bss section should be outside the PT_LOADable
15785         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15786         it's present) is inside the 'data' segment. This would fail the
15787         test which was used to find a segment to grow and cover new
15788         heap. Instead of this assumption, I created another one - on IRIX
15789         the segment to grow should start below .bss and it's address
15790         should extent above the end of .bss. Once this segment is
15791         identified, it's grown to accommodate the new heap and new
15792         zero-length .bss section is added at the end of .data2.
15793
15794 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15795
15796         * eval.c (Feval): Wrong number of arguments should use original
15797         function, not the indirect_function version of it.
15798
15799 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15800
15801         * glyphs-x.c (x_button_instantiate): Don't add image if
15802         it is not a pixmap.
15803         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15804         is relative.
15805
15806 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15807
15808         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15809         declaration.
15810         (DEFVAR_INT_MAGIC): Ditto.
15811         (DEFVAR_BOOL_MAGIC): Ditto.
15812         * glyphs.h: Reindent backslash.
15813
15814 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15815
15816         * glyphs-widget.c (layout_query_geometry):
15817         (layout_layout): Use correct types for gheight, gwidth.
15818
15819 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15820
15821         * EmacsManager.c (QueryGeometry): Purified.
15822
15823 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15824
15825         * alloc.c (make_float): Make sure entire object is initialized, to
15826         avoid Purify warnings.
15827         (pdump_register_sub): Remove useless assignment.
15828         (pdump): Use xmalloc, not malloc.
15829         (pdump_load): Use xmalloc, not malloc.
15830
15831 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15832
15833         * callproc.c:
15834         * dired-msw.c:
15835         * fileio.c:
15836         * process-nt.c:
15837         * redisplay-msw.c:
15838         * sysdep.c: Removed redundant #include <windows.h>
15839
15840 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15841
15842         * frame.c (delete_frame_internal): Do not delete device when its
15843         implementation so declares.
15844         (delete_frame_internal): Set device selected frame to nil when
15845         last frame goes away.
15846
15847         * device-msw.c (msprinter_device_system_metrics): Implemented.
15848         (mswindows_device_system_metrics): Added 'device-dpi property.
15849
15850         * device.c: (Fdevice_printer_p): Added.
15851         Added 'offset-workspace device metric.
15852
15853         * console.h (device_metrics): Declared DM_offset_workspace.
15854
15855 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15856
15857         * fileio.c (Ffile_truename): Remove pointless and confusing
15858         initialization of elen.
15859
15860         * glyphs-widget.c: Compiler warning fixes.
15861
15862 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15863
15864         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15865         instead of a Lisp_Object as argument to make it consistent with
15866         the other LIVE_P macros.
15867         (CHECK_LIVE_PROCESS): New macro.
15868
15869         * process.c: Declare Qprocess_live_p.
15870         (Fprocess_live_p): New function.
15871         (create_process): Use PROCESS_LIVE_P.
15872         (read_process_output): Ditto.
15873         (set_process_filter): Ditto.
15874         (Fdelete_process): Ditto.
15875         (kill_buffer_processes): Ditto
15876         (process_send_signal): Use CHECK_LIVE_PROCESS.
15877         (Fprocess_input_coding_system): Check whether process is still
15878         alive (fix PR#1061).
15879         (Fprocess_output_coding_system): Ditto.
15880         (Fprocess_coding_system): Ditto.
15881         (Fset_process_input_coding_system): Ditto.
15882         (Fset_process_output_coding_system): Ditto.
15883
15884 2000-01-23  Andy Piper  <andy@xemacs.org>
15885
15886         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15887         layout and widget.
15888
15889         * glyphs.c (mark_image_instance): take into account changed
15890         image_instance format.
15891         (image_instance_equal): ditto.
15892         (image_instance_hash): ditto.
15893
15894         * glyphs-widget.c (widget_instantiate): Incorporate layout
15895         instantiation here. Delay layout of the layout until later.
15896         (layout_instantiate): deleted.
15897         (layout_query_geometry): new function. get the geometry of a
15898         layout.
15899         (layout_layout): layout a layout dynamically.
15900         (image_instantiator_widget): New function - splitting up
15901         image_instantiator_format_create_glyphs_widget for netwinder
15902         compilation.
15903         (image_instantiator_buttons):
15904         (image_instantiator_edit_fields):
15905         (image_instantiator_combo_box):
15906         (image_instantiator_scrollbar):
15907         (image_instantiator_progress_guage):
15908         (image_instantiator_tree_view):
15909         (image_instantiator_tab_control):
15910         (image_instantiator_labels):
15911         (image_instantiator_layout): ditto.
15912         (image_instantiator_format_create_glyphs_widget): Call preceding
15913         functions.
15914
15915 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15916
15917         * process.c (Fset_process_coding_system):
15918         * device-x.c (Fx_keysym_hash_table):
15919         Docstring fixes.
15920
15921         * lstream.c (Lstream_write): Return documented value, not 0.
15922
15923         * fileio.c (directory_file_name):
15924         (Fsubstitute_in_file_name):
15925         (Fsubstitute_insert_file_contents_internal):
15926         (Fwrite_region_internal):
15927         * emacs.c:
15928         * sysdep.c:
15929         * getloadavg.c:
15930         * systty.h:
15931         Remove vestigial APOLLO-conditional code.
15932
15933 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15934
15935         * getpagesize.h: Add guard macros.
15936         * libsst.h: Add guard macros.
15937         * libst.h: Add guard macros.
15938         * line-number.h: Add guard macros.
15939         * ndir.h: Add guard macros.
15940         * sysfloat.h: Add guard macros.
15941         * sysfile.h: Add guard macros.
15942         * sysproc.h: Add guard macros.
15943         * syswait.h: Add guard macros.
15944         * xintrinsic.h: Add guard macros.
15945         * xintrinsicp.h: Add guard macros.
15946         * xmmanager.h: Add guard macros.
15947         * xmmanagerp.h: Add guard macros.
15948         * xmprimitive.h: Add guard macros.
15949         * xmu.h: Add guard macros.
15950         * gpmevent.h: Add copyright statement. Add guard macros.
15951         * miscplay.h: Add guard macros.
15952         * *.h: Use consistent C-standards-approved guard macro names.
15953
15954         * opaque.c (make_opaque): Switch parameter order.
15955         * opaque.h (make_opaque): Switch parameter order.
15956         Update all callers.
15957         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15958
15959         * config.h.in (type_checking_assert): Added.
15960         (bufpos_checking_assert): Added.
15961
15962 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15963
15964         * alloc.c: Harmless pdump changes.
15965         - Use countof().
15966         - spell alignment correctly.
15967         * sysdep.c: Use countof()
15968
15969 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15970
15971         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15972         initially_selected_for_input() console method, default to 0.
15973         (semi_canonicalize_console_connection): Try to delegate to
15974         canonicalize_console_connection if no such console method.
15975         (canonicalize_console_connection): Vice versa.
15976         (print_console): Do not print nil connection.
15977
15978         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15979         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15980         (XDEVIMPF_FRAMELESS_OK): Added.
15981         (CONSOLE_INHERITS_METHOD): Added.
15982
15983         * console-msw.c (mswindows_canonicalize_console_connection):
15984         Added.
15985         (mswindows_canonicalize_device_connection): Added.
15986
15987         * console-msw.h (struct msprinter_device): Added this struct and
15988         accessor macros.
15989         (mswindows_device): Made fontlist a lisp object.
15990
15991         * device.c (semi_canonicalize_device_connection):  Try to delegate
15992         to canonicalize_device_connection if no such console method.
15993         (canonicalize_device_connection): Vice versa.
15994         (print_device): Do not print nil connection.
15995
15996         * device-msw.c (mswindows_init_device): Call InitCommonControls
15997         when have widgets.
15998         (mswindows_delete_device): Removed fontlist deallocation.
15999         (mswindows_mark_device): Added.
16000
16001         * events.c (event_equal): Added abort() at unreached code.
16002         (event_hash): Ditto.
16003
16004         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16005         fallback tags of Windows devices.
16006
16007         * general.c (syms_of_general): Initialized Qmsprinter.
16008
16009         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16010         of fallback tags of Windows devices.
16011
16012         * lisp.h: Declared Qmsprinter.
16013
16014         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16015         of strings.
16016         (mswindows_list_fonts): Ditto.
16017         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16018         that it can be used by both mswindows and msprinter devices.
16019         (initialize_font_instance): Added.
16020         (mswindows_initialize_font_instance): Use it.
16021         (msprinter_initialize_font_instance): Added.
16022
16023         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16024         and implementation flags check.
16025         (redisplay_without_hooks): Changed the call to the above.
16026         (Fredraw_device): Ditto.
16027         (Fredisplay_device): Ditto.
16028
16029         * redisplay-msw.c (get_frame_dc): Implemented.
16030         (get_frame_compdc): Implemented.
16031         (many functions): Use the two functions above to get device
16032         contexts, ether for a window or a printer.
16033
16034 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16035
16036         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16037         initialization here.
16038         (init_symbols_once_early): Call it.
16039         * emacs.c (main_1): Call it.
16040         * symsinit.h: Declare it.
16041
16042 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16043
16044         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16045         Lisp_Object.
16046         (pdump_backtrace): Ditto.
16047         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16048         (pdump_get_entry): Abort if trying to register a null pointer.
16049         (pdump_dump_data): Cleanup types when relocating.
16050         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16051         (pdump_dump_rtables): Remove bad casts.
16052         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16053         Lisp_Object instead of a EMACS_INT for the hashtable
16054         reorganization.
16055
16056 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16057
16058         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16059
16060         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16061
16062         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16063
16064         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16065
16066 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16067
16068         * faces.h (FACE_STRIKETHRU_P): Added.
16069
16070         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16071         of font variants.
16072
16073         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16074         (mswindows_set_dc_font): New function, aware of font variants,
16075         separated from mswindows_update_dc.
16076
16077         * objects-msw.h (struct mswindows_font_instance_data): Added
16078         definition.
16079
16080         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16081         cached fonts and the data structure.
16082         (mswindows_initialize_font_instance): Added creation of font data
16083         structure.
16084         (mswindows_print_font_instance): Print at least something.
16085         (mswindows_create_font_variant): Implemented.
16086         (mswindows_get_hfont): Implemented.
16087
16088 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16089
16090         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16091         prototyping problem with msvc.
16092
16093         * emacs.c (main_1): added syms_of_gui_mswindows() call
16094
16095         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16096         syms_of_gui_mswindows() function
16097
16098         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16099
16100 2000-01-18  Martin Buchholz <martin@xemacs.org>
16101
16102         * XEmacs 21.2.27 is released.
16103
16104 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16105
16106         * glyphs-eimage.c (struct tiff_error_struct):
16107         (tiff_error_func):
16108         (tiff_warning_func):
16109         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16110
16111         * unexmips.c:
16112         * unexhp9k3.c:
16113         * unexfreebsd.c:
16114         * unexec.c: Remove vestigial Lucid C code.
16115         * unexalpha.c:
16116         * unexaix.c:
16117         * termcap.c:
16118         * libsst.c: Ansify.
16119         Remove declarations of errno and strerror().
16120
16121         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16122
16123         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16124
16125 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16126
16127         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16128         Optimize.
16129
16130 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16131
16132         * md5.c:
16133         * file-coding.c:
16134         * file-coding.h:
16135         Change enum eol_type to eol_type_t.
16136
16137 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16138
16139         * gui.c (get_gui_callback): Check cons before accessing car.
16140
16141 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16142
16143         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16144         (XSETSPECIFIER_TYPE): Ditto.
16145
16146 2000-01-17  Didier Verna  <didier@xemacs.org>
16147
16148         * redisplay.c (generate_fstring_runes): compute string size in
16149         characters, not bytes.
16150
16151 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16152
16153         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16154
16155 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16156
16157         * print.c (print_error_message): Call print_prepare().
16158
16159 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16160
16161         * .dbxrc: Renamed from dbxrc.
16162
16163         * events.c (event_to_character):
16164         Use `assert (foo)' instead of `if (!foo) abort()'
16165
16166         * .gdbinit (xtype): Add documentation.
16167         * .gdbinit (check-temacs): New function.
16168         * .gdbinit (check-xemacs): New function.
16169         * dbxrc (check-xemacs): New function.
16170         * dbxrc (check-xemacs): New function.
16171
16172 2000-01-14  Andy Piper  <andy@xemacs.org>
16173
16174         * glyphs-widget.c (widget_query_geometry): Make sure that we
16175         calculate default dimensions correctly.
16176
16177 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16178
16179         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16180
16181         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16182         pdump_wire'd variable.
16183
16184         * emacs.c: (main_1): Conditionalized calls to
16185         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16186
16187 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16188
16189         * window.c (Fset_window_configuration):
16190         * sysdep.c (_start):
16191         * input-method-motif.c (res):
16192         * event-Xt.c (Xt_process_to_emacs_event):
16193         Simple compiler warning fixes.
16194
16195         * bytecode.c (funcall_compiled_function): Use the original
16196         function symbol on the backtrace list in preference to the
16197         compiled_function object in error messages.
16198
16199 2000-01-13  Andy Piper  <andy@xemacs.org>
16200
16201         * glyphs-x.c (update_widget_face): Make sure we update the widget
16202         background as well as foreground.
16203
16204 2000-01-13  Andy Piper  <andy@xemacs.org>
16205
16206         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16207         fields to subwindow.
16208         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16209         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16210         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16211         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16212
16213         * glyphs-widget.c (check_valid_tab_orientation): new function.
16214         (initialize_widget_image_instance): zero orientation and
16215         justification.
16216         (widget_instantiate): pick up orientation.
16217         (tab_control_query_geometry): return appropriate values for
16218         vertical tabs.
16219
16220         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16221         appropriate creation flags for left, right and bottom tabs.
16222
16223         * s/cygwin32.h: add tab definitions.
16224
16225 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16226
16227         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16228         frame upon hiding a subwindow.
16229         (mswindows_button_instantiate): Changed the push button style to
16230         BS_PUSHBUTTON.
16231         (mswindows_button_instantiate): Removed button BS_NOTIFY
16232         style.
16233         (mswindows_button_instantiate): Removed redundant check for
16234         a disabled gui item.
16235         (mswindows_button_instantiate): Made use of WS_TABSTOP
16236         consistent: "operable" controls (edit, button, tree, scroll) have
16237         this style, "display-only" ones (static, progress gauge) do
16238         not. This style is currently ignored by XEmacs though. Also,
16239         removed the WS_EX_CONTROLPARENT style - it is not for children,
16240         it is for their parents!
16241         (mswindows_edit_field_instantiate): Ditto.
16242         (mswindows_progress_gauge_instantiate): Ditto.
16243         (mswindows_tree_view_instantiate): Ditto.
16244         (mswindows_tab_control_instantiate): Ditto.
16245         (mswindows_scrollbar_instantiate): Ditto.
16246         (mswindows_combo_box_instantiate): Ditto.
16247         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16248         style to the "clip" window.
16249         (mswindows_button_instantiate): Removed compilation warning by
16250         equally typing terms of the ?: operator.
16251
16252 2000-01-12  Didier Verna  <didier@xemacs.org>
16253
16254         * redisplay.c (generate_fstring_runes): new parameter holding the
16255         last modeline-format extent.
16256         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16257         extent, fill the glyph block with it.
16258         (generate_fstring_runes): handle these parameters.
16259         (generate_formatted_string_db): ditto.
16260
16261         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16262         glyphs'extents in the modeline.
16263
16264 1999-01-11  Mike Woolley  <mike@bulsara.com>
16265
16266         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16267         256Mb, as a workaround for the non-starting problem many people
16268         have experienced.
16269
16270 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16271
16272         * console-tty.c (Fset_console_tty_output_coding_system):
16273         Force redrawing tty frame.
16274
16275 2000-01-10  Didier Verna  <didier@xemacs.org>
16276
16277         * redisplay.c (generate_fstring_runes): fix size computation bug.
16278
16279 2000-01-09  William M. Perry <wmperry@aventail.com>
16280
16281         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16282
16283 2000-01-09  Andy Piper  <andy@xemacs.org>
16284
16285         * glyphs-msw.c: index -> i to avoid shadows.
16286         (xbm_create_bitmap_from_data): make static.
16287         (check_valid_string_or_int): deleted.
16288         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16289
16290         * glyphs-x.c (x_update_subwindow): remove unused args.
16291
16292         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16293         back pointer - this is done in allocate_image_instance.
16294         (query_string_font): return Qnil to make the compiler happy.
16295         (unmap_subwindow): set to ~0 to make the compiler happy.
16296         (glyph_query_geometry): comment out until used.
16297         (glyph_layout): ditto.
16298
16299 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16300
16301         * insdel.c (signal_after_change): Remove extraneous unbind_to().