update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
4
5 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * mule-charset.c (Qsystem_char_id): New variable.
8
9         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
10         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
11
12 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * chartab.c (Fput_char_attribute): When processing a reference of
15         a character, put into the end of the reversed reference of each
16         target character.
17
18 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * chartab.c (Q_same): Deleted.
21         (Q_same_of): Deleted.
22         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
23         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
24         for `{<-|->}same'.
25         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
26
27 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * chartab.c (Q_vulgar): Deleted.
30         (Q_vulgar_of): Deleted.
31         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
32         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
33         for `{<-|->}vulgar'.
34         (syms_of_chartab): Don't define `{<-|->}vulgar'.
35
36 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
37
38         * chartab.c (Fput_char_attribute): Convert char-refs in value of
39         `{<-|->}wrong[^*]*' to characters and put reverse links.
40         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
41         for `{<-|->}wrong[^*]*'.
42
43 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * chartab.c (Q_vulgar): New variable.
46         (Q_vulgar_of): New variable.
47         (Fput_char_attribute): Convert char-refs in value of
48         `{->|<-}vulgar' to characters and put reverse links.
49         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
50         for `{->|<-}vulgar'.
51         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
52
53 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * text-coding.c (decode_add_er_char): Must to quote prefix string
56         as regexp.
57
58 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * mule-charset.c (put_char_ccs_code_point): Store characters of
61         =ucs whose code_points >= 0xF0000.
62
63 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
64
65         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
66         CHISE.
67         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
68         CHISE.
69         (complex_vars_of_mule_charset): Add new coded-charset
70         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
71         builtin characters over 0xEFFFF.
72
73         * chartab.c (syms_of_chartab): Don't define symbol
74         `system-char-id' in every case.
75
76         * char-ucs.h (Qsystem_char_id): New extern variable.
77         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
78
79 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * text-coding.c (char_encode_utf8): Try to use entity-references
82         for U-000F0000 ...  U-0010FFFF.
83
84 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * text-coding.c (ER_BUF_SIZE): New macro.
87         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
88         `er_buf'.
89         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
90         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
91
92 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.c (find_char_feature_in_family): New function.
95         (Fchar_feature): Use `find_char_feature_in_family' with
96         `->identical', `<-subsumptive' and `<-denotational'.
97
98 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * text-coding.c (char_encode_as_entity_reference): Allow prefix
101         within 8 characters; fix infinite loop.
102
103 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * chartab.c (Q_same): New variable.
106         (Q_same_of): New variable.
107         (Fput_char_attribute): Convert char-refs in value of `{->|<-}same'
108         to characters and put reverse links.
109         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
110         for `{->|<-}same'.
111         (syms_of_chartab): Add new symbols `{->|<-}same'.
112
113 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * chartab.c (Q_component): New variable.
116         (Q_component_of): Likewise.
117         (Fput_char_attribute): Convert char-refs in value of
118         `{->|<-}ideographic-component-forms' to characters and put reverse
119         links.
120         (syms_of_chartab): Add new symbols
121         `{->|<-}ideographic-component-forms'.
122
123 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
124
125         * chartab.c (Q_identical): New variable.
126         (Q_identical_from): New variable.
127         (Fchar_feature): Regard `->identical' as a feature to find
128         ancestors.
129         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
130         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
131         for `{->|<-}identical'.
132         (syms_of_chartab): Add new symbols `{->|<-}identical'.
133
134 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * char-ucs.h (encode_char_2): New inline function.
137         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
138
139 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * chartab.c (Fput_char_attribute): Convert char-specs to
142         characters in value of `ideographic-structure'.
143         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
144         for `{<-|->}simplified(@...)'.
145         (Fdefine_char): bTry to use predefined character's id.
146
147 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * fns.c (simplify_char_spec): Try to convert builtin chars to
150         defined chars.
151
152 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
153
154         * chartab.c (Fput_char_attribute): Convert char-refs in value of
155         `<-simplified[^*]*' to characters and put reverse links.
156
157 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * chartab.c (Q_subsumptive): Renamed from Q_unified.
160         (Q_subsumptive_from): Renamed from Q_unified_from.
161         (Fchar_feature): Use `Q_subsumptive_from' instead of
162         `Q_unified_from'.
163         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
164         `Q_unified'.
165         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
166         `<-unified' to `<-subsumptive'.
167
168 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
171         inheritance itself; fix typo; stop recursive search if cyclic
172         inheritance is found.
173
174 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
175
176         * chartab.c (Q_denotational): New variable.
177         (Q_denotational_from): New variable.
178         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
179         (put_char_attribute): New function.
180         (Fput_char_attribute): Use `put_char_attribute'; regard
181         `->denotational' and `<-denotational' as same as `->unified' and
182         `<-unified'.
183         (syms_of_chartab): Add new symbols `->denotational' and
184         `<-denotational'.
185
186 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
189         `Fget_char_attribute'.
190         (Fchar_variants): Likewise.
191         (get_char_table): Likewise.
192         (Fchar_feature): New function.
193         (put_char_composition): Use `Fchar_feature' instead of
194         `Fget_char_attribute'.
195         (Fput_char_attribute): Likewise; don't put the target character
196         into its `->unified' value.
197         (syms_of_chartab): Add new builtin function `char-feature'.
198
199 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
202         `Fget_char_attribute'.
203         (char_encode_utf8): Likewise.
204
205         * chartab.h: Add an EXFUN for `Fchar_feature'.
206
207 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * chartab.c (Vnext_defined_char_id): New variable.
210         (Fput_char_attribute): Accept characters in `->unified'.
211         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
212         new characters which are not related with builtin char-id ranges.
213         (vars_of_chartab): Add new variable `next-defined-char-id'.
214
215 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * chartab.c (Q_unified): New variable.
218         (Q_unified_from): New variable.
219         (Fput_char_attribute): Add code for `->unified'.
220         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
221         XEmacs CHISE.
222
223 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * mule-charset.c (decode_ccs_conversion): New function.
226         (decode_defined_char): Use `decode_ccs_conversion'.
227         (decode_builtin_char): Likewise.
228
229 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * char-ucs.h: Change some charset-ids of private coded-charsets.
232
233 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
236         (char_encode_as_entity_reference): Likewise.
237         (decode_coding_big5): Modify for `decode_defined_char' and
238         `DECODE_CHAR'.
239         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
240         avoid compiler warning.
241         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
242
243         * mule-charset.c (decode_defined_char): Add new argument
244         `without_inheritance'.
245         (Fdecode_char): Add new optional argument `without_inheritance'.
246         (Fdecode_builtin_char): Modify for `Fdecode_char'.
247
248         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
249         (simplify_char_spec): Likewise.
250
251         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
252         setting.
253
254         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
255         (map_char_table): Likewise.
256         (Fdefine_char): Use `Fdecode_char' without inheritance.
257         (Ffind_char): Modify for `Fdecode_char'.
258
259         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
260
261         * char-ucs.h (decode_defined_char): Add new argument
262         `without_inheritance'.
263         (DECODE_CHAR): Likewise.
264         (MAKE_CHAR): Modify for `DECODE_CHAR'.
265
266 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * chartab.c (Vchise_system_db_directory): New variable.
269         (vars_of_chartab): Add new variable `chise-system-db-directory'.
270
271 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * chartab.c: EXFUN `Fmount_char_attribute_table'.
274         (print_chartab_range): Don't define when `UTF2000' is defined.
275         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
276         `CHISE_DS_open'.
277
278 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
281         and optional argument `rehash' is specified, call
282         `open_chise_data_source_maybe' before
283         `chise_ds_foreach_char_feature_name' is called.
284
285 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c (char_attribute_list_reset_map_func): New function
288         when HAVE_LIBCHISE is defined.
289         (Fchar_attribute_list): Add new optional argument `rehash' when
290         HAVE_LIBCHISE is defined.
291         (open_chise_data_source_maybe): Use "chise-db" instead of
292         "char-db".
293         (char_attribute_system_db_file): Likewise.
294         (Fload_char_attribute_table): Use
295         `chise_feature_foreach_char_with_value' instead of
296         `chise_char_feature_value_iterate'.
297
298 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (Vchise_db_directory): New variable.
301         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
302
303 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
304
305         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
306         instead of HAVE_CHISE to specify using with libchise.
307
308         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
309
310         * chartab.h: Don't use HAVE_CHISE_CLIENT.
311
312         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
313         defined or HAVE_LIBCHISE_LIBCHISE is defined.
314         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
315         is defined.
316         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
317         HAVE_CHISE to specify using with libchise.
318         (syms_of_chartab): Don't define symbol `system-char-id' when
319         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
320
321 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
324         specify CHISE DB support.
325         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
326         of `char_attribute_system_db_file' to check feature DB file.
327
328         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
329         HAVE_CHISE_CLIENT to specify CHISE DB support.
330
331         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
332         specify CHISE DB support.
333         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
334         not defined.
335         (Freset_char_attribute_table): Use `chise_feature_setup_db'
336         instead of `char_attribute_system_db_file' to check feature DB
337         file.
338
339 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
340
341         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
342         `HAVE_CHISE_CLIENT'.
343
344 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
345
346         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
347         (Fsave_charset_mapping_table): Don't use
348         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
349
350         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
351         (HAVE_LIBCHISE): New macro.
352
353         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
354
355         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
356         (Fsave_char_attribute_table): Don't use
357         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
358
359 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
362         defined.
363         (save_uint16_byte_table): Likewise.
364         (save_byte_table): Likewise.
365         (char_table_get_db): Use `chise_ds_load_char_feature_value'
366         instead of `chise_char_load_feature_value'.
367         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
368
369 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * chartab.h (struct Lisp_Char_Table): Delete member
372         `feature_table' if CHISE is defined.
373
374         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
375         (Fcopy_char_table): Likewise.
376         (char_table_open_db_maybe): Likewise.
377         (char_table_close_db_maybe): Likewise.
378         (char_table_get_db): Likewise.
379         (Fmount_char_attribute_table): Likewise.
380         (Fload_char_attribute_table): Likewise.
381
382 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * mule-charset.c (load_char_decoding_entry_maybe): Use
385         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
386         `chise_ccs_decode'.
387
388 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
391         instead of `chise_open_data_source'.
392         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
393         `chise_ds_close'.
394
395 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
398         instead of `chise_ds_open_feature_table'.
399         (char_table_close_db_maybe): Don't use `chise_ft_close'.
400
401 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * mule-charset.c (Fsave_charset_mapping_table): Use
404         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
405         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
406         `chise_ccs_sync' instead of `chise_ccst_close'.
407         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
408
409         * chartab.c (open_chise_data_source_maybe): Modify for
410         `chise_open_data_source'.
411         (char_table_open_db_maybe): Modify for
412         `chise_ds_open_feature_table'.
413
414 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
415
416         * mule-charset.c (load_char_decoding_entry_maybe): Use
417         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
418         `chise_ccst_close'.
419
420 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
421
422         * mule-charset.c (Fsave_charset_mapping_table): Use
423         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
424         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
425         `chise_dt_put_char' and `chise_dt_close'.
426         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
427         `chise_ccs_decode' and `chise_ccst_close' instead of
428         `chise_ds_open_decoding_table', `chise_dt_get_char' and
429         `chise_dt_close'.
430
431         * chartab.c (char_table_get_db): Use
432         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
433         (load_char_attribute_table_map_func): Modify for
434         `chise_char_feature_value_iterate'.
435         (Fload_char_attribute_table): Use
436         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
437
438 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
439
440         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
441
442 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
443
444         * chartab.c (put_char_table): Modify for inherited coded-charsets
445         in XEmacs CHISE.
446
447 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
448
449         * chartab.c (Fput_char_table_map_function): Fixed.
450         (word_boundary_p): Don't check charset in XEmacs CHISE.
451
452 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * mule-charset.c (Fsave_charset_mapping_table): Use
455         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
456         instead of `chise_open_decoding_table'; refer
457         `default_chise_data_source'; use `chise_dt_close' instead of
458         `chise_close_decoding_table'.
459         (load_char_decoding_entry_maybe): Likewise.
460
461         * chartab.c (default_chise_data_source): New variable when `CHISE'
462         is defined.
463         (Fcopy_char_table): `ct->ds' is deleted.
464         (open_chise_data_source_maybe): New function.
465         (Fclose_char_data_source): New function.
466         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
467         use `chise_ds_open_feature_table' instead of
468         `chise_open_feature_table'.
469         (char_table_close_db_maybe): Use `chise_ft_close' instead of
470         `chise_close_feature_table'; `cit->ds' is deleted.
471         (syms_of_chartab): Add new builtin function
472         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
473
474         * chartab.h (default_chise_data_source): New extern variable.
475         (open_chise_data_source_maybe): New prototype.
476         (struct Lisp_Char_Table): Delete `ds'.
477
478 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
479
480         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
481         `CHISE' is defined.
482
483 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
484
485         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
486         not defined; add code for non-libchise setting.
487         (char_table_close_db_maybe): Likewise.
488         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
489         defined.
490         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
491         even if `CHISE' is not defined.
492         (Freset_char_attribute_table): Likewise.
493         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
494         `char_table_close_db_maybe' even if `CHISE' is not defined; use
495         `char_table_get_db'.
496         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
497         `char_table_close_db_maybe' even if `CHISE' is not defined.
498
499 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
500
501         * chartab.c (char_table_open_db_maybe): New function.
502         (char_table_close_db_maybe): New function.
503         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
504         (Freset_char_attribute_table): Likewise.
505         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
506         `char_table_close_db_maybe'.
507         (Fload_char_attribute_table): Likewise.
508
509 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
510
511         * chartab.c: Don't include <chise.h> because it is included in
512         chartab.h.
513         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
514         defined.
515         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
516         `CHISE' is defined.
517         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
518         `CHISE' is defined.
519         (Fclose_char_attribute_table): Close `ct->feature_table' and
520         `ct->ds' when `CHISE' is defined.
521         (Freset_char_attribute_table): Likewise.
522         (load_char_attribute_maybe): Use `cit->ds' and
523         `cit->feature_table' when `CHISE' is defined.
524         (Fload_char_attribute_table): Likewise.
525
526         * chartab.h: Include <chise.h> when `CHISE' is defined.
527         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
528         when `CHISE' is defined.
529
530 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
531
532         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
533         is defined.
534         (char_table_description): Likewise.
535         (Fmake_char_table): Likewise.
536         (Fcopy_char_table): Likewise.
537         (Fmount_char_attribute_table): Likewise.
538         (Fclose_char_attribute_table): Likewise.
539         (Freset_char_attribute_table): Likewise.
540         (load_char_attribute_maybe): Likewise.
541         (Fload_char_attribute_table): Likewise.
542
543         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
544         defined.
545
546 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
547
548         * chartab.c (load_char_attribute_table_map_func): New function
549         when CHISE is defined.
550         (Qload_char_attribute_table_map_function): Don't define when CHISE
551         is defined.
552         (Fload_char_attribute_table_map_function): Likewise.
553         (Fload_char_attribute_table): Use libchise when `CHISE' is
554         defined.
555         (syms_of_chartab): Don't define
556         `load-char-attribute-table-map-function' when CHISE is defined.
557
558 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * chartab.c: Include <chise.h> when `CHISE' is defined.
561         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
562
563 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * mule-charset.c (charset_code_point): Fix problem when searching
566         in mother CCS fails with `defined_only' mode.
567
568 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
569
570         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
571         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
572         (put_char_composition): Likewise.
573         (Fput_char_attribute): Likewise.
574         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
575
576 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
577
578         * chartab.c (Q_ucs): Deleted.
579         (Fput_char_attribute): Don't refer `->ucs'.
580         (Fdefine_char): Likewise.
581         (Ffind_char): Likewise.
582         (syms_of_chartab): Delete `->ucs'.
583
584 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
585
586         * mule-charset.c (Qmap_cns11643_2): Renamed from
587         `Qchinese_cns11643_2'.
588         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
589         `chinese-cns11643-2'.
590         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
591         `=cns11643-2'.
592
593 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
594
595         * mule-charset.c (Qmap_cns11643_1): Renamed from
596         `Qchinese_cns11643_1'.
597         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
598         `chinese-cns11643-1'.
599         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
600         `=cns11643-1'.
601
602 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
603
604         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
605         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
606         `chinese-gb12345'.
607         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
608         `=gb12345'.
609
610 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
611
612         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
613         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
614         `chinese-gb2312'.
615         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
616         `=gb2312'.
617
618 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
619
620         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
621         (syms_of_mule_charset): Add new symbol `=big5' instead of
622         `chinese-big5'.
623         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
624
625 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
628         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
629         `korean-ksc5601'.
630         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
631         `=ks-x1001'.
632
633 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
634
635         * mule-charset.c (Qmap_jis_x0212): Renamed from
636         `Qjapanese_jisx0212'.
637         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
638         `japanese-jisx0212'.
639         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
640         `=jis-x0212'.
641
642 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
643
644         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
645         `Qjapanese_jisx0208'.
646         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
647         of `japanese-jisx0208'.
648         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
649         `=jis-x0208-1983'.
650
651 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
654         `Qjapanese_jisx0208_1978'.
655         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
656         of `japanese-jisx0208-1978'.
657         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
658         `=jis-x0208-1978'.
659
660 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
661
662         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
663         only for XEmacs CHISE.
664
665 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
666
667         * char-ucs.h: Compact non-ISO-IR charset-ids.
668         (LEADING_BYTE_UCS): Changed to -177.
669         (LEADING_BYTE_CONTROL_1): Changed to -77.
670         (LEADING_BYTE_UCS_BMP): Changed to -176.
671         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
672
673 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * mule-charset.c (Qiso_ir): New variable.
676         (Fmake_charset): Recognise new property `iso-ir'.
677         (syms_of_mule_charset): Add new symbol `iso-ir'.
678
679 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
680
681         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
682         n to -n; charset-id of non ISO-IR sets are changed to positive
683         numbers.
684
685 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
686
687         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
688         for &MCS-XXXXXXXX; values.
689
690 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
691
692         * mule.c (Vxemacs_chise_version): Renamed from
693         `Vutf_2000_version'.
694         (vars_of_mule): Add new variable `xemacs-chise-version'; define
695         `utf-2000-version' as an alias for `xemacs-chise-version'.
696
697 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
698
699         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
700         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
701         defined.
702
703         * config.h.in (CHISE): New macro.
704
705 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
706
707         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
708         of `ucs'.
709         (Qmap_ucs): New variable.
710         (syms_of_mule_charset): Add new symbol `=ucs'.
711         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
712
713         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
714         (simplify_char_spec): Likewise.
715
716         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
717
718         * char-ucs.h (Qmap_ucs): New extern variable.
719
720 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
721
722         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
723         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
724         don't define it when UTF2000 is not defined.
725         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
726         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
727         when UTF2000 is not defined.
728         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
729         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
730
731 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
734
735         * mule-charset.c (Vcharset_ucs_gb): Deleted.
736         (Qucs_gb): Deleted.
737         (syms_of_mule_charset): Delete `ucs-gb'.
738         (complex_vars_of_mule_charset): Likewise.
739
740 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
741
742         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
743
744         * mule-charset.c (Vcharset_ucs_cns): Deleted.
745         (Qucs_cns): Deleted.
746         (syms_of_mule_charset): Delete `ucs-cns'.
747         (complex_vars_of_mule_charset): Likewise.
748
749 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
752
753         * mule-charset.c (Vcharset_ucs_jis): Deleted.
754         (Qucs_jis): Deleted.
755         (syms_of_mule_charset): Delete `ucs-jis'.
756         (complex_vars_of_mule_charset): Likewise.
757
758 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
759
760         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
761
762         * mule-charset.c (Vcharset_ucs_ks): Deleted.
763         (Qucs_ks): Deleted.
764         (syms_of_mule_charset): Delete `ucs-ks'.
765         (complex_vars_of_mule_charset): Likewise.
766
767 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
770         (Qideograph_daikanwa_2): Deleted.
771         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
772         (complex_vars_of_mule_charset): Likewise.
773
774         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
775         (LEADING_BYTE_DAIKANWA_1): Deleted.
776         (LEADING_BYTE_DAIKANWA_2): Deleted.
777         (MIN_CHAR_DAIKANWA): Deleted.
778         (MAX_CHAR_DAIKANWA): Deleted.
779
780 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
781
782         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
783         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
784         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
785
786         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
787         (Vcharset_ideograph_daikanwa): Deleted.
788         (Qideograph_hanziku_{1..12}): Deleted.
789         (Qideograph_daikanwa): Deleted.
790         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
791         Vcharset_ideograph_daikanwa.
792         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
793         `ideograph-hanziku-{1..12}'.
794         (complex_vars_of_mule_charset): Likewise.
795
796 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
797
798         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
799
800         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
801         (Qideograph_gt_pj_{1..11}): Deleted.
802         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
803         (complex_vars_of_mule_charset): Likewise.
804
805 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * mule-charset.c (Vcharset_ucs_big5): Deleted.
808         (Vcharset_ideograph_gt): Deleted.
809         (Qucs_big5): Deleted.
810         (Qideograph_gt): Deleted.
811         (syms_of_mule_charset): Delete symbol `ucs-big5' and
812         `ideograph-gt'.
813         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
814         and `ideograph-gt'.
815
816         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
817         (LEADING_BYTE_GT): Deleted.
818         (MIN_CHAR_GT): Deleted.
819         (MAX_CHAR_GT): Deleted.
820
821 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
822
823         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
824
825 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
828         (save_uint16_byte_table): Likewise.
829         (save_byte_table): Likewise; convert values by it.
830         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
831         for `ideographic-structure'.
832         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
833         as the filter for `ideographic-structure'.
834
835 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
836
837         * chartab.c (put_char_composition): New function.
838         (Fput_char_attribute): Use `put_char_composition'; use
839         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
840
841         * fns.c (simplify_char_spec): New function.
842         (char_ref_simplify_spec): New function.
843         (Fchar_refs_simplify_char_specs): New function.
844         (syms_of_fns): Add new builtin function
845         `char-refs-simplify-char-specs'.
846
847 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
848
849         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
850         (Qideograph_cbeta): Deleted.
851         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
852         (complex_vars_of_mule_charset): Likewise.
853
854         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
855         (MIN_CHAR_CBETA): Comment out.
856         (MAX_CHAR_CBETA): Likewise.
857
858 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
859
860         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
861         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
862         CHISE client feature.
863
864 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
865
866         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
867
868 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
869
870         * mule-charset.c (charset_lookup_description_1): Use
871         `NUM_LEADING_BYTES' in UTF-2000.
872
873 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
874
875         * char-ucs.h (GC_CHARSETP): Deleted.
876
877 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * char-ucs.h (MAX_CHAR_GT): Updated.
880
881 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
882
883         * text-coding.c: Sync with XEmacs 21.4.10.
884
885 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
886
887         * mule-charset.c (Vcharset_china3_jef): Deleted.
888         (Qchina3_jef): Deleted.
889         (syms_of_mule_charset): Don't define `china3-jef'.
890         (complex_vars_of_mule_charset): Likewise.
891
892         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
893         (MIN_CHAR_CHINA3_JEF): Comment out.
894         (MAX_CHAR_CHINA3_JEF): Comment out.
895
896 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * mule-charset.c (Vcharset_ucs_gb): New variable.
899         (Qucs_gb): New variable.
900         (syms_of_mule_charset): Add new symbol `ucs-gb'.
901         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
902
903         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
904
905 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
906
907         * mule-charset.c (charset_code_point): if a coded-charset has a
908         final-byte, don't inherit the builtin range of the mother CCS.
909
910 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * mule-charset.c (charset_code_point): Fix problem about
913         inheritance.
914
915 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * mule-charset.c (decode_builtin_char): Reorganized.
918
919 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * text-coding.c (char_encode_as_entity_reference): Modify for
922         `charset_code_point'.
923         (char_encode_shift_jis): Likewise.
924         (char_encode_big5): Likewise.
925         (char_encode_utf8): Likewise.
926         (char_encode_iso2022): Likewise.
927
928         * mule-charset.c (charset_code_point): Add new argument
929         `defined_only'.
930         (Fencode_char): Add new optional argument `defined_only'.
931
932         * chartab.c (put_char_table): Modify for `charset_code_point'.
933
934         * char-ucs.h (charset_code_point): Add new argument
935         `defined_only'.
936         (encode_char_1): Modify for `charset_code_point'.
937
938 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
939
940         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
941         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
942
943 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
946         (Qjis_x0208): Likewise.
947         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
948         XCHARSET_FINAL(charset).
949         (charset_code_point): Modify condition for final-byte based
950         builtin-chars.
951         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
952         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
953         in UTF-2000; specify `=jis-x0208' as the mother of
954         `japanese-jisx0208-1978', `japanese-jisx0208' and
955         `japanese-jisx0208-1990' in UTF-2000.
956
957 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
958
959         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
960
961 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
962
963         * text-coding.c (decode_coding_utf16): Support UTF-16.
964         (char_encode_utf16): Fixed.
965
966 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
967
968         * text-coding.c (Qutf16): New variable in MULE.
969         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
970         (Fcoding_system_type): Add `utf-16' in MULE.
971         (struct detection_state): Add a structure for utf16 in MULE.
972         (detect_coding_type): Setup st->utf16.mask in MULE.
973         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
974         MULE.
975         (reset_encoding_stream): Use `char_encode_utf16' and
976         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
977         (detect_coding_utf16): New function [incomplete].
978         (decode_coding_utf16): New function [support only UCS-2].
979         (char_encode_utf16): New function.
980         (char_finish_utf16): New function.
981         (syms_of_file_coding): Add new symbol `utf-16'; setup
982         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
983
984         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
985         UTF-2000.
986         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
987         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
988
989 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * chartab.c (put_char_table): When a charset is specified as a
992         range in UTF-2000, don't support builtin characters.
993
994 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
995
996         * mule-charset.c (decode_defined_char): Don't refer external
997         database if Qunbound or Qnil are found.
998         (Fsave_charset_mapping_table): Don't define it if
999         HAVE_CHISE_CLIENT is not defined.
1000         (Freset_charset_mapping_table): New function.
1001         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1002         found in external database.
1003         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1004         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1005         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1006
1007 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1008
1009         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1010         not.
1011
1012 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1013
1014         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1015         Q_lowercase, Q_uppercase in UTF-2000.
1016
1017         * chartab.c (get_char_table): Add special code for the standard
1018         case table to use character attribute `->downcase' and
1019         `->uppercase' for case operations in UTF-2000.
1020
1021         * casetab.c (Qflippedcase): New variable in UTF-2000.
1022         (Q_lowercase): Likewise.
1023         (Q_uppercase): Likewise.
1024         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1025         and `->uppercase' in UTF-2000.
1026         (complex_vars_of_casetab): Assign attribute name `downcase' to
1027         downcase and CANON table of Vstandard_case_table in UTF-2000;
1028         assign attribute name `flippedcase' to upcase and EQV table of
1029         Vstandard_case_table in UTF-2000.
1030
1031 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * text-coding.c (decode_add_er_char): Support isolated-chars.
1034         (char_encode_as_entity_reference): Likewise.
1035
1036 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1037
1038         * emacs.c (Vutf_2000_lisp_directory): New variable.
1039         (Vconfigure_utf_2000_lisp_directory): Likewise.
1040         (complex_vars_of_emacs): Add new variable
1041         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1042
1043 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1044
1045         * char-ucs.h (DECODE_CHAR): Delete special code for
1046         `chinese-big5-1' and `chinese-big5-2'.
1047
1048         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1049         (Qbig5_2): Likewise.
1050         (decode_defined_char): Support CONVERSION_BIG5_1 and
1051         CONVERSION_BIG5_2.
1052         (decode_builtin_char): Likewise.
1053         (charset_code_point): Likewise.
1054         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1055         'conversion in UTF-2000.
1056         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1057         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1058         `chinese-big5-2' as children of `chinese-big5'.
1059
1060         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1061         (CONVERSION_BIG5_2): New macro.
1062
1063 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * text-coding.c (char_encode_big5): Support entity-reference.
1066
1067 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1068
1069         * text-coding.c (char_encode_as_entity_reference): New function.
1070         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1071
1072 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1073
1074         * text-coding.c (decode_coding_big5): Support entity-reference
1075         decoding feature.
1076
1077 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * text-coding.c (allocate_coding_system): Initialize initial
1080         charsets for CODESYS_UTF8.
1081         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1082         charset-g2 for CODESYS_UTF8.
1083         (decode_coding_utf8): Use charset-g0.
1084         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1085         to force variants to map to UCS.
1086
1087 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1088
1089         * text-coding.c (Qutf_8_mcs): New variable.
1090         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1091         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1092         instead of `utf-8' in UTF-2000.
1093
1094 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1095
1096         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1097         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1098         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1099         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1100         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1101         CONVERSION_96x96x96x96 are introduced.
1102         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1103         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1104         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1105
1106         * char-ucs.h (CONVERSION_94): New macro.
1107         (CONVERSION_96): New macro.
1108         (CONVERSION_94x94): New macro.
1109         (CONVERSION_96x96): New macro.
1110         (CONVERSION_94x94x94): New macro.
1111         (CONVERSION_96x96x96): New macro.
1112         (CONVERSION_94x94x94x60): New macro.
1113         (CONVERSION_94x94x94x94): New macro.
1114         (CONVERSION_96x96x96x96): New macro.
1115
1116 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1117
1118         * chartab.c (Vcharacter_variant_table): Deleted.
1119         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1120         of `Vcharacter_variant_table'.
1121         (Fput_char_attribute): Likewise.
1122         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1123         (complex_vars_of_chartab): Likewise.
1124
1125 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1126
1127         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1128
1129         * fns.c (Qideographic_structure): New variable.
1130         (Qkeyword_char): New variable.
1131         (ids_format_unit): New function.
1132         (Fideographic_structure_to_ids): New function.
1133         (syms_of_fns): Add new symbols `ideographic-structure' and
1134         `:char'; add new builtin function `ideographic-structure-to-ids'.
1135
1136         * data.c (Fchar_ref_p): New function.
1137         (syms_of_data): Add new builtin function `char-ref-p'.
1138
1139         * chartab.h: Add an EXFUN for `Ffind_char'.
1140
1141 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1142
1143         * text-coding.c (Vcharacter_composition_table): Deleted.
1144         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1145         in every UTF-2000.
1146
1147         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1148         UTF-2000.
1149         (Vcharacter_composition_table): Deleted.
1150         (Fget_composite_char): Use the implementation for external-DB
1151         support in every UTF-2000.
1152         (Fput_char_attribute): Likewise.
1153         (char_attribute_system_db_file): Don't define if external-DB
1154         feature is not available.
1155         (Fsave_char_attribute_table): Likewise.
1156         (Fmount_char_attribute_table): Likewise.
1157         (Fclose_char_attribute_table): Likewise.
1158         (Freset_char_attribute_table): Likewise.
1159         (Fload_char_attribute_table): Likewise.
1160         (syms_of_chartab): Don't define `save-char-attribute-table',
1161         `mount-char-attribute-table', `reset-char-attribute-table',
1162         `close-char-attribute-table' and `load-char-attribute-table' if
1163         external-DB feature is not available.
1164         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1165
1166 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1167
1168         * text-coding.c (Qcomposition): Add extern if external-DB feature
1169         is supported.
1170         (Vcharacter_composition_table): Don't add extern if external-DB
1171         feature is supported.
1172         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1173         character composition rule if external-DB feature is supported.
1174
1175         * chartab.c (Vcharacter_composition_table): Don't define if
1176         external-DB feature is supported.
1177         (Qcomposition): New variable.
1178         (Fget_composite_char): New implementation for external-DB support.
1179         (Fput_char_attribute): Use `composition' property of each
1180         character instead of `Vcharacter_composition_table' to store
1181         character-composition rules if external-DB feature is supported.
1182         (syms_of_chartab): Add new symbol `composition'.
1183         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1184         external-DB feature is supported.
1185
1186 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1187
1188         * chartab.c (Vchar_db_stingy_mode): New variable.
1189         (load_char_attribute_maybe): Close database if
1190         Vchar_db_stingy_mode is not NIL.
1191         (Fload_char_attribute_table_map_function): Use
1192         `get_char_id_table_0' instead of `get_char_id_table'.
1193         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1194
1195         * chartab.h (get_char_id_table_0): New inline function.
1196         (get_char_id_table): Use `get_char_id_table_0'.
1197
1198 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1199
1200         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1201         and `COMPOSE_ADD_CHAR'.
1202         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1203
1204 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1205
1206         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1207         instead of `DECODE_ADD_UCS_CHAR'.
1208         (COMPOSE_ADD_CHAR): Likewise.
1209
1210 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1211
1212         * text-coding.c (decode_flush_er_chars): New inline function.
1213         (decode_add_er_char): New function.
1214         (decode_coding_utf8): Use `decode_flush_er_chars' and
1215         `decode_add_er_char'.
1216
1217 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1220         done before `decode_output_utf8_partial_char'.
1221
1222         * mule-charset.c (complex_vars_of_mule_charset): Specify
1223         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1224         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1225
1226 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1227
1228         * mule-charset.c (decode_defined_char): New function; search
1229         mother.
1230         (decode_builtin_char): Don't search mother if
1231         XCHARSET_MAX_CODE(charset) == 0.
1232         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1233         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1234         (Fdecode_char): Use `decode_defined_char' instead of
1235         `DECODE_DEFINED_CHAR'.
1236         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1237         mother of `Vcharset_ucs_jis'.
1238
1239         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1240         instead of `DECODE_DEFINED_CHAR'.
1241
1242         * char-ucs.h (decode_defined_char): Renamed from
1243         `DECODE_DEFINED_CHAR'; changed to normal function.
1244         (DECODE_CHAR): Use `decode_defined_char' instead of
1245         `DECODE_DEFINED_CHAR'.
1246
1247         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1248
1249 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250
1251         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1252
1253         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1254         variable.
1255         (Quse_entity_reference): New variable.
1256         (Qd): New variable.
1257         (Qx): New variable.
1258         (QX): New variable.
1259         (coding_system_description): Add description for
1260         `ccs_priority_list'.
1261         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1262         (allocate_coding_system): Initialize `ccs_priority_list' in
1263         UTF-2000.
1264         (Fmake_coding_system): Add description about
1265         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1266         (codesys).
1267         (Fcoding_system_property): Accept `disable-composition' and
1268         `use-entity-reference' in UTF-2000.
1269         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1270         in UTF-2000.
1271         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1272         (decode_coding_utf8): Decode entity-reference if
1273         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1274         (char_encode_utf8): Encode non-Unicode characters as
1275         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1276         (str->codesys).
1277         (syms_of_file_coding): Add new symbols `use-entity-reference',
1278         `d', `x', `X'.
1279         (vars_of_file_coding): Add new variable
1280         `coded-charset-entity-reference-alist'.
1281         (complex_vars_of_file_coding): Declare `disable-composition' and
1282         `use-entity-reference' to be coding-system-properties in UTF-2000.
1283
1284         * file-coding.h (struct Lisp_Coding_System): Add new member
1285         `use_entity_reference' and `ccs_priority_list'.
1286         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1287         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1288         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1289
1290 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1291
1292         * chartab.c (save_uint8_byte_table): Don't clear the table.
1293         (save_uint16_byte_table): Likewise.
1294         (save_byte_table): Likewise.
1295         (Fmount_char_attribute_table): New function.
1296         (syms_of_chartab): Add new builtin function
1297         `mount-char-attribute-table'.
1298
1299 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1300
1301         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1302         "w+" mode.
1303         (load_char_decoding_entry_maybe): Open database as read-only mode.
1304
1305         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1306         open database as "w+" mode.
1307         (load_char_attribute_maybe): Open database as read-only mode.
1308         (Fload_char_attribute_table): Likewise.
1309
1310 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1313         (char_table_description): Delete member `db_file'.
1314         (Fmake_char_table): Don't refer `ct->db_file'.
1315         (Fcopy_char_table): Likewise.
1316         (Fsave_char_attribute_table): Likewise.
1317         (Fclose_char_attribute_table): Likewise.
1318         (Freset_char_attribute_table): Likewise.
1319         (load_char_attribute_maybe): Likewise.
1320         (Fload_char_attribute_table): Likewise.
1321
1322         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1323
1324 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1327         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1328         `ct->db' is living.
1329         (load_char_attribute_maybe): Likewise.
1330         (Fload_char_attribute_table): Likewise.
1331
1332 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1333
1334         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1335         `ct->db_file' unconditionally.
1336
1337 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1338
1339         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1340         UTF-2000.
1341         (char_table_description): Add description for `db_file' and `db'
1342         in UTF-2000.
1343         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1344         UTF-2000.
1345         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1346         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1347         (Fclose_char_attribute_table): New function.
1348         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1349         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1350         and `cit->db'.
1351         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1352         (syms_of_chartab): Add new builtin function
1353         `Fclose_char_attribute_table'.
1354
1355 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1356
1357         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1358         `db' in UTF-2000.
1359         (load_char_attribute_maybe): Change interface.
1360         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1361
1362 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1363
1364         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1365
1366 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1367
1368         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1369         instead of `DECODE_CHAR' for mother; don't use special code for
1370         chinese-big5 to use code space of chinese-big5-1 and
1371         chinese-big5-2.
1372         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1373         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1374
1375         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1376         (MAX_CHAR_BIG5_CDP): Revival.
1377
1378 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1381         the XLFD registry-encoding name of `chinese-big5'.
1382
1383 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1384
1385         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1386         (Qchinese_big5_cdp): Deleted.
1387         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1388         (complex_vars_of_mule_charset): Delete coded-charset
1389         `chinese-big5-cdp'.
1390
1391         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1392         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1393         `CHARSET_ID_OFFSET - n' for private CCS.
1394         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1395         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1396         of `MIN_LEADING_BYTE'.
1397         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1398         `(CHARSET_ID_OFFSET - 97)'.
1399         (MIN_CHAR_BIG5_CDP): Deleted.
1400         (MAX_CHAR_BIG5_CDP): Deleted.
1401
1402 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1405
1406 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407
1408         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1409         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1410         chartab.c].
1411
1412         * chartab.c (Vutf_2000_version): Moved to mule.c.
1413         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1414
1415 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1418         when HAVE_CHISE_CLIENT is not defined.
1419
1420         * mule.c (vars_of_mule): Provide feature `chise' when
1421         HAVE_CHISE_CLIENT is defined.
1422
1423 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1424
1425         * config.h.in (UTF2000): Add comment.
1426         (HAVE_CHISE_CLIENT): New macro.
1427
1428 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1429
1430         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1431         CONSP.
1432         (Fput_char_attribute): Likewise.
1433         (char_attribute_system_db_file): Encode file-name of attribute.
1434         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1435         the initial value.
1436
1437 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1438
1439         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1440         (Fsave_charset_mapping_table): Use
1441         `char_attribute_system_db_file'.
1442         (load_char_decoding_entry_maybe): Likewise.
1443
1444         * chartab.h (Qsystem_char_id): New external variable.
1445         (char_attribute_system_db_file): New prototype.
1446
1447         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1448         (char_attribute_system_db_file): New function.
1449         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1450         (Freset_char_attribute_table): Likewise.
1451         (load_char_attribute_maybe): Likewise.
1452         (Fload_char_attribute_table): Likewise.
1453         (syms_of_chartab): Add new symbol `system-char-id'.
1454
1455 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1456
1457         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1458         `XCHARSET_GRAPHIC(ccs)'.
1459
1460 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461
1462         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1463
1464 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1465
1466         * chartab.c (Q_ucs_variants): New variable.
1467         (syms_of_chartab): Add new symbol `->ucs-variants'.
1468         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1469         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1470         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1471
1472         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1473
1474         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1475         `HAVE_DATABASE' is defined.
1476         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1477         `HAVE_DATABASE' is defined.
1478
1479 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1480
1481         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1482         attribute-table.
1483         (Freset_char_attribute_table): New function.
1484         (syms_of_chartab): Add new builtin function
1485         `reset-char-attribute-table'.
1486
1487 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1488
1489         * chartab.c (load_char_attribute_maybe): Don't make directories.
1490
1491 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1492
1493         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1494
1495         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1496         for decoding-table.
1497
1498 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1499
1500         * mule-charset.c (Fsave_charset_mapping_table): Use
1501         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1502
1503         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1504         instead of `XCHARSET_CHARS'.
1505
1506 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1507
1508         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1509         (XCHARSET_BYTE_SIZE): Likewise.
1510
1511         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1512         mule-charset.c].
1513         (XCHARSET_BYTE_SIZE): Likewise.
1514
1515 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1516
1517         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1518         data-directory to store database.
1519         (Fsave_char_attribute_table): Likewise.
1520         (load_char_attribute_maybe): Likewise.
1521         (Fload_char_attribute_table): Likewise.
1522
1523 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1524
1525         * mule-charset.c (Fsave_charset_mapping_table): New function.
1526         (syms_of_mule_charset): Add new builtin function
1527         `save-charset-mapping-table'.
1528
1529 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530
1531         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1532         (get_ccs_octet_table): New inline function.
1533         (put_ccs_octet_table): Likewise.
1534         (decoding_table_put_char): Use `get_ccs_octet_table' and
1535         `put_ccs_octet_table'.
1536         (decoding_table_remove_char): Use `decoding_table_put_char'.
1537         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1538
1539         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1540         into encoding_table.
1541         (make_charset): Use Qunbound instead Qnil as initial value of
1542         decoding_table.
1543
1544 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1547         element is Qunloaded.
1548         (map_over_uint16_byte_table): Likewise.
1549         (map_over_byte_table): Likewise.
1550         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1551         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1552         database support, load encoding-table of the specified
1553         coded-charset if it is not loaded yet.
1554         (save_uint8_byte_table): New function of UTF-2000 with external
1555         database support.
1556         (save_uint16_byte_table): Likewise.
1557         (save_byte_table): Likewise.
1558         (Fput_char_attribute): Don't store value into external database
1559         even if the external database feature is supported in UTF-2000;
1560         set `attribute' as name of char-table if the external database
1561         feature is supported.
1562         (Fsave_char_attribute_table): New function in UTF-2000.
1563         (syms_of_chartab): Add new builtin function
1564         `save-char-attribute-table' in UTF-2000.
1565
1566 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1567
1568         * chartab.c (char_attribute_table_to_put): New variable in
1569         UTF-2000.
1570         (Qput_char_table_map_function): Likewise.
1571         (value_to_put): Likewise.
1572         (Fput_char_table_map_function): New function in UTF-2000.
1573         (put_char_table): Use `Fmap_char_attribute' for
1574         CHARTAB_RANGE_CHARSET in UTF-2000.
1575         (Fput_char_attribute): Store symbol instead of string in
1576         `XCHAR_TABLE_NAME (table)'.
1577         (load_char_attribute_maybe): Likewise.
1578         (syms_of_chartab): Add new symbol/function
1579         `put-char-table-map-function'.
1580
1581 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1582
1583         * database.h: Add new EXFUN for `Fmap_database'.
1584
1585         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1586         (syms_of_database): Likewise.
1587
1588         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1589         UTF-2000.
1590         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1591         (XCHAR_TABLE_UNLOADED): Likewise.
1592
1593         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1594         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1595         HAVE_DATABASE is defined.
1596         (char_attribute_table_to_load): New variable of UTF-2000 with
1597         external database support.
1598         (Qload_char_attribute_table_map_function): Likewise.
1599         (Fload_char_attribute_table_map_function): New function of
1600         UTF-2000 with external database support.
1601         (Fload_char_attribute_table): New function of UTF-2000.
1602         (Fmap_char_attribute): Call Fload_char_attribute_table if
1603         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1604         (syms_of_chartab): Add new symbol and function
1605         `load-char-attribute-table-map-function' in UTF-2000 with external
1606         database support; add new function `load-char-attribute-table' in
1607         UTF-2000.
1608
1609 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * chartab.h (load_char_attribute_maybe): New prototype for
1612         UTF-2000 with DATABASE support.
1613         (get_char_id_table): Use `load_char_attribute_maybe' if
1614         HAVE_DATABASE is defined.
1615
1616         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1617         with DATABASE support.
1618
1619 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620
1621         * chartab.c (Fput_char_attribute): Use S-expression as key of
1622         external database.
1623
1624         * chartab.h (get_char_id_table): Use S-expression as key of
1625         external database.
1626
1627 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1630         if an element is not loaded, load the corresponding attributes
1631         from an external database.
1632         (map_over_uint16_byte_table): Likewise.
1633         (map_over_byte_table): Likewise.
1634         (map_char_table): Modify for `map_over_uint8_byte_table',
1635         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1636         element is not loaded, load the corresponding attributes from an
1637         external database.
1638         (Fput_char_attribute): Change initial values to Qunloaded.
1639
1640         * chartab.h (get_char_id_table): If a character attribute is not
1641         loaded and the attribute value is not found in an external
1642         database, store Qunbound as the attribute value.
1643
1644 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1645
1646         * chartab.c (BT_UINT8_unloaded): New macro.
1647         (UINT8_VALUE_P): Accept Qunloaded.
1648         (UINT8_ENCODE): Likewise.
1649         (UINT8_DECODE): Likewise.
1650         (BT_UINT16_unloaded): New macro.
1651         (UINT16_VALUE_P): Accept Qunloaded.
1652         (UINT16_ENCODE): Likewise.
1653         (UINT16_DECODE): Likewise.
1654         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1655         BT_UINT16_unloaded.
1656         (mark_char_table): Mark `ct->name' in UTF-2000.
1657         (char_table_description): Add `name' in UTF-2000.
1658         (Fmake_char_table): Initialize `ct->name'.
1659         (Fcopy_char_table): Copy `ct->name'.
1660         (Fput_char_attribute): Store value into an external database if
1661         HAVE_DATABASE is defined.
1662
1663         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1664         UTF-2000.
1665         (CHAR_TABLE_NAME): New macro in UTF-2000.
1666         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1667         (get_char_id_table): Try to read an external database if Qunloaded
1668         is stored in a table.
1669
1670         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1671         Qunloaded.
1672
1673 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1674
1675         * database.h: Add EXFUN definitions for Fopen_database,
1676         Fput_database, Fget_database and Fclose_database.
1677
1678         * data.c (Qunloaded): New variable in UTF-2000.
1679
1680         * lisp.h (Qunloaded): New variable in UTF-2000.
1681
1682 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1683
1684         * mule-charset.c (put_char_ccs_code_point): Modify for
1685         `decoding_table_remove_char' and `decoding_table_put_char'.
1686         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1687
1688         * char-ucs.h (decoding_table_remove_char): Change arguments to
1689         hide decoding_table vector.
1690         (decoding_table_put_char): Likewise.
1691
1692 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1693
1694         * mule-charset.c (decoding_table_remove_char): Moved to
1695         char-ucs.h.
1696         (decoding_table_put_char): Likewise.
1697
1698         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1699         from mule-charset.c].
1700         (decoding_table_remove_char): New inline function [moved from
1701         mule-charset.c].
1702         (decoding_table_put_char): Likewise.
1703
1704 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1705
1706         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1707         extension.
1708
1709 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1710
1711         * mule-charset.c (decode_builtin_char): Support mother charsets.
1712
1713 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1714
1715         * mule-charset.c (Q94x94x60): New variable.
1716         (charset_code_point): Support conversion `94x94x60'.
1717         (Fmake_charset): Likewise.
1718         (syms_of_mule_charset): Add new symbol `94x94x60'.
1719
1720         * char-ucs.h (CONVERSION_94x94x60): New macro.
1721
1722 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1723
1724         * mule-charset.c (charset_code_point): Unify code about
1725         `code-offset'.
1726
1727 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1728
1729         * mule-charset.c (charset_code_point): Merge code about builtin
1730         characters into code about mother charsets; don't use
1731         `range_charset_code_point'.
1732         (range_charset_code_point): Deleted.
1733
1734 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1735
1736         * mule-charset.c (Qcode_offset): New variable.
1737         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1738         `max-code'; accept new property `code-offset'.
1739         (syms_of_mule_charset): Add new symbol `code-offset'.
1740
1741 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1742
1743         * mule-charset.c (range_charset_code_point): Fixed.
1744
1745 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746
1747         * mule-charset.c (decode_builtin_char): Change semantics of
1748         code-offset of coded-charset.
1749         (charset_code_point): Likewise.
1750         (range_charset_code_point): Likewise.
1751         (complex_vars_of_mule_charset): Modify for the change.
1752
1753 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * mule-charset.c (Fencode_char): Reverse arguments.
1756
1757         * mule-charset.c (charset_code_point): Fixed.
1758
1759 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1760
1761         * mule-charset.c (Vcharset_mojikyo): Deleted.
1762         (Vcharset_mojikyo_2022_1): Deleted.
1763         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1764         (Qmin_code): New variable in UTF-2000.
1765         (Qmax_code): Likewise.
1766         (Qmother): Likewise.
1767         (Qconversion): Likewise.
1768         (Q94x60): Likewise.
1769         (Qmojikyo): Deleted.
1770         (Qmojikyo_2022_1): Deleted.
1771         (Qmojikyo_pj_{1..22}): Deleted.
1772         (mark_charset): Mark `cs->mother'.
1773         (charset_description): Add description for `mother'.
1774         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1775         new arguments `mother' and `conversion'; use
1776         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1777         (charset_code_point): Moved from char-ucs.h; support `mother'
1778         charset feature.
1779         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1780         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1781         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1782         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1783         allow 2 as the value of `graphic' in UTF-2000; add new properties
1784         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1785         require `final' in UTF-2000; modify for `make_charset'.
1786         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1787         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1788         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1789         (Fencode_char): New function.
1790         (syms_of_mule_charset): Add new builtin function `encode-char' in
1791         UTF-2000; add new symbols `min-code', `max-code', `mother',
1792         `conversion' and `94x60'; delete symbols `mojikyo',
1793         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1794         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1795         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1796         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1797
1798         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1799         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1800
1801         * char-ucs.h (Vcharset_mojikyo): Deleted.
1802         (Vcharset_mojikyo_2022_1): Deleted.
1803         (LEADING_BYTE_MOJIKYO): Deleted.
1804         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1805         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1806         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1807         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1808         add new member `mother'; add new member `conversion'.
1809         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1810         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1811         (CHARSET_MOTHER): New macro.
1812         (CHARSET_CONVERSION): New macro.
1813         (CONVERSION_IDENTICAL): New macro.
1814         (CONVERSION_94x60): New macro.
1815         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1816         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1817         (XCHARSET_MOTHER): New macro.
1818         (XCHARSET_CONVERSION): New macro.
1819         (MIN_CHAR_MOJIKYO): Deleted.
1820         (MAX_CHAR_MOJIKYO): Deleted.
1821         (DECODE_MOJIKYO_2022): Deleted.
1822         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1823         (charset_code_point): Changed to non-inline function.
1824         (encode_char_1): Use `charset_code_point'.
1825         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1826
1827 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * lread.c (read_compiled_function): Fix prototype.
1830         (read_vector): Likewise.
1831
1832 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1833
1834         * lrecord.h (struct lrecord_header): Delete `older'.
1835         (set_lheader_implementation): Delete code for `older'.
1836         (set_lheader_older_implementation): Deleted.
1837         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1838         (OLDER_RECORD_P): Deleted.
1839         (OLDER_RECORD_HEADER_P): Deleted.
1840         (alloc_older_lcrecord): Deleted.
1841         (alloc_older_lcrecord_type): Deleted.
1842
1843         * alloc.c (all_older_lcrecords): Deleted.
1844         (alloc_older_lcrecord): Deleted.
1845         (disksave_object_finalization_1): Delete code for older objects.
1846         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1847         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1848
1849 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1852         instead of `make_older_vector'.
1853         (put_char_ccs_code_point): Likewise.
1854         (mark_charset): Mark `cs->decoding_table'.
1855         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1856
1857         * lisp.h (make_older_vector): Deleted.
1858         (make_vector_newer): Deleted.
1859
1860         * config.h.in (HAVE_GGC): Deleted.
1861
1862         * alloc.c (make_older_vector): Deleted.
1863         (make_vector_newer_1): Deleted.
1864         (make_vector_newer): Deleted.
1865
1866 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1869         (Qideograph_daikanwa_2): New variable.
1870         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1871         (complex_vars_of_mule_charset): Add new coded-charset
1872         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1873         `LEADING_BYTE_DAIKANWA'.
1874
1875         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1876         (LEADING_BYTE_DAIKANWA_1): New macro.
1877         (LEADING_BYTE_DAIKANWA_2): New macro.
1878         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1879
1880 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881
1882         * mule-charset.c (complex_vars_of_mule_charset): Change
1883         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1884         the second revised version.
1885
1886 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887
1888         * mule-charset.c (Vcharset_ucs_smp): New variable.
1889         (Vcharset_ucs_sip): New variable.
1890         (Qucs_smp): New variable.
1891         (Qucs_sip): New variable.
1892         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1893         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1894         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1895         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1896         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1897         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1898
1899         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1900         (LEADING_BYTE_UCS_SIP): New macro.
1901         (MIN_CHAR_SMP): New macro.
1902         (MAX_CHAR_SMP): New macro.
1903         (MIN_CHAR_SIP): New macro.
1904         (MAX_CHAR_SIP): New macro.
1905
1906 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1907
1908         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1909         utf-2000.
1910
1911 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1912
1913         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1914         value; don't store value into `encoding_table' of `Lisp_Charset'.
1915         (mark_charset): `encoding_table' was deleted.
1916         (charset_description): Likewise.
1917         (make_charset): Likewise.
1918         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1919         `put_char_ccs_code_point'.
1920
1921         * chartab.h (Fput_char_attribute): New EXFUN.
1922
1923         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1924         is unified with normal symbol space.
1925         (Fget_char_attribute): Likewise.
1926         (Fput_char_attribute): Likewise; behavior of
1927         `put_char_ccs_code_point' is changed.
1928
1929         * char-ucs.h: Include "elhash.h".
1930         (Vchar_attribute_hash_table): New external variable.
1931         (struct Lisp_Charset): Delete `encoding_table'.
1932         (CHARSET_ENCODING_TABLE): New implementation; refer
1933         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1934         `Lisp_Charset'.
1935
1936 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937
1938         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1939         (cs) == 0.
1940
1941 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1942
1943         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1944         `chinese-big5'.
1945
1946 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1947
1948         * chartab.c (uint8_byte_table_description): New constant.
1949         (uint8-byte-table): Use `uint8_byte_table_description'.
1950         (uint16_byte_table_description): New constant.
1951         (uint16-byte-table): Use `uint16_byte_table_description'.
1952
1953 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954
1955         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1956         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1957
1958 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (Vcharset_ucs_ks): New variable.
1961         (Qucs_ks): New variable.
1962         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1963         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1964
1965         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1966
1967 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1970         (Fdecode_char): Likewise.
1971
1972         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1973         chartab.h.
1974         (Fdefine_char): Modify for Fdecode_char.
1975         (Ffind_char): Likewise.
1976
1977         * mule-charset.c (Fdecode_char): Add new optional argument
1978         `defined-only'.
1979         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1980
1981 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1984         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1985         (allocate_coding_system): Initialize initial-charsets of
1986         CODESYS_BIG5 in XEmacs UTF-2000.
1987         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1988         CODESYS_BIG5 in XEmacs UTF-2000.
1989         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1990         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1991
1992         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1993         variables.
1994         (Qideograph_hanziku_{1 .. 12}): Likewise.
1995         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1996         .. 12}'.
1997         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1998         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1999         `ideograph-hanziku-{1 .. 12}'.
2000
2001         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2002         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2003         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2004         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2005         (DECODE_DEFINED_CHAR): New inline function.
2006         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2007
2008 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * mule-charset.c (Vcharset_china3_jef): Renamed from
2011         `Vcharset_japanese_jef_china3'.
2012         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2013         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2014         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2015         (syms_of_mule_charset): Rename `china3-jef' from
2016         `japanese-jef-china3'.
2017         (complex_vars_of_mule_charset): Likewise; rename
2018         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2019
2020         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2021         `LEADING_BYTE_JEF_CHINA3'.
2022         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2023         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2024
2025 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2026
2027         * mule-charset.c (encode_builtin_char_1): Comment out special code
2028         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2029
2030         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2031         (MAX_CHAR_MOJIKYO_0): Comment out.
2032         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2033         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2034         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2035         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2036
2037 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2040         (Qideograph_cbeta): New variable.
2041         (encode_builtin_char_1): Comment out special code for
2042         coded-charset `mojikyo' and `japanese-jef-china3'.
2043         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2044         (complex_vars_of_mule_charset): Add new coded-charset
2045         `ideograph-cbeta'.
2046
2047         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2048         (MIN_CHAR_CBETA): New macro.
2049         (MAX_CHAR_CBETA): New macro.
2050
2051 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2052
2053         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2054         (LEADING_BYTE_JEF_CHINA3): New macro.
2055         (MIN_CHAR_JEF_CHINA3): New macro.
2056         (MAX_CHAR_JEF_CHINA3): Likewise.
2057         (DECODE_CHAR): Fixed.
2058
2059 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2060
2061         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2062         (Qjapanese_jef_china3): New variable.
2063         (encode_builtin_char_1): Support `japanese-jef-china3'.
2064         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2065         (complex_vars_of_mule_charset): Add new coded-charset
2066         `japanese-jef-china3'.
2067
2068 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069
2070         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2071         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2072         94^4, 96^3, 96^4, 128^n and 256^n set.
2073         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2074         (map_char_table): Likewise.
2075
2076 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2077
2078         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2079         UTF-2000.
2080
2081 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2082
2083         * chartab.h (get_char_id_table): New inline function.
2084
2085         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2086         function.
2087
2088 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * chartab.h (decode_char_table_range): New prototype in XEmacs
2091         UTF-2000.
2092         (put_char_id_table): New inline function in XEmacs UTF-2000.
2093
2094         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2095         function.
2096         (decode_char_table_range): Delete static declaration in XEmacs
2097         UTF-2000.
2098
2099 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * chartab.c (put_char_id_table): Use `put_char_table'.
2102
2103 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2104
2105         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2106         (map_over_uint16_byte_table): Likewise.
2107         (map_over_byte_table): Likewise.
2108         (map_char_table): Modify for `map_over_uint8_byte_table',
2109         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2110         UTF-2000.
2111
2112 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113
2114         * chartab.c (struct map_char_table_for_charset_arg): New
2115         structure.
2116         (map_char_table_for_charset_fun): New function.
2117         (map_char_table): Use `map_char_table' for encoding_table of
2118         `range->charset'.
2119
2120 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2121
2122         * chartab.c (map_char_table): Check a character is found in
2123         range->charset instead of non default value is defined in
2124         char-table when range is CHARTAB_RANGE_ROW.
2125
2126 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2127
2128         * chartab.c (map_char_id_table): Deleted.
2129         (Fmap_char_attribute): Use `map_char_table' instead of
2130         `map_char_id_table'.
2131
2132 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2135         UTF-2000.
2136         (update_syntax_table): Deleted in XEmacs UTF-2000.
2137
2138         * syntax.c (find_defun_start): Use `syntax_table' instead of
2139         `mirror_syntax_table' in XEmacs UTF-2000.
2140         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2141         UTF-2000.
2142         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2143         XEmacs UTF-2000.
2144         (Fmatching_paren): Likewise.
2145         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2146         in XEmacs UTF-2000.
2147         (find_start_of_comment): Likewise.
2148         (find_end_of_comment): Likewise.
2149         (Fforward_comment): Likewise.
2150         (scan_lists): Likewise.
2151         (char_quoted): Likewise.
2152         (Fbackward_prefix_chars): Likewise.
2153         (scan_sexps_forward): Likewise.
2154         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2155         (update_syntax_table): Likewise.
2156
2157         * search.c (skip_chars): Use `syntax_table' instead of
2158         `mirror_syntax_table' in XEmacs UTF-2000.
2159         (wordify): Likewise.
2160         (Freplace_match): Likewise.
2161
2162         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2163         `mirror_syntax_table' in XEmacs UTF-2000.
2164         (WORDCHAR_P_UNSAFE): Likewise.
2165         (re_match_2_internal): Likewise.
2166
2167         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2168         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2169
2170         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2171         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2172
2173         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2174         XEmacs UTF-2000.
2175
2176         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2177         UTF-2000.
2178         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2179         (char_table_description): Delete `mirror_table' in XEmacs
2180         UTF-2000.
2181         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2182         UTF-2000.
2183         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2184         (Fcopy_char_table): Likewise.
2185         (put_char_table): Don't call `update_syntax_table' in XEmacs
2186         UTF-2000.
2187
2188         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2189         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2190         (casify_region_internal): Likewise.
2191
2192         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2193
2194         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2195         `mirror_syntax_table' in XEmacs UTF-2000.
2196
2197         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2198         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2199         (Fexpand_abbrev): Likewise.
2200
2201 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2204
2205 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2208         (map_over_uint16_byte_table): Likewise.
2209         (map_over_byte_table): Likewise.
2210         (get_char_id_table): Refer `cit->default_value'.
2211         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2212         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2213         of character-id ranges.
2214         (mark_char_table): Mark `ct->default_value'.
2215         (char_table_description): Add `default_value'.
2216         (fill_char_table): Use `default_value'.
2217         (decode_char_table_range): Decode `nil' as
2218         `CHARTAB_RANGE_DEFAULT'.
2219         (get_char_id_table): Refer `cit->default_value'.
2220         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2221         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2222         temporary hack; check value of char-table is bound or not.
2223         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2224
2225         * chartab.h (struct Lisp_Char_Table): Add new member
2226         `default_value' in XEmacs UTF-2000.
2227         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2228         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2229         UTF-2000.
2230
2231 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2232
2233         * chartab.h (Lisp_Char_ID_Table): Deleted.
2234
2235         * chartab.c (char_table_description): Fix typo.
2236         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2237         `Lisp_Char_ID_Table'.
2238
2239 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2242         `CHAR_ID_TABLE_P'.
2243
2244         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2245         `CHAR_ID_TABLE_P'.
2246
2247         * chartab.h (XCHAR_ID_TABLE): Deleted.
2248         (XSETCHAR_ID_TABLE): Deleted.
2249         (CHAR_ID_TABLE_P): Deleted.
2250
2251         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2252         `CHAR_ID_TABLE_P'.
2253         (Fget_composite_char): Likewise.
2254         (put_char_table): Likewise.
2255         (add_char_attribute_alist_mapper): Fixed.
2256         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2257         `CHAR_ID_TABLE_P'.
2258         (Fget_char_attribute): Likewise.
2259         (Fget_char_attribute): Likewise.
2260         (Fmap_char_attribute): Likewise.
2261
2262         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2263         `CHAR_ID_TABLE_P'.
2264         (encode_char_1): Likewise.
2265
2266 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2267
2268         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2269         `XCHAR_ID_TABLE'.
2270
2271         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2272         instead of `XCHAR_ID_TABLE'.
2273         (remove_char_ccs): Likewise.
2274
2275         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2276         `XCHAR_ID_TABLE'.
2277         (Fget_composite_char): Likewise.
2278         (Fchar_variants): Likewise.
2279         (put_char_table): Likewise.
2280         (add_char_attribute_alist_mapper): Likewise.
2281         (Fchar_attribute_alist): Likewise.
2282         (Fget_char_attribute): Likewise.
2283         (Fput_char_attribute): Likewise.
2284         (Fmap_char_attribute): Likewise.
2285         (Fmap_char_attribute): Likewise.
2286
2287         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2288         `XCHAR_ID_TABLE'.
2289         (encode_char_1): Likewise.
2290
2291 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2294         `Lisp_Char_ID_Table'.
2295         (mark_char_id_table): Deleted.
2296         (print_char_id_table): Likewise.
2297         (char_id_table_equal): Likewise.
2298         (char_id_table_hash): Likewise.
2299         (char_id_table_description): Likewise.
2300         (char_id_table): Likewise.
2301         (make_char_id_table): Use `Fmake_char_table' and
2302         `fill_char_table'.
2303         (get_char_id_table): Use `Lisp_Char_Table' instead of
2304         `Lisp_Char_ID_Table'.
2305         (put_char_id_table): Likewise.
2306         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2307         `XCHAR_ID_TABLE'.
2308         (Fremove_char_attribute): Likewise.
2309         (syms_of_chartab): Don't define type `char-id-table'.
2310
2311         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2312         (char_id_table): Likewise.
2313         (GC_CHAR_ID_TABLE_P): Likewise.
2314         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2315         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2316         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2317         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2318         (get_char_id_table): Use `Lisp_Char_Table' instead of
2319         `Lisp_Char_ID_Table'.
2320         (put_char_id_table_0): Likewise.
2321         (put_char_id_table): Likewise.
2322
2323 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2324
2325         * chartab.h: Lisp_Byte_Table related codes are moved from
2326         chartab.h.
2327
2328         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2329
2330 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2331
2332         * chartab.h: Don't include "chartab.h".
2333         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2334         (Lisp_Char_ID_Table): Likewise.
2335         (char_id_table): Likewise.
2336         (XCHAR_ID_TABLE): Likewise.
2337         (XSETCHAR_ID_TABLE): Likewise.
2338         (CHAR_ID_TABLE_P): Likewise.
2339         (GC_CHAR_ID_TABLE_P): Likewise.
2340         (get_char_id_table): Likewise.
2341
2342         * char-ucs.h: Include "chartab.h".
2343         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2344         (Lisp_Char_ID_Table): Likewise.
2345         (char_id_table): Likewise.
2346         (XCHAR_ID_TABLE): Likewise.
2347         (XSETCHAR_ID_TABLE): Likewise.
2348         (CHAR_ID_TABLE_P): Likewise.
2349         (GC_CHAR_ID_TABLE_P): Likewise.
2350         (get_char_id_table): Likewise.
2351
2352 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2353
2354         * chartab.c (copy_uint8_byte_table): New function.
2355         (copy_uint16_byte_table): New function.
2356         (copy_byte_table): New function.
2357         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2358         characters to call.
2359         (map_over_uint16_byte_table): Likewise.
2360         (map_over_byte_table): Likewise.
2361         (get_byte_table): Move prototype to chartab.h.
2362         (put_byte_table): Likewise.
2363         (put_char_id_table_0): Moved to chartab.h.
2364         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2365         (char_table_entry_equal): Likewise.
2366         (char_table_entry_hash): Likewise.
2367         (char_table_entry_description): Likewise.
2368         (char_table_entry): Likewise.
2369         (make_char_table_entry): Likewise.
2370         (copy_char_table_entry): Likewise.
2371         (get_non_ascii_char_table_value): Likewise.
2372         (map_over_charset_ascii): Likewise.
2373         (map_over_charset_control_1): Likewise.
2374         (map_over_charset_row): Likewise.
2375         (map_over_other_charset): Likewise.
2376         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2377         (print_char_table): Likewise.
2378         (char_table_equal): Likewise.
2379         (char_table_hash): Likewise.
2380         (char_table_description): Likewise.
2381         (fill_char_table): Likewise.
2382         (Fcopy_char_table): Likewise.
2383         (get_char_table): Likewise.
2384         (Fget_range_char_table): Likewise.
2385         (put_char_table): Likewise.
2386         (map_char_table): Likewise.
2387         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2388         UTF-2000.
2389
2390 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2391
2392         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2393         `Vauto_fill_chars' in XEmacs UTF-2000.
2394
2395         * chartab.h (get_byte_table): New prototype [moved from
2396         chartab.c].
2397         (put_byte_table): Likewise [moved from chartab.c].
2398         (put_char_id_table_0): New inline function [moved from chartab.c].
2399         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2400         (Lisp_Char_Table_Entry): Likewise.
2401         (char_table_entry): Likewise.
2402         (XCHAR_TABLE_ENTRY): Likewise.
2403         (XSETCHAR_TABLE_ENTRY): Likewise.
2404         (CHAR_TABLE_ENTRYP): Likewise.
2405         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2406         (NUM_ASCII_CHARS): Likewise.
2407         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2408         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2409
2410 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2411
2412         * chartab.c (get_char_id_table): Change interface.
2413         (put_char_id_table_0): New function.
2414         (put_char_id_table): Change interface; new implementation.
2415         (Fget_composite_char): Modify for interface change of
2416         `get_char_id_table'.
2417         (Fchar_variants): Likewise.
2418         (add_char_attribute_alist_mapper): Likewise.
2419         (Fchar_attribute_alist): Likewise.
2420         (Fget_char_attribute): Likewise.
2421         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2422         as same as character as the first argument like `put-char-table';
2423         modify for interface change of `put_char_id_table'.
2424         (Fremove_char_attribute): Modify for interface change of
2425         `put_char_id_table'.
2426
2427 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2428
2429         * text-coding.c: Sync up with XEmacs 21.2.41.
2430         (COMPOSE_ADD_CHAR): Modify for interface change of
2431         `get_char_id_table'.
2432
2433         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2434         change of `put_char_id_table'.
2435         (remove_char_ccs): Likewise.
2436
2437         * chartab.h (put_char_id_table): Change interface.
2438
2439         * char-ucs.h (get_char_id_table): Change interface.
2440         (charset_code_point): Modify for interface change of
2441         `get_char_id_table'.
2442         (encode_char_1): Likewise.
2443
2444 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2445
2446         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2447         argument `ccs'.
2448         (map_over_uint16_byte_table): Likewise.
2449         (map_over_byte_table): Likewise.
2450         (map_char_id_table): Add new argument `range' like
2451         `map_char_table'.
2452         (Fmap_char_attribute): Add new argument `range' like
2453         `Fmap_char_table'.
2454
2455 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2456
2457         * chartab.c (map_over_uint8_byte_table): Change interface of
2458         mapping function to use struct chartab_range instead of Emchar.
2459         (map_over_uint16_byte_table): Likewise.
2460         (map_over_byte_table): Likewise.
2461         (map_char_id_table): Likewise.
2462         (struct slow_map_char_id_table_arg): Deleted.
2463         (slow_map_char_id_table_fun): Deleted.
2464         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2465         function `slow_map_char_table_fun' instead of struct
2466         `slow_map_char_id_table_arg' and function
2467         `slow_map_char_id_table_fun'.
2468
2469 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * mule-charset.c: Move char-it-table related codes to chartab.c.
2472         (Vutf_2000_version): Moved to chartab.c.
2473         (Fdefine_char): Likewise.
2474         (Ffind_char): Likewise.
2475         (syms_of_mule_charset): Move types `uint8-byte-table',
2476         `uint16-byte-table', `byte-table' and `char-id-table' to
2477         chartab.c; move functions `char_attribute_list,
2478         `find_char_attribute_table, `char_attribute_alist,
2479         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2480         `map_char_attribute, `define_char, `find_char, `char_variants and
2481         `get_composite_char to chartab.c; move symbols `=>ucs',
2482         `->decomposition', `compat', `isolated', `initial', `medial',
2483         `final', `vertical', `noBreak', `fraction', `super', `sub',
2484         `circle', `square', `wide', `narrow', `small' and `font' to
2485         chartab.c.
2486         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2487         setting codes for `Vcharacter_composition_table' and
2488         `Vcharacter_variant_table' to chartab.c.
2489         (complex_vars_of_mule_charset): Move setting code for
2490         `Vchar_attribute_hash_table' to chartab.c.
2491
2492         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2493         (make_char_id_table): New prototype.
2494         (put_char_id_table): Likewise.
2495         (Fget_char_attribute): Likewise.
2496
2497         * chartab.c: Move char-id-table related code from mule-charset.c.
2498         (Vutf_2000_version): Moved from mule-charset.c.
2499
2500         * char-ucs.h (Qucs): New external variable.
2501         (put_char_ccs_code_point): New prototype.
2502         (remove_char_ccs): Likewise.
2503
2504 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2505
2506         * mule-charset.c (Vcharset_ucs_jis): New variable.
2507         (Qucs_jis): Likewise.
2508         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2509         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2510
2511         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2512
2513 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2514
2515         * mule-charset.c (map_over_uint8_byte_table): New function.
2516         (map_over_uint16_byte_table): Likewise.
2517         (map_over_byte_table): Likewise.
2518         (map_char_id_table): Likewise.
2519         (slow_map_char_id_table_fun): Likewise.
2520         (Fmap_char_attribute): Likewise.
2521         (syms_of_mule_charset): Add new function `map-char-attribute'.
2522
2523 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2526         (syms_of_mule_charset): Add new function `find-char'.
2527
2528 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2529
2530         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2531         XEmacs UTF-2000.
2532         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2533         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2534         XEmacs UTF-2000.
2535         (complex_vars_of_mule_charset): Add new coded-charset
2536         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2537         `ideograph-gt-pj-*'.
2538
2539         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2540
2541 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * mule-charset.c (encode_builtin_char_1): Purge codes about
2544         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2545         {MIN|MAX}_CHAR_HEBREW.
2546         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2547         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2548
2549         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2550         (MAX_CHAR_GREEK): Purged.
2551         (MIN_CHAR_CYRILLIC): Purged.
2552         (MAX_CHAR_CYRILLIC): Purged.
2553         (MIN_CHAR_HEBREW): Commented out.
2554         (MAX_CHAR_HEBREW): Likewise.
2555
2556 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2557
2558         * mule-charset.c (Qto_ucs): New variable.
2559         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2560         (Fdefine_char): Likewise.
2561         (syms_of_mule_charset): Add new symbol `=>ucs'.
2562
2563 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564
2565         * mule-charset.c (Fdecode_char): Fixed.
2566
2567 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2568
2569         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2570         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2571         "tcvn5712-1".
2572
2573 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * mule-charset.c (Vcharset_ucs_big5): New variable.
2576         (Qucs_big5): Likewise.
2577         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2578         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2579
2580         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2581
2582 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2583
2584         * mule-charset.c (decode_builtin_char): Check Big5 code range
2585         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2586
2587 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2588
2589         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2590         (Qchinese_gb12345): Likewise.
2591         (Fdecode_builtin_char): Fixed.
2592         (syms_of_mule_charset): Add `chinese-gb12345'.
2593         (complex_vars_of_mule_charset): Add coded-charset
2594         `chinese-gb12345'.
2595
2596         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2597         (LEADING_BYTE_CHINESE_GB12345): New macro.
2598
2599 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600
2601         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2602         and `latin-viscii-upper' for `latin-viscii'.
2603
2604 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2605
2606         * mule-charset.c (Fdecode_builtin_char): Comment out
2607         regularization code for ISO-IR GR representation.
2608
2609 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * mule-charset.c (decode_builtin_char): New function; renamed from
2612         `make_builtin_char'; return -1 instead of signal.
2613         (Fdecode_builtin_char): Use `decode_builtin_char'.
2614
2615         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2616         `make_builtin_char'.
2617         (DECODE_CHAR): Use `decode_builtin_char' instead of
2618         `make_builtin_char'; use mapping table of `chinese-big5' for
2619         `chinese-big5-{1,2}'.
2620
2621 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622
2623         * text-coding.c (char_encode_big5): New function.
2624         (char_finish_big5): Likewise.
2625         (reset_encoding_stream): Use `char_encode_big5' and
2626         `char_finish_big5' for CODESYS_BIG5.
2627         (mule_encode): Don't use `encode_coding_big5'.
2628         (encode_coding_big5): Deleted.
2629
2630 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2631
2632         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2633         0x81- in XEmacs UTF-2000.
2634         (detect_coding_big5): Likewise.
2635
2636 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637
2638         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2639         generate character-id if the CCS property does not have
2640         corresponding predefined character.
2641         (make_builtin_char): Return -1 if corresponding predefined
2642         character is not found.
2643         (Fdecode_char): Return nil if corresponding character is not
2644         found.
2645         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2646         don't map to builtin ucs space.
2647
2648 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2651         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2652
2653 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2656         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2657         (Qideograph_gt): Likewise.
2658         (Qideograph_gt_pj_{1..11}): Likewise.
2659         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2660         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2661         `ideograph-gt-pj-11'.
2662         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2663         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2664         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2665
2666         * char-ucs.h (LEADING_BYTE_GT): New macro.
2667         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2668         (MIN_CHAR_GT): Likewise.
2669         (MAX_CHAR_GT): Likewise.
2670
2671 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672
2673         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2674         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2675
2676         * doprnt.c (unsigned_int_converters): Add `c'.
2677         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2678
2679         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2680         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2681         `MIN_CHAR_MOJIKYO'.
2682         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2683         (MAX_CHAR_MOJIKYO_0): New macro.
2684         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2685
2686 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2687
2688         * mule-charset.c (Fdefine_char): Delete cemented out code.
2689         (encode_builtin_char_1): Modify for new allocation of builtin
2690         Mojikyo characters.
2691
2692         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2693
2694 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2695
2696         * mule-charset.c (Vcharset_ucs_cns): New variable.
2697         (Qucs_cns): New variable.
2698         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2699         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2700
2701 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2704
2705 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2706
2707         * search.c (search_buffer): Make `charset_base_code' as
2708         character-id >> 6 to eliminate the corresponding last byte in
2709         UTF-8 representation [I'm not sure it is right thing].
2710         (boyer_moore): Likewise.
2711
2712 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2713
2714         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2715         representation in MULE.
2716
2717 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * text-coding.c (Fmake_coding_system): Use
2720         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2721         `EXTERNAL_PROPERTY_LIST_LOOP'.
2722
2723 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2724
2725         * text-coding.c (decode_output_utf8_partial_char): New function.
2726         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2727
2728 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * text-coding.c (decode_coding_utf8): Output original byte
2731         sequence if it is broken; change order of conditions.
2732
2733         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2734         of conditions.
2735
2736         * mb-multibyte.h (BYTE_ASCII_P):
2737         Use bit ops for char-signedness safety.
2738         (BYTE_C0_P): Use bit ops for char-signedness safety.
2739         (BYTE_C1_P): Use bit ops for char-signedness safety.
2740
2741         * character.h: (XCHAR_OR_CHAR_INT):
2742         Always use inline function.
2743         Remove redundant type checking assert() - XINT will abort quite
2744         nicely.
2745
2746 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2747
2748         * text-coding.c: (Fencode_shift_jis_char):
2749         (Fencode_big5_char):
2750         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2751         Replace 0 with '\0' when working with bytes.
2752         Replace initial "(" with "\(" in docstrings.
2753
2754         (Fmake_coding_system):
2755         When type is ccl and value is vector, register it with a proper
2756         symbol.  And checks whether the given ccl program is valid.
2757         (mule_decode): When calling ccl_driver, if src indicates
2758         NULL pointer, set an empty string instead.
2759         (mule_encode): Likewise.
2760
2761         (detect_eol_type):
2762         (detect_coding_sjis):
2763         (decode_coding_sjis):
2764         (detect_coding_big5):
2765         (decode_coding_big5):
2766         (detect_coding_ucs4):
2767         (decode_coding_ucs4):
2768         (detect_coding_utf8):
2769         (decode_coding_utf8):
2770         (detect_coding_iso2022):
2771         (decode_coding_iso2022):
2772         (decode_coding_no_conversion):
2773         (mule_decode):
2774         Make all detecting and decoding functions take an Extbyte * arg.
2775         (text_encode_generic):
2776         (encode_coding_big5):
2777         (encode_coding_no_conversion):
2778         (mule_encode):
2779         Make all encoding functions take a Bufbyte * arg.
2780         Use size_t instead of unsigned int for memory sizes.
2781         Only cast to unsigned char whenever dereferencing Extbyte *.
2782
2783         (struct lrecord_description fcd_description_1): Use countof.
2784         (complex_vars_of_file_coding):
2785         Use countof instead of sizeof.
2786         Use CHECK_NATNUM instead of CHECK_INT.
2787
2788 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2789
2790         * mule-charset.c (Fget_char_attribute): Add new optional argument
2791         `default-value'.
2792         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2793         (remove_char_ccs): Likewise.
2794
2795 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2796
2797         * text-coding.c (char_encode_shift_jis): New implementation in
2798         UTF-2000.
2799         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2800         ...)'.
2801
2802         * mule-charset.c (Vcharset_chinese_big5): New variable in
2803         UTF-2000.
2804         (Qchinese_big5): New variable in UTF-2000.
2805         (BIG5_SAME_ROW): New macro in UTF-2000.
2806         (make_builtin_char): Use builtin characters of
2807         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2808         characters of `Vcharset_chinese_big5'.
2809         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2810         (complex_vars_of_mule_charset): Add new coded-charset
2811         `chinese-big5' in UTF-2000.
2812
2813         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2814         (Vcharset_chinese_big5): New external variable declaration.
2815         (Vcharset_japanese_jisx0208_1990): Likewise.
2816
2817 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2818
2819         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2820         function.
2821         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2822
2823 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2824
2825         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2826         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2827         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2828         `mojikyo-pj-*'.
2829
2830 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2831
2832         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2833
2834 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2835
2836         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2837         to 0.17.
2838
2839 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2840
2841         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2842         for `CHARSET_BY_ATTRIBUTES'.
2843         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2844         `CHARSET_BY_ATTRIBUTES'.
2845
2846         * text-coding.c (struct decoding_stream): Rename member `CH' to
2847         `CPOS'.
2848         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2849         (decode_coding_sjis): Likewise.
2850         (decode_coding_big5): Likewise.
2851         (decode_coding_ucs4): Likewise.
2852         (decode_coding_utf8): Likewise.
2853         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2854         `CHARSET_BY_ATTRIBUTES'.
2855         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2856         `str->counter'; decode 3, 4 bytes sets.
2857         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2858         sets.
2859         (decode_coding_no_conversion): Use `str->cpos' instead of
2860         `str->ch'.
2861
2862         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2863         (Qmojikyo_2022_1): New variable.
2864         (make_charset): Don't use `CHARSET_TYPE_*'.
2865         (range_charset_code_point): Support coded-charset
2866         `mojikyo-2022-1'.
2867         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2868         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2869         `CHARSET_BY_ATTRIBUTES'.
2870         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2871         `CHARSET_BY_ATTRIBUTES'.
2872         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2873         (complex_vars_of_mule_charset): Add new coded-charset
2874         `mojikyo-2022-1'.
2875
2876         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2877         interface; changed to inline function.
2878
2879         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2880         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2881         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2882         (CHARSET_TYPE_94): Deleted.
2883         (CHARSET_TYPE_94X94): Deleted.
2884         (CHARSET_TYPE_96): Deleted.
2885         (CHARSET_TYPE_96X96): Deleted.
2886         (CHARSET_TYPE_128): Deleted.
2887         (CHARSET_TYPE_128X128): Deleted.
2888         (CHARSET_TYPE_256): Deleted.
2889         (CHARSET_TYPE_256X256): Deleted.
2890         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2891         to inline function.
2892         (DECODE_MOJIKYO_2022): New inline function.
2893         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2894         `Vcharset_mojikyo_2022_1'.
2895
2896 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2897
2898         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2899         instead of `EQ'.
2900         (put_byte_table): Likewise.
2901         (char_id_table_equal): Use `get_byte_table' [new implementation].
2902
2903 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * mule-charset.c: Include <limits.h> in UTF-2000.
2906         (BT_UINT8_MIN): New macro in UTF-2000.
2907         (BT_UINT8_MAX): New macro in UTF-2000.
2908         (BT_UINT8_t): New macro in UTF-2000.
2909         (BT_UINT8_nil): New macro in UTF-2000.
2910         (BT_UINT8_unbound): New macro in UTF-2000.
2911         (INT_UINT8_P): New inline function in UTF-2000.
2912         (UINT8_VALUE_P): New inline function in UTF-2000.
2913         (UINT8_ENCODE): New inline function in UTF-2000.
2914         (UINT8_DECODE): New inline function in UTF-2000.
2915         (mark_uint8_byte_table): New function in UTF-2000.
2916         (print_uint8_byte_table): New function in UTF-2000.
2917         (uint8_byte_table_equal): New function in UTF-2000.
2918         (uint8_byte_table_hash): New function in UTF-2000.
2919         (make_uint8_byte_table): New function in UTF-2000.
2920         (uint8_byte_table_same_value_p): New function in UTF-2000.
2921         (BT_UINT16_MIN): New macro in UTF-2000.
2922         (BT_UINT16_MAX): New macro in UTF-2000.
2923         (BT_UINT16_t): New macro in UTF-2000.
2924         (BT_UINT16_nil): New macro in UTF-2000.
2925         (BT_UINT16_unbound): New macro in UTF-2000.
2926         (INT_UINT16_P): New inline function in UTF-2000.
2927         (UINT16_VALUE_P): New inline function in UTF-2000.
2928         (UINT16_ENCODE): New inline function in UTF-2000.
2929         (UINT16_DECODE): New inline function in UTF-2000.
2930         (UINT8_TO_UINT16): New inline function in UTF-2000.
2931         (mark_uint16_byte_table): New function in UTF-2000.
2932         (print_uint16_byte_table): New function in UTF-2000.
2933         (uint16_byte_table_equal): New function in UTF-2000.
2934         (uint16_byte_table_hash): New function in UTF-2000.
2935         (make_uint16_byte_table): New function in UTF-2000.
2936         (uint16_byte_table_same_value_p): New function in UTF-2000.
2937         (print_byte_table): New function in UTF-2000.
2938         (byte-table): Use `print_byte_table' as printer.
2939         (make_byte_table): Delete second argument `older'.
2940         (byte_table_same_value_p): New function in UTF-2000.
2941         (copy_byte_table): Deleted.
2942         (get_byte_table): New function in UTF-2000.
2943         (put_byte_table): New function in UTF-2000.
2944         (print_char_id_table): New function in UTF-2000.
2945         (char-id-table): Use `print_char_id_table' as printer.
2946         (make_char_id_table): Delete second argument `older'.
2947         (get_char_id_table): Use `get_byte_table [new implementation].
2948         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2949         implementation].
2950         (Ffind_char_attribute_table): New function in UTF-2000.
2951         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2952         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2953         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2954         (syms_of_mule_charset): Add new function
2955         `find-char-attribute-table' in UTF-2000.
2956
2957         * lrecord.h (enum lrecord_type): Add
2958         `lrecord_type_uint16_byte_table' and
2959         `lrecord_type_uint8_byte_table'.
2960
2961         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2962         (Lisp_Uint8_Byte_Table): New type.
2963         (XUINT8_BYTE_TABLE): New macro.
2964         (XSETUINT8_BYTE_TABLE): New macro.
2965         (UINT8_BYTE_TABLE_P): New macro.
2966         (GC_UINT8_BYTE_TABLE_P): New macro.
2967         (struct Lisp_Uint16_Byte_Table): New structure.
2968         (Lisp_Uint16_Byte_Table): New type.
2969         (XUINT16_BYTE_TABLE): New macro.
2970         (XSETUINT16_BYTE_TABLE): New macro.
2971         (UINT16_BYTE_TABLE_P): New macro.
2972         (GC_UINT16_BYTE_TABLE_P): New macro.
2973
2974 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2975
2976         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2977         (Vcharacter_ideographic_strokes_table): Deleted.
2978         (Vcharacter_total_strokes_table): Deleted.
2979         (Vcharacter_morohashi_daikanwa_table): Deleted.
2980         (Vcharacter_decomposition_table): Deleted.
2981         (Qname): Deleted because it is duplicated.
2982         (Qideographic_radical): Deleted.
2983         (Qideographic_strokes): Deleted.
2984         (Qtotal_strokes): Deleted.
2985         (Qmorohashi_daikanwa): Deleted.
2986         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2987         `ideographic-radical', `ideographic-strokes', `total-strokes',
2988         `morohashi-daikanwa' and `->decomposition'.
2989         (Fget_char_attribute): Likewise.
2990         (Fput_char_attribute): Likewise; use `make-vector' instead of
2991         `make_older_vector' for `->decomposition' value.
2992         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2993         `ideograph-daikanwa'.
2994         (syms_of_mule_charset): Delete builtin symbols `name',
2995         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2996         `morohashi-daikanwa'.
2997         (vars_of_mule_charset): Don't setup
2998         `Vcharacter_ideographic_radical_table',
2999         `Vcharacter_ideographic_strokes_table',
3000         `Vcharacter_total_strokes_table',
3001         `Vcharacter_morohashi_daikanwa_table' and
3002         `Vcharacter_decomposition_table'.
3003
3004 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3005
3006         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3007         `make_older_vector', `make_vector_newer_1' and
3008         `make_vector_newer'.
3009
3010         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3011         `make_older_vector' and `make_vector_newer'.
3012
3013         * config.h.in (HAVE_GGC): New macro.
3014
3015 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3016
3017         * mule-charset.c (struct char_attribute_list_closure): New
3018         structure in UTF-2000.
3019         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3020         (Fchar_attribute_list): Likewise.
3021         (Fset_charset_mapping_table): Use `make_vector_newer'.
3022         (Fdecode_builtin_char): New function in UTF-2000.
3023         (syms_of_mule_charset): Add new function `char-attribute-list' and
3024         `decode-builtin-char' in UTF-2000.
3025
3026         * lisp.h (make_vector_newer): New prototype.
3027
3028         * alloc.c (make_vector_newer_1): New function.
3029         (make_vector_newer): New function.
3030
3031 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3032
3033         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3034         50100)'.
3035
3036 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3037
3038         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3039         (Vcharacter_attribute_table): Deleted.
3040         (Vcharacter_name_table): Deleted.
3041         (put_char_attribute): Deleted.
3042         (remove_char_attribute): Deleted.
3043         (struct char_attribute_alist_closure): New structure.
3044         (add_char_attribute_alist_mapper): New function.
3045         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3046         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3047         (Fget_char_attribute): Likewise.
3048         (Fput_char_attribute): Likewise.
3049         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3050         of `remove_char_attribute'.
3051         (Fdefine_char): Return character.
3052         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3053         and `Vcharacter_name_table'.
3054         (complex_vars_of_mule_charset): Likewise
3055         `Vchar_attribute_hash_table'.
3056
3057 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3058
3059         * character.h (CHARC_CHARSET): New macro.
3060         (CHARC_CHARSET_ID): New macro.
3061         (CHARC_CODE_POINT): New macro.
3062         (CHARC_COLUMNS): New macro.
3063         (CHARC_TO_CHAR): New inline function.
3064         (CHARC_EQ): New inline function.
3065         (CHARC_ASCII_EQ): New inline function.
3066         (CHARC_IS_SPACE): New inline function.
3067         (ASCII_TO_CHARC): New inline function.
3068
3069         * char-ucs.h (encode_char_2): Deleted.
3070         (ENCODE_CHAR): Use `encode_char_1' again.
3071         (breakup_char_1): Likewise.
3072         (CHAR_TO_CHARC): New inline function.
3073
3074         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3075
3076 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3077
3078         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3079         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3080         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3081         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3082         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3083         `CHARC_IS_SPACE'.
3084         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3085
3086         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3087         `CHARC_CODE_POINT'.
3088         (x_output_display_block): Use `CHARC_CHARSET' and
3089         `CHARC_ASCII_EQ'.
3090
3091         * redisplay-tty.c (tty_output_display_block): Use
3092         `CHARC_ASCII_EQ'.
3093         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3094
3095         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3096
3097         * insdel.c (find_charsets_in_charc_string): Use
3098         `CHARC_CHARSET_ID'.
3099         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3100         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3101         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3102         (convert_charc_string_into_malloced_string): Likewise.
3103
3104 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3105
3106         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3107         instead of <Emchar_dynarr *> for buf; use
3108         `convert_bufbyte_string_into_charc_dynarr' instead of
3109         `convert_bufbyte_string_into_emchar_dynarr'; use
3110         `find_charsets_in_charc_string' instead of
3111         `find_charsets_in_emchar_string'.
3112
3113         * redisplay.h:
3114         - Include "character.h".
3115         (struct rune): New member `cglyph'; delete member `chr'.
3116
3117         * redisplay.c (redisplay_text_width_charc_string): New function;
3118         delete `redisplay_text_width_emchar_string'.
3119         (rtw_charc_dynarr): New variable; renamed from
3120         `rtw_emchar_dynarr'.
3121         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3122         `rtw_emchar_dynarr'; use
3123         `convert_bufbyte_string_into_charc_dynarr' instead of
3124         `convert_bufbyte_string_into_emchar_dynarr'; use
3125         `redisplay_text_width_charc_string' instead of
3126         `redisplay_text_width_emchar_string'.
3127         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3128         instead of `rtw_emchar_dynarr'; use
3129         `convert_bufbyte_string_into_charc_dynarr' instead of
3130         `convert_bufbyte_string_into_emchar_dynarr'.
3131         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3132         `redisplay_text_width_charc_string' instead of
3133         `redisplay_text_width_emchar_string'.
3134         (create_text_block): Modify for <struct rune> change.
3135         (generate_formatted_string_db): Likewise.
3136         (create_string_text_block): Likewise.
3137         (pixel_to_glyph_translation): Likewise.
3138
3139         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3140         instead of <const Emchar *>.
3141         (x_text_width): Likewise.
3142         (x_output_display_block): Use <Charc_dynarr *> instead
3143         <Emchar_dynarr *>; modify for <structure rune> change.
3144         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3145         *>.
3146
3147         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3148         <const Emchar *>; use `charc_string_displayed_columns' instead of
3149         `emchar_string_displayed_columns'.
3150         (tty_output_display_block): Use <Charc_dynarr *> instead of
3151         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3152         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3153         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3154         `tty_output_emchar_dynarr_dynarr'.
3155         (tty_output_charc_dynarr): New function; delete
3156         `tty_output_charc_dynarr'.
3157
3158         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3159         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3160         <Emchar_dynarr *> for buf; use
3161         `convert_bufbyte_string_into_charc_dynarr' instead of
3162         `convert_bufbyte_string_into_emchar_dynarr'.
3163
3164         * frame.c (title_string_charc_dynarr): New variable; renamed from
3165         `title_string_emchar_dynarr'.
3166         (generate_title_string): Use `title_string_charc_dynarr' instead
3167         of `title_string_emchar_dynarr'; use
3168         `convert_charc_string_into_malloced_string' instead of
3169         `convert_emchar_string_into_malloced_string'.
3170         (init_frame): Use `title_string_charc_dynarr' instead of
3171         `title_string_emchar_dynarr'.
3172
3173         * console.h:
3174         - Include "character.h".
3175         (struct console_methods): Use <const Charc *> instead of <const
3176         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3177         <Emchar_dynarr *> in output_string_method.
3178
3179         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3180         <Emchar_dynarr *>.
3181
3182         * console-stream.c (stream_text_width): Use <const Charc *>
3183         instead of <const Emchar *>.
3184
3185         * character.h (Charc_dynarr): New type.
3186
3187         * char-ucs.h (structure Charc): New structure; define new type
3188         `Charc'.
3189
3190         * char-lb.h (DECODE_CHAR): New inline function.
3191         (encode_char_1): New inline function.
3192         (ENCODE_CHAR): New macro.
3193         (structure Charc): New structure; define new type `Charc'.
3194
3195         * char-1byte.h (Vcharset_control_1): New macro.
3196         (Vcharset_latin_iso8859_1): New macro.
3197         (DECODE_CHAR): New inline function.
3198         (encode_char_1): New inline function.
3199         (ENCODE_CHAR): New macro.
3200         (structure Charc): New structure; define new type `Charc'.
3201
3202         * insdel.c (find_charsets_in_charc_string): New function; delete
3203         `find_charsets_in_emchar_string'.
3204         (charc_string_displayed_columns): New function; delete
3205         `emchar_string_displayed_columns'.
3206         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3207         `convert_bufbyte_string_into_emchar_dynarr'.
3208         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3209         `convert_charc_string_into_bufbyte_dynarr'.
3210         (convert_charc_string_into_malloced_string): New function; delete
3211         `convert_charc_string_into_malloced_string'.
3212
3213         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3214         `find_charsets_in_emchar_string'.
3215         (charc_string_displayed_columns): New prototype; delete
3216         `emchar_string_displayed_columns'.
3217         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3218         `convert_charc_string_into_bufbyte_dynarr'.
3219         (convert_charc_string_into_malloced_string): New prototype; delete
3220         `convert_charc_string_into_malloced_string'.
3221
3222 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3223
3224         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3225
3226 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3227
3228         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3229
3230         * char-ucs.h: Use <short> for <Charset_ID>.
3231
3232         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3233         <Charset_ID>.
3234
3235 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3236
3237         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3238         to 0.16.
3239
3240 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3241
3242         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3243         variable.
3244         (Qmorohashi_daikanwa): New variable.
3245         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3246         for `morohashi-daikanwa' attribute.
3247         (Fget_char_attribute): Likewise.
3248         (Fput_char_attribute): Likewise.
3249         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3250         has the same value of `ideograph-daikanwa'.
3251         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3252         (vars_of_mule_charset): Setup
3253         `Vcharacter_morohashi_daikanwa_table'.
3254
3255 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3256
3257         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3258         attributes.
3259         (add_charset_to_list_mapper): Add `key' instead of
3260         `XCHARSET_NAME (value)' to return aliases.
3261
3262 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3263
3264         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3265         variable.
3266         (Vcharacter_ideographic_strokes_table): New variable.
3267         (Qideographic_radical): New variable.
3268         (Qideographic_strokes): New variable.
3269         (Fchar_attribute_alist): Use
3270         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3271         attribute; use `Vcharacter_ideographic_strokes_table' for
3272         `ideographic-strokes' attribute.
3273         (Fget_char_attribute): Likewise.
3274         (Fput_char_attribute): Likewise.
3275         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3276         `ideographic-strokes'.
3277         (vars_of_mule_charset): Setup
3278         `Vcharacter_ideographic_radical_table' and
3279         `Vcharacter_ideographic_strokes_table'.
3280
3281 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3284         (Qtotal_strokes): New variable.
3285         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3286         `total-strokes' attribute.
3287         (Fget_char_attribute): Likewise.
3288         (Fput_char_attribute): Likewise.
3289         (syms_of_mule_charset): Add new symbol `total-strokes'.
3290         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3291
3292 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3293
3294         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3295         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3296         are found.
3297         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3298         `->decomposition' attribute.
3299         (Fput_char_attribute): Likewise.
3300         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3301
3302 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3303
3304         * mule-charset.c (decoding_table_check_elements): New function.
3305         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3306
3307 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3308
3309         * mule-charset.c (Fset_charset_mapping_table): Use
3310         `put_char_ccs_code_point'.
3311
3312 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3313
3314         * mule-charset.c (decoding_table_put_char): New inline function.
3315         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3316
3317 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3318
3319         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3320         (XCHARSET_BYTE_SIZE): New macro.
3321         (decoding_table_remove_char): New inline function.
3322         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3323         `decoding_table_remove_char'.
3324         (remove_char_ccs): Use `decoding_table_remove_char'.
3325         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3326
3327 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3328
3329         * mule-charset.c (Vcharacter_name_table): New variable.
3330         (Qname): New variable.
3331         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3332         attribute.
3333         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3334         `Vcharacter_name_table' for `name' attribute.
3335         (Fremove_char_attribute): Use function `remove_char_ccs'.
3336         (put_char_ccs_code_point): New function.
3337         (remove_char_ccs): New function.
3338         (syms_of_mule_charset): Add new symbol `name'.
3339         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3340
3341 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3342
3343         * mule-charset.c (make_byte_table): Add new argument `older'.
3344         (make_char_id_table): Likewise.
3345         (copy_char_id_table): Comment out because it is not used.
3346         (put_char_id_table): Modify for `make_byte_table'.
3347         (Fput_char_attribute): Make encoding_table as older object;
3348         inherit older bit of `Vcharacter_composition_table'.
3349         (mark_charset): Don't mark `cs->encoding_table'.
3350         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3351         normal object; make `Vcharacter_composition_table' as an older
3352         object; delete staticpro for `Vcharacter_composition_table'; make
3353         `Vcharacter_variant_table' as a normal object.
3354
3355         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3356         (mark_object): Don't check older object in UTF-2000.
3357
3358         * lrecord.h (struct lrecord_header): Add new member `older' in
3359         UTF-2000.
3360         (set_lheader_implementation): Setup `SLI_header->older' in
3361         UTF-2000.
3362         (set_lheader_older_implementation): New macro in UTF-2000.
3363         (OLDER_RECORD_P): New macro in UTF-2000.
3364         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3365         (alloc_older_lcrecord): New prototype in UTF-2000.
3366         (alloc_older_lcrecord_type): New macro in UTF-2000.
3367
3368 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3369
3370         * mule-charset.c (byte_table_description): Use
3371         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3372         (char_id_table_description): Delete bogus `, 1'.
3373         (Fget_char_attribute): Refer encoding_table of each coded-charset
3374         to get value of coded-charset attribute of a character.
3375         (Fput_char_attribute): Use `make_older_vector' instead of
3376         `make_vector'; use encoding_table of each coded-charset to store
3377         value of coded-charset attribute of a character.
3378         (Fremove_char_attribute): Use encoding_table of each coded-charset
3379         to store value of coded-charset attribute of a character.
3380         (mark_charset): Mark `cs->encoding_table'; don't mark
3381         `cs->decoding_table'.
3382         (charset_description): Add description of new member
3383         `encoding_table'.
3384         (make_charset): Initialize `encoding_table'.
3385
3386         * char-ucs.h (struct Lisp_Charset): Add new member
3387         `encoding_table'.
3388         (CHARSET_ENCODING_TABLE): New macro.
3389         (XCHARSET_ENCODING_TABLE): New macro.
3390         (charset_code_point): New implementation.
3391         (encode_char_1): Likewise.
3392
3393         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3394         (disksave_object_finalization_1): Call finalizers of
3395         `all_older_lcrecords' in UTF-2000.
3396         (make_older_vector): New function in UTF-2000.
3397         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3398         UTF-2000.
3399
3400         * lisp.h (make_older_vector): New prototype in UTF-2000.
3401
3402 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3403
3404         * lrecord.h (enum lrecord_type): Rename
3405         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3406
3407         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3408         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3409         `get_char_code_table'.
3410
3411         * mule-charset.c (mark_char_id_table): Renamed from
3412         `mark_char_code_table'.
3413         (char_id_table_equal): Renamed from `char_code_table_equal'.
3414         (char_id_table_hash): Renamed from `char_code_table_hash'.
3415         (make_char_id_table): Renamed from `make_char_code_table'.
3416         (copy_char_id_table): Renamed from `copy_char_code_table'.
3417         (get_char_id_table): Renamed from `get_char_code_table'.
3418         (put_char_id_table): Renamed from `put_char_code_table'.
3419         (to_char_id): Renamed from `to_char_code'.
3420
3421         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3422         `Lisp_Char_Code_Table'.
3423         (char_id_table): Renamed from `char_code_table'.
3424         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3425         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3426         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3427         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3428         (get_char_id_table): Renamed from `get_char_code_table'.
3429
3430 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3431
3432         * lrecord.h (enum lrecord_type): Rename
3433         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3434
3435         * mule-charset.c (mark_byte_table): Renamed from
3436         `mark_char_byte_table'.
3437         (byte_table_equal): Renamed from `char_byte_table_equal'.
3438         (byte_table_hash): Renamed from `byte_table_hash'.
3439         (make_byte_table): Renamed from `make_byte_table'.
3440         (copy_byte_table): Renamed from `copy_char_byte_table'.
3441
3442         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3443         `Lisp_Char_Byte_Table'.
3444         (byte_table): Renamed from `char_byte_table'.
3445         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3446         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3447         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3448         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3449
3450 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3451
3452         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3453         (dfc_convert_to_internal_format): Likewise.
3454         
3455         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3456         * text-coding.c (Fcoding_system_alias_p): New function.
3457         * text-coding.c (Fcoding_system_aliasee): New function.
3458         * text-coding.c (append_suffix_to_symbol): New function.
3459         * text-coding.c (dangling_coding_system_alias_p): New function.
3460         * text-coding.c (Ffind_coding_system):
3461         * text-coding.c (Fcopy_coding_system):
3462         * text-coding.c (encode_coding_no_conversion):
3463         * text-coding.c (syms_of_file_coding):
3464         * text-coding.c (vars_of_file_coding):
3465         Rewrite coding system alias code.
3466         Allow nested aliases, like symbolic links.
3467         Allow redefinition of coding system aliases.
3468         Prevent existence of dangling coding system aliases.
3469         Eliminate convert_to_external_format.
3470         Eliminate convert_to_internal_format.
3471         
3472         * text-coding.c: Change enum eol_type to eol_type_t.
3473
3474 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3475
3476         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3477         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3478
3479         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3480         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3481
3482 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3483
3484         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3485         `ideograph-daikanwa'.
3486
3487         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3488         (Vcharset_ucs_bmp): Likewise.
3489         (Vcharset_mojikyo): Add new extern variable definition.
3490         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3491         (Vcharset_latin_iso8859_3): Likewise.
3492         (Vcharset_latin_iso8859_4): Likewise.
3493         (Vcharset_latin_iso8859_9): Likewise.
3494         (Vcharset_latin_viscii_lower): Likewise.
3495         (Vcharset_latin_viscii_upper): Likewise.
3496         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3497         `mojikyo' code-point is used to decode.
3498         (encode_char_2): New function [to convert `mojikyo' code-point to
3499         Mojikyo font encoding].
3500         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3501         (breakup_char_1): Likewise.
3502         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3503
3504 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3505
3506         * text-coding.c (Fmake_coding_system): Add document about
3507         `disable-composition' property.
3508
3509 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3510
3511         * text-coding.c (Qdisable_composition): New variable; delete
3512         `Qcomposite'.
3513         (Fmake_coding_system): Add new property `disable-composite';
3514         delete property `composite'.
3515         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3516         instead of `!CODING_SYSTEM_COMPOSITE'.
3517         (syms_of_file_coding): Add new symbol `disable-composition';
3518         delete symbol `composite'.
3519
3520         * file-coding.h (struct Lisp_Coding_System): Add
3521         `disable_composition'; delete `enable_composition'.
3522         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3523         `CODING_SYSTEM_COMPOSITE'.
3524         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3525         `XCODING_SYSTEM_COMPOSITE'.
3526
3527 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3528
3529         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3530         to 0.15.
3531
3532 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3533
3534         * text-coding.c (Qcomposite): New variable.
3535         (Fmake_coding_system): Add new property `composite'.
3536         (struct decoding_stream): Add `combined_char_count',
3537         `combined_chars' and `combining_table' in UTF-2000.
3538         (COMPOSE_FLUSH_CHARS): New macro.
3539         (COMPOSE_ADD_CHAR): New macro.
3540         (reset_decoding_stream): Reset `str->combined_char_count' and
3541         `str->combining_table' in UTF-2000.
3542         (decode_coding_iso2022): Modify for character-decomposition.
3543         (syms_of_file_coding): Add new symbol `composite'.
3544
3545 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3546
3547         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3548         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3549         of `Vcharacter_composition_table' if `->decomposition' property
3550         has only 1 element.
3551         (Qlatin_tcvn5712): New variable.
3552         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3553         (complex_vars_of_mule_charset): Add new coded-charset
3554         `latin-tcvn5712'.
3555
3556         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3557
3558 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3559
3560         * file-coding.h (struct Lisp_Coding_System): Add
3561         `enable_composition'.
3562         (CODING_SYSTEM_COMPOSITE): New macro.
3563         (XCODING_SYSTEM_COMPOSITE): New macro.
3564
3565 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3566
3567         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3568
3569 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3570
3571         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3572         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3573
3574 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3575
3576         * mule-charset.c (Vcharset_mojikyo): New variable.
3577         (Fdefine_char): Don't use coded-charset which does not have
3578         non-builtin character range to allocate character-id.
3579         (Qmojikyo): New variable.
3580         (syms_of_mule_charset): Add new symbol `mojikyo'.
3581         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3582
3583         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3584         (LEADING_BYTE_MOJIKYO): New macro.
3585         (MIN_CHAR_MOJIKYO): New macro.
3586         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3587         (MAX_CHAR_MOJIKYO): New macro.
3588
3589 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3590
3591         * mule-charset.c (remove_char_attribute): Fixed.
3592
3593 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3594
3595         * mule-charset.c (remove_char_attribute): New function.
3596         (Fremove_char_attribute): New function.
3597         (encode_builtin_char_1): Comment out builtin-support for
3598         greek-iso8859-7 and cyrillic-iso8859-5.
3599         (Fdecode_char): Check `code' is an integer.
3600         (syms_of_mule_charset): Add `remove-char-attribute'.
3601         (MIN_CHAR_GREEK): Deleted.
3602         (MAX_CHAR_GREEK): Likewise.
3603         (MIN_CHAR_CYRILLIC): Likewise.
3604         (MAX_CHAR_CYRILLIC): Likewise.
3605         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3606         MAX_CHAR_GREEK for `greek-iso8859-7'.
3607
3608         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3609         (MAX_CHAR_GREEK): Likewise.
3610         (MIN_CHAR_CYRILLIC): Likewise.
3611         (MAX_CHAR_CYRILLIC): Likewise.
3612
3613 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3614
3615         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3616         format is used without `ucs' property.
3617         (Fdecode_char): Fix problem with GR representation.
3618         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3619         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3620
3621 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3622
3623         * mule-charset.c (make_builtin_char): New function.
3624         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3625         (Fset_charset_mapping_table): Modify for new representation of
3626         code-point.
3627         (Fdecode_char): New function.
3628         (syms_of_mule_charset): Add new builtin function `decode-char' in
3629         UTF-2000.
3630
3631         * char-ucs.h (make_builtin_char): New prototype.
3632         (DECODE_CHAR): New inline function.
3633         (MAKE_CHAR): Use `DECODE_CHAR'.
3634
3635 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3636
3637         * text-coding.c (parse_charset_conversion_specs): Use
3638         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3639         `XCHARSET_TYPE'.
3640         (iso2022_designate): Likewise.
3641
3642         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3643         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3644
3645         * mule-charset.c (Vcharset_ucs): New variable.
3646         (print_charset): Change design; use `CHARSET_CHARS' and
3647         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3648         (make_charset): Change signature to specify `chars' and
3649         `dimension' instead of `type'.
3650         (range_charset_code_point): Modify for 256^n-set.
3651         (encode_builtin_char_1): Encode as `ucs' in default.
3652         (Fmake_charset): Modify for `make_charset'.
3653         (Fmake_reverse_direction_charset): Likewise.
3654         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3655         UTF-2000.
3656         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3657         for `make_charset'.
3658
3659         * char-ucs.h (Vcharset_ucs): New variable.
3660         (LEADING_BYTE_UCS): New macro.
3661         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3662         and `chars' to `unsigned short' from `unsigned int'.
3663         (CHARSET_TYPE): Deleted.
3664         (XCHARSET_TYPE): Deleted.
3665
3666 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3667
3668         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3669
3670         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3671         (ENCODE_CHAR): New macro.
3672
3673 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3674
3675         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3676         to 0.14 (Kawachi-Katakami).
3677
3678 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3679
3680         * text-coding.c (char_encode_shift_jis): Modify for
3681         `charset_code_point'.
3682         (char_encode_iso2022): Likewise.
3683
3684         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3685         (integer) instead of list of <Lisp_Object>s (integers) as the
3686         format of code-point of a coded-charset.
3687         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3688         (encode_builtin_char_1): New function; delete
3689         `split_builtin_char'.
3690         (charset_code_point): Return <int> instead of <Lisp_Object>.
3691         (Fsplit_char): Don't use `SPLIT_CHAR'.
3692
3693         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3694         prototype for `split_builtin_char'.
3695         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3696         (charset_code_point): Likewise.
3697         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3698         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3699
3700 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3701
3702         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3703         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3704
3705 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3706
3707         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3708
3709         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3710         (MAX_CHAR_OBS_94x94): Deleted.
3711
3712 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3713
3714         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3715
3716         * char-ucs.h (MAX_CHAR_BMP): New macro.
3717
3718 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3719
3720         * text-coding.c: Sync with r21-2-24.
3721
3722 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3723
3724         * file-coding.c: Modify for UTF-2000.
3725
3726 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3727
3728         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3729         to 0.13 (Takaida).
3730
3731 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3732
3733         * mule-charset.c (split_builtin_char): Delete builtin support for
3734         `katakana-jisx0201'.
3735         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3736         BMP area in builtin representation.
3737
3738         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3739         `Vcharset_katakana_jisx0201'.
3740
3741 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3742
3743         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3744         (Qisolated): New variable.
3745         (Qinitial): New variable.
3746         (Qmedial): New variable.
3747         (Qfinal): New variable.
3748         (Qvertical): New variable.
3749         (Qsmall): New variable.
3750         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3751         `Qvertical' and `Qsmall'.
3752         (Qmojikyo_pj_[1 .. 21]): New variable.
3753         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3754         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3755         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3756         .. 21]'.
3757
3758 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3759
3760         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3761         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3762         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3763
3764 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3767         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3768         BMP.
3769         (Qjapanese_jisx0208_1990): New variable.
3770         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3771         (complex_vars_of_mule_charset): Add new coded-charset
3772         `japanese-jisx0208-1990'.
3773
3774         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3775         (MIN_CHAR_JIS_X0208_1990): New macro.
3776         (MAX_CHAR_JIS_X0208_1990): New macro.
3777
3778 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3779
3780         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3781         coded-charset is not found.
3782
3783 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3784
3785         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3786         (Fdefine_char): Use `Fmake_char'.
3787
3788 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3789
3790         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3791         (Vcharset_hiragana_jisx0208): Deleted.
3792         (Vcharset_katakana_jisx0208): Deleted.
3793         (Qideograph_daikanwa): New variable.
3794         (Qhiragana_jisx0208): Deleted.
3795         (Qkatakana_jisx0208): Deleted.
3796         (split_builtin_char): Split `ideograph-daikanwa'.
3797         (Fsplit_char): New implementation for UTF-2000.
3798         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3799         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3800         (complex_vars_of_mule_charset): Add new coded-charset
3801         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3802         `katakana-jisx0208'.
3803
3804         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3805         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3806         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3807         (MIN_CHAR_DAIKANWA): New macro.
3808         (MAX_CHAR_DAIKANWA): New macro.
3809
3810 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3811
3812         * data.c (Fstring_to_number): Don't recognize floating point if
3813         base is not 10.
3814
3815 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3816
3817         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3818
3819 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3820
3821         * mule-charset.c (Qsquare): New variable.
3822         (to_char_code): Add `Qsquare'.
3823         (syms_of_mule_charset): Add new symbol `square'.
3824
3825 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3826
3827         * mule-charset.c (Qcircle): New variable.
3828         (to_char_code): Add `Qcircle'.
3829         (syms_of_mule_charset): Add new symbol `circle'.
3830
3831 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3832
3833         * mule-charset.c (Qfont): New variable.
3834         (to_char_code): Add `Qfont'.
3835         (syms_of_mule_charset): Add new symbol `font'.
3836
3837 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3838
3839         * mule-charset.c (Qsub): New variable.
3840         (to_char_code): Add `Qsub'.
3841         (syms_of_mule_charset): Add new symbol `sub'.
3842
3843 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3844
3845         * mule-charset.c (Fput_char_attribute): Convert each element of
3846         VALUE to GL position if ATTRIBUTE is a GR-set,
3847
3848 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3849
3850         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3851         coded-charset is a GR-set.
3852
3853 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3854
3855         * mule-charset.c (Fput_char_attribute): Check each element of
3856         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3857
3858 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3859
3860         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3861         UTF-2000.
3862         (Qethiopic_ucs): New variable in UTF-2000.
3863         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3864         (complex_vars_of_mule_charset): Add new coded-charset
3865         `ethiopic-ucs' in UTF-2000.
3866
3867         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3868         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3869         9)'.
3870         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3871         10)'.
3872         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3873
3874 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3875
3876         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3877         `ascii'.
3878
3879 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3880
3881         * mule-charset.c (Vcharacter_variant_table): New variable.
3882         (Q_ucs): New variable.
3883         (Fchar_variants): New function.
3884         (Fput_char_attribute): Register `->ucs' value to
3885         `Vcharacter_variant_table'.
3886         (syms_of_mule_charset): Add new function `char-variants' and new
3887         symbol `->ucs'.
3888         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3889
3890 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3891
3892         * mule-charset.c (get_char_code_table): Allow negative character
3893         code.
3894         (put_char_code_table): Likewise.
3895         (Vcharacter_composition_table): New variable.
3896         (Q_decomposition): New variable.
3897         (Qwide): New variable.
3898         (Qnarrow): New variable.
3899         (Qcompat): New variable.
3900         (QnoBreak): New variable.
3901         (Qsuper): New variable.
3902         (Qfraction): New variable.
3903         (to_char_code): New function.
3904         (Fget_composite_char): New function.
3905         (Fput_char_attribute): Register `->decomposition' value to
3906         `Vcharacter_composition_table'.
3907         (syms_of_mule_charset): Add new function `get-composite-char', new
3908         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3909         `super' and `fraction'.
3910         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3911
3912 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3913
3914         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3915         character; copy the return value.
3916
3917 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3918
3919         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3920
3921         * mule-charset.c (range_charset_code_point): Must use make_int.
3922         (split_builtin_char): New function.
3923
3924 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3925
3926         * mule-charset.c (char_byte_table): Change name from
3927         "char-code-table" to "char-byte-table".
3928         (mark_char_code_table): New function.
3929         (char_code_table_equal): New function.
3930         (char_code_table_hash): New function.
3931         (char_code_table_description): New constant.
3932         (char_code_table): New type.
3933         (make_char_code_table): New function.
3934         (copy_char_code_table): New function.
3935         (get_char_code_table): Modify for `char_code_table' type.
3936         (put_char_code_table): Likewise.
3937         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3938         (Kashiwara).
3939
3940         * char-ucs.h (char_code_table): New type.
3941         (XCHAR_CODE_TABLE): New macro.
3942         (XSETCHAR_CODE_TABLE): New macro.
3943         (CHAR_CODE_TABLE_P): New macro.
3944         (GC_CHAR_CODE_TABLE_P): New macro.
3945         (struct Lisp_Char_Code_Table): New structure.
3946
3947 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3948
3949         * mule-charset.c (Fmake_charset): Setup byte_offset for
3950         {94|96}^n-set.
3951
3952 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3953
3954         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3955         character.
3956
3957 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3958
3959         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3960         is found.
3961
3962 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3963
3964         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3965         charset, it is regarded as a charset.
3966         (put_char_attribute): New function in UTF-2000.
3967         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3968         charset, mapping-table of the charset is modified.
3969         (Fdefine_char): New function in UTF-2000.
3970         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3971         `Fput_char_attribute'.
3972         (syms_of_mule_charset): Add new function `define-char' and new
3973         symbol `ucs' in UTF-2000.
3974         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3975
3976 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3977
3978         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3979         non-UTF-2000 configuration.
3980
3981 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3984         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3985
3986         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3987         deleted.
3988         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3989         (Fset_charset_mapping_table): Likewise.
3990
3991         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3992         (CHARSET_ENCODING_TABLE): Delete.
3993         (XCHARSET_ENCODING_TABLE): Delete.
3994         (charset_code_point): New interface.
3995
3996 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3997
3998         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3999         instead of `charset_get_byte1' and `charset_get_byte2'.
4000
4001         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4002         (charset_get_byte2): Deleted.
4003
4004 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4005
4006         * char-ucs.h (SPLIT_CHAR): New inline function.
4007         (breakup_char_1): Use `SPLIT_CHAR'.
4008
4009         * mule-charset.c (range_charset_code_point): New function.
4010         (charset_code_point): New function.
4011
4012         * char-ucs.h (range_charset_code_point): New interface.
4013         (breakup_char_1): Use `range_charset_code_point'.
4014
4015 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4016
4017         * mule-charset.c (Fmake_charset): Delete unused local variable
4018         `code_offset'.
4019
4020         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4021         (breakup_char_1): Find a charset and code-point in
4022         `Vcharacter_attribute_table'.
4023
4024 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4025
4026         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4027         to 0.10 (Yao).
4028
4029 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4030
4031         * mule-charset.c (Vcharacter_attribute_table): New variable.
4032         (Fchar_attribute_alist): New function.
4033         (Fget_char_attribute): New function.
4034         (Fput_char_attribute): New function.
4035         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4036         too.
4037         (syms_of_mule_charset): Add new function `char-attribute-alist',
4038         `get-char-attribute' and `put-char-attribute'.
4039         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4040
4041 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4042
4043         * mule-charset.c (Fmake_charset): Just use
4044         `get_unallocated_leading_byte'.
4045
4046         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4047         sets; don't use final-byte based number for private sets.
4048
4049 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4050
4051         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4052         integer.
4053
4054 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4055
4056         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4057         to 0.9.
4058
4059 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4060
4061         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4062         of `CHAR_LEADING_BYTE' in UTF-2000.
4063
4064         * insdel.c (find_charsets_in_bufbyte_string): Use
4065         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4066         (find_charsets_in_emchar_string): Likewise.
4067
4068         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4069         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4070
4071         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4072         (CHAR_CHARSET_ID): New macro.
4073
4074 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4075
4076         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4077         charset-id - MIN_LEADING_BYTE.
4078         (put_char_table): Likewise.
4079
4080 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4081
4082         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4083         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4084         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4085         (CHARSET_ID_OFFSET): New macro.
4086         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4087         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4088         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4089         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4090         4).
4091         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4092         5).
4093         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4094         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4095         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4096         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4097         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4098
4099 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4100
4101         * mule-charset.c (next_allocated_leading_byte): New variable in
4102         UTF-2000.
4103         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4104         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4105         (get_unallocated_leading_byte): Simply use
4106         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4107         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4108         UTF-2000.
4109
4110         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4111         (MAX_LEADING_BYTE_PRIVATE): New macro.
4112         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4113         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4114
4115 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4116
4117         * mule-charset.c (Fmake_charset): Allocate final-byte based
4118         charset-id for 94-set, 96-set and 94x94-set.
4119
4120 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4121
4122         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4123         ambiguous `else'.
4124         (Fmake_charset): Likewise.
4125         (complex_vars_of_mule_charset): Modify the font registry of
4126         `ucs-bmp' not to match `Ethiopic-Unicode'.
4127
4128 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4129
4130         * mule-charset.c (complex_vars_of_mule_charset): Add font
4131         registory of `ucs-bmp'.
4132
4133 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4134
4135         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4136         coded-charsets in `default-coded-charset-priority-list' when
4137         breaking up a character.
4138
4139         * mule-charset.c (Vcharset_latin_viscii): New variable.
4140         (Qlatin_viscii): New variable.
4141         (make_charset): Don't use `decoding_table'.
4142         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4143         byte_offset.
4144         (Fset_charset_mapping_table): New implementation.
4145         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4146         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4147         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4148         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4149         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4150         charset `latin_viscii'.
4151
4152         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4153         (CHARSET_TYPE_94X94): Change to 1 from 2.
4154         (CHARSET_TYPE_96): Change to 2 from 1.
4155         (CHARSET_TYPE_128): New macro.
4156         (CHARSET_TYPE_128X128): Change to 5 from 4.
4157         (CHARSET_TYPE_256): New macro.
4158         (CHARSET_TYPE_256X256): Change to 7 from 5.
4159         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4160
4161 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4162
4163         * text-coding.c (char_encode_shift_jis): Refer
4164         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4165         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4166
4167         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4168         (char_byte_table_equal): New function in UTF-2000.
4169         (char_byte_table_hash): New function in UTF-2000.
4170         (char_byte_table_description): New constant in UTF-2000.
4171         (char_byte_table): New type in UTF-2000.
4172         (make_char_byte_table): New function in UTF-2000.
4173         (copy_char_byte_table): New function in UTF-2000.
4174         (make_char_code_table): New macro in UTF-2000.
4175         (get_char_code_table): New function in UTF-2000.
4176         (put_char_code_table): New function in UTF-2000.
4177         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4178         (charset_description): Add setting in UTF-2000.
4179         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4180         `CHARSET_TO_BYTE1_TABLE(cs)'.
4181         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4182         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4183         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4184         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4185         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4186         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4187         `CHARSET_TO_BYTE2_TABLE(cs)'.
4188
4189         * char-ucs.h (char_byte_table): New type.
4190         (XCHAR_BYTE_TABLE): New macro.
4191         (XSETCHAR_BYTE_TABLE): New macro.
4192         (CHAR_BYTE_TABLE_P): New macro.
4193         (GC_CHAR_BYTE_TABLE_P): New macro.
4194         (struct Lisp_Char_Byte_Table): New structure.
4195         (get_char_code_table): New interface.
4196         (Emchar_to_byte_table): Deleted.
4197         (get_byte_from_character_table): Deleted.
4198         (struct Lisp_Charset): Add `encoding_table'; delete
4199         `to_byte1_table' and `to_byte2_table'.
4200         (CHARSET_ENCODING_TABLE): New macro.
4201         (CHARSET_TO_BYTE1_TABLE): Deleted.
4202         (CHARSET_TO_BYTE2_TABLE): Deleted.
4203         (XCHARSET_ENCODING_TABLE): New macro.
4204         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4205         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4206
4207 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4208
4209         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4210         `vietnamese-viscii-*'.
4211
4212 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4213
4214         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4215         (Qvietnamese_viscii_upper): New variable.
4216         (Fdefine_charset_alias): New function.
4217         (syms_of_mule_charset): Add new function `define-charset-alias'.
4218         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4219         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4220         `latin-viscii-*'.
4221
4222 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4223
4224         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4225         (MAX_CHAR_OBS_94x94): New macro.
4226         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4227         for 94x94 sets.
4228
4229         * mule-charset.c (put_byte_from_character_table): Change unit size
4230         from 128 to 256.
4231         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4232         not defined.
4233         (Fmake_reverse_direction_charset): Modify dummy argument of
4234         `make_charset' for non-UTF-2000 environment.
4235
4236 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4237
4238         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4239
4240         * mule-charset.c (destroy_byte_from_character_table): New macro.
4241         (latin_jisx0201_to_ucs): Deleted.
4242         (latin_iso8859_2_to_ucs): Deleted.
4243         (latin_iso8859_3_to_ucs): Deleted.
4244         (latin_iso8859_4_to_ucs): Deleted.
4245         (latin_iso8859_9_to_ucs): Deleted.
4246         (latin_viscii_lower_to_ucs): Deleted.
4247         (latin_viscii_upper_to_ucs): Deleted.
4248         (mark_charset): Mark `cs->decoding_table'.
4249         (Fcharset_mapping_table): Fix DOC-string.
4250         (Fset_charset_mapping_table): New function.
4251         (syms_of_mule_charset): Add nwe function
4252         `set-charset-mapping-table'.
4253         (complex_vars_of_mule_charset): Don't setup and use
4254         `latin_*_to_ucs'.
4255
4256 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4257
4258         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4259         charset.
4260
4261 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4262
4263         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4264         (Vcharset_katakana_jisx0208): New variable.
4265         (Qhiragana_jisx0208): New variable.
4266         (Qkatakana_jisx0208): New variable.
4267         (make_charset): Add new argument `byte_offset'.
4268         (charset_get_byte1): Modify for new coded-charset definition; use
4269         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4270         `XCHARSET_BYTE_OFFSET'.
4271         (Fmake_charset): Modify for `make_charset'.
4272         (Fmake_reverse_direction_charset): Likewise.
4273         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4274         `katakana-jisx0208'.
4275         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4276         `.'  in font registry of charset `katakana-jisx0201',
4277         `latin-jisx0201', `vietnamese-viscii-lower' and
4278         `vietnamese-viscii-upper'; modify DOC-string of charset
4279         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4280         registry of charset `japanese-jisx0208' not to use font for JIS
4281         X0208:1990; add new charset `hiragana-jisx0208' and
4282         `katakana-jisx0208'.
4283
4284         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4285         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4286         (struct Lisp_Charset): Add `byte_offset'.
4287         (CHARSET_BYTE_OFFSET): New macro.
4288         (XCHARSET_UCS_MIN): New macro.
4289         (XCHARSET_UCS_MAX): New macro.
4290         (XCHARSET_CODE_OFFSET): New macro.
4291         (XCHARSET_BYTE_OFFSET): New macro.
4292         (MIN_CHAR_HIRAGANA): New macro.
4293         (MAX_CHAR_HIRAGANA): New macro.
4294         (MIN_CHAR_KATAKANA): New macro.
4295         (MAX_CHAR_KATAKANA): New macro.
4296         (MAKE_CHAR): Modify for new coded-charset definition; use
4297         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4298         `XCHARSET_BYTE_OFFSET'.
4299
4300 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4301
4302         * mule-charset.c (CHAR96): Deleted.
4303         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4304         <Lisp_Object>.
4305         (latin_iso8859_2_to_ucs): Likewise.
4306         (latin_iso8859_3_to_ucs): Likewise.
4307         (latin_iso8859_4_to_ucs): Likewise.
4308         (latin_iso8859_9_to_ucs): Likewise.
4309         (latin_viscii_lower_to_ucs): Likewise.
4310         (latin_viscii_upper_to_ucs): Likewise.
4311         (latin_tcvn5712_to_ucs): Commented out.
4312         (make_charset): Change type of argument `decoding_table' from
4313         <Emchar*> to <Lisp_Object> [vector of characters].
4314         (Fmake_charset): Modify for `make_charset'.
4315         (Fmake_reverse_direction_charset): Likewise.
4316         (Fcharset_mapping_table): New function in UTF-2000.
4317         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4318         UTF-2000.
4319         (complex_vars_of_mule_charset): Modify for type change of
4320         `*_to_ucs'; modify for `make_charset'.
4321
4322         * char-ucs.h (struct Lisp_Charset): Change type of
4323         `decoding_table' from <Emchar*> to <Lisp_Object>.
4324         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4325
4326 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4327
4328         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4329         error with non-UTF-2000-Mule.
4330
4331 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4332
4333         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4334         in lisp again].
4335         (Vcharset_chinese_cns11643_4): Likewise.
4336         (Vcharset_chinese_cns11643_5): Likewise.
4337         (Vcharset_chinese_cns11643_6): Likewise.
4338         (Vcharset_chinese_cns11643_7): Likewise.
4339         (Qchinese_cns11643_3): Likewise.
4340         (Qchinese_cns11643_4): Likewise.
4341         (Qchinese_cns11643_5): Likewise.
4342         (Qchinese_cns11643_6): Likewise.
4343         (Qchinese_cns11643_7): Likewise.
4344         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4345         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4346         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4347         (complex_vars_of_mule_charset): Likewise.
4348
4349 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4350
4351         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4352         96-set.
4353         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4354         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4355
4356 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4357
4358         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4359         0xFF60.
4360         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4361         (breakup_char_1): Likewise.
4362
4363         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4364         one of them includes the specified character.
4365
4366 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4367
4368         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4369
4370 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4371
4372         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4373
4374 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4375
4376         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4377         definition for non-UTF-2000 Mule.
4378         (latin_iso8859_3_to_ucs): Likewise.
4379         (latin_iso8859_4_to_ucs): Likewise.
4380         (latin_iso8859_9_to_ucs): Likewise.
4381         (latin_jisx0201_to_ucs): Likewise.
4382         (MIN_CHAR_THAI): Likewise.
4383         (MAX_CHAR_THAI): Likewise.
4384         (MIN_CHAR_GREEK): Likewise.
4385         (MAX_CHAR_GREEK): Likewise.
4386         (MIN_CHAR_HEBREW): Likewise.
4387         (MAX_CHAR_HEBREW): Likewise.
4388         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4389         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4390         (MIN_CHAR_CYRILLIC): Likewise.
4391         (MAX_CHAR_CYRILLIC): Likewise.
4392
4393 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4394
4395         * char-ucs.h (breakup_char_1): Use
4396         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4397         thai-tis620 and katakana-jisx0201 area.
4398
4399 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4400
4401         * char-ucs.h (breakup_char_1): Use
4402         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4403         area.
4404
4405         * text-coding.c (reset_encoding_stream): Fixed.
4406         (char_encode_ucs4): Delete `& 255'.
4407
4408         * char-ucs.h (breakup_char_1): Use
4409         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4410
4411 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4412
4413         * file-coding.c (Fmake_coding_system): Don't set up
4414         `codesys->fixed.size'.
4415         (encode_coding_no_conversion): Don't refer
4416         `str->codesys->fixed.size'.
4417
4418 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4419
4420         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4421         (latin_a_char_to_byte1): Deleted.
4422         (latin_a_char_to_byte2): Deleted.
4423
4424 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4425
4426         * mule-charset.c (make_charset): Add new argument `ucs_min',
4427         `ucs_max' and `code_offset'.
4428         (charset_get_byte1): New implementation [delete specific charset
4429         depended implementations].
4430         (Fmake_charset): Modify for `make_charset'.
4431         (Fmake_reverse_direction_charset): Likewise.
4432         (complex_vars_of_mule_charset): Likewise.
4433
4434         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4435         `code_offset'.
4436         (CHARSET_UCS_MIN): New macro.
4437         (CHARSET_UCS_MAX): New macro.
4438         (CHARSET_CODE_OFFSET): New macro.
4439         (MAKE_CHAR): Delete charset depended definitions [except
4440         katakana-jisx0201].
4441
4442 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4443
4444         * char-ucs.h (breakup_char_1): Use
4445         `Vdefault_coded_charset_priority_list' for C0-Controls,
4446         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4447
4448 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4449
4450         * char-ucs.h (charset_get_byte1): New function.
4451         (XCHARSET_GET_BYTE1): Deleted.
4452         (charset_get_byte2): New function.
4453         (XCHARSET_GET_BYTE2): Deleted.
4454         (Vdefault_coded_charset_priority_list): New external variable.
4455         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4456         `Vdefault_preferred_coded_charset_list'.
4457
4458         * mule-charset.c (charset_get_byte1): New function.
4459         (charset_get_byte2): New function.
4460         (Vdefault_coded_charset_priority_list): New variable.
4461         (vars_of_mule_charset): Add new variable
4462         `default-coded-charset-priority-list'.
4463
4464 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4465
4466         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4467         (XCHARSET_GET_BYTE2): New inline function.
4468         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4469         `XCHARSET_GET_BYTE2'.
4470
4471 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4472
4473         * mule-charset.c (make_charset): Initialize
4474         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4475         NULL if table is not defined.
4476
4477 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4478
4479         * text-coding.c (char_encode_shift_jis): Use
4480         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4481         `ucs_to_latin_jisx0201'.
4482
4483         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4484         (ucs_to_latin_iso8859_2): Deleted.
4485         (ucs_to_latin_iso8859_3): Deleted.
4486         (ucs_to_latin_iso8859_4): Deleted.
4487         (ucs_to_latin_iso8859_9): Deleted.
4488         (ucs_to_latin_viscii_lower): Deleted.
4489         (ucs_to_latin_viscii_upper): Deleted.
4490         (ucs_to_latin_tcvn5712): Deleted.
4491         (make_charset): Add new argument `decoding_table'; set up
4492         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4493         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4494         `decoding_table' is defined in UTF-2000.
4495         (Fmake_charset): Modify for `make_charset'.
4496         (Fmake_reverse_direction_charset): Likewise.
4497         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4498         and `GENERATE_96_SET'.
4499
4500         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4501         (ucs_to_latin_jisx0201): Deleted.
4502         (latin_iso8859_2_to_ucs): Deleted.
4503         (ucs_to_latin_iso8859_2): Deleted.
4504         (latin_iso8859_3_to_ucs): Deleted.
4505         (ucs_to_latin_iso8859_3): Deleted.
4506         (latin_iso8859_4_to_ucs): Deleted.
4507         (ucs_to_latin_iso8859_4): Deleted.
4508         (latin_iso8859_9_to_ucs): Deleted.
4509         (ucs_to_latin_iso8859_9): Deleted.
4510         (latin_viscii_lower_to_ucs): Deleted.
4511         (ucs_to_latin_viscii_lower): Deleted.
4512         (latin_viscii_upper_to_ucs): Deleted.
4513         (ucs_to_latin_viscii_upper): Deleted.
4514         (struct Lisp_Charset): Renamed `encoding_table' to
4515         `to_byte1_table'; add `to_byte2_table'.
4516         (CHARSET_DECODING_TABLE): New macro.
4517         (CHARSET_TO_BYTE1_TABLE): New macro.
4518         (CHARSET_TO_BYTE2_TABLE): New macro.
4519         (XCHARSET_DECODING_TABLE): New macro.
4520         (XCHARSET_TO_BYTE1_TABLE): New macro.
4521         (XCHARSET_TO_BYTE2_TABLE): New macro.
4522         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4523         tables.
4524         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4525         don't use `ucs_to_*' tables.
4526
4527 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4528
4529         * text-coding.c (Fmake_coding_system): Don't set up
4530         `codesys->fixed.size'.
4531         (encode_coding_no_conversion): Use `if' instead of `switch'.
4532
4533         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4534
4535 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4536
4537         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4538         (Fmake_charset): Modify for `make_charset'.
4539         (Fmake_reverse_direction_charset): Likewise.
4540         (complex_vars_of_mule_charset): Likewise.
4541
4542 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * text-coding.c (char_encode_shift_jis): Use table
4545         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4546
4547 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4548
4549         * text-coding.c (text_encode_generic): Use `if' instead of
4550         `switch'.
4551         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4552         decode JIS-Latin.
4553
4554 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * text-coding.c (encode_coding_sjis): Deleted.
4557         (char_encode_shift_jis): New function.
4558         (char_finish_shift_jis): New function.
4559         (reset_encoding_stream): Set up `encode_char' and `finish' for
4560         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4561         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4562         (char_encode_utf8): Treat `eol_type'.
4563
4564 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4565
4566         * file-coding.c (decode_coding_iso2022): Use
4567         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4568
4569 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4570
4571         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4572         to 0.7 (Hirano).
4573
4574 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4575
4576         * char-lb.h (CHAR_COLUMNS): New macro.
4577
4578 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4579
4580         * text-coding.c (char_encode_ucs4): New function.
4581         (char_finish_ucs4): New function.
4582         (encode_coding_ucs4): Deleted.
4583         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4584         (text_encode_generic): Delete local variable `charset' and `half'.
4585         (ucs_to_mule_table): Deleted.
4586         (mule_to_ucs_table): Deleted.
4587         (Fset_ucs_char): Deleted.
4588         (ucs_to_char): Deleted.
4589         (Fucs_char): Deleted.
4590         (Fset_char_ucs): Deleted.
4591         (Fchar_ucs): Deleted.
4592         (decode_ucs4): Deleted.
4593         (mule_char_to_ucs4): Deleted.
4594         (encode_ucs4): Deleted.
4595         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4596         (decode_coding_utf8): Likewise.
4597         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4598         (char_encode_iso2022): Fixed.
4599         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4600         `Fset_char_ucs' and `Fchar_ucs'.
4601         (complex_vars_of_file_coding): Don't initialize
4602         `ucs_to_mule_table'.
4603
4604         * objects-tty.c (tty_initialize_font_instance): Don't use
4605         `XCHARSET_COLUMNS'.
4606
4607         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4608         UTF-2000.
4609
4610         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4611         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4612
4613         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4614         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4615         (emchar_string_displayed_columns): Likewise.
4616
4617         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4618         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4619         (string_column_at_point): Likewise.
4620         (Fmove_to_column): Likewise.
4621
4622         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4623         `encoding_table' and `decoding_table'.
4624         (CHARSET_REP_BYTES): Deleted.
4625         (XCHARSET_REP_BYTES): Deleted.
4626         (XCHARSET_COLUMNS): Deleted.
4627         (CHAR_COLUMNS): New macro.
4628         (lookup_composite_char): Deleted unconditionally.
4629         (composite_char_string): Likewise.
4630
4631 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4632
4633         * char-ucs.h (Emchar_to_byte_table): New type.
4634         (get_byte_from_character_table): New function interface.
4635         (Vcharset_latin_jisx0201): New variable.
4636         (latin_jisx0201_to_ucs): New variable.
4637         (ucs_to_latin_jisx0201): New variable.
4638         (Vcharset_latin_iso8859_2): New variable.
4639         (latin_iso8859_2_to_ucs): New variable.
4640         (ucs_to_latin_iso8859_2): New variable.
4641         (Vcharset_latin_iso8859_3): New variable.
4642         (latin_iso8859_3_to_ucs): New variable.
4643         (ucs_to_latin_iso8859_3): New variable.
4644         (Vcharset_latin_iso8859_4): New variable.
4645         (latin_iso8859_4_to_ucs): New variable.
4646         (ucs_to_latin_iso8859_4): New variable.
4647         (Vcharset_latin_iso8859_9): New variable.
4648         (latin_iso8859_9_to_ucs): New variable.
4649         (ucs_to_latin_iso8859_9): New variable.
4650         (Vcharset_latin_viscii_lower): New variable.
4651         (latin_viscii_lower_to_ucs): New variable.
4652         (ucs_to_latin_viscii_lower): New variable.
4653         (Vcharset_latin_viscii_upper): New variable.
4654         (latin_viscii_upper_to_ucs): New variable.
4655         (ucs_to_latin_viscii_upper): New variable.
4656         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4657         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4658         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4659         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4660         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4661         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4662         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4663         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4664         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4665         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4666
4667         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4668         (Vcharset_latin_viscii_upper): New variable.
4669         (make_byte_from_character_table): New function.
4670         (put_byte_from_character_table): New function.
4671         (get_byte_from_character_table): New function.
4672         (CHAR96): New macro.
4673         (ucs_to_latin_jisx0201): New variable.
4674         (latin_jisx0201_to_ucs): New variable.
4675         (ucs_to_latin_iso8859_2): New variable.
4676         (latin_iso8859_2_to_ucs): New variable.
4677         (ucs_to_latin_iso8859_3): New variable.
4678         (latin_iso8859_3_to_ucs): New variable.
4679         (ucs_to_latin_iso8859_4): New variable.
4680         (latin_iso8859_4_to_ucs): New variable.
4681         (ucs_to_latin_iso8859_9): New variable.
4682         (latin_iso8859_9_to_ucs): New variable.
4683         (ucs_to_latin_viscii_lower): New variable.
4684         (latin_viscii_lower_to_ucs): New variable.
4685         (ucs_to_latin_viscii_upper): New variable.
4686         (latin_viscii_upper_to_ucs): New variable.
4687         (ucs_to_latin_tcvn5712): New variable.
4688         (latin_tcvn5712_to_ucs): New variable.
4689         (Qlatin_viscii_lower): New variable.
4690         (Qlatin_viscii_upper): New variable.
4691         (syms_of_mule_charset): Set up new symbol
4692         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4693         (complex_vars_of_mule_charset): Set up new charset
4694         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4695         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4696         `ucs_to_<CHARSET>' tables.
4697
4698 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4699
4700         * text-coding.c: New file.
4701
4702 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4703
4704         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4705
4706         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4707         (MAKE_CHAR): Modify for `ucs-bmp'.
4708         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4709         non-MULE characters of BMP.
4710
4711 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4712
4713         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4714         to 0.6.
4715
4716 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4717
4718         * lstream.h:
4719         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4720         - Include character.h for `CHAR_ASCII_P'.
4721
4722         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4723
4724         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4725         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4726
4727         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4728         (BYTE_C0_P): Likewise.
4729         (BYTE_C1_P): Likewise.
4730         (Lstream_get_emchar_1): Likewise.
4731         (Lstream_fput_emchar): Likewise.
4732         (Lstream_funget_emchar): Likewise.
4733         (copy_internal_to_external): Likewise.
4734         (copy_external_to_internal): Likewise.
4735
4736         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4737         (BYTE_C0_P): Likewise.
4738         (BYTE_C1_P): Likewise.
4739         (Lstream_get_emchar_1): Likewise.
4740         (Lstream_fput_emchar): Likewise.
4741         (Lstream_funget_emchar): Likewise.
4742         (copy_internal_to_external): Likewise.
4743         (copy_external_to_internal): Likewise.
4744
4745         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4746         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4747
4748         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4749         (BYTE_ASCII_P): Moved to mb-1byte.h.
4750
4751 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4752
4753         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4754
4755         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4756         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4757         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4758         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4759         (VALIDATE_CHARPTR_FORWARD): Likewise.
4760         (simple_charptr_emchar): Moved to mb-multibyte.h.
4761         (simple_set_charptr_emchar): Likewise.
4762         (simple_charptr_copy_char): Likewise.
4763         (non_ascii_charptr_emchar): Likewise.
4764         (non_ascii_set_charptr_emchar): Likewise.
4765         (non_ascii_charptr_copy_char): Likewise.
4766         (charptr_emchar): Moved to mb-*byte.h.
4767         (set_charptr_emchar): Likewise.
4768         (charptr_copy_char): Likewise.
4769
4770         * mb-1byte.h, mb-multibyte.h: New files.
4771
4772 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4773
4774         * mb-utf-8.h (MULTIBYTE): New macro.
4775         (MAX_EMCHAR_LEN): Moved from buffer.h.
4776         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4777
4778         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4779
4780         * mb-lb.h, multibyte.h: New files.
4781
4782         * char-1byte.h (Charset_ID): Moved from buffer.h.
4783         (MIN_LEADING_BYTE): Likewise.
4784         (LEADING_BYTE_ASCII): Likewise.
4785         (NUM_LEADING_BYTES): Likewise.
4786         (CHARSETP): Likewise.
4787         (CHARSET_BY_LEADING_BYTE): Likewise.
4788         (XCHARSET_LEADING_BYTE): Likewise.
4789         (XCHARSET_GRAPHIC): Likewise.
4790         (XCHARSET_COLUMNS): Likewise.
4791         (XCHARSET_DIMENSION): Likewise.
4792         (CHAR_CHARSET): Likewise.
4793         (CHAR_LEADING_BYTE): Likewise.
4794         (BREAKUP_CHAR): Likewise.
4795         (Vcharset_ascii): Likewise.
4796
4797         * buffer.h: Include multibyte.h unconditionally.
4798         (VALID_CHARPTR_P): Moved to multibyte.h.
4799         (ASSERT_VALID_CHARPTR): Likewise.
4800         (REAL_INC_CHARPTR): Likewise.
4801         (REAL_INC_CHARBYTIND): Likewise.
4802         (REAL_DEC_CHARPTR): Likewise.
4803         (INC_CHARPTR): Likewise.
4804         (INC_CHARBYTIND): Likewise.
4805         (DEC_CHARPTR): Likewise.
4806         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4807         (VALIDATE_CHARPTR_FORWARD): Likewise.
4808         (charptr_n_addr): Likewise.
4809         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4810         (simple_charptr_emchar): Moved to multibyte.h.
4811         (simple_set_charptr_emchar): Likewise.
4812         (simple_charptr_copy_char): Likewise.
4813         (non_ascii_charptr_emchar): Likewise.
4814         (non_ascii_set_charptr_emchar): Likewise.
4815         (non_ascii_charptr_copy_char): Likewise.
4816         (charptr_emchar): Likewise.
4817         (set_charptr_emchar): Likewise.
4818         (charptr_copy_char): Likewise.
4819         (charptr_emchar_n): Likewise.
4820         (Charset_ID): Moved to char-1byte.h.
4821         (Vcharset_ascii): Likewise.
4822         (CHAR_CHARSET): Likewise.
4823         (CHAR_LEADING_BYTE): Likewise.
4824         (LEADING_BYTE_ASCII): Likewise.
4825         (NUM_LEADING_BYTES): Likewise.
4826         (MIN_LEADING_BYTE): Likewise.
4827         (CHARSETP): Likewise.
4828         (CHARSET_BY_LEADING_BYTE): Likewise.
4829         (XCHARSET_LEADING_BYTE): Likewise.
4830         (XCHARSET_GRAPHIC): Likewise.
4831         (XCHARSET_COLUMNS): Likewise.
4832         (XCHARSET_DIMENSION): Likewise.
4833         (BREAKUP_CHAR): Likewise.
4834
4835 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4836
4837         * character.h: Add document about interface for characters.
4838
4839         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4840         (MAKE_CHAR): Delete comment about
4841         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4842         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4843         (BREAKUP_CHAR): Modify name of arguments.
4844         (CHAR_CHARSET): Modify name of argument.
4845
4846         * buffer.h: Delete document about Emchar accessors.
4847
4848 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4849
4850         * character.h (CHAR_INTP): Moved from buffer.h
4851         (CHAR_OR_CHAR_INTP): Likewise.
4852         (XCHAR_OR_CHAR_INT): Likewise.
4853         (CHECK_CHAR_COERCE_INT): Likewise.
4854
4855         * buffer.h (CHAR_INTP): Moved to character.h
4856         (CHAR_OR_CHAR_INTP): Likewise.
4857         (XCHAR_OR_CHAR_INT): Likewise.
4858         (CHECK_CHAR_COERCE_INT): Likewise.
4859
4860 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4861
4862         * character.h:
4863         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4864         - Include char-1byte.h, char-lb.h or char-ucs.h.
4865
4866         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4867
4868         * buffer.h: Include character unconditionally.
4869         (valid_char_p): Moved to char-*.h.
4870         (non_ascii_valid_char_p): Moved to char-lb.h.
4871
4872         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4873
4874 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4875
4876         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4877         in UTF-2000 because it is not ported yet and not to use
4878         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4879         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4880         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4881
4882         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4883         (CHAR_ASCII_P): Moved from character.h.
4884
4885         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4886         (CHAR_ASCII_P): Likewise.
4887         (CHAR_FIELD1_MASK): Deleted.
4888         (CHAR_FIELD2_MASK): Deleted.
4889         (CHAR_FIELD3_MASK): Deleted.
4890         (MAX_CHAR_BASIC_LATIN): New macro.
4891         (CHAR_FIELD1): Deleted.
4892         (CHAR_FIELD2_INTERNAL): Deleted.
4893         (CHAR_FIELD3_INTERNAL): Deleted.
4894         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4895         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4896         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4897         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4898         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4899         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4900         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4901         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4902         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4903         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4904         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4905         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4906         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4907         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4908         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4909         (MIN_CHAR_COMPOSITION): Deleted.
4910         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4911         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4912
4913 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4914
4915         * buffer.h: Include mb-utf-8.h in UTF-2000.
4916
4917         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4918
4919         * mb-utf-8.h: New file.
4920
4921 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4922
4923         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4924         instead of `int'.
4925
4926         * mule-charset.h, buffer.h (Charset_ID): New type.
4927
4928 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4929
4930         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4931         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4932         instead of `MULE_CHAR_PRIVATE_OFFSET',
4933         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4934         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4935         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4936
4937         * character.h (Vcharset_japanese_jisx0212): New variable
4938         definition.
4939
4940 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4941
4942         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4943         (charset_by_attributes): Delete array about direction.
4944         (latin_a_char_to_charset): New variable in UTF-2000.
4945         (latin_a_char_to_byte1): New variable in UTF-2000.
4946         (latin_a_char_to_byte2): New variable in UTF-2000.
4947         (Qucs_bmp): New variable.
4948         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4949         `Bufbyte'.
4950         (next_allocated_2_byte_leading_byte): Likewise.
4951         (non_ascii_set_charptr_emchar): Likewise.
4952         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4953         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4954         `charset_by_attributes'.
4955         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4956         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4957         and `CHARSET_BY_LEADING_BYTE'.
4958         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4959         `utf-2000-version' to `vars_of_mule_charset'.
4960         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4961         define `leading-code-private-11' in UTF-2000; move setting of
4962         `utf-2000-version' from `syms_of_mule_charset'.
4963         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4964         UTF-2000.
4965
4966         * character.h (Charset_ID): New type.
4967         (LEADING_BYTE_UCS_BMP): New macro.
4968         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4969         (CHARSET_ID_OFFSET_94): New macro.
4970         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4971         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4972         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4973         final-byte.
4974         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4975         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4976         (CHARSET_ID_OFFSET_96): New macro.
4977         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4978         CHARSET_ID_OFFSET_96 and final-byte.
4979         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4980         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4981         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4982         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4983         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4984         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4985         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4986         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4987         (LEADING_BYTE_THAI_TIS620): Likewise.
4988         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4989         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4990         (CHARSET_ID_OFFSET_94x94): New macro.
4991         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4992         CHARSET_ID_OFFSET_94x94 and final-byte.
4993         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4994         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4995         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4996         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4997         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4998         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4999         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5000         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5001         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5002         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5003         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5004         (CHARSET_TYPE_128X128): New macro.
5005         (CHARSET_TYPE_256X256): New macro.
5006         (XCHARSET_PRIVATE_P): Delete unconditionally.
5007         (charset_by_attributes): Delete array about direction.
5008         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5009         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5010         (MIN_CHAR_94): New macro.
5011         (MAX_CHAR_94): New macro.
5012         (MIN_CHAR_96): New macro.
5013         (MAX_CHAR_96): New macro.
5014         (MIN_CHAR_94x94): New macro.
5015         (MAX_CHAR_94x94): New macro.
5016         (MIN_CHAR_96x96): New macro.
5017         (MAX_CHAR_96x96): New macro.
5018         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5019         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5020         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5021         - 32)'.
5022         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5023         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5024         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5025         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5026         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5027         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5028         `XCHARSET_LEADING_BYTE' to make code-point.
5029         (latin_a_char_to_charset): New variable.
5030         (latin_a_char_to_byte1): New variable.
5031         (latin_a_char_to_byte2): New variable.
5032         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5033         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5034         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5035
5036         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5037         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5038         (find_charsets_in_emchar_string): Likewise.
5039         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5040
5041         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5042         `int'.
5043         (decode_coding_iso2022): Likewise.
5044
5045         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5046         of `unsigned char'.
5047
5048         * redisplay.c (redisplay_text_width_emchar_string): Use
5049         `Charset_ID' instead of `unsigned char'.
5050         (redisplay_frame_text_width_string): Likewise.
5051
5052         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5053         `unsigned char'.
5054
5055         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5056         instead of `unsigned char'.
5057         (face_cachel_charset_font_metric_info): Likewise.
5058
5059         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5060         (get_non_ascii_char_table_value): Likewise.
5061         (get_char_table): Likewise.
5062         (put_char_table): Likewise.
5063         (map_over_other_charset): Likewise.
5064         (map_char_table): Likewise.
5065
5066         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5067         instead of `unsigned char'.
5068
5069 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5070
5071         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5072         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5073
5074         * mule-charset.c (leading_code_private_11): Don't define in
5075         UTF-2000.
5076
5077         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5078         in UTF-2000 because it is not ported yet and not to use
5079         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5080
5081 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5082
5083         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5084
5085 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5086
5087         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5088         in UTF-2000.
5089
5090         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5091         of unsigned char to store leading-byte.
5092
5093         * chartab.c (get_non_ascii_char_table_value): Don't use
5094         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5095
5096         * file-coding.c (encode_coding_big5): Delete bogus implementation
5097         in UTF2000.
5098
5099         * character.h (LEADING_BYTE_*): Delete definition for
5100         non-UTF-2000.
5101         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5102         (LEADING_BYTE_PREFIX_P): Deleted.
5103         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5104         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5105         (BUFBYTE_LEADING_BYTE_P): Deleted.
5106         (CHARSET_PRIVATE_P): Deleted unconditionally.
5107         (rep_bytes_by_first_byte): Deleted unconditionally.
5108         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5109         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5110         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5111         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5112         (CHAR_FIELD2): Deleted.
5113         (CHAR_FIELD3): Deleted.
5114         (MAKE_CHAR): Delete definition for non-UTF-2000.
5115         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5116         (breakup_char_1): New implementation.
5117         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5118         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5119
5120 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5121
5122         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5123         condition.
5124
5125 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5126
5127         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5128         (CHARSET_PRIVATE_P): Likewise.
5129         (XCHARSET_PRIVATE_P): Likewise.
5130         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5131
5132         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5133         UTF2000.
5134         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5135
5136 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5137
5138         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5139         (NUM_LEADING_BYTES): Changed from 128 to 256.
5140         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5141         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5142         UTF2000.
5143         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5144
5145         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5146         UTF2000.
5147         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5148         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5149         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5150         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5151         (Qchinese_cns11643_3): New variable in UTF2000.
5152         (Qchinese_cns11643_4): New variable in UTF2000.
5153         (Qchinese_cns11643_5): New variable in UTF2000.
5154         (Qchinese_cns11643_6): New variable in UTF2000.
5155         (Qchinese_cns11643_7): New variable in UTF2000.
5156         (syms_of_mule_charset): Define `chinese-cns11643-3',
5157         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5158         and `chinese-cns11643-7' in UTF2000.
5159         (vars_of_mule_charset): Initialize
5160         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5161         + 1 in UTF2000.
5162         (complex_vars_of_mule_charset): Setup charset
5163         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5164         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5165
5166 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5167
5168         * mule-charset.c: Move setting for `leading-code-private-11' from
5169         `syms_of_mule_charset' to `vars_of_mule_charset'.
5170
5171 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5172
5173         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5174         and `NUM_LEADING_BYTES' in assert.
5175
5176 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5177
5178         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5179         instead of 128.
5180         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5181         `NUM_LEADING_BYTES' instead of 128.
5182
5183 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5184
5185         * mule-charset.h (charset_by_leading_byte): Use
5186         `NUM_LEADING_BYTES' instead of 128.
5187         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5188
5189         * mule-charset.c (charset_by_leading_byte): Use
5190         `NUM_LEADING_BYTES' instead of 128.
5191         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5192
5193         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5194         128.
5195
5196 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5197
5198         * mule-charset.c (syms_of_mule_charset): Update to
5199         0.4 (Shin-Imamiya).
5200
5201 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5202
5203         * file-coding.c (encode_coding_sjis): New implementation for
5204         UTF2000.  (decode_coding_sjis): Ditto.
5205
5206 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5207
5208         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5209         Don't define in UTF2000.
5210
5211         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5212         defined.
5213
5214         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5215         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5216         MULE.
5217
5218 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5219
5220         * config.h.in (CHAR_IS_UCS4): New macro.
5221
5222         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5223         conventional MULE representation.
5224         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5225
5226         * mule-charset.h: Reverted to original.
5227
5228         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5229         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5230         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5231
5232         * character.h: New file.
5233
5234         * file-coding.c (Fmake_coding_system): Set 1 to
5235         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5236         defined.
5237         (encode_coding_no_conversion): New implementation for UTF2000.
5238
5239         * file-coding.h (struct Lisp_Coding_System): Add new member
5240         `fixed.size'.
5241
5242 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5243
5244         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5245         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5246         (encode_coding_iso2022): New implementation for UTF2000.
5247
5248 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5249
5250         * mule-canna.c (c2mu): New implementation for UTF2000.
5251         (m2c): Likewise.
5252
5253 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5254
5255         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5256
5257 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5258
5259         * file-coding.c (reset_encoding_stream): Set 0 to
5260         `str->iso2022.current_char_boundary' in UTF2000.
5261         (encode_utf8): Don't define in UTF2000.
5262         (encode_coding_utf8): New implementation for UTF-8 representation
5263         of UTF2000.
5264         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5265
5266 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5267
5268         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5269
5270         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5271         UTF2000.
5272         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5273
5274         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5275
5276         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5277         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5278         as UTF-8 in UTF2000.
5279         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5280         (non_ascii_valid_char_p): Don't define in UTF2000.
5281         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5282         (Lstream_get_emchar_1): Likewise.
5283         (utf-2000-version): New variable in UTF2000.
5284
5285         * lread.c (read_escape): Add new reader `u'.
5286
5287         * insdel.c (three_to_one_table): Don't define in UTF2000.
5288         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5289         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5290         UTF2000.
5291         (bytind_to_bufpos_func): Likewise.
5292         (buffer_mule_signal_inserted_region): Likewise.
5293         (vars_of_insdel): Don't initialize `three_to_one_table'.
5294         (init_buffer_text): Use `buf->text->mule_size' instead of
5295         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5296         UTF2000.
5297
5298         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5299         UTF-8 representation in UTF2000.
5300         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5301         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5302         (decode_coding_iso2022): Don't define local variable `lb' in
5303         UTF2000; don't use LEADING_BYTE in UTF2000; use
5304         `DECODE_ADD_UCS_CHAR' in UTF2000.
5305         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5306
5307         * config.h.in (UTF2000): New macro.
5308
5309         * buffer.h (struct buffer_text): Add new member `mule_size' and
5310         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5311         (valid_char_p): Return always 1 in UTF2000.
5312         (MAX_EMCHAR_LEN): 6 in UTF2000.
5313         (three_to_one_table): Don't define in UTF2000.
5314         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5315         UTF2000.
5316         (real_bytind_to_bufpos): Likewise.
5317
5318         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5319
5320 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5321
5322         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5323         representation change.
5324         (Vutf_2000_version): New variable.
5325         (leading_code_private_11): New variable.
5326         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5327         `leading-code-private-11'.
5328
5329         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5330         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5331         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5332         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5333         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5334         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5335         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5336         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5337         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5338         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5339         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5340         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5341         (MIN_CHAR_GREEK): New macro.
5342         (MAX_CHAR_GREEK): New macro.
5343         (MIN_CHAR_CYRILLIC): New macro.
5344         (MAX_CHAR_CYRILLIC): New macro.
5345         (MIN_CHAR_HEBREW): New macro.
5346         (MAX_CHAR_HEBREW): New macro.
5347         (MIN_CHAR_THAI): New macro.
5348         (MAX_CHAR_THAI): New macro.
5349         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5350         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5351         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5352         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5353         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5354         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5355         (CHAR_FIELD2): New inline function.
5356         (CHAR_FIELD3): New inline function.
5357         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5358         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5359         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5360         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5361         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5362         (MIN_CHAR_COMPOSITION): Likewise.
5363         (CHAR_LEADING_BYTE): Modified for character representation change.
5364         (MAKE_CHAR): Likewise.
5365
5366         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5367         (Vcharset_greek_iso8859_7): Likewise.
5368         (Vcharset_cyrillic_iso8859_5): Likewise.
5369         (Vcharset_hebrew_iso8859_8): Likewise.
5370         (Vcharset_thai_tis620): Likewise.
5371         (Vcharset_katakana_jisx0201): Likewise.
5372
5373 2003-09-03  Vin Shelton <acs@xemacs.org>
5374
5375         * XEmacs 21.4.14 is released
5376
5377 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5378
5379         * config.h.in (REGEX_MALLOC): Make it configure'able.
5380
5381 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5382
5383         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5384         linking.
5385         * sysdll.c (dll_init):
5386         * sysdll.c (dll_open):
5387         * sysdll.c (dll_close):
5388         * sysdll.c (dll_function):
5389         * sysdll.c (dll_variable):
5390         * sysdll.c (dll_error):
5391         Add support for loading bundles using Darwin/MacOSX
5392         native API.
5393
5394 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5395
5396         * process.c (start-process-internal): Document coding systems.
5397
5398 2003-07-30  Jerry James  <james@xemacs.org>
5399
5400         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5401
5402 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5403
5404         * event-msw.c (mswindows_enqueue_mouse_button_event):
5405         * event-msw.c (mswindows_wnd_proc):
5406           enqueue button event when scrollwheel event isn't handled by 
5407           mswindows_handle_mousewheel_event, such as when the scrollbars
5408           are not showing.
5409
5410 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5411
5412         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5413
5414 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5415
5416         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5417
5418 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5419
5420         * regex.c (re_match_2_internal): Fix matching degenerate word
5421         boundaries.
5422
5423 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5424
5425         * XEmacs 21.4.13 is released
5426
5427 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5428
5429         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5430         * lisp.h (<inttypes.h>):
5431         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5432         the definition.
5433
5434 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5435
5436         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5437         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5438         Result: "temacs can only be run in -batch mode."
5439         Fix: Check xemacs executable candidate for directory-ness.
5440
5441 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5442
5443         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5444           they conflict with <sys/types.h>.
5445
5446 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5447
5448         * database.c: Berkeley DB wants __STDC__ to be defined.
5449
5450 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5451
5452         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5453
5454 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5455
5456         * process-unix.c (unix_send_process): Fix C++ compile error.
5457
5458 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5459
5460         * Added .dylib as an acceptable shared library file extension
5461         * to support MacOSX.
5462
5463 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5464
5465         * EmacsFrameP.h (EmacsFramePart):
5466         Kludge to allow compiling with Motif1, but linking with Motif2.
5467
5468 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5469
5470         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5471
5472
5473 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5474
5475         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5476
5477 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5478
5479         * sysdll.c: Included lisp.h to define needed alloca_array.
5480
5481 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5482
5483         Make XEmacs redisplay 10 times faster.
5484         If, that is, you're using a slow X connection and MoveOpaque.
5485         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5486         Use compress_motion = TRUE.
5487         * EmacsFrame.c (emacsFrameClassRec): 
5488         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5489         * EmacsManager.c (emacsManagerClassRec):
5490         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5491
5492 2003-01-30  Vin Shelton  <acs@xemacs.org>
5493
5494         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5495
5496 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5497
5498         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5499         Patch by Martin Buchholz.
5500
5501 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5502
5503         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5504         Thanks to icc for warning and Martin Buchholz for reporting.
5505
5506 2003-01-29  Vin Shelton <acs@xemacs.org>
5507
5508         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5509
5510         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5511         remember to multiply by the element size.
5512
5513 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5514
5515         * XEmacs 21.4.12 "Portable Code" is released.
5516
5517 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5518
5519         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5520         * s/cygwin.sc: new linker file.
5521
5522 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5523
5524         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5525
5526         * redisplay-x.c (x_output_string): Use X11-specified types.
5527         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5528         * emacs.c (__free_hook): Use typeof with Intel compiler.
5529         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5530
5531 2003-01-08  Andy Piper  <andy@xemacs.org>
5532
5533         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5534         reserve size during unexec().
5535
5536 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5537
5538         * process-unix.c (unix_create_process): Don't let outchannel block.
5539
5540 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5541
5542         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5543         Needed for IsBadReadPtr().
5544
5545 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5546
5547         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5548
5549 2002-12-14  Ben Wing  <ben@xemacs.org>
5550
5551         * callint.c: Declaration error.
5552         * dumper.c (pdump):
5553         * dumper.c (pdump_load): Warning fix.
5554         * process.c: GCPRO error.
5555         * glyphs.c (unmap_subwindow):
5556         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5557         * event-stream.c (maybe_kbd_translate): Wrong argument to
5558         character_to_event().
5559
5560         * alloc.c (garbage_collect_1):
5561         * emacs.c:
5562         * emacs.c (debug_can_access_memory):
5563         * emacs.c (fatal_error_signal):
5564         * emacs.c (mswindows_handle_hardware_exceptions):
5565         * emacs.c (main_1):
5566         * emacs.c (main):
5567         * emacs.c (assert_failed):
5568         * emacs.c (syms_of_emacs):
5569         * lisp.h:
5570         * print.c:
5571         * print.c (std_handle_out_va):
5572         * print.c (write_string_to_stdio_stream):
5573         * print.c (write_fmt_string):
5574         * print.c (printing_badness):
5575         * print.c (printing_major_badness):
5576         * print.c (print_internal):
5577         * print.c (debug_print_no_newline):
5578         * print.c (debug_backtrace):
5579         Be more defensive in handling bad values when printing.  Add code
5580         from trunk involving inhibit_non_essential_printing_operations.
5581         When going down or in debug_print(), don't do external conversion
5582         and such and try really, really hard when printing to avoid core
5583         dumping.  Add force-debugging-signal, debug_break().
5584
5585 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5586
5587         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5588         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5589
5590 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5591
5592         * database.c: Fix open_database. Berkeley DB API has changed in
5593         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5594
5595 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5596
5597         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5598
5599 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5600
5601         * event-Xt.c (Xt_timeout):
5602         (Xt_timeout_callback):
5603         (emacs_Xt_add_timeout):
5604         (emacs_Xt_remove_timeout):
5605         (Xt_timeout_to_emacs_event):
5606         Turn completed_timeouts from a stack into a queue.  Fixes
5607         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5608
5609 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5610
5611         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5612         * emacs.c (main): Assert that mmap'd allocation is disabled.
5613
5614 2002-10-14  Andy Piper  <andy@xemacs.org>
5615
5616         * glyphs-widget.c (layout_query_geometry): add in fiddle
5617         factor. Include border text in width layout calculation.
5618         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5619
5620 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5621
5622         * XEmacs 21.4.10 "Military Intelligence" is released.
5623
5624 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5625
5626         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5627         using the NAS private array SoundFileInfo that no longer exists in
5628         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5629         and earlier.  This is broken for some versions between 1.5a and
5630         1.5f.
5631
5632 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5633
5634         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5635
5636         * emacs.c (shut_down_emacs): Improve crash message.
5637
5638 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5639
5640         * file-coding.c (determine_real_coding_system): Check for coding
5641         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5642         shebangs and Python PEP 263.
5643
5644 2002-10-08  Andy Piper  <andy@xemacs.org>
5645
5646         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5647         if static sizes haven't been set.
5648
5649 2002-08-30  Mike Alexander  <mta@arbortext.com>
5650
5651         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5652         to close a socket.
5653
5654 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5655
5656         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5657
5658 2002-09-20  Mike Sperber <mike@xemacs.org>
5659
5660         (This partially gets back my patch from 2002-07-20 without the
5661         bug.)
5662         * callproc.c (child_setup): Remove Ben's comment noting confusion
5663         over the file descriptors >= 3: close_process_descs() doesn't
5664         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5665         * process-unix.c (unix_create_process): Call
5666         begin_dont_check_for_quit to inhibit unwanted interaction (and
5667         thus breaking of X event synchronicity) in the child.
5668
5669 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5670
5671         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5672         widget.
5673
5674 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5675
5676         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5677         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5678         the xemacs process did not exit, but looped infinitely here.  This
5679         fixes that problem.
5680
5681 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5682
5683         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5684         (find_context): Improve comments.
5685
5686         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5687         (re_match_2): An XCHAR_TABLE operation was missing.
5688
5689         Many of the following changes were inspired by Andy Piper's (now
5690         obsolete) patch to make syntax-table text property lookup optional.
5691
5692         [Documentation]
5693
5694         * syntax.h (top level): Document semantics of syntax flags.
5695         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5696         * syntax.c, syntax.h (top level): Document syntax cache better in
5697         comments.
5698
5699         [Instrument syntax caching (temporary change)]
5700
5701         * syntax.h (enum syntax_cache_statistics_functions, struct
5702         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5703         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5704         * syntax.c (scan_words, Fforward_comment, scan_lists,
5705         Fbackward_prefix_characters):
5706         * font-lock.c (find_context):
5707         Use them to instrument syntax caching. 
5708         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5709         syntax_cache_statistics_function_names): New type and variables.
5710         * syntax.c (update_syntax_cache): Update and report statistics.
5711
5712         [Major syntax cache optimizations]
5713
5714         syntax.c (lookup_syntax_properties): Default off.
5715
5716         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5717         * syntax.c (update_syntax_cache):
5718         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5719
5720         [Minor syntax cache optimizations and code clarifications]
5721
5722         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5723         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5724         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5725         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5726         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5727         (Code clarification.)
5728
5729         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5730         scan_lists): Compute code from syncode, use Boolean macros instead
5731         of redundant masking operations.  (Code clarification; any decent
5732         compiler can do this optimization.)
5733
5734         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5735         for clarity.
5736
5737         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5738         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5739         use F*_single_property_change instead of F*_extent_change.
5740         Currently F*_single_property_change is _much_ less efficient.
5741
5742         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5743         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5744         syntax_cache.object properly, don't leave Qt or Qnil.
5745         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5746         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5747         tests for Qt or Qnil.
5748
5749 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5750
5751         * redisplay.c (point_in_line_start_cache): 
5752         * extents.c (print_extent_1):
5753         Fix warnings.
5754
5755         * extents.c (Fset_extent_property): Document `syntax-table' property.
5756
5757         * extents.h (Fnext_single_property_change): EXFUN it.
5758
5759 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5760
5761         * search.c (clear_unused_search_regs): New static function.
5762         (search_buffer): 
5763         (simple_search): 
5764         (boyer_moore):
5765         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5766         Minor clarifications in comments.
5767
5768         * regex.c (re_match_2_internal): Ensure no stale submatches.
5769
5770 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5771
5772         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5773
5774 2002-08-29  Jerry James  <james@xemacs.org>
5775
5776         * lisp.h: structrures -> structures.
5777
5778 2002-06-03  Andy Piper  <andy@xemacs.org>
5779
5780         * frame.c (frame_conversion_internal): add conversion appropriate
5781         for setting frame dimensions in pixels.
5782
5783         * console.h (struct console_methods): add device-specific widget
5784         layout functions.
5785
5786         * emacs.c (main_1): initialize glyph vars.
5787
5788         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5789         (handle_focus_event_2): new function. Allow focus to
5790         be set to a particular window and widget.
5791         (enqueue_focus_event): new function. Create a
5792         synthetic focus event.
5793         (emacs_Xt_handle_magic_event): call
5794         handle_focus_event_2.
5795
5796         * frame.c (Fset_frame_pixel_height): new function. Allow
5797         pixel-based sizing. Does the right thing on character-oriented
5798         displays.
5799         (Fset_frame_pixel_width): ditto.
5800         (Fset_frame_pixel_size): ditto.
5801         (syms_of_frame): declare.
5802
5803         * general-slots.h: add :vertically-justify and
5804         :horizontally-justify.
5805
5806         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5807         (mswindows_widget_border_width): new function.
5808         (mswindows_combo_box_instantiate): set border widths.
5809         (console_type_create_glyphs_mswindows): declare.
5810
5811         * glyphs-widget.c:
5812         (check_valid_justification): allow vertical and horizontal
5813         justification.
5814         (widget_border_width): new function. Call device methods.
5815         (widget_instance_border_width): ditto.
5816         (logical_unit_height): new function. Determine the height of a
5817         logical-unit. Logical units are intended to provide grid-like
5818         layout for subcontrols in a layout. If the layout is
5819         :vertically-justify top then subcontrols will be positioned on
5820         logical-unit boundaries, thus allowing adjacent subcontrols to
5821         line up.
5822         (widget_logical_unit_height): ditto for widgets.
5823         (redisplay_widget): misc cleanup.
5824         (widget_spacing): new function. Call device specific
5825         methods. Intended to be the default gap between adjacent widgets.
5826         (widget_query_geometry): use new spacing functions to determine
5827         appropriate geometry.
5828         (initialize_widget_image_instance): initialize horizontal and
5829         vertical justification.
5830         (widget_instantiate): use logica-units where appropriate for
5831         sizing large widgets.
5832         (button_query_geometry): use widget_instance_border_width.
5833         (tree_view_query_geometry): ditto.
5834         (tab_control_query_geometry): ditto.
5835         (edit_field_query_geometry): new function.
5836         (layout_update): pick up :justify, :horizontally-justify and
5837         :vertically-justify none of which worked previously. :justify is
5838         used as a fallback for both horizontal and vertical justification.
5839         (layout_query_geometry): use logical units to size appropriately.
5840         (layout_layout): ditto.
5841         (Fwidget_logical_to_character_width): new function. Allow users to
5842         convert from logical units to characters so that frame sizes can
5843         be set appropriately.
5844         (Fwidget_logical_to_character_height): ditto.
5845         (syms_of_glyphs_widget): declare.
5846         (image_instantiator_edit_fields): add edit_field_query_geometry.
5847         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5848         :horizontally-justify.
5849         (specifier_vars_of_glyphs_widget): new function. Declare
5850         Vwidget_border_width which is not yet used.
5851
5852         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5853         (x_widget_border_width): new function.
5854         (x_widget_instantiate): create a sensible name for widgets.
5855         (console_type_create_glyphs_x): declare x_widget_border_width.
5856
5857         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5858         (struct Lisp_Image_Instance): add :vertically-justify and
5859         :horizontally-justify.
5860         (LAYOUT_JUSTIFY_TOP): new.
5861         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5862         (ROUND_UP): new macro. Round argument up to next integral
5863         interval.
5864
5865         * redisplay-output.c (redisplay_output_layout): misc formatting.
5866
5867         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5868
5869 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5870
5871         * XEmacs 21.4.9 "Informed Management" is released.
5872
5873 2002-08-19  Andy Piper  <andy@xemacs.org>
5874
5875         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5876         win32 format.
5877
5878         * realpath.c (xrealpath): normalize drive spec also so that dir
5879         sep chars are not mixed on cygwin.
5880
5881 2002-08-06  Jerry James  <james@xemacs.org>
5882
5883         * window.c (Fsplit_window): Count only half of the divider width
5884         against the left window when splitting horizontally. 
5885
5886 2002-06-24  Andy Piper  <andy@xemacs.org>
5887
5888         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5889         toolbar was cleared.
5890
5891         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5892         function. Split out from mswindows_output_frame_toolbars.
5893         (mswindows_output_frame_toolbars): move clear pieces to
5894         mswindows_output_frame_toolbars.
5895
5896         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5897         out from gtk_output_frame_toolbars.
5898         (gtk_output_frame_toolbars): move clear pieces to
5899         gtk_clear_frame_toolbars.
5900
5901         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5902         the frame is cleared. How this ever worked before is a mystery.
5903         (x_output_frame_toolbars): Only output toolbars.
5904         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5905
5906         * gutter.c (update_gutter_geometry):
5907         Mark frame layout changed.
5908         (update_frame_gutter_geometry, update_frame_gutters):
5909         Respect frame_layout_changed.
5910
5911         * console.h (struct console_methods): add
5912         clear_frame_toolbars_method.
5913
5914         * redisplay.c (redisplay_frame): call
5915         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5916
5917         * toolbar.h: declare update_frame_toolbars_geometry.
5918
5919         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5920         out from update_frame_toolbars.  Call clear_frame_toolbars.
5921         (update_frame_toolbars): only output, do not change geometry.
5922
5923         * redisplay.c: add frame_layout_changed.
5924
5925         * redisplay.h: add frame_layout_changed.
5926         (CLASS_RESET_CHANGED_FLAGS): set it.
5927         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5928         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5929         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5930
5931         * device.h (struct device): add frame_layout_changed.
5932         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5933
5934         * frame.h (struct frame): add frame_layout_changed.
5935         (MARK_FRAME_LAYOUT_CHANGED): new.
5936
5937 2002-06-30  Mike Alexander  <mta@arbortext.com>
5938
5939         * event-msw.c (mswindows_need_event): Don't wait for a new message
5940         if the queue is not empty.  Suggested by Paul Moore.
5941
5942 2002-06-12  Andy Piper  <andy@xemacs.org>
5943
5944         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5945         for printing on accurately.
5946
5947 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5948
5949         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5950         WM_ACTIVATE message. Make sure that the frame is visible if the
5951         window is visible. This seemss to fix the problem where XEmacs
5952         appears to freeze after switching desktops with certain virtual
5953         window managers.
5954         (debug_output_mswin_message): Added code to output message
5955         parameters for WM_WINDOWPOSCHANGED, 
5956         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5957
5958 2002-05-25  Andy Piper  <andy@xemacs.org>
5959
5960         * select-x.c (vars_of_select_x): Fix docstring of
5961         x-selection-strict-motif-ownership
5962
5963 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5964
5965         * keymap.c (get_keymap):
5966         Add comment about do_autoload GCPROs own args.
5967
5968 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5969
5970         * bytecode.c (execute_optimized_program): check_opcode ifdef
5971         ERROR_CHECK_BYTE_CODE.
5972
5973 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5974
5975         Thanks to Ben Wing and Michael Sperber.
5976
5977         * eval.c (Fcommand_execute):
5978         (Feval):
5979         (Ffuncall):
5980         (Fmacroexpand_internal):
5981         (function_argcount):
5982         callint.c (Fcall_interactively):
5983         Add comment about do_autoload GCPROs own args.
5984
5985         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5986
5987         * eval.c (Ffuncall): Extra braces to placate GCC.
5988
5989 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5990
5991         * backtrace.h (grow_specpdl):
5992         (SPECPDL_RESERVE):
5993         * EmacsFrame.c (EmacsFrameSetValues):
5994         * eval.c (grow_specpdl):
5995         * ExternalShell.c (hack_event_masks_1):
5996         * glyphs-x.c (convert_EImage_to_XImage): 
5997         (x_finalize_image_instance):
5998         * ralloc.c (page_size):
5999         (r_alloc_sbrk):
6000         * xgccache.c (gc_cache_hash):
6001         Fix unsigned comparison warnings.
6002
6003 2002-07-29  Jerry James  <james@xemacs.org>
6004
6005         * lread.c (locate_file): Any nonnegative return value indicates
6006         success if MODE is nonnegative.
6007
6008 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6009
6010         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6011         argument. 
6012
6013 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6014
6015         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6016
6017         * dumper.c (pdump_get_indirect_count):
6018         (pdump_scan_by_alignment):
6019         (pdump_dump_root_struct_ptrs):
6020         (pdump_dump_rtables):
6021         (pdump_dump_root_objects):
6022         (pdump):
6023         * nas.c (WaveOpenDataForReading):
6024         * fns.c (print_bit_vector):
6025         * font-lock.c (SINGLE_SYNTAX_STYLE):
6026         * glyphs.c (check_for_ignored_expose):
6027         (find_matching_subwindow):
6028         * glyphs-eimage.c:
6029         * imgproc.c (get_histogram):
6030         * redisplay.c (point_in_line_start_cache):
6031         * redisplay-output.c (redisplay_unmap_subwindows):
6032         * symbols.c (defsymbol_massage_name_1):
6033         (defkeyword_massage_name):
6034         (deferror_massage_name_and_message):
6035         * redisplay-x.c (x_output_string): 
6036         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6037         * frame.h (struct frame):
6038         * filelock.c (current_lock_owner):
6039         * doprnt.c (emacs_doprnt_1):
6040         * lisp.h (struct Lisp_Bit_Vector):
6041         (DO_REALLOC):
6042         Fix warnings.
6043
6044 2002-02-13  Ben Wing  <ben@xemacs.org>
6045
6046         * event-stream.c (reset_key_echo):
6047         * event-stream.c (reset_this_command_keys):
6048         * event-stream.c (execute_command_event):
6049         If console is dead as a result of C-x 5 0, then post-command stuff
6050         needs to be careful and do only non-console-specific stuff.
6051
6052 2002-07-01  Mike Sperber <mike@xemacs.org>
6053
6054         * process-unix.c (unix_send_process): Mark coding_outstream as
6055         non-open upon SIGPIPE.
6056
6057         * event-stream.c (Fnext_event): Reorder switch cases to something
6058         that makes sense.
6059
6060 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6061
6062         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6063         Don't bogusly reinitialize ascii_character property.
6064
6065 2002-07-08  Mike Sperber <mike@xemacs.org>
6066
6067         * process.c (Fstart_process_internal): Do error checking before we
6068         fork off the child, so the child can't muck with the state of the
6069         parent.
6070
6071 2002-07-08  Mike Sperber <mike@xemacs.org>
6072
6073         * ralloc.c (init_ralloc): Allocate properly for pdump.
6074
6075 2002-06-12  Andy Piper  <andy@xemacs.org>
6076
6077         * glyphs.c (query_string_geometry): check the string.
6078
6079         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6080         widget names.
6081
6082 2002-06-17  Jerry James  <james@xemacs.org>
6083
6084         * sysdll.c: Remove RTLD_GLOBAL initialization.
6085         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6086
6087 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6088
6089         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6090
6091 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6092
6093         * sysdep.c (sys_rename): Make sys_rename work for the case where
6094         Windows rename sets errno to EACCES if target file exists.
6095
6096 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6097
6098         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6099         Fix detection of metric units to work on Win95
6100
6101 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6102
6103         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6104
6105 2002-04-25  Andy Piper  <andy@xemacs.org>
6106
6107         * redisplay.c (create_text_block): Remove extra comment trailer.
6108
6109 2002-04-24  Andy Piper  <andy@xemacs.org>
6110
6111         * redisplay.c (create_text_block): Don't actually add propagation
6112         data if the line ends after we have added a glyph.
6113
6114 2002-04-22  Andy Piper  <andy@xemacs.org>
6115
6116         * extents.c (extent_fragment_update): check for glyphs we have
6117         previously displayed.
6118         * extents.c (print_extent_1): warning removal.
6119         * extents.h: change prototype.
6120         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6121         widths correctly for wide glyphs.
6122         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6123         * redisplay.c (prop_type): add PROP_GLYPH.
6124         * redisplay.c (struct prop_block): add glyph type
6125         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6126         to the propagation data.
6127         * redisplay.c (create_text_block): if there is a glyph in the
6128         propagation data use it to salt extent_fragment_update.
6129         * redisplay.c (create_string_text_block): ditto.
6130
6131 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6132
6133         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6134         * redisplay-output.c (compare_runes): Compare them.
6135         * redisplay.c: Update copyright date.
6136         * redisplay.c (pos_data): Add need_baseline_computation field.
6137         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6138         need_baseline_computation; zero yoffset. Set max_pixmap_height
6139         for all pixmaps, not just automatically positioned ones.
6140         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6141         * redisplay.c (calculate_baseline): New, compute textual baseline.
6142         * redisplay.c (add_glyph_rune): Call them.
6143         * redisplay.c (create_text_block): Likewise.
6144         * redisplay.c (create_overlay_glyph_block): Likewise.
6145         * redisplay.c (add_margin_runes): Likewise.
6146         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6147
6148         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6149         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6150         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6151         * redisplay-msw.c (mswindows_output_string): Likewise.
6152         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6153         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6154         * redisplay-x.c (x_output_display_block): Likewise.
6155
6156 2002-03-28  Ben Wing  <ben@xemacs.org>
6157
6158         * redisplay.c: Fixed bug in redisplay
6159         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6160         and down of the lines, since they're bigger than the line
6161         size. (It was seen most obviously when there's a horizontal scroll
6162         bar, e.g. do C-h a glyph or something like that.) The problem was
6163         that the glyph-contrib-p setting on glyphs was ignored even if it
6164         was set properly, which it wasn't until now.
6165
6166 2002-04-24  Andy Piper  <andy@xemacs.org>
6167
6168         * lisp.h (Dynarr_end): Fix definition.
6169
6170 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6171
6172         * redisplay.c (mark_redisplay): Remove call to
6173         update_frame_window_mirror.
6174
6175 2001-11-15  Andy Piper  <andy@xemacs.org>
6176
6177         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6178         cygwin (again).
6179
6180 2002-02-13  Andy Piper  <andy@xemacs.org>
6181
6182         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6183         we did in fact enqueue the XM_MAPFRAME event.
6184
6185 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6186
6187         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6188         to fix problem switching between virtual desktops under virtuawin
6189         virtual window manager.
6190
6191 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6192
6193         * event-msw.c: Typo fix.
6194         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6195         magic XM_MAPFRAME event has been sent.
6196
6197 2001-11-23  Andy Piper  <andy@xemacs.org>
6198
6199         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6200
6201 2001-11-21  Andy Piper  <andy@xemacs.org>
6202
6203         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6204         mouse events outside the frame.
6205
6206 2002-03-20  Andy Piper  <andy@xemacs.org>
6207
6208         * menubar-msw.c (mswindows_popup_menu): warning removal.
6209         * dialog-msw.c (dialog_popped_down): ditto.
6210
6211 2001-12-11  Andy Piper  <andy@xemacs.org>
6212
6213         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6214         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6215         popup_up_p.
6216         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6217         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6218         * menubar-msw.c (mswindows_popup_menu): ditto.
6219
6220 2001-10-29  Andy Piper  <andy@xemacs.org>
6221
6222         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6223         cancels.
6224
6225 2002-01-03  Andy Piper  <andy@xemacs.org>
6226
6227         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6228         letters.
6229         (xrealpath): ditto.
6230
6231 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6232
6233         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6234         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6235         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6236         Detect and handle case where machine is set up for metric units
6237
6238 2002-04-02  Andy Piper  <andy@xemacs.org>
6239
6240         * dired-msw.c (mswindows_get_files): 
6241         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6242         completely handled by XEmacs. Suggested by Thomas Vogler
6243         <mail@thomas-vogler.de>.
6244
6245 2001-11-14  Andy Piper  <andy@xemacs.org>
6246
6247         * nt.c (REG_ROOT): change registry key to XEmacs.
6248
6249 2002-04-27  Andy Piper  <andy@xemacs.org>
6250
6251         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6252
6253 2002-04-26  Andy Piper  <andy@xemacs.org>
6254
6255         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6256         behavior.
6257
6258 2002-03-14  Mike Alexander  <mta@arbortext.com>
6259
6260         * event-msw.c (mswindows_unwait_process): New, remove process from
6261         wait list
6262         * process-nt.c (nt_finalize_process_data): Call
6263         mswindows_unwait_process
6264         * console-msw.h: Declare mswindows_unwait_process
6265
6266 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6267
6268         * editfns.c (Fdecode_time):
6269         (Fformat_time_string):
6270         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6271         (make_time): Warning elimination (change arg name).
6272
6273 2001-11-24  Andy Piper  <andy@xemacs.org>
6274
6275         * window.c (Fsplit_window): Doc return type.
6276
6277 2002-04-01  Andy Piper  <andy@xemacs.org>
6278
6279         * emacs.c (Fkill_emacs): Only output message box in interactive
6280         mode.
6281
6282 2002-04-26  Andy Piper  <andy@xemacs.org>
6283  
6284         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6285         cygwin.
6286
6287 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6288
6289         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6290         bit platform.
6291
6292 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6293
6294         * XEmacs 21.4.8 "Honest Recruiter" is released.
6295
6296 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6297
6298         Supersedes 2002-04-17 patch.
6299
6300         * process.h (PROCESS_LIVE_P): Use the process status as
6301         evidence of health, not the state of the input stream.
6302         (PROCESS_READABLE_P): Say if the process is readable
6303         from. (It may be dead nonetheless.)
6304         (CHECK_READABLE_PROCESS): Test for that condition.
6305
6306         * process.c (create_process): Use PROCESS_READABLE_P.
6307         (read_process_output, set_process_filter): Likewise.
6308
6309         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6310         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6311
6312         This code is #if 0'd, this is not the time to add new functions:
6313
6314         * process.c (Fprocess_readable_p): Report readability status.
6315         * process.c (Qprocess_readable_p): New, associated symbol...
6316         * process.c (syms_of_process): ... initialize it.
6317
6318 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6319
6320         * XEmacs 21.4.7 "Economic Science" is released.
6321
6322 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6323
6324         * process.h (PROCESS_LIVE_P): Use the process status as
6325         evidence of health, not the state of the input stream.
6326
6327 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6328
6329         * sysdep.c (sys_siglist): change "signum" to "signal"
6330
6331 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6332
6333         * s/darwin.h: New file.
6334         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6335         
6336 2002-04-23  Andreas Jaeger  <aj@suse.de>
6337
6338         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6339         which use lib64 for 64-bit libs.
6340         (START_FILES): Likewise.
6341
6342 2002-02-11  Mike Sperber  <mike@xemacs.org>
6343
6344         * device-x.c: 
6345         (x_IO_error_handler):
6346         (x_init_device): Temporarily keep device in static variable
6347         `device_being_initialized' so we can recover gracefully from
6348         internal XOpenDevice failure.  (XOpenDevice is documented to
6349         return NULL on failure, but sometimes calls the IO error handler
6350         instead.)
6351
6352 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6353
6354         * dired.c (Ffile_name_all_completions): Change documentation --
6355         remove reference to completion-ignored-extensions.
6356         * dired.c (vars_of_dired): Change documentation for
6357         completion-ignored-extensions -- remove reference to
6358         file-name-all-completions.
6359
6360 2002-03-06  Jerry James  <james@xemacs.org>
6361
6362         * emodules.c (emodules_load): Fix multiple loading of same module.
6363
6364 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6365         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6366         RTLD_LAZY to avoid incorrect symbol binding when using nested
6367         shared libraries on Solaris.
6368
6369 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6370
6371         * fileio.c (Ffind_file_name_handler): Improve docstring.
6372
6373 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6374
6375         * fns.c (Fmapconcat): Improve docstring.
6376
6377 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6378
6379         * device-gtk.c: Add prototype for
6380         emacs_gtk_selection_clear_event_handle.
6381         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6382         selection.  Setup signal handler for "selection_clear_event"
6383         (emacs_gtk_selection_clear_event_handle).
6384
6385         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6386         other applications owning the clipboard (based on
6387         x_handle_selection_clear).
6388
6389 2001-12-23  William M. Perry  <wmperry@gnu.org>
6390
6391         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6392         
6393 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6394
6395         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6396
6397 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6398
6399         * XEmacs 21.4.6 "Common Lisp" is released.
6400
6401 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6402
6403         * search.c (Freplace_match): Add missing sub-expression functionality.
6404
6405         * buffer.c (decode_buffer): Add a check for pointer type to
6406         decode_buffer, before gcc's CSE optimization reorders a
6407         dereference in front of the allow_string test.
6408
6409 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6410
6411         * window.c (window_loop): Fix bug that sometimes prevented
6412         window_loop() from iterating across multiple devices.  Also, at
6413         Ben's request, changed infloop-detecting code to abort() instead
6414         of silently terminating window_loop().
6415
6416 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6417
6418         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6419         * editfns.c (make_time): New function.
6420         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6421         * lisp.h (make_time): Prototype and comment it.
6422         * dired.c (wasteful_word_to_lisp): Deprecate.
6423         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6424
6425 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6426
6427         * fileio.c (auto_save_1): Use current coding system, not
6428         escape-quoted.
6429
6430 2001-11-13  Ben Wing  <ben@xemacs.org>
6431
6432         * window.c:
6433         * window.c (window_truncation_on):
6434         * window.c (syms_of_window):
6435         truncate-partial-width-windows should respect the buffer being
6436         displayed, like other redisplay vars.
6437
6438 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6439
6440         * event-stream.c (Fread_key_sequence): save current buffer.
6441
6442 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6443
6444         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6445
6446 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6447
6448         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6449
6450 2001-10-26  Mike Alexander  <mta@arbortext.com>
6451
6452         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6453
6454 2001-10-25  Andy Piper  <andy@xemacs.org>
6455
6456         * ChangeLog:
6457         * dialog-msw.c (handle_directory_proc): new function.
6458          (handle_directory_dialog_box): new fucntion.
6459          (handle_file_dialog_box): use new directory dialog support.
6460          (mswindows_make_dialog_box_internal): ditto.
6461         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6462         handling.
6463         (mswindows_find_frame): make global.
6464         * fileio.c (Fexpand_file_name): build fix.
6465         * general-slots.h: add Qdirectory.
6466         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6467         handling.
6468         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6469         cygwin not leaving win32 paths unchanged.
6470         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6471         cygwin runtime to do path conversion.
6472         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6473         (syms_of_win32): add new function.
6474         * window.c (window_loop): build fix.
6475
6476 2001-10-15  Andy Piper  <andy@xemacs.org>
6477
6478         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6479
6480 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6481
6482         * XEmacs 21.4.5 "Civil Service" is released.
6483
6484 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6485
6486         * glyphs-x.c: Force buffer-tab highlight update when moving the
6487         buffer, avoiding an ugly black border, used for keyboard focus
6488         indication, on a widget that can never have keyboard focus, the
6489         buffer tab.
6490
6491 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6492
6493         * process-unix.c (unix_open_multicast_group): Remove too much
6494         conversion between host and network byte order.
6495
6496 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6497
6498         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6499         before replacing them.
6500
6501         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6502         operation.
6503
6504         * src/window.c (undedicate_windows): Use it.
6505         * src/window.h: Add prototype.
6506
6507 2001-09-17  Ben Wing  <ben@xemacs.org>
6508
6509         * fileio.c (normalize_filename):
6510         * fileio.c (Fexpand_file_name):
6511         Fix various C++ compile errors in Andy's recent code.
6512         
6513         * callint.c (Fcall_interactively):
6514         * editfns.c (Ftemp_directory):
6515         * editfns.c (Fuser_full_name):
6516         * emacs.c (argmatch):
6517         * lread.c (locate_file_map_suffixes):
6518         * redisplay-x.c (x_ring_bell):
6519         Fix sign-compare warnings.
6520         
6521 2001-09-08  Andy Piper  <andy@xemacs.org>
6522
6523         * fileio.c (normalize_filename): copied from nt.c
6524         * (Ffile_name_directory): enable win32 paths under cygwin.
6525         * (Ffile_name_nondirectory): ditto.
6526         * (directory_file_name): ditto.
6527         * (Fexpand_file_name): ditto.
6528         * (Ffile_truename): ditto.
6529         * (Fsubstitute_in_file_name): ditto.
6530         * (Ffile_name_absolute_p): ditto.
6531         * (Ffile_readable_p): ditto.
6532
6533 2001-09-08  Andy Piper  <andy@xemacs.org>
6534
6535         * device-msw.c (mswindows_finish_init_device): remove dde
6536         initialization.
6537         * device-msw.c (mswindows_init_dde): factor out from
6538         mswindows_finish_init_device()
6539         * device-msw.c (init_mswindows_very_early): new function
6540         initialize but don't enable dde.
6541         * emacs.c (main_1): call init_mswindows_very_early.
6542         * event-msw.c:
6543         * event-msw.c (mswindows_dde_callback): only execute when we are
6544         ready.
6545         * symsinit.h: declare init_mswindows_very_early.
6546
6547 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6548
6549         [sjt: This has been in 21.5 for months with no complaints.]
6550
6551         * console.h (struct console_methods): Added flags member.
6552         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6553         (CONMETH_IMPL_FLAG):
6554         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6555         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6556
6557         * device.c (window_system_pixelated_geometry): Use the above macros.
6558
6559         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6560         implememntation flag.
6561         * device.h (DEVICE_DISPLAY_P): Use it.
6562
6563         * frame.c (delete_frame_internal): Use the above macro.
6564
6565         * redisplay.c (redisplay_device): Use it.
6566         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6567         (redisplay_frame): Ditto.
6568
6569         * device-msw.c (mswindows_device_implementation_flags): Removed.
6570         (msprinter_device_implementation_flags): Removed.
6571         (console_type_create_device_mswindows): Removed references to
6572         implementation_flags methods, set implementation flags here.
6573         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6574
6575         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6576         (console_type_create_device_gtk): Removed method declaration.
6577         Added commented out statement which semantically matches the
6578         commented out statement in the above removed method.
6579
6580 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6581
6582         The attached patch fixes a few warnings. 
6583
6584         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6585         * src/frame-gtk.c: guard against GNOME calls in GTK only
6586         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6587         * src/select-gtk.c: prototype lisp_to_time
6588
6589 2001-06-08  Ben Wing  <ben@xemacs.org>
6590
6591         ------ gc-in-window-procedure fixes ------
6592         
6593         * alloc.c:
6594         * alloc.c (struct post_gc_action):
6595         * alloc.c (register_post_gc_action):
6596         * alloc.c (run_post_gc_actions):
6597         * alloc.c (garbage_collect_1):
6598         Create "post-gc actions", to avoid those dreaded "GC during window
6599         procedure" problems.
6600
6601         * event-msw.c:
6602         Abort, clean and simple, when GC in window procedure.  We want
6603         to flush these puppies out.
6604
6605         * glyphs-msw.c:
6606         * glyphs-msw.c (finalize_destroy_window):
6607         * glyphs-msw.c (mswindows_finalize_image_instance):
6608         Use a post-gc action when destroying subwindows.
6609
6610         * lisp.h:
6611         Declare register_post_gc_action().
6612
6613         * scrollbar-msw.c:
6614         * scrollbar-msw.c (unshow_that_mofo):
6615         Use a post-gc action when unshowing scrollbar windows, if in gc.
6616
6617         * redisplay.c (mark_redisplay):
6618         Add comment about the utter evilness of what's going down here.
6619
6620         ------ cygwin setitimer fixes ------
6621         
6622         * Makefile.in.in (sheap_objs):
6623         * Makefile.in.in (profile_objs):
6624         * Makefile.in.in (objs):
6625         Compile profile.c only when HAVE_SETITIMER.
6626         
6627         * nt.c (mswindows_sigset):
6628         * nt.c (mswindows_sighold):
6629         * nt.c (mswindows_sigrelse):
6630         * nt.c (mswindows_sigpause):
6631         * nt.c (mswindows_raise):
6632         * nt.c (close_file_data):
6633         Style fixes.
6634         
6635         * nt.c:
6636         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6637         
6638         * profile.c:
6639         * profile.c (Fstart_profiling):
6640         * profile.c (Fstop_profiling):
6641         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6642         instead of just plain setitimer().
6643         
6644         * signal.c:
6645         * signal.c (set_one_shot_timer):
6646         * signal.c (alarm):
6647         Define qxe_setitimer() as an encapsulation around setitimer() --
6648         call setitimer() directly unless Cygwin or MS Win, in which case
6649         we use our simulated version in win32.c.
6650         
6651         * systime.h:
6652         * systime.h (struct itimerval):
6653         * systime.h (ITIMER_REAL):
6654         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6655         comment about "qxe" and the policy regarding encapsulation.
6656
6657         * win32.c:
6658         * win32.c (setitimer_helper_proc):
6659         * win32.c (setitimer_helper_period):
6660         * win32.c (setitimer_helper):
6661         * win32.c (mswindows_setitimer):
6662         Move setitimer() emulation here, so Cygwin can use it.
6663         Rename a couple of functions and variables to be longer and more
6664         descriptive.  In setitimer_helper_proc(), send the signal
6665         using either mswindows_raise() or (on Cygwin) kill().  If for
6666         some reason we are still getting lockups, we'll change the kill()
6667         to directly invoke the signal handlers.
6668
6669         ------ windows shell fixes ------
6670         
6671         * callproc.c:
6672         * ntproc.c:
6673         Comments about how these two files must die.
6674
6675         * callproc.c (init_callproc):
6676         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6677         not just COMSPEC. (more correct and closer to FSF.) Don't
6678         force a value for SHELL into the environment. (Comments added
6679         to explain why not.)
6680         
6681         * nt.c (init_user_info):
6682         Don't shove a fabricated SHELL into the environment.  See above.
6683
6684 2001-06-01  Ben Wing  <ben@xemacs.org>
6685
6686         * Makefile.in.in (ldflags):
6687         eliminate that pesky "defaulting to 00401000" warning.
6688         * nt.h:
6689         eliminate warnings.
6690
6691 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6692
6693         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6694         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6695
6696 2001-04-24  Jerry James <james@xemacs.org>
6697
6698         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6699         correct order.
6700
6701 2001-06-01  Ben Wing  <ben@xemacs.org>
6702
6703         * event-msw.c (debug_mswin_messages):
6704         conditionalize the messages that were causing compile errors.
6705         (if only macros could generate #ifdef statements ...)
6706
6707 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6708
6709         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6710
6711 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6712
6713         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6714
6715 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6716
6717         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6718         * process-unix.c (unix_canonicalize_host_name):
6719         sysdep.c (init_system_name):
6720         Use it to conditionally support IPv6 canonicalization.
6721
6722 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6723
6724         * event-msw.c:
6725         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6726
6727 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6728
6729         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6730         attempt is made to scroll when no scroll bar is available.
6731
6732 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6733
6734         * input-method-motif.c (XIM_delete_frame): New callback.
6735         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6736         got deleted from 21.4.3.)
6737
6738 2001-06-01  Ben Wing  <ben@xemacs.org>
6739
6740         * nt.c (mswindows_utime):
6741         * nt.c (close_file_data):
6742         fix off-by-one-indirection error.
6743
6744 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6745
6746         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6747         because set_file_times() now takes Lisp_Object path, instead of
6748         char*.
6749         * nt.c: Include buffer.h.
6750         * nt.c (convert_from_time_t): New.
6751         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6752         not set mtime correctly.
6753         * nt.h: Declare mswindows_utime().
6754         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6755         path, instead of char*.
6756         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6757
6758 2001-05-30  Ben Wing  <ben@xemacs.org>
6759
6760         For 21.4:
6761
6762         (Stephen, just take all event-msw.c patches.  This includes
6763         the "iconify" fix below.)
6764
6765         * event-msw.c:
6766         * event-msw.c (mswindows_dequeue_dispatch_event):
6767         * event-msw.c (assert):
6768         * event-msw.c (emacs_mswindows_quit_p):
6769         * event-msw.c (debug_mswin_messages):
6770         * event-msw.c (debug_output_mswin_message):
6771         * event-msw.c (vars_of_event_mswindows):
6772         Fix yet more problems with C-g handling.
6773         Implement debug-mswindows-events.
6774         
6775 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6776
6777         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6778         
6779 2001-05-23  Ben Wing  <ben@xemacs.org>
6780
6781         * event-msw.c (winsock_writer):
6782         * event-msw.c (winsock_closer):
6783         prior kludgy code was clobbering the buffer, thinking it was
6784         "unused" space to store an unneeded return value; instead, use
6785         the variable we've already got staring us in the face.
6786
6787 2001-05-17  Andy Piper  <andy@xemacs.org>
6788
6789         * sysfile.h: don't assume that file attributes are boolean
6790
6791 2001-05-23  Ben Wing  <ben@xemacs.org>
6792
6793         * device-msw.c (msprinter_init_device):
6794         signal an error rather than crash with an unavailable network
6795         printer (from Mike Alexander).
6796         
6797         * event-msw.c:
6798         * event-msw.c (struct winsock_stream):
6799         * event-msw.c (winsock_writer):
6800         * event-msw.c (winsock_closer):
6801         * event-msw.c (make_winsock_stream_1):
6802         cleanup headers.  fix (hopefully) an error with data corruption
6803         when sending to a network connection.
6804
6805         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6806         to handle the ~user prefix by (a) always assuming we're referencing
6807         ourselves and not even verifying the user -- hence any file with
6808         a tilde as its first char is invalid! (b) if there wasn't a slash
6809         following the filename, the pointer was set *past* the end of
6810         file and we started reading from uninitialized memory.  Now we
6811         simply treat these as files, always.
6812
6813         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6814         
6815 2001-05-19  Ben Wing  <ben@xemacs.org>
6816
6817         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6818
6819         * process-nt.c:
6820         * process-nt.c (vars_of_process_nt):
6821         remove unused mswindows-quote-process-args.  rec for 21.4.
6822         
6823 2001-05-12  Ben Wing  <ben@xemacs.org>
6824
6825         * event-msw.c (mswindows_dde_callback):
6826         * event-msw.c (mswindows_wnd_proc):
6827         eliminate cygwin warnings.
6828
6829 2001-05-06  Ben Wing  <ben@xemacs.org>
6830
6831         * console-msw.h:
6832         * device-msw.c:
6833         * device-msw.c (print_dialog_worker):
6834         * device-msw.c (mswindows_handle_print_dialog_box):
6835         * device-msw.c (syms_of_device_mswindows):
6836         * dialog-msw.c (mswindows_make_dialog_box_internal):
6837         * general-slots.h:
6838         implement printing the selection when it's selected.
6839
6840 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6841
6842         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6843
6844 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6845
6846         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6847         EMACS_INT is signed.
6848
6849 2001-04-15  Michael Lausch  <mla@1012surf.net>
6850
6851         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6852         gtk_widget_request_size() to give scrollbar >0 width for
6853         GTK >1.2.8.
6854
6855 2001-05-30  William M. Perry  <wmperry@gnu.org>
6856
6857         * event-gtk.c: Check for buttons as modifier keys.
6858
6859 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6860
6861         * s\mingw32.h:
6862         Properly find MinGW's <process.h> inside Cygwin's restructured
6863         include directories.  Don't try to include <cygwin/version.h>
6864         since we are dropping support for MinGW in versions of Cygwin
6865         earlier than b21.
6866         * nt.c:
6867         Drop support for MinGW in versions of Cygwin before b21.
6868         * sysdep.c:
6869         Properly find MinGW's <process.h> inside Cygwin's restructured
6870         include directories.
6871         * syswindows.h:
6872         Drop support for MinGW in versions of Cygwin before b21.
6873         * unexcw.c:
6874         Even though a.out.h is no longer detected by configure, allow
6875         MinGW to use it until we figure out how to do the job with Win32.
6876
6877 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6878
6879         * syntax.c (find_start_of_comment):
6880         Fix `unbalanced parentheses' bug when dealing with mixed comment
6881         styles in c++/java/etc. mode
6882
6883 2001-05-29  Mike Alexander  <mta@arbortext.com>
6884
6885         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6886         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6887
6888 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6889
6890         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6891
6892 2001-03-31  Mike Sperber <mike@xemacs.org>
6893
6894         * search.c (Freplace_match): Support FSF-style specification of
6895         match subexpression when applied to a buffer.
6896
6897 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6898
6899         * event-stream.c (is_scrollbar_event): add missing semicolon
6900
6901 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6902
6903         * Makefile.in.in: Use TAR macro instead of hardcoding
6904           tar.  Allows use of GNU tar instead of system tar
6905
6906 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6907
6908         * event-stream.c (is_scrollbar_event): add missing semicolon
6909
6910 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6911
6912         * XEmacs 21.4.3 "Academic Rigor" is released.
6913
6914 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6915
6916         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6917
6918 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6919
6920         * buffer.c (Vcase_fold_search): Remove obsolete
6921           comment about non ASCII case-fold-search.  This
6922           bug has been fixed by case-table changes.
6923
6924 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6925
6926         * event-msw.c: Restore include of events-mod.h.
6927
6928 2001-04-22   zhaoway  <zw@debian.org>
6929
6930         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6931         !HAVE_SCROLLBARS.
6932
6933 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6934
6935         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6936
6937 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6938
6939         * mule-charset.c (Fmake_charset): Add missing else.
6940
6941 2001-04-23  Ben Wing  <ben@xemacs.org>
6942
6943         * event-msw.c (FAKE_MOD_QUIT):
6944         * event-msw.c (mswindows_dequeue_dispatch_event):
6945         * event-msw.c (mswindows_wnd_proc):
6946         * event-msw.c (emacs_mswindows_quit_p):
6947         Get critical quit working.
6948
6949 2001-05-05  Ben Wing  <ben@xemacs.org>
6950
6951         * console-msw.h:
6952         * device-msw.c:
6953         * device-msw.c (mswindows_get_default_margin):
6954         * frame-msw.c (mswindows_size_frame_internal):
6955         * frame-msw.c (msprinter_init_frame_1):
6956         * frame-msw.c (vars_of_frame_mswindows):
6957         Change top/bottom margin defaults to 0.5 inches.
6958
6959 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6960
6961         Fix link error with gcc 3.0 on Linux.
6962         * terminfo.c (UP): Remove.
6963         * terminfo.c (BC): Remove.
6964         * terminfo.c (PC): Remove.
6965         They weren't used, and in any case, these symbols should be
6966         defined in the *library*.
6967
6968 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6969
6970         * s/aix4.h: Fix crash with xlc -O3.
6971         Improve comment explaining how -O3 works.
6972
6973 2001-04-15  Ben Wing  <ben@xemacs.org>
6974
6975         * event-stream.c:
6976         * event-stream.c (Fnext_event):
6977         * event-stream.c (is_scrollbar_event):
6978         * event-stream.c (execute_command_event):
6979         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6980         crash' problem.  His fix introduces other problems.  We filter
6981         out scrollbar events specifically, making them somewhat invisible
6982         to command-building, and not appearing in `this-command-keys'.
6983         More work is still needed (see comments in event-stream.c), but
6984         this fixes all the major problems.
6985
6986 2001-04-20  Ben Wing  <ben@xemacs.org>
6987
6988         * .cvsignore: Added stuff for Windows.
6989
6990 2001-04-28  Ben Wing  <ben@xemacs.org>
6991
6992         * buffer.c (Ferase_buffer):
6993         * editfns.c (buffer_insert1):
6994         * editfns.c (Finsert_before_markers):
6995         * editfns.c (Finsert_string):
6996         * editfns.c (Finsert_char):
6997         * editfns.c (Fdelete_region):
6998         * editfns.c (Fwiden):
6999         * editfns.c (Fnarrow_to_region):
7000         remove bogus lines setting zmacs_region_stays to 0.
7001         
7002 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7003
7004         * process-unix.c (unix_open_network_stream): If connect() fails
7005         invalidate file descriptor after closing it.
7006
7007 2001-03-08  Mike Alexander  <mta@arbortext.com>
7008
7009         * event-msw.c (mswindows_need_event_in_modal_loop):
7010         Don't dispatch a message if we didn't get one.
7011         (mswindows_need_event):
7012         Terminate the correct process when one exits instead of the first
7013         one on Vprocess_list and look for process termination when in
7014         mswindows_protect_modal_loop.
7015
7016 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7017
7018         * XEmacs 21.4.1 "Copyleft" is released.
7019
7020 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7021
7022         * input-method-motif.c (XIM_delete_frame): New callback.
7023         (XIM_init_frame): Register it.
7024
7025 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7026
7027         * XEmacs 21.4.0 "Solid Vapor" is released.
7028
7029 2001-04-15  Ben Wing  <ben@xemacs.org>
7030
7031         * cmdloop.c (call_command_loop):
7032         Fix braino in bit-rotting code.
7033         
7034 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7035
7036         * extents.c (Fset_extent_endpoints): Force creation of extent info
7037         in buffer_or_string.
7038
7039         * extents.c (process_extents_for_insertion_mapper): Correctly
7040         check for open-open zero-length extents.
7041
7042 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7043
7044         * lisp.h: New typedefs Memory_count, Element_count.
7045         * regex.c:
7046         * regex.h:
7047         Sign-compare warning elimination: several unsigned -> signed.
7048         Based on work by Ben Wing <ben@xemacs.org>.
7049
7050 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7051
7052         * XEmacs 21.2.47 "Zephir" is released.
7053
7054 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7055
7056         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7057
7058 2001-04-03  Mike Sperber <mike@xemacs.org>
7059
7060         * search.c: Revert previous patch due because of release.
7061
7062 2001-03-30  Ben Wing  <ben@xemacs.org>
7063
7064         * s\cygwin32.h:
7065         Add missing killpg prototype.
7066
7067         * elhash.c:
7068         Add a comment about fixing problems when a new entry is added
7069         while mapping.
7070
7071         * frame-msw.c (mswindows_init_frame_1):
7072         Fix compile warnings.
7073
7074         * menubar.c (vars_of_menubar):
7075         Provide `menu-accelerator-support' to indicate that we properly
7076         support %_ in menu specifications, so that package code can
7077         conditionalize on this (and remove %_ from menu specifications
7078         on older versions).
7079
7080         * event-msw.c:
7081         * scrollbar-msw.c:
7082         * scrollbar-msw.c (can_scroll):
7083         * scrollbar-msw.h:
7084         Fix handling of mouse wheel under Windows to follow standards --
7085         now scrolls window under pointer, not selected window.
7086
7087 2001-03-31  Mike Sperber <mike@xemacs.org>
7088
7089         * search.c (Freplace_match): Support FSF-style specification of
7090         match subexpression when applied to a buffer.
7091
7092 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7093
7094         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7095         function to modify KEYMAP, so map over a copy of the hash table.
7096
7097 2001-03-21  Martin Buchholz <martin@xemacs.org>
7098
7099         * XEmacs 21.2.46 "Urania" is released.
7100
7101 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7102
7103         * realpath.c (xrealpath): Make file-truename work with symlinks to
7104         /cygdrive paths on cygwin. Always lowercase drive-letters on
7105         native windows.
7106         (cygwin_readlink): Don't try to find canonical filename unless
7107         file exists.
7108
7109 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7110
7111         * ChangeLog: Log GTK merge.
7112
7113         * dumper.c:
7114         * select-x.c:
7115         * specifier.c:
7116         * symeval.h:
7117         Revert gratuitous whitespace changes from GTK merge.
7118
7119         * emacs.c: Document end of complex #ifdef @ l. 1495.
7120
7121
7122 2001-03-12  Andy Piper  <andy@xemacs.org>
7123
7124         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7125         have to do likewise.
7126
7127 2001-03-12  Andy Piper  <andy@xemacs.org>
7128
7129         * sysdep.c: we only support mingw now.
7130
7131 2001-03-09  Andy Piper  <andy@xemacs.org>
7132
7133         * unexcw.c (copy_executable_and_dump_data_section): making approx
7134         overrun a warning only.
7135
7136 2001-03-10  William M. Perry  <wmperry@aventail.com>
7137
7138         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7139         satisfy Stephen's identical-after-cpp plea.
7140
7141 2001-03-02  Ben Wing  <ben@xemacs.org>
7142
7143         * cmds.c:
7144         * cmds.c (Fforward_char):
7145         * syntax.c:
7146         * window.c:
7147
7148         Augment documentation of the most common motion commands to make
7149         note of the shifted-motion support.
7150         
7151 2001-03-02  Ben Wing  <ben@xemacs.org>
7152
7153         * nt.c (mswindows_fstat):
7154         * nt.c (mswindows_stat):
7155         * search.c (boyer_moore):
7156         Fix compile warnings under Windows.
7157         
7158         * sysdep.c (sys_readdir):
7159         Fix buggy filename-conversion code under Mule.
7160
7161 2001-03-09  William M. Perry  <wmperry@aventail.com>
7162
7163         * Makefile.in.in:
7164         * config.h.in:
7165         * console.c:
7166         * console.h:
7167         * device.c:
7168         * device.h:
7169         * dragdrop.c:
7170         * emacs.c:
7171         * event-stream.c:
7172         * events.c:
7173         * events.h:
7174         * faces.c:
7175         * frame.h:
7176         * general-slots.h:
7177         * glyphs.c:
7178         * gutter.c:
7179         * inline.c:
7180         * lisp.h:
7181         * lrecord.h:
7182         * make-src-depend:
7183         * redisplay-output.c:
7184         * redisplay.c:
7185         * symsinit.h:
7186         * sysfile.h:
7187         * toolbar.c:
7188         * window.c:
7189         The Great GTK Merge.
7190
7191         * ChangeLog.GTK:
7192         * console-gtk.c:
7193         * console-gtk.h:
7194         * device-gtk.c:
7195         * emacs-marshals.c:
7196         * emacs-widget-accessors.c:
7197         * event-gtk.c:
7198         * frame-gtk.c:
7199         * gccache-gtk.c:
7200         * gccache-gtk.h:
7201         * glade.c:
7202         * glyphs-gtk.c:
7203         * glyphs-gtk.h:
7204         * gtk-glue.c:
7205         * gtk-xemacs.c:
7206         * gtk-xemacs.h:
7207         * gui-gtk.c:
7208         * gui-gtk.h:
7209         * menubar-gtk.c:
7210         * native-gtk-toolbar.c:
7211         * objects-gtk.c:
7212         * objects-gtk.h:
7213         * redisplay-gtk.c:
7214         * scrollbar-gtk.c:
7215         * scrollbar-gtk.h:
7216         * select-gtk.c:
7217         * toolbar-gtk.c:
7218         * ui-byhand.c:
7219         * ui-gtk.c:
7220         * ui-gtk.h:
7221         The Great GTK Merge: new files.
7222
7223 2001-02-26  Ben Wing  <ben@xemacs.org>
7224
7225         Reapplied Lstream change.
7226
7227 2001-02-26  Ben Wing  <ben@xemacs.org>
7228
7229         Undid the last change, since it is more controversial than I
7230         thought.  It should be back in at some point soon.
7231         
7232 2001-02-25  Ben Wing  <ben@xemacs.org>
7233
7234         * buffer.c:
7235         * callproc.c (Fold_call_process_internal):
7236         * event-msw.c (ntpipe_slurp_reader):
7237         * event-msw.c (ntpipe_shove_writer):
7238         * event-msw.c (winsock_reader):
7239         * event-msw.c (winsock_writer):
7240         * file-coding.c:
7241         * file-coding.c (detect_eol_type):
7242         * file-coding.c (detect_coding_type):
7243         * file-coding.c (determine_real_coding_system):
7244         * file-coding.c (Fdetect_coding_region):
7245         * file-coding.c (decoding_reader):
7246         * file-coding.c (decoding_writer):
7247         * file-coding.c (mule_decode):
7248         * file-coding.c (Fdecode_coding_region):
7249         * file-coding.c (encoding_reader):
7250         * file-coding.c (encoding_writer):
7251         * file-coding.c (mule_encode):
7252         * file-coding.c (Fencode_coding_region):
7253         * file-coding.c (detect_coding_sjis):
7254         * file-coding.c (decode_coding_sjis):
7255         * file-coding.c (encode_coding_sjis):
7256         * file-coding.c (detect_coding_big5):
7257         * file-coding.c (decode_coding_big5):
7258         * file-coding.c (encode_coding_big5):
7259         * file-coding.c (detect_coding_ucs4):
7260         * file-coding.c (decode_coding_ucs4):
7261         * file-coding.c (encode_coding_ucs4):
7262         * file-coding.c (detect_coding_utf8):
7263         * file-coding.c (decode_coding_utf8):
7264         * file-coding.c (encode_coding_utf8):
7265         * file-coding.c (detect_coding_iso2022):
7266         * file-coding.c (decode_coding_iso2022):
7267         * file-coding.c (encode_coding_iso2022):
7268         * file-coding.c (decode_coding_no_conversion):
7269         * file-coding.c (encode_coding_no_conversion):
7270         * glyphs-x.c (write_lisp_string_to_temp_file):
7271         * gpmevent.c (tty_get_foreign_selection):
7272         * lisp.h:
7273         * lstream.c:
7274         * lstream.c (Lstream_flush_out):
7275         * lstream.c (Lstream_adding):
7276         * lstream.c (Lstream_write_1):
7277         * lstream.c (Lstream_write):
7278         * lstream.c (Lstream_raw_read):
7279         * lstream.c (Lstream_read_more):
7280         * lstream.c (Lstream_read):
7281         * lstream.c (Lstream_unread):
7282         * lstream.c (Lstream_fputc):
7283         * lstream.c (stdio_reader):
7284         * lstream.c (stdio_writer):
7285         * lstream.c (filedesc_reader):
7286         * lstream.c (filedesc_writer):
7287         * lstream.c (lisp_string_reader):
7288         * lstream.c (struct fixed_buffer_stream):
7289         * lstream.c (make_fixed_buffer_input_stream):
7290         * lstream.c (make_fixed_buffer_output_stream):
7291         * lstream.c (fixed_buffer_reader):
7292         * lstream.c (fixed_buffer_writer):
7293         * lstream.c (struct resizing_buffer_stream):
7294         * lstream.c (resizing_buffer_writer):
7295         * lstream.c (dynarr_writer):
7296         * lstream.c (lisp_buffer_reader):
7297         * lstream.c (lisp_buffer_writer):
7298         * lstream.h:
7299         * lstream.h (lstream_implementation):
7300         * lstream.h (struct lstream):
7301         * md5.c (Fmd5):
7302         * process-nt.c (nt_send_process):
7303         * process-unix.c (unix_send_process):
7304         
7305         Correct Lstream lossage due to mixing of signed and unsigned
7306         quantities.  All Lstream uses of size_t and ssize_t are now a
7307         single signed data type Lstream_data_count.  This fixes problems
7308         under Windows with sending large quantities of data to a process,
7309         and may well fix other subtle bugs.
7310
7311 2001-02-23  Martin Buchholz <martin@xemacs.org>
7312
7313         * XEmacs 21.2.45 "Thelxepeia" is released.
7314
7315 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7316
7317         * lisp-union.h (XSETINT): 
7318         (XSETCHAR):
7319         (XSETOBJ): 
7320         Reverse previous change of 2001-02-06.
7321
7322 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7323
7324         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7325         buffers.
7326         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7327         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7328         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7329         * regex.c (POS_AS_IN_BUFFER): removed
7330         * regex.c (re_search_2):
7331         * regex.c (re_match_2):
7332         Don't use an offset of 1 when calculating buffer positions, since
7333         `BI_BUF_BEGV' does it already.
7334
7335 2001-02-18  Wim Dumon  <wim@easics.be>
7336
7337         * insdel.c (prepare_to_modify_buffer): Also check for
7338         supersession when clash-detection is enabled. 
7339
7340 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7341
7342         * regex.c (re_match_2_internal):
7343         Convert temp characters from 'const unsigned char' to 're_char'.
7344         Fix crashing bug with extended characters under mule.
7345         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7346         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7347         font-lock, pdump, and new syntax-table code.
7348         * syntax.c (find_start_of_comment):
7349         (find_end_of_comment):
7350         (forward-comment):
7351         Fix crashing bugs involving moving beyond end of buffer.
7352         * syntax.c (find_start_of_comment):
7353         Fixed logic to allow proper detection of cases where the same
7354         character is used to end both a two-char comment start and a
7355         two-char comment end sequence. Fixes `(forward-comment -1)'.
7356         * syntax.c (find_start_of_comment):
7357         Return position just past last comment-end character for all cases
7358         (previously was only done for two-char comment-end sequences).
7359         * syntax.c (forward-comment):
7360         Take value returned from `find_end_of_comment', rather than
7361         incrementing it.
7362         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7363         Properly deal with BUFFERP (syntax_cache.object)
7364
7365 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7366
7367         * alloc.c (Fgarbage_collect): 
7368         * alloc.c (make_bit_vector_from_byte_vector):
7369         -Wsign-compare-correctness.
7370
7371 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7372
7373         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7374         (XSETCHAR): Likewise.
7375         (XSETOBJ): Likewise.
7376
7377 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7378
7379         * mule-canna.c (canna-func-delete_previous): 
7380         Rename to canna-func-delete-previous.
7381
7382 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7383
7384         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7385
7386 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7387
7388         * font-lock.c (find_context): Fix C++ compile errors introduced by
7389         recent patch
7390
7391 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7392
7393         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7394         pragma, but earlier ones barf on the same pragma.
7395
7396 2001-02-06  Mike Sperber <mike@xemacs.org>
7397
7398         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7399         `configure-mule-lisp-directory'.
7400
7401 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7402
7403         Make sure dump-id.c is compiled in the same way as other .c's.
7404         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7405         * dump-id.h: Remove.
7406         * emacs.c: Move dump-id.h into dumper.h.
7407         * dumper.h: Move dump-id.h into dumper.h.
7408         * Makefile.in.in:
7409         Use standard .c.o rule for building dump-id.o.
7410         Remove preprocessor flags from link command.
7411         Add dump-id.o to ${otherobjs} if PDUMP.
7412
7413 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7414
7415         Port FSF 20.7 syntax table improvements.
7416         * syntax.c.
7417         * syntax.h.
7418
7419         Fixups for new syntax table stuff.
7420         * dired.c: Include syntax.c.
7421         (Fdirectory_files): Initialize regex_match_object and
7422         regex_emacs_buffer.
7423         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7424         and Fget_char_property.
7425
7426         Use ported FSF 20.7 syntax table improvements.
7427         * font-lock.c.
7428         * regex.c.
7429         * search.c.
7430         
7431 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7432
7433         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7434         Unixware's enum boolean from sys/types.h.
7435
7436 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7437
7438         Fix support for building with latest Purify.
7439         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7440         (PURIFY_FLAGS): Likewise.
7441
7442 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7443
7444         * fileio.c (lisp_string_set_file_times): New.
7445         * fileio.c (Fcopy_file): Use it.
7446         Fixes bug:
7447         (copy-file filename non-ascii-filename t t)
7448         ==> No such file or directory, non-ascii-filename
7449
7450 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7451
7452         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7453         USHRT_MAX seems clearer than ~0 anyways.
7454
7455 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7456
7457         dumper improvements.  Inspired by Olivier.
7458         * dumper.c (pdump_max_align): New.
7459         * dumper.c (pdump_add_entry): Use pdump_max_align.
7460         * dumper.c (pdump_get_entry_list): Likewise.
7461         * dumper.c (pdump_scan_by_alignment): Likewise.
7462         Don't iterate through unnecessary alignments.
7463         * dumper.c (pdump_file_get): No need to align result of malloc().
7464         * dumper.c (pdump_mallocadr): Remove.  
7465         The result of malloc() is guaranteed to be maximally aligned.
7466         * dumper.c: s/elmt/elt/g;
7467         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7468         * dumper.c (pdump_alert_undump_object): Likewise.
7469         * dumper.c (pdump_align_table): 
7470         Don't support alignments > 64.
7471         Store ALIGNOF's, not shift counts, in table.
7472
7473 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7474
7475         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7476         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7477         * systime.h: Use HAVE_UTIME.
7478         * sysdep.c (struct utimbuf): Remove.
7479         * sysdep.c (set_file_times): Prefer utime() to utimes().
7480         * config.h.in (HAVE_UTIME): New.
7481         * config.h.in (HAVE_UTIME_H): Remove.
7482         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7483
7484 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7485
7486         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7487
7488 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7489
7490         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7491
7492 2001-02-08  Martin Buchholz <martin@xemacs.org>
7493
7494         * XEmacs 21.2.44 "Thalia" is released.
7495
7496 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7497
7498         Fixes crashes in kill-emacs on some systems.
7499         * process-unix.c (unix_kill_child_process):
7500         It's OK for kill() to fail with ESRCH.
7501
7502 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7503
7504         Contortions to make .gdbinit tricks work on most systems.
7505         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7506         * alloc.c (dbg_valmask): Make non-const.
7507         * alloc.c (dbg_typemask): Make non-const.
7508         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7509         * alloc.c (dbg_valbits): Make non-const.
7510         * alloc.c (dbg_gctypebits): Make non-const.
7511         * .gdbinit (decode_object): Make it work with AIX cc.
7512
7513 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7514
7515         * elhash.c (make_general_lisp_hash_table):
7516         Use simpler and more efficient calloc to clear entries.
7517
7518 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7519
7520         * window.c (window_scroll): Work around an AIX C compiler bug.
7521         Fixes 'scroll-up' does nothing problem with xlC.
7522
7523 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7524
7525         * .gdbinit: Remove obsolete comment.
7526
7527 2001-01-31  Mike Alexander  <mta@arbortext.com>
7528
7529         * select.c (Fown_selection_internal): Set owned_p for device
7530         method correctly.
7531
7532 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7533
7534         Port to g++ 2.97.
7535         "not" cannot be used as a macro name as it is an operator in C++
7536         * config.h.in: Stop #defining `not'.
7537         * chartab.c (check_category_char): not ==> not_p
7538         * chartab.h: Likewise.
7539         * regex.c (re_match_2_internal): Likewise.
7540
7541 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7542
7543         * lisp-disunion.h: Fix up comments.
7544
7545 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7546
7547         * keymap.c (define_key_check_and_coerce_keysym):
7548         (syms_of_keymap):
7549         Support mouse-6 and mouse-7 bindings in the obvious way.
7550
7551 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7552
7553         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7554
7555 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7556
7557         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7558         Previous patch missed DEFVAR_INT_MAGIC.
7559         Make sure future DEFVAR_foo use correct types.
7560         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7561         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7562         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7563         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7564         * (DEFVAR_INT): Likewise.
7565         * redisplay.c (vertical_clip): Should be of type Fixnum.
7566         * redisplay.c (horizontal_clip): Likewise.
7567         * lisp.h (dump_add_opaque_int): New.
7568         (dump_add_opaque_fixnum): New.
7569
7570 2001-01-29  Andy Piper  <andy@xemacs.org>
7571
7572         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7573         since they can be eval'ed
7574
7575 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7576
7577         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7578         Oops, XEmacs redefines `class'.  Use `typename' instead.
7579
7580 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7581
7582         * dumper.c: Fix C++ compile errors.
7583
7584 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7585
7586         * tparam.c: Use correct prototypes.
7587
7588 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7589
7590         * sysproc.h: #include util.h for NetBSD's openpty.
7591
7592 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7593
7594         More 64-bit correctness.
7595         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7596         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7597         Fix up comments.
7598         This finally finishes the 64-bit SGI port.
7599         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7600         * symbols.c: Fix up comments and type casts.
7601         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7602         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7603         * symeval.h (Fixnum): New type.
7604         * symeval.h (symbol_value_type): Fix up comment.
7605
7606         * commands.h:
7607         * nt.c:
7608         * emacs.c:
7609         * data.c:
7610         * redisplay.c:
7611         * abbrev.c:
7612         * dired-msw.c:
7613         * event-Xt.c:
7614         * eldap.c:
7615         * window.c:
7616         * sound.c:
7617         * event-stream.c:
7618         * eval.c:
7619         * buffer.c:
7620         * mule-canna.c: A million DEFVAR_INTs here...
7621         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7622         * extents.c:
7623         * cmdloop.c:
7624         * lisp.h:
7625         * select-x.c:
7626         * console-x.h:
7627         * event-msw.c:
7628         * mule-wnnfns.c:
7629         * hpplay.c:
7630         * ralloc.c:
7631         * alloc.c:
7632         * keymap.c:
7633         * profile.c:
7634         s/int/Fixnum/g in DEFVAR_INT declarations.
7635
7636 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7637
7638         Port pdump to SGI alignment-sensitive environment.
7639         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7640         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7641         properly aligned.
7642         Define and use aligned reading and writing macros.
7643         Use buffered stdio instead of posix i/o for faster dumping.
7644         Eliminate kludgy 256 byte space for header.
7645         Read and write from dump file using structs for alignment safety.
7646         * dumper.c (pdump_align_stream): New.
7647         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7648         * dumper.c (PDUMP_READ_ALIGNED): New.
7649         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7650         * dumper.c (pdump_static_Lisp_Object): New struct.
7651         * dumper.c (pdump_static_pointer): New struct.
7652         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7653         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7654         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7655         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7656
7657         * dumper.c (pdump_backtrace):
7658         * dumper.c (pdump_get_indirect_count):
7659         * dumper.c (pdump_register_object):
7660         * dumper.c (pdump_register_struct):
7661         * dumper.c (pdump_reloc_one):
7662         * dumper.c (pdump_scan_by_alignment):
7663         * dumper.c (pdump_dump_from_root_struct_ptrs):
7664         * dumper.c (pdump_dump_opaques):
7665         * dumper.c (pdump_dump_rtables):
7666         * dumper.c (pdump_dump_from_root_objects):
7667         * dumper.c (pdump):
7668         * dumper.c (pdump_load_finish):
7669         Use aligned reading and writing.
7670
7671         * dumper.c (pdump_free): Make static.
7672         * dumper.c (pdump_hFile): Likewise.
7673         * dumper.c (pdump_hMap): Likewise.
7674
7675 2001-01-26  Martin Buchholz <martin@xemacs.org>
7676
7677         * XEmacs 21.2.43 "Terspichore" is released.
7678
7679 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7680
7681         Type fiddling for window_config.saved_windows_count
7682         * window.c (struct window_config): 
7683         Make saved_windows_count member unsigned.
7684         * window.c (sizeof_window_config_for_n_windows): 
7685         Make parameter unsigned.
7686         * window.c (mark_window_config):
7687         * window.c (window_config_equal):
7688         * window.c (free_window_configuration):
7689         * window.c (Fset_window_configuration):
7690         * window.c (count_windows):
7691         * window.c (Fcurrent_window_configuration):
7692         * window.c (reinit_vars_of_window):
7693         Update all callers and users.
7694
7695 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7696
7697         Alignment correctness for flexible arrays.
7698         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7699         Make alignment-correct. Add interesting comments.
7700         * alloc.c (size_vector):
7701         * alloc.c (make_vector_internal):
7702         * alloc.c (make_bit_vector_internal):
7703         * alloc.c (sweep_bit_vectors_1):
7704         * fns.c (size_bit_vector):
7705         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7706         * window.c (sizeof_window_config_for_n_windows): 
7707         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7708
7709 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7710
7711         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7712
7713 2001-01-23  Andy Piper  <andy@xemacs.org>
7714
7715         * select.c (Fown_selection_internal): pass owned_p
7716
7717         * select-msw.c (mswindows_own_selection): New Signature.
7718
7719         * console.h (struct console_methods): add owned_p to
7720         _own_selection.
7721
7722         * select-x.c (x_own_selection): pass owned_p
7723         (hack_motif_clipboard_selection): use owned_p
7724         (vars_of_select_x): new variable -
7725         x_selection_strict_motif_ownership.
7726
7727 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7728
7729         * specifier.h (specifier_data_offset): Remove pointless parens.
7730         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7731
7732 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7733
7734         Make Lisp_Object sizeof methods be alignment-correct.
7735         pdump must restore objects to the same alignment as the C compiler
7736         assumes.  It really matters on SGIs.
7737         * lstream.c (aligned_sizeof_lstream): New.
7738         (sizeof_lstream): Use aligned_sizeof_lstream.
7739         (Lstream_new): Likewise.
7740         * opaque.c (aligned_sizeof_opaque): New.
7741         (sizeof_opaque): Use aligned_sizeof_opaque.
7742         (make_opaque): Likewise.
7743         * specifier.c (aligned_sizeof_specifier): New.
7744         (sizeof_specifier): Use aligned_sizeof_specifier.
7745         (make_specifier_internal): Likewise.
7746
7747 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7748
7749         * lstream.h (struct lstream): Use max_align_t for trailing data.
7750         * specifier.h (struct Lisp_Specifier): Likewise.
7751
7752 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7753
7754         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7755         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7756         (CCL_SUSPEND): Likewise.
7757         (CCL_INVALID_CMD): Likewise.
7758         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7759         (ccl_driver): Likewise.
7760         (CCL_WRITE_CHAR): Macro hygiene.
7761         (CCL_WRITE_STRING): Macro hygiene.
7762
7763 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7764
7765         Port "portable" dumper to SunOS 4 and HP-UX.
7766         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7767         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7768         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7769
7770 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7771
7772         * lisp.h (ALIGNOF): A better definition for C++.
7773
7774 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7775
7776         Macro hygiene.
7777         Fix printf warnings: int format, long int arg.
7778         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7779         (PUSH_FAILURE_POINT): Use correct printf formats.
7780         (POP_FAILURE_POINT): Use correct printf formats.  
7781         Use do {...} while (0)
7782
7783 2001-01-20  Martin Buchholz <martin@xemacs.org>
7784
7785         * XEmacs 21.2.42 "Poseidon" is released.
7786
7787 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7788
7789         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7790
7791 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7792
7793         De-kludgify FIXED_TYPE free list frobbing.
7794         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7795         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7796         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7797         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7798         * alloc.c (LRECORD_FREE_P): New.
7799         * alloc.c (MARK_LRECORD_AS_FREE): New.
7800         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7801         * alloc.c (STRUCT_FREE_P): Deleted.
7802         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7803         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7804         * alloc.c (STRING_CHARS_FREE_P): New.
7805         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7806         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7807         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7808         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7809         * alloc.c (resize_string): Use new definitions.
7810         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7811         * alloc.c (verify_string_chars_integrity): Use new definitions.
7812         * alloc.c (compact_string_chars): Use new definitions.
7813         * alloc.c: Update monster comments.
7814         * lrecord.h (lrecord_type): Add some new lrecord types for
7815         alloc.c's use.
7816
7817 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7818
7819         Improve alignment hackery.
7820         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7821         (max_align_t): Moved from opaque.h - general purpose.
7822         (ALIGN_PTR): Use size_t, not long.
7823         * opaque.h (max_align_t): Move to lisp.h.
7824
7825 2001-01-18  Norbert Koch  <nk@LF.net>
7826
7827         * gui.h: Fix and add prototypes to fix build problems.
7828
7829 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7830
7831         temacs is going away, so `dump-temacs' is now a bad name.
7832         * .dbxrc (dump-temacs): Rename to `dmp'.
7833         * .gdbinit (dump-temacs): Rename to `dmp'.
7834
7835 2001-01-17  Andy Piper  <andy@xemacs.org>
7836
7837         * glyphs.c (print_image_instance): comment to make martin happy.
7838
7839         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7840         change.
7841
7842         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7843         activation.
7844         (mswindows_tab_control_redisplay): warning suppression.
7845
7846         * glyphs-widget.c (widget_update): re-write to cope with updated
7847         items.
7848         (widget_instantiate): use new gui_item functions.
7849         (tab_control_update): deleted.
7850         (progress_gauge_update): deleted.
7851         (image_instantiator_progress_guage): take out update reference.
7852         (image_instantiator_tree_view): ditto.
7853         (image_instantiator_tab_control): ditto.
7854
7855         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7856         Right the new way.
7857         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7858         return whether anything was changed.
7859         (update_gui_item_keywords): as it sounds.
7860
7861         * gui.h: declare widget_gui_parse_item_keywords.
7862
7863         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7864         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7865
7866 2001-01-17  Martin Buchholz <martin@xemacs.org>
7867
7868         * XEmacs 21.2.41 "Polyhymnia" is released.
7869
7870 2001-01-16  Didier Verna  <didier@xemacs.org>
7871
7872         * glyphs.c (image_instantiate): don't use fallbacks when
7873         instantiating a face's background pixmap by inheritance.
7874
7875 2001-01-14  Mike Sperber <mike@xemacs.org>
7876
7877         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7878         Conditionalize accordingly.
7879
7880 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7881
7882         * dumper.c (pdump_file_get): Fix a compiler warning.
7883
7884 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7885
7886         Make Purify happy when pdumping.
7887         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7888         iniitalizing all bits of new lisp object memory.
7889         * symbols.c (Fmake_local_variable): Likewise.
7890         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7891         * symbols.c (Fdefvaralias): Likewise.
7892         * mule-charset.c (vars_of_mule_charset): Likewise.
7893
7894 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7895         Add the `-nd' flag when running pre-dump operations under the debugger.
7896         * .dbxrc (run-temacs): Add `-nd'.
7897         * .dbxrc (update-elc): Likewise.
7898         * .dbxrc (dump-temacs): Likewise.
7899         * .gdbinit (run-temacs): Likewise.
7900         * .gdbinit (check-temacs): Likewise.
7901         * .gdbinit (update-elc): Likewise.
7902         * .gdbinit (dump-temacs): Likewise.
7903
7904 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7905
7906         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7907         export OBJECT_MODE=64
7908         configure --pdump --use-union-type=no
7909         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7910         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7911
7912         * miscplay.c (sndcnv8U_2mono):
7913         Avoid two uses of `++' in the same expression.
7914         Suppresses a GCC warning.
7915
7916 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7917
7918         Make sure future compilers don't miscompile alloc.c.
7919         * alloc.c:
7920         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7921         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7922
7923 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7924
7925         * dumper.c: A little post-pdump-rename comment fixup.
7926
7927 2001-01-09  Jerry James  <james@eecs.ku.edu>
7928
7929         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7930
7931 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7932
7933         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7934         script:
7935         #!/bin/sh
7936         replace_symbol () {
7937           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7938         }
7939
7940         replace_symbol pdump_wire_lists pdump_weak_object_chains
7941         replace_symbol pdump_wire_list dump_add_weak_object_chain
7942
7943         replace_symbol pdump_wires pdump_root_objects
7944         replace_symbol pdump_wire dump_add_root_object
7945
7946         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7947         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7948
7949         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7950         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7951         replace_symbol dumpstructinfo pdump_root_struct_ptr
7952         replace_symbol dumpstruct dump_add_root_struct_ptr
7953
7954         replace_symbol dumpopaque dump_add_opaque
7955         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7956         replace_symbol dumpopaqueinfos pdump_opaques
7957         replace_symbol dumpopaqueinfo pdump_opaque
7958
7959         replace_symbol nb_structdump nb_root_struct_ptrs
7960         replace_symbol nb_opaquedump nb_opaques
7961
7962         replace_symbol align_table pdump_align_table
7963         replace_symbol dump_header pdump_header
7964
7965         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7966         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7967
7968
7969 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7970
7971         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7972         optimizing bytecount_to_charcount().
7973
7974 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7975
7976         * config.h.in:
7977         (HAVE_DLFCN_H): Removed.
7978         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7979
7980 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7981
7982         Portable dumper maintainability improvements.
7983         * alloc.c (staticpro):
7984         * alloc.c (staticpro_nodump):
7985         * alloc.c (garbage_collect_1):
7986         * alloc.c (reinit_alloc_once_early):
7987         * alloc.c (init_alloc_once_early):
7988         * alloc.c: Move dumper functions to alloc.c.
7989         * dumper.c (pdump_backtrace):
7990         * dumper.c (pdump_dump_structs):
7991         * dumper.c (pdump_dump_opaques):
7992         * dumper.c (pdump_dump_rtables):
7993         * dumper.c (pdump_dump_wired):
7994         * dumper.c (pdump):
7995         * dumper.c (pdump_load_check):
7996         * dumper.c (pdump_load_finish):
7997         * dumper.c (pdump_file_unmap):
7998         * dumper.c (pdump_file_get):
7999         * dumper.c (pdump_resource_free):
8000         * dumper.c (pdump_resource_get):
8001         * dumper.c (pdump_file_free):
8002         * dumper.c (pdump_file_try):
8003         * dumper.c (pdump_load):
8004         Remove fixed size limits on staticpro(), staticpro_nodump(),
8005         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8006         Remove custom code for dumping lrecord_implementations_table - use
8007         dumpopaque instead.
8008         Remove (most of the) custom code for dumping staticpros - dump it
8009         like any other dynarr.
8010
8011         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8012         * dumper.c: Moved functions from alloc.c.
8013         * alloc.c (dumpstruct): Moved to dumper.c.
8014         * alloc.c (dumpopaque): Likewise.
8015         * alloc.c (pdump_wire): Likewise.
8016         * alloc.c (pdump_wire_list): Likewise.
8017
8018         * lisp.h (Dynarr_sizeof): New.
8019         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8020         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8021         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8022
8023         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8024         * lisp.h (dumpopaque): ditto.
8025         * lisp.h (pdump_wire): ditto.
8026         * lisp.h (pdump_wire_list): ditto.
8027
8028 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8029
8030         * make-src-depend (PrintPatternDeps):
8031         Use `sort' to make output independent of perl version.
8032
8033 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8034
8035         Port to Netbsd 1.5.
8036         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8037         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8038
8039 2001-01-03  Didier Verna  <didier@xemacs.org>
8040
8041         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8042         that `focus_frame' is alive before thinking of calling
8043         `redisplay_redraw_cursor' on it.
8044
8045 2001-01-08  Martin Buchholz <martin@xemacs.org>
8046
8047         * XEmacs 21.2.40 is released.
8048
8049 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8050
8051         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8052
8053 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8054
8055         * alloc.c (dbg_valmask): Make const.
8056         * alloc.c (dbg_typemask): Make const.
8057         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8058         * alloc.c (dbg_valbits): Make const.
8059         * alloc.c (dbg_gctypebits): Make const.
8060
8061 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8062
8063         * redisplay-x.c (x_bevel_area):
8064         redisplay.h (struct rune):
8065         Typo fixes in comments.
8066
8067 2001-01-05  Andy Piper  <andy@xemacs.org>
8068
8069         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8070         adjustment.
8071
8072         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8073
8074 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8075
8076         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8077
8078         * mule-ccl.c (stack_idx_of_map_multiple):
8079         Non const global data must not be initialized!
8080         Found by MIYASHITA Hisashi.
8081
8082 2001-01-02  Andy Piper  <andy@xemacs.org>
8083
8084         * frame.c (change_frame_size): make sure frame size is always
8085         marked as changed.
8086
8087         * glyphs.c (image_instance_layout): minor code reuse.
8088
8089         * window.c (Fcurrent_window_configuration): revert previous
8090         change.
8091
8092 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8093
8094         * glyphs.h:
8095         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8096
8097 2000-12-31  Andy Piper  <andy@xemacs.org>
8098
8099         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8100         when widget gets unmapped.
8101
8102         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8103         function. Make sure widgets losing focus don't just drop it.
8104         (handle_focus_event_1): record the widget with focus.
8105
8106 2000-12-31  Andy Piper  <andy@xemacs.org>
8107
8108         * window.c (allocate_window): use
8109         make_image_instance_cache_hash_table.
8110         (make_dummy_parent): ditto.
8111         (Fset_window_configuration): ditto.
8112
8113         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8114
8115         * glyphs.c (process_image_string_instantiator): use
8116         INSTANTIATOR_TYPE.
8117         (get_image_instantiator_governing_domain): ditto.
8118         (normalize_image_instantiator): ditto.
8119         (instantiate_image_instantiator): ditto.
8120         (make_image_instance_1): ditto.
8121         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8122         (instantiator_eq_equal): new function for use with instance hash
8123         tables.
8124         (instantiator_eq_hash): ditto.
8125         (make_image_instance_cache_hash_table): create a suitable hash
8126         table for storing image instances.
8127
8128         * elhash.h (hash_table_weakness): new internal weakness type
8129         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8130         declare new functions.
8131
8132         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8133         another weakness type for glyphs.
8134         (make_standard_lisp_hash_table): new function split out from
8135         make_general_lisp_hash_table.
8136         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8137         (hash_table_instantiate): ditto.
8138         (Fmake_hash_table): ditto.
8139
8140 2000-12-31  Martin Buchholz <martin@xemacs.org>
8141
8142         * XEmacs 21.2.39 is released.
8143
8144 2000-12-29  Andy Piper  <andy@xemacs.org>
8145
8146         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8147
8148         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8149         the frame has changed so that we pick up geometry changes such as
8150         menubar visibility.
8151
8152 2000-12-28  Andy Piper  <andy@xemacs.org>
8153
8154         * lastfile.c (my_ebss): make a char array so we can pad the
8155         bss. Fixes cygwin unexec.
8156
8157         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8158
8159 2000-12-26  Andy Piper  <andy@xemacs.org>
8160
8161         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8162         comments and try and be more precise about a non-/SIGIO world.
8163         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8164         SIGIO.
8165
8166         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8167         we don't normalize to zero width or height.
8168
8169 2000-12-24  Andy Piper  <andy@xemacs.org>
8170
8171         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8172
8173 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8174
8175         * s/sco5.h: SCO 5 has pty support.
8176
8177 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8178
8179         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8180         input-method-xlib.c contains whole contents of input-method-xfs.c,
8181         so we can use input-method-xlib.c's code for USE_XFONTSET
8182         using #ifdefs.
8183         * input-method-xfs.c: removed.
8184
8185 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8186
8187         * file-coding.h (enum coding_category_type): reorder enumerators to
8188         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8189         (now one greater than largest real coding_category_type enumerator).
8190         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8191         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8192         Fcoding_category_list, Fset_coding_priority_list,
8193         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8194         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8195
8196 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8197
8198         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8199         * redisplay-output.c (redisplay_output_window): Clear top of window
8200         when face is changed.
8201         * redisplay-x.c (x_redraw_exposed_window): Call
8202         redisplay_clear_top_of_window.
8203         * redisplay.h: Publish redisplay_clear_top_of_window.
8204
8205 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8206
8207         * buffer.c (Fkill_buffer): Map over all devices.
8208         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8209         (list_windows): New function.
8210         (list_all_windows): Ditto.
8211         (Freplace_buffer_in_windows): Use them.
8212
8213 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8214
8215         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8216         (Fopen_database): Use `db_create' instead of `db_open'.
8217         (syms_of_database): Initialize Qqueue.
8218
8219 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8220
8221         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8222         buffer_local_face_property.
8223         * buffer.h (struct buffer): New member buffer_local_face_property.
8224         * window.c (Fset_window_buffer):  Mark window's face as changed
8225         when buffer has buffer local face.
8226         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8227         * objects.c (color_after_change): Set buffer_local_face_property
8228         when locale of face specifier is buffer.
8229         * objects.c (font_after_change): Ditto.
8230         * objects.c (face_boolean_after_change): Ditto.
8231         * glyphs.c (image_after_change): Ditto.
8232
8233 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8234
8235         * nt.c (mswindows_fstat): Report file permissions, volume serial
8236         number, etc. Code adapted from FSF Emacs 20.7.
8237
8238 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8239
8240         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8241         of stat when we don't have symbolic links, to make sure
8242         mswindows_stat is called on mswindows.
8243
8244 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8245
8246         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8247
8248 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8249
8250         * doprnt.c (emacs_doprnt_1): More printing fixes.
8251         Make printing of numbers compatible with libc and FSF Emacs.
8252         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8253         Use the system printf to do most of the hard work of formatting,
8254         instead of doprnt_1().
8255         Calculate memory to allocate for format string.
8256         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8257         (doprnt_1): Cleaner code and documentation.
8258
8259 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8260
8261         * Makefile.in.in: Use the loop variable to install headers.
8262
8263 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8264
8265         * window.c (Fsplit_window): Don't invalidate face cache.
8266
8267 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8268
8269         * minibuf.c (Fall_completions): Undo the previous change
8270         which removed checking elements start with space.
8271
8272 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8273
8274         * mule-canna.c: Didier suppression.
8275
8276 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8277
8278         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8279         (warning suppression).  Add English comment translations.
8280
8281 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8282
8283         * unexelfsgi.c (unexec): Better test for mmap failure.
8284
8285 2000-12-05  Martin Buchholz <martin@xemacs.org>
8286
8287         * XEmacs 21.2.38 is released.
8288
8289 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8290
8291         * redisplay.c (bar-cursor): Make a user variable.
8292
8293         * symsinit.h: Add init_postgresql_from_environment.
8294
8295 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8296
8297         * regex.c: Convert to clean C.
8298
8299 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8300
8301         * realpath.c:
8302         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8303         initialization.
8304         (sys_readlink): renamed to system_readlink to avoid conflict with
8305         the other sys_readlink.
8306
8307 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8308
8309         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8310
8311 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8312
8313         * postgresql.c (init_postgresql_from_environment): new function.
8314         (vars_of_postgresql): Move code initializing Lisp variables out and
8315         into init_postgresql_from_environment.
8316         emacs.c (main_1): Call init_postgresql_from_environment if and only
8317         if running a dumped XEmacs.
8318
8319 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8320
8321         * buffer.c: Make find-file-compare-truenames default to true on
8322         windows.
8323
8324         * realpath.c (win32_abs_start):
8325         (cygwin_readlink):
8326         (win32_readlink): New functions.
8327         (xrealpath): Return really real filenames on windows.
8328
8329         * fileio.c (Ffile_truename): Make file-truename work on windows.
8330
8331 2000-11-29  Didier Verna  <didier@xemacs.org>
8332
8333         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8334         * faces.c (update_face_cachel_data): use it.
8335         * faces.c (add_face_cachel): use it. Complete background pixmap
8336         frobbing in face cache if `update_face_cachel_data' has not done so.
8337
8338 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8339
8340         * search.c (string_match_1): Don't set last_thing_searched
8341         when search failed.
8342
8343 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8344
8345         * buffer.c: Include casetab.h
8346         (common_init_complex_vars_of_buffer): Use new case-table object.
8347         * buffer.h: Include casetab.h
8348         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8349         (DOWNCASE_TABLE_OF): Ditto.
8350         * bufslots.h: Remove char-tables and add case-table.
8351         * casetab.c: Include casetab.h
8352         (CASE_TABLE_P): Removed.
8353         (mark_case_table): New function.
8354         (allocate_case_table): New function.
8355         (Fcase_table_p): Use new case-table.
8356         (case_table_char): New function.
8357         (Fget_case_table): Ditto.
8358         (Fput_case_table): Ditto.
8359         (Fput_case_table_pair): Ditto.
8360         (Fcopy_case_table): Ditto.
8361         (Fcurrent_case_table): Return case-table.
8362         (Fstandard_case_table): Return case-table.
8363         (Fset_case_table): Fix doc-string.
8364         (set_case_table): Use case-table
8365         (syms_of_casetab): DEFSUBR new functions.
8366         (complex_vars_of_casetab): Set up standard case-table.
8367         * casetab.h: New file.
8368         * editfns.c: Include casetab.h
8369         (Fcompare_buffer_substrings): Use case-table.
8370         * inline.c: Include casetab.h
8371         * lisp.h: Remove bogus extern.
8372         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8373         * search.c: Include casetab.h
8374         (TRANSLATE_ASCII): Removed.
8375         (TRANSLATE): Unconditionally translate character.
8376         (looking_at_1): Use case-table.
8377         (string_match_1): Ditto.
8378         (fast_string_match): Ditto.
8379         (search_command): Ditto.
8380         (search_buffer): Separate boyer_moore.  Check whether
8381         boyer_moore is possible.
8382         (simple_search): New function.
8383         (boyer_moore): Separated from search_buffer. Translate char.
8384
8385 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8386
8387         * regex.c (RE_TR_ASCII): Removed.
8388         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8389         (PATFETCH): Call PATFETCH_RAW.
8390         (PATFETCH_RAW): Fetch Emchar.
8391         (PATUNFETCH): Decrement charptr.
8392         (GET_BUFFER_SPACE): Rename b to buf_end.
8393         (BUF_PUSH): Ditto.
8394         (BUF_PUSH_2): Ditto.
8395         (BUF_PUSH_3): Ditto.
8396         (EXTEND_BUFFER): Ditto.
8397         (SET_LIST_BIT): Ditto.
8398         (regex_compile): Ditto.  Translate non ASCII char.
8399         (compile_range): Ditto.
8400         (re_search_2): Ditto.
8401         (re_match_2_internal): Compare Emchar.
8402         (bcmp_translate): Ditto.
8403
8404 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8405
8406         * lisp.h (basic char/int typedefs):  comment improvement.
8407
8408 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8409
8410         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8411         unstomp inhibit_site_lisp.  Improve comments.
8412
8413 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8414
8415         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8416
8417 2000-11-28  Andy Piper  <andy@xemacs.org>
8418
8419         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8420         clipped display for windows in the gutter also.
8421         (redisplay_display_boxes_in_window_p): change semantics of return
8422         codes to be more intuitive.
8423
8424         * gutter.h: declare display_boxes_in_gutter_p.
8425
8426         * gutter.c (display_boxes_in_gutter_p): new function for
8427         redisplay.
8428
8429 2000-11-22  Andy Piper  <andy@xemacs.org>
8430
8431         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8432         autodetect domain.
8433
8434 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8435
8436         * callproc.c (Fold_call_process_internal):
8437         * gpm.c (Freceive_gpm_event):
8438         (tty_get_foreign_selection): Might be just warning supression.
8439         * fileio.c (Fwrite_region_internal):
8440         (Fset_visited_file_modtime):
8441         * keymap.c (event_matches_key_specifier_p):
8442         Initialize GCPROed variable.
8443
8444         * menubar-x.c (command_builder_find_menu_accelerator):
8445         Initialize before use.
8446
8447 2000-11-23  Andy Piper  <andy@xemacs.org>
8448
8449         * unexcw.c (unexec): make the resulting executable executable.
8450
8451 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8452
8453         * doc.c (get_doc_string):
8454         Use size_t, not int, for result of XSTRING_LENGTH.
8455
8456         * cmds.c (Fdelete_char):
8457         * cmds.c (Fpoint_at_eol):
8458         * cmds.c (Fself_insert_command):
8459         Use EMACS_INT, not int, for result of XINT.
8460         Someday, someone will want to insert more than 2**31 identical characters.
8461
8462         * cmds.c (Fdelete_char):
8463         * cmds.c (Fdelete_backward_char):
8464         * syntax.c (Fforward_word):
8465         * syntax.c (Fforward_comment):
8466         Make COUNT argument optional, for consistency with forward-char et al.
8467
8468 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8469
8470         * lisp.h:
8471         * print.c (long_to_string):
8472         Return a useful value: the pointer at end of data written.
8473
8474         * doprnt.c:
8475         Use `static const char * const' for constant strings.
8476         (union printf_arg): Delete `i', `ui' members.
8477         (get_doprnt_args):
8478         (emacs_doprnt_1):
8479         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8480         Do all printf-ing via the `l' specifier.
8481         Use EMACS_INT instead of int.
8482         Optimize.
8483
8484 2000-11-20  Didier Verna  <didier@xemacs.org>
8485
8486         * faces.c (update_face_cachel_data): don't frob the background
8487         pixmap when the window is being created. The face is needed but
8488         does not exist yet.
8489
8490 2000-11-20  Andy Piper  <andy@xemacs.org>
8491
8492         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8493         messing with a debug environment.
8494
8495 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8496
8497         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8498
8499 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8500
8501         * casetab.c (Fcase_table_p): Fix compile error and crash.
8502
8503 2000-11-18  Philip Aston  <philipa@mail.com>
8504
8505         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8506
8507 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8508
8509         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8510         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8511
8512 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8513
8514         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8515         * unexelf.c: Use HAVE_ELF_H.
8516         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8517         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8518         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8519         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8520         for testing.
8521         So this is an unexelfsgi.c from a different line of development.
8522
8523 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8524
8525         * regex.c (RE_TR_ASCII): New function.
8526         (RE_TRANSLATE): Call it.
8527
8528 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8529
8530         * buffer.h (TRT_TABLE_OF): Remove assert.
8531         (IN_TRT_TABLE_DOMAIN): Removed.
8532
8533 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8534
8535         * free-hook.c (log_gcpro):
8536         (show_gcprohist): Add support for GCPRO5.
8537
8538 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8539
8540         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8541
8542 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8543
8544         * symeval.h: Declare flush_all_buffer_local_cache.
8545
8546         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8547         (flush_buffer_local_cache): Added.
8548         (flush_all_buffer_local_cache): Added.
8549
8550         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8551
8552         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8553         (pdump_dump_data): Ditto.
8554         (pdump_reloc_one): Ditto.
8555         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8556         before dumping.
8557
8558
8559 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8560
8561         * buffer.c: Remove if 0'ed entry.
8562         * buffer.h: Rewrite TRT to use char-table.
8563         * bufslots.h: Remove mirror tables.
8564         * casetab.c: Remove mirror tables.
8565         (CASE_TABLE_P): New macro.
8566         (Fcase_table_p): Element of a case table is string or char-table.
8567         (make_mirror_trt_table): Removed.
8568         (set_case_table): Setup char-table from strings for backward
8569         compatibility.
8570         * dired.c (Fdirectory_files):
8571         * dired-msw.c: (mswindows_get_files):
8572         * lisp.h: Change prototype of re_pattern_buffer.
8573         * regex.c: (RE_TRANSLATE): New macro.
8574         (TRANSLATE_P): Ditto.
8575         Change translate to type RE_TRANSLATE_TYPE.
8576         * regex.h: Define RE_TRANSLATE_TYPE
8577         * search.c (TRANSLATE): New macro.
8578         (TRANSLATE_ASCII): New macro.
8579         Translate table is changed to Lisp_Object.
8580         (signal_failure): Inhibit return.
8581
8582 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8583
8584         * device-msw.c:
8585         * eldap.c:
8586         * event-Xt.c:
8587         * event-stream.c:
8588         * print.c:
8589         Do UNGCPRO before return.
8590
8591 2000-11-14  Martin Buchholz <martin@xemacs.org>
8592
8593         * XEmacs 21.2.37 is released.
8594
8595 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8596
8597         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8598         Add comments about discarded return value.
8599
8600 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8601
8602         * callint.c:
8603         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8604
8605 2000-10-27  Andy Piper  <andy@xemacs.org>
8606
8607         * gutter.c (Fset_default_gutter_position): default left and right
8608         gutters to visible.
8609         (calculate_gutter_size): calculate resonable heuristic for left
8610         and right gutter sizes.
8611         (specifier_vars_of_gutter): change left and right gutter sizes to
8612         autodetect.
8613         (calculate_gutter_size_from_display_lines): new function.
8614         (output_gutter): check for resizing on left and right gutters.
8615         (clear_gutter): don't special case top and left gutters.
8616         (specifier_vars_of_gutter): use new signature for
8617         set_specifier_caching.
8618
8619         * glyphs-x.c (x_redisplay_widget): spelling fix.
8620         * glyphs.c (specifier_vars_of_glyphs):
8621         * menubar.c (specifier_vars_of_menubar):
8622         * redisplay.c (specifier_vars_of_redisplay):
8623         * toolbar.c (specifier_vars_of_toolbar):
8624         * window.c (specifier_vars_of_window):
8625         * scrollbar.c (specifier_vars_of_scrollbar):
8626         (complex_vars_of_scrollbar): use new signature for
8627         set_specifier_caching.
8628
8629         * specifier.c (set_specifier_caching): include recompute flag.
8630         (recompute_one_cached_specifier_in_window): always recompute if
8631         flag set.
8632         (recompute_one_cached_specifier_in_frame): ditto.
8633
8634         * specifier.h (struct specifier_caching): add recompute flag.
8635
8636 2000-10-24  Andy Piper  <andy@xemacs.org>
8637
8638         * unexcw.c (copy_executable_and_dump_data_section): add new
8639         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8640         5.0 happy.
8641
8642 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8643
8644         * console-x.h (x_device): New member modifier_release_time.
8645         * event-Xt.c (x_handle_sticky_modifiers):
8646         Bound interval modifier keys are sticky.
8647         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8648         * events.h: extern it.
8649
8650 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8651
8652         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8653
8654 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8655
8656         * event-stream.c (execute_command_event): Preserve current_events
8657         and the like when event is misc-user-event.
8658         Inhibit quit during the call to maybe_echo_keys.
8659
8660 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8661
8662         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8663         symlink when buffer is killed.
8664         (inhibit_clash_detection): New variable.
8665
8666 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8667
8668         * console.c (Fset_input_method): Trigger redisplay on tty.
8669
8670 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8671
8672         * process.c (Fprocess_status): Revert to previous behavior:
8673         (process-status "nosuchprocess") ==> nil
8674
8675 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8676
8677         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8678         Work around another GCC 2.95.2 optimizer bug.
8679
8680 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8681
8682         * process.c (Fget_process): Use LIST_LOOP_2.
8683         (kill_buffer_processes): Use LIST_LOOP_2.
8684
8685         * minibuf.c (Fall_completions):
8686         Delete old non-functional code for FSF fourth argument.
8687
8688         * frame.c (frame_matches_frame_spec):
8689         Renamed from `frame_matches_frametype'.  Update all callers.
8690         (device_matches_device_spec):
8691         Renamed from 'device_matches_console_spec'.  Update all callers.
8692
8693         * doc.c (Fsubstitute_command_keys):
8694         Remove buffer overflow crash.  Small code cleanups.
8695
8696         * casetab.c (check_case_table): Simpler code.
8697
8698         * window.c (Freplace_buffer_in_windows):
8699         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8700         (and similar implementation) as Fdelete_windows_on.
8701         Update all callers.
8702
8703         * alloc.c (Fmake_list):
8704         * alloc.c (make_vector):
8705         * alloc.c (Fmake_vector):
8706         * alloc.c (make_bit_vector):
8707         * alloc.c (Fmake_bit_vector):
8708         * alloc.c (Fbit_vector):
8709         * alloc.c (Fmake_string):
8710         * alloc.c (Fpurecopy):
8711         * alloc.c (Fmemory_limit):
8712         * buffer.c:
8713         * buffer.c (Fget_buffer):
8714         * buffer.c (Fkill_buffer):
8715         * buffer.c (complex_vars_of_buffer):
8716         * bytecode.c (Fcompiled_function_stack_depth):
8717         * callint.c (Fprefix_numeric_value):
8718         * event-stream.c:
8719         * event-stream.c (Fread_key_sequence):
8720         * casetab.c:
8721         * casetab.c (Fcase_table_p):
8722         * casetab.c (check_case_table):
8723         * casetab.c (Fset_case_table):
8724         * casetab.c (Fset_standard_case_table):
8725         * chartab.c:
8726         * chartab.c (Fchar_table_type):
8727         * chartab.c (Freset_char_table):
8728         * chartab.c (Fget_char_table):
8729         * chartab.c (Fget_range_char_table):
8730         * chartab.c (Fput_char_table):
8731         * chartab.c (Fmap_char_table):
8732         * chartab.c (Fcategory_table_p):
8733         * chartab.c (Fcheck_category_at):
8734         * chartab.c (Fchar_in_category_p):
8735         * chartab.c (Fcategory_table):
8736         * chartab.c (Fcopy_category_table):
8737         * chartab.c (Fset_category_table):
8738         * chartab.c (Fcategory_designator_p):
8739         * chartab.c (Fcategory_table_value_p):
8740         * cmds.c (Fdelete_char):
8741         * cmds.c (Fdelete_backward_char):
8742         * cmds.c (Fself_insert_command):
8743         * cmds.c (Fself_insert_internal):
8744         * console.c (Fvalid_console_type_p):
8745         * console.c (Fcdfw_console):
8746         * console.c (Fconsole_type):
8747         * console.c (Fconsole_name):
8748         * console.c (Fconsole_device_list):
8749         * console.c (Fconsole_on_window_system_p):
8750         * data.c:
8751         * data.c (Feq):
8752         * data.c (Fold_eq):
8753         * data.c (Fsubr_interactive):
8754         * data.c (Fchar_to_int):
8755         * data.c (Fint_to_char):
8756         * data.c (Fsetcar):
8757         * data.c (Fsetcdr):
8758         * data.c (Fnumber_to_string):
8759         * data.c (Fstring_to_number):
8760         * data.c (Frem):
8761         * database.c (mark_database):
8762         * database.c (finalize_database):
8763         * database.c (Fdatabase_live_p):
8764         * database.c (Fdatabasep):
8765         * device-x.c (Fx_get_resource):
8766         * device.c (Fdfw_device):
8767         * dired.c:
8768         * dired.c (Ffile_name_completion):
8769         * dired.c (Ffile_name_all_completions):
8770         * dired.c (Fuser_name_completion):
8771         * dired.c (Fuser_name_completion_1):
8772         * dired.c (Fuser_name_all_completions):
8773         * doc.c (Fdocumentation):
8774         * doc.c (Fdocumentation_property):
8775         * doc.c (Fsubstitute_command_keys):
8776         * editfns.c:
8777         * editfns.c (Fchar_to_string):
8778         * editfns.c (Fstring_to_char):
8779         * editfns.c (Ftemp_directory):
8780         * editfns.c (Finsert_char):
8781         * editfns.c (Fbuffer_substring_no_properties):
8782         * editfns.c (Fnarrow_to_region):
8783         * editfns.c (Fchar_equal):
8784         * editfns.c (Fchar_Equal):
8785         * editfns.c (Ftranspose_regions):
8786         * emacs.c (Fdump_emacs):
8787         * eval.c (Fthrow):
8788         * eval.c (Fcommand_execute):
8789         * eval.c (Fautoload):
8790         * eval.c (Fbacktrace):
8791         * eval.c (Fbacktrace_frame):
8792         * events.c:
8793         * events.c (Fcopy_event):
8794         * events.c (Fcharacter_to_event):
8795         * events.c (Fevent_button):
8796         * events.c (Fevent_process):
8797         * extents.c:
8798         * extents.c (Fnext_extent_change):
8799         * extents.c (Fextent_property):
8800         * faces.c (Ffacep):
8801         * faces.c (Fmake_face):
8802         * file-coding.c:
8803         * file-coding.c (Fencode_shift_jis_char):
8804         * file-coding.c (Fencode_big5_char):
8805         * fileio.c (Ffile_name_directory):
8806         * fileio.c (Ffile_name_nondirectory):
8807         * fileio.c (Ffile_name_as_directory):
8808         * fileio.c (Fdirectory_file_name):
8809         * fileio.c (Ffile_truename):
8810         * fileio.c (Fsubstitute_in_file_name):
8811         * fileio.c (Ffile_modes):
8812         * fileio.c (Fset_file_modes):
8813         * fileio.c (Fset_default_file_modes):
8814         * fileio.c (Fverify_visited_file_modtime):
8815         * floatfns.c (Facos):
8816         * floatfns.c (Fasin):
8817         * floatfns.c (Fatan):
8818         * floatfns.c (Fcos):
8819         * floatfns.c (Fsin):
8820         * floatfns.c (Ftan):
8821         * floatfns.c (Fbessel_j0):
8822         * floatfns.c (Fbessel_j1):
8823         * floatfns.c (Fbessel_jn):
8824         * floatfns.c (Fbessel_y0):
8825         * floatfns.c (Fbessel_y1):
8826         * floatfns.c (Fbessel_yn):
8827         * floatfns.c (Ferf):
8828         * floatfns.c (Ferfc):
8829         * floatfns.c (Flog_gamma):
8830         * floatfns.c (Fexp):
8831         * floatfns.c (Fexpt):
8832         * floatfns.c (Flog):
8833         * floatfns.c (Flog10):
8834         * floatfns.c (Fsqrt):
8835         * floatfns.c (Fcube_root):
8836         * floatfns.c (Facosh):
8837         * floatfns.c (Fasinh):
8838         * floatfns.c (Fatanh):
8839         * floatfns.c (Fcosh):
8840         * floatfns.c (Fsinh):
8841         * floatfns.c (Ftanh):
8842         * floatfns.c (Fabs):
8843         * floatfns.c (Ffloat):
8844         * floatfns.c (Flogb):
8845         * floatfns.c (Fceiling):
8846         * floatfns.c (Ffloor):
8847         * floatfns.c (Fround):
8848         * floatfns.c (Ftruncate):
8849         * floatfns.c (Ffceiling):
8850         * floatfns.c (Fffloor):
8851         * floatfns.c (Ffround):
8852         * floatfns.c (Fftruncate):
8853         * fns.c (Fstring_equal):
8854         * fns.c (Fstring_lessp):
8855         * fns.c (concat2):
8856         * fns.c (concat3):
8857         * fns.c (vconcat2):
8858         * fns.c (vconcat3):
8859         * fns.c (Fsubstring):
8860         * fns.c (Fassoc):
8861         * fns.c (Fold_assoc):
8862         * fns.c (assoc_no_quit):
8863         * fns.c (Fassq):
8864         * fns.c (Fold_assq):
8865         * fns.c (assq_no_quit):
8866         * fns.c (Frassoc):
8867         * fns.c (Fold_rassoc):
8868         * fns.c (Frassq):
8869         * fns.c (Fold_rassq):
8870         * fns.c (rassq_no_quit):
8871         * fns.c (Fremassoc):
8872         * fns.c (remassoc_no_quit):
8873         * fns.c (Fremassq):
8874         * fns.c (remassq_no_quit):
8875         * fns.c (Fremrassoc):
8876         * fns.c (Fremrassq):
8877         * fns.c (remrassq_no_quit):
8878         * fns.c (Fsort):
8879         * fns.c (Fplist_get):
8880         * fns.c (Fplist_put):
8881         * fns.c (Fplist_remprop):
8882         * fns.c (Fplist_member):
8883         * fns.c (Flax_plist_get):
8884         * fns.c (Flax_plist_put):
8885         * fns.c (Flax_plist_remprop):
8886         * fns.c (Flax_plist_member):
8887         * fns.c (Fequal):
8888         * fns.c (Fold_equal):
8889         * fns.c (Frequire):
8890         * fns.c (Fbase64_encode_region):
8891         * fns.c (Fbase64_encode_string):
8892         * fns.c (Fbase64_decode_region):
8893         * frame.c:
8894         * frame.c (frame_matches_frame_spec):
8895         * frame.c (device_matches_device_spec):
8896         * frame.c (next_frame):
8897         * frame.c (previous_frame):
8898         * frame.c (Fnext_frame):
8899         * frame.c (Fprevious_frame):
8900         * frame.c (Fframe_property):
8901         * frame.c (Fset_frame_height):
8902         * frame.c (Fset_frame_size):
8903         * frame.h:
8904         * glyphs.c:
8905         * glyphs.c (if):
8906         * glyphs.c (decode_error_behavior_flag):
8907         * glyphs.c (Fmake_image_instance):
8908         * indent.c (Findent_to):
8909         * intl.c (Fignore_defer_gettext):
8910         * keymap.c (Fkeymapp):
8911         * keymap.c (Flookup_key):
8912         * lread.c:
8913         * lread.c (Fload_internal):
8914         * lread.c (Feval_buffer):
8915         * lread.c (Feval_region):
8916         * macros.c (Fexecute_kbd_macro):
8917         * marker.c (set_marker_internal):
8918         * marker.c (Fset_marker):
8919         * marker.c (set_marker_restricted):
8920         * marker.c (Fcopy_marker):
8921         * marker.c (noseeum_copy_marker):
8922         * menubar.c:
8923         * menubar.c (Fpopup_menu):
8924         * minibuf.c:
8925         * mule-charset.c (Fcharset_name):
8926         * mule-charset.c (Fchar_charset):
8927         * mule-charset.c (Fchar_octet):
8928         * mule-charset.c (Fsplit_char):
8929         * mule-wnnfns.c (Fwnn_open):
8930         * mule-wnnfns.c (Fwnn_dict_comment):
8931         * mule-wnnfns.c (Fwnn_quit_henkan):
8932         * mule-wnnfns.c (Fwnn_word_toroku):
8933         * mule-wnnfns.c (Fwnn_word_sakujo):
8934         * mule-wnnfns.c (Fwnn_word_use):
8935         * mule-wnnfns.c (Fwnn_hindo_set):
8936         * objects.c:
8937         * objects.c (Fmake_color_instance):
8938         * objects.c (Fmake_font_instance):
8939         * print.c (Fwrite_char):
8940         * process.c:
8941         * process.c (mark_process):
8942         * process.c (print_process):
8943         * process.c (get_process_from_usid):
8944         * process.c (Fprocessp):
8945         * process.c (Fprocess_live_p):
8946         * process.c (Fget_process):
8947         * process.c (Fget_buffer_process):
8948         * process.c (get_process):
8949         * process.c (Fprocess_id):
8950         * process.c (Fprocess_name):
8951         * process.c (Fprocess_command):
8952         * process.c (init_process_io_handles):
8953         * process.c (start_process_unwind):
8954         * process.c (Fstart_process_internal):
8955         * process.c (Fopen_multicast_group_internal):
8956         * process.c (Fset_process_window_size):
8957         * process.c (read_process_output):
8958         * process.c (send_process):
8959         * process.c (Fprocess_tty_name):
8960         * process.c (Fset_process_buffer):
8961         * process.c (Fprocess_buffer):
8962         * process.c (Fprocess_mark):
8963         * process.c (set_process_filter):
8964         * process.c (Fset_process_filter):
8965         * process.c (Fprocess_filter):
8966         * process.c (Fprocess_send_region):
8967         * process.c (Fprocess_send_string):
8968         * process.c (exec_sentinel):
8969         * process.c (Fset_process_sentinel):
8970         * process.c (Fprocess_sentinel):
8971         * process.c (status_notify):
8972         * process.c (Fprocess_status):
8973         * process.c (Fprocess_exit_status):
8974         * process.c (process_send_signal):
8975         * process.c (Fprocess_send_eof):
8976         * process.c (deactivate_process):
8977         * process.c (remove_process):
8978         * process.c (Fdelete_process):
8979         * process.c (kill_buffer_processes):
8980         * process.c (Fprocess_kill_without_query):
8981         * process.c (Fprocess_kill_without_query_p):
8982         * rangetab.c:
8983         * rangetab.c (Fget_range_table):
8984         * rangetab.c (Fput_range_table):
8985         * rangetab.c (Fremove_range_table):
8986         * rangetab.c (Fclear_range_table):
8987         * search.c:
8988         * search.c (Fskip_chars_forward):
8989         * search.c (Fskip_chars_backward):
8990         * search.c (Fskip_syntax_forward):
8991         * search.c (Fskip_syntax_backward):
8992         * search.c (search_command):
8993         * search.c (Freplace_match):
8994         * search.c (Fregexp_quote):
8995         * select.c (Fown_selection_internal):
8996         * select.c (Fselection_owner_p):
8997         * select.c (Fselection_exists_p):
8998         * select.c (Fget_selection_internal):
8999         * specifier.c:
9000         * symbols.c:
9001         * symbols.c (Fintern):
9002         * symbols.c (Fintern_soft):
9003         * symbols.c (Funintern):
9004         * symbols.c (Fapropos_internal):
9005         * symbols.c (Fset_default):
9006         * syntax.c:
9007         * syntax.c (Fsyntax_table_p):
9008         * syntax.c (Fcopy_syntax_table):
9009         * syntax.c (Fset_syntax_table):
9010         * syntax.c (Fchar_syntax):
9011         * syntax.c (syntax_match):
9012         * syntax.c (Fmatching_paren):
9013         * syntax.c (Fforward_word):
9014         * syntax.c (scan_lists):
9015         * syntax.c (Fscan_lists):
9016         * syntax.c (Fscan_sexps):
9017         * syntax.c (Fparse_partial_sexp):
9018         * toolbar.c (Fcheck_toolbar_button_syntax):
9019         * tooltalk.doc:
9020         * window.c:
9021         * window.c (Fwindowp):
9022         * window.c (Fwindow_live_p):
9023         * window.c (Fwindow_point):
9024         * window.c (Fdelete_window):
9025         * window.c (Fnext_window):
9026         * window.c (Fprevious_window):
9027         * window.c (Fother_window):
9028         * window.c (window_loop):
9029         * window.c (Fget_lru_window):
9030         * window.c (Fsplit_window):
9031         * window.c (Fenlarge_window):
9032         * window.c (Fenlarge_window_pixels):
9033         * window.c (Fshrink_window):
9034         * window.c (Fshrink_window_pixels):
9035         * window.c (change_window_height):
9036         * window.c (Fwindow_configuration_p):
9037         * window.c (Fcurrent_window_configuration):
9038         * window.h:
9039         * casefiddle.c (casify_object):
9040         * casefiddle.c (Fupcase):
9041         * casefiddle.c (Fdowncase):
9042         * casefiddle.c (Fcapitalize):
9043         * casefiddle.c (Fupcase_initials):
9044         * casefiddle.c (casify_region_internal):
9045         * casefiddle.c (casify_region):
9046         * casefiddle.c (Fupcase_region):
9047         * casefiddle.c (Fdowncase_region):
9048         * casefiddle.c (Fcapitalize_region):
9049         * casefiddle.c (Fupcase_initials_region):
9050         * casefiddle.c (Fupcase_word):
9051         * casefiddle.c (Fdowncase_word):
9052         * casefiddle.c (Fcapitalize_word):
9053         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9054         Replace 0 with '\0' when working with bytes.
9055         Replace initial "(" with "\(" in docstrings.
9056
9057 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9058
9059         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9060
9061         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9062
9063 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9064
9065         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9066
9067 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9068
9069         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9070         correctly.
9071
9072 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9073
9074         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9075         (inhibit_auto_save_session): New variable.
9076         (vars_of_fileio): Declare and initialize them.
9077         * fileio.c (Fdo_auto_save): Don't create session file if
9078         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9079
9080 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9081
9082         * sgiplay.c (play_internal): C++ compilability.
9083         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9084         * callproc.c (Fold_call_process_internal):
9085         Remove unused vars `env', `first'.
9086         * scrollbar.c (update_scrollbar_instance):
9087         #### unused var `current_window'.
9088         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9089         etc. within #ifdef NOT_YET.
9090         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9091         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9092         * specifier.c (specifier_instance):
9093         #### unused var `tag'.
9094         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9095
9096 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9097
9098         * fns.c (Fbutlast):
9099         * fns.c (list_sort):
9100         * fns.c (Ffillarray):
9101         * fns.c (bytecode_nconc2):
9102         * fns.c (Fnconc):
9103         * fns.c (mapcar1):
9104         * fns.c (Fmapconcat):
9105         Be pedantically 64-bit correct.  For the time when someone will
9106         want to have a list with length > 2**32.
9107
9108         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9109         Work around MIPSpro compiler bug.
9110
9111         * process-unix.c (unix_kill_child_process): Add snarky comment.
9112         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9113
9114         * config.h.in: Oops, _getpt ==> _getpty
9115
9116 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9117
9118         * config.h.in:
9119         * regex.c:
9120         Use void*, not char*, as return type of alloca().
9121
9122         * alloc.c (free_marker): Side effect inside assert expression!
9123
9124 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9125
9126         * mule-charset.c (Fset_charset_ccl_program): To check
9127         if the given ccl program is valid, use setup_ccl_program()
9128         instead of CHECK_VECTOR().
9129         (Fmake_charset): Likewise.
9130
9131 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9132
9133         * faces.c (get_extent_fragment_face_cache_index):
9134         Fix cachel.merged_faces memory leak.
9135
9136 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9137
9138         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9139         Reset MSB of octets obtained by DECODE_SJIS
9140         because of the incompatibility with Emacs.
9141         (ccl_driver)<CCL_ENCODE_SJIS>:
9142         Set MSB of octets before passing them to
9143         ENCODE_SJIS because of the incompatibility
9144         with Emacs.
9145
9146 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9147
9148         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9149         (DECLARE_LRECORD): Undo the last change.
9150         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9151
9152 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9153
9154         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9155         the implementation to lrecord_implementations_table.
9156
9157 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9158
9159         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9160         initial value of `lrecord_type_##c_name' and
9161         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9162         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9163         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9164         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9165         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9166
9167 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9168
9169         * miscplay.c (sndcnv8S_2mono):
9170         (sndcnv2monounsigned):
9171         (sndcnvULaw_2linear):
9172         (sndcnv16swap):
9173         Remove implementation-defined behavior.
9174
9175 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9176
9177         * input-method-xlib.c: Warning suppression.
9178
9179 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9180
9181         * mule-ccl.c: Sync up with Emacs 21.0.90.
9182         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9183         Do nothing.
9184         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9185         Likewise.
9186         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9187         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9188         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9189         leading char belongs to official 2-dimensional charset.
9190         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9191         write the given character as is.  Otherwise,
9192         if it is a multibyte char, convert it by
9193         non_ascii_set_charptr_emchar, then write it.
9194         (CCL_WRITE_STRING): Likewise.
9195         (ccl_get_compiled_code): New function.
9196         (setup_ccl_program): When ccl_prog is invalid,
9197         return -1.
9198         (Fregister_code_conversion_map): New function.
9199         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9200
9201         * mule-ccl.h: Sync up with Emacs 21.0.90.
9202         (Fregister_ccl_program): export it.
9203
9204         * redisplay-msw.c (separate_textual_runs):
9205         If ccl program is not valid, don't do ccl conversion.
9206
9207         * redisplay-x.c (separate_textual_runs): Ditto.
9208
9209         * file-coding.c (Fmake_coding_system):
9210         When type is ccl and value is vector, register it
9211         with a proper symbol.  And checks whether the
9212         given ccl program is valid.
9213         (mule_decode): When calling ccl_driver, if src indicates
9214         NULL pointer, set an empty string instead.
9215         (mule_encode): Likewise.
9216
9217 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9218
9219         The following large batch of changes gets us back to a state of
9220         C++ compilability.  Extbyte is now a char, which means that
9221         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9222
9223         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9224
9225         * sound.c (Fplay_sound): Type correctness.
9226
9227         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9228         (x_get_window_property): Type correctness.
9229         (receive_incremental_selection): unsigned char ==> Extbyte
9230         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9231         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9232         (Fx_store_cutbuffer_internal): Type correctness.
9233
9234         * process-unix.c (try_to_initialize_subtty): Type correctness.
9235
9236         * objects-x.c (x_print_color_instance): Type correctness.
9237         (x_print_font_instance): Type correctness.
9238         (x_list_fonts): SExtbyte ==> Extbyte.
9239         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9240         (x_find_charset_font): SExtbyte ==> Extbyte.
9241         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9242         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9243         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9244         Use bufbyte_strcmp.
9245
9246         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9247         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9248         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9249         (BYTE_C0_P): Use bit ops for char-signedness safety.
9250         (BYTE_C1_P): Use bit ops for char-signedness safety.
9251         (CHARSET_BY_LEADING_BYTE):
9252         (CHARSET_BY_ATTRIBUTES):
9253         Always use inline function.
9254         Use type_checking_assert.
9255         Hide chlook.
9256
9257         * mule-charset.c (non_ascii_charptr_copy_char):
9258         Modify to work with both ASCII and non-ASCII characters.
9259         Improve docs and variable names.
9260         Replace over-clever fall-through switch with a simple loop.
9261         (Lstream_get_emchar_1):
9262         Replace over-clever fall-through switch with a simple loop.
9263
9264         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9265         Warning suppression.
9266
9267         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9268         the return value of Lstream_getc, which could be EOF as well.
9269
9270         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9271
9272         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9273         APIs can be used on Extbytes without casts.  Risky!
9274         (SExtbyte): Remove.
9275         (UExtbyte): Remove.
9276
9277         * input-method-xlib.c (XIM_init_device):
9278         Use Xlib.h instead of IntrinsicP.h.
9279         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9280         which will break in X11R7.
9281         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9282         to call XRegisterIMInstantiateCallback with correct types.
9283
9284         * gui-x.c (button_item_to_widget_value): Type correctness.
9285
9286         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9287
9288         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9289         (xbm_instantiate_1): Type correctness.
9290         (BUILD_GLYPH_INST):  Type correctness.
9291
9292         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9293
9294         * file-coding.c:
9295         (decode_coding_sjis):
9296         (decode_coding_big5):
9297         (decode_coding_ucs4):
9298         (decode_coding_utf8):
9299         (decode_coding_iso2022):
9300         (decode_coding_no_conversion):
9301         Make all decoding functions take an Extbyte * arg.
9302         (encode_coding_sjis):
9303         (encode_coding_big5):
9304         (encode_coding_ucs4):
9305         (encode_coding_utf8):
9306         (encode_coding_iso2022):
9307         (encode_coding_no_conversion):
9308         Make all encoding functions take a Bufbyte * arg.
9309         Use size_t instead of unsigned int for memory sizes.
9310         Only cast to unsigned char whenever dereferencing Extbyte *.
9311
9312         * doc.c (unparesseuxify_doc_string): Type correctness.
9313
9314         * console-x.c (split_up_display_spec):
9315         Rewrite without using details of internal string representation.
9316         (x_semi_canonicalize_device_connection): Type correctness.
9317
9318         * config.h.in:
9319         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9320         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9321         (HAVE_XFREE386): Removed.
9322
9323         * buffer.h (DEC_CHARPTR): `const' correctness.
9324         (bufbyte_strcmp): New.
9325         (bufbyte_memcmp): New.
9326
9327         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9328
9329         * buffer.h (XCHAR_OR_CHAR_INT):
9330         Always use inline function.
9331         Remove redundant type checking assert() - XINT will abort quite nicely.
9332
9333 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9334
9335         * search.c (Freplace_match): Set newtext to an empty string.
9336
9337 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9338
9339         * s/decosf1-3.h: Remove #include of stropts.h
9340         * s/ptx.h: Remove #include of stropts.h
9341         * s/usg5-4.h: Remove #include of stropts.h
9342         * sysproc.h:
9343         * config.h.in:
9344         Use stropts.h, not sys/stropts.h.
9345         Use strtio.h, not sys/strtio.h.
9346
9347 2000-10-04  Martin Buchholz <martin@xemacs.org>
9348
9349         * XEmacs 21.2.36 is released.
9350
9351 2000-09-21  Andy Piper  <andy@xemacs.org>
9352
9353         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9354         changes still involve copying the widget tree.
9355         (update_widget_face): make sure a change is register in the widget
9356         tree. Call update_tab_widget_face appropriately.
9357         (update_tab_widget_face): ditto.
9358         (x_tab_control_redisplay): make sure non-structural changes still
9359         involve copying the widget tree.
9360
9361 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9362
9363         * lread.c (locate_file): Check the path element is non-nil.
9364
9365 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9366
9367         * lisp.h: Warning suppression for SCO compilers.
9368
9369         * redisplay-tty.c (reset_tty_modes): Fix crash.
9370         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9371
9372 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9373
9374         Big signal/process handling overhaul.  Bugs fixed:
9375         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9376         M-x comint-kill-subjob should work for both values nil and t of
9377         process-connection-type. It was broken on most platforms.
9378         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9379         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9380         * process-unix.c: Signal/Process handling overhaul.
9381         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9382         (allocate_pty): Use all available modern methods of allocating
9383         ptys, falling back to old style BSD allocation as a last resort.
9384         Use allegedly more secure Unix98 pty allocation by default.
9385         (allocate_pty_the_old_fashioned_way): New. the last resort.
9386         (unix_create_process): Push ptem, ldterm, ttcompat where
9387         available.  Autoconfiscate.
9388         (try_to_initialize_subtty): New.
9389         (unix_kill_child_process): Proper signal handling for ptys on most
9390         platforms, using special knowledge of AIX, BSD, etc...
9391         (unix_create_process): Always disconnect_controlling_terminal() for
9392         subprocesses, whether using ptys or not.
9393         * process.h: Remove old getpt-dependent PTY code.
9394         * process.c (Fprocess_send_signal): New, obvious generic function.
9395         (decode_signal): New.
9396         (Finterrupt_process):
9397         (Fkill_process):
9398         (Fquit_process):
9399         (Fstop_process):
9400         (Fcontinue_process):
9401         (Fsignal_process): Use decode_signal.
9402         (process_send_signal):
9403         Many docstring corrections.
9404         Allow any signal to be sent to a process object.
9405         * config.h.in: Add symbols for big signal/process overhaul.
9406         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9407         * sysproc.h: Include process-related headers, where available:
9408         sys/stropts.h sys/strtio.h pty.h libutil.h
9409         * s/irix4-0.h:
9410         * s/irix5-0.h:
9411         * s/cygwin32.h:
9412         * s/gnu.h:
9413         * s/linux.h:
9414         * s/hpux.h:
9415         * s/aix3-1.h:
9416         Remove old S&M pty stuff.
9417         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9418         * systty.h: Simplify cpp hackery, improve comments.
9419         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9420
9421         * editfns.c (Fformat_time_string):
9422         Be a little more paranoid with the return value of ctime.
9423
9424         * fileio.c (check_executable):
9425         (check_writable):
9426         Use symbolic constants X_OK, W_OK.
9427
9428         * console-x.c (split_up_display_spec): Fix a warning.
9429
9430 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9431
9432         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9433         * ntproc.c (sys_spawnve): make_string ==> build_string
9434         Small clarity improvements.
9435
9436 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9437
9438         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9439
9440         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9441
9442         * config.h.in (HAVE_STRCASECMP): Remove.
9443
9444 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9445
9446         * redisplay-output.c (redisplay_output_pixmap):
9447         Cleaner and possibly more 64-bit correct code.
9448
9449 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9450
9451         * dumper.c (pdump_load_finish): move restoration of
9452         `noninteractive1' to emacs.c (main_1).
9453         * emacs.c (main_1): protect LISP-visible command-line flags
9454         from pdump_load().
9455
9456 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9457
9458         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9459         DUMP_TARGET instead of literal program names.
9460
9461 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9462
9463         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9464
9465 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9466
9467         * *: Spelling mega-patch
9468
9469 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9470
9471         * fns.c (bad_bad_turtle):
9472         Delete "Eek!" comment, since we fixed the bug to which it refers.
9473
9474 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9475
9476         * alloca.c: Replace REGISTER with register.
9477
9478 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9479
9480         * file-coding.c (ucs_to_char): Use countof.
9481
9482 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9483
9484         * file-coding.c: (ucs_to_char):
9485         (complex_vars_of_file_coding):
9486         Use countof instead of sizeof.
9487         Use CHECK_NATNUM instead of CHECK_INT.
9488
9489         * sysdep.c (strcasecmp): Remove.
9490         * device-x.c (ascii_strcasecmp): New.
9491         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9492         Avoid using non-standard non-portable strcasecmp.
9493
9494 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9495
9496         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9497         * font-lock.c: remove reference to emacsfns.h.
9498         * search.c: small doc improvement.
9499         * event-Xt.c: correct file names in comments.
9500         * console-x.h Correct file names in comments.
9501         * frame.c: Correct file names in comments.
9502         * event-stream.c: remove Energize from comments.
9503
9504 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9505
9506         * symeval.h (DEFERROR_STANDARD):
9507         (DEFERROR):
9508         (DEFSYMBOL):
9509         (DEFSYMBOL_NO_DUMP):
9510         (DEFSYMBOL_MULTIWORD_PREDICATE):
9511         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9512         (DEFKEYWORD):
9513         The construct &##name is not sensible C.
9514         Fixes compilation errors with Unixware native compiler.
9515
9516 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9517
9518         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9519         (next_frame_internal): Removed.  We now just have next_frame.
9520         (next_frame):
9521         Write a simpler and cleaner one-pass algorithm.
9522         Remove called_from_delete_device arg and #ifdefed-out code.
9523         (previous_frame):
9524         Renamed from prev_frame.  Update callers.
9525         Cleaned up to have an analogous implementation to next_frame.
9526         (other_visible_frames_internal): Remove the
9527         called_from_delete_device bogus arg, and hence, remove this
9528         function.  Just use other_visible_frames().
9529
9530         * window.c (Fnext_window):
9531         Prettify docstring.
9532         Since next_frame() is guaranteed to return a frame, remove check
9533         for nil inserted in previous patch.
9534         (Fprevious_window):
9535         Prettify docstring.
9536         Make code look more like Fnext_window.
9537         (window_loop):
9538         Respect the `console' arg when iterating through windows.
9539         Fixes bug: (get-buffer-window buffer t device) not respecting
9540         the `device' arg.
9541         This function needs more work, as others have pointed out.
9542
9543         * frame.h: Rename prev_frame to previous_frame.
9544         device_matches_console_spec no longer takes a `frame' arg.
9545
9546         * s/gnu.h:
9547         * s/linux.h:
9548         * s/hpux.h:
9549         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9550         From "Golubev I. N." <gin@mo.msk.ru>.
9551
9552         * make-src-depend: Fix typo.
9553
9554 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9555
9556         * window.c (Fnext_window):
9557         next_frame() might return nil, not a frame.
9558         Fixes this crash:
9559         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9560
9561         * frame.c (next_frame_internal):
9562         We've passed a frame if we've passed its device.
9563         Fixes this crash:
9564         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9565 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9566
9567 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9568
9569         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9570         Allow option to suppress accelerators in menu/dialog items.
9571         (populate_or_checksum_helper): Pass dialog title through above.
9572
9573 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9574
9575         * event-msw.c (mswindows_key_to_emacs_keysym):
9576         Add "pause" key, fix "menu" key.
9577
9578 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9579
9580         * eval.c (reinit_vars_of_eval):
9581         Increase max_lisp_eval_depth to 1000,
9582         required for thai-xtis.el to byte-compile under some circumstances.
9583
9584 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9585
9586         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9587         From Kenichi Handa.
9588
9589 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9590
9591         * make-src-depend: Make the generated Makefiles smaller.
9592
9593         * s/hpux.h (SETUP_SLAVE_PTY):
9594         Provide a %d in the format string for the errno argument.
9595
9596         * editfns.c (Ftemp_directory):
9597         Warning fix.
9598         Avoid buffer overrun on very long file name.
9599
9600         * input-method-xlib.c (XIM_init_device):
9601         6th parameter of XRegisterIMInstantiateCallback has different
9602         pointer types on different OSes, so simply cast to (void *).
9603
9604         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9605
9606         * sysdll.c (dll_open):
9607         shl_load will hang hard if passed a NULL filename.
9608         Simply return NULL for compatibility with dlopen.
9609         * sysdll.c: Conform to XEmacs coding standards.
9610
9611         * sysdep.c (get_pty_max_bytes):
9612         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9613
9614 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9615
9616         * tooltalk.c: Add #include <syssignal.h>
9617
9618 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9619
9620         * s/hpux.h: Don't use undefined function sigunblock().
9621
9622 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9623
9624         * config.h.in: Add HAVE_BALLOON_HELP.
9625         * emacs.c: Use HAVE_BALLOON_HELP.
9626         * Makefile.in.in (x_objs):
9627         Make Balloon Help conditional on finding shape.h.
9628
9629 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9630
9631         * syntax.c (regex_emacs_buffer_p): New variable.
9632         * syntax.h (regex_emacs_buffer_p): extern.
9633         * search.c (looking_at_1):
9634         (string_match_1):
9635         (fast_string_match):
9636         (search_buffer): Set regex_emacs_buffer_p.
9637         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9638         when before_dot, at_dot, after_dot.
9639
9640 2000-08-23  Andy Piper  <andy@xemacs.org>
9641
9642         * gui-x.c (popup_selection_callback): Only set action_occurred
9643         when we really have an image instance.
9644         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9645
9646 2000-08-23  Andy Piper  <andy@xemacs.org>
9647
9648         * gui-msw.c (mswindows_handle_gui_wm_command): set
9649         action_occurred.
9650         * gui-x.c (popup_selection_callback): ditto.
9651
9652         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9653         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9654         (struct Lisp_Image_Instance): add action_occurred flag.
9655
9656         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9657         (image_instance_changed): ditto.
9658         (reset_frame_subwindow_instance_cache): only unmap windows - do
9659         not remove them from the cache also.
9660
9661         * glyphs-widget.c (tab_control_update): better debug.
9662         (progress_gauge_update): ditto.
9663         (layout_update): ditto.
9664         (layout_instantiate): ditto.
9665         (tab_control_order_only_changed): cope with null pending items.
9666
9667         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9668         debug. Force selection of an item when an action occurred. Cope
9669         with null pending_items.
9670         (mswindows_progress_gauge_redisplay): better debug.
9671         * glyphs-x.c (x_tab_control_redisplay): ditto.
9672
9673         * redisplay.c (redisplay_frame): reset the frame cache if the
9674         frame is garbaged.
9675
9676         * window.c (Fset_window_configuration): potentially re-enable
9677         frame cache reset.
9678         (window_unmap_subwindows): need to finalize instances here since
9679         it is only used in mark_window_as_deleted.
9680
9681 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9682
9683         * nas.c (SndOpenDataForReading):
9684         nas.c (WaveOpenDataForReading):
9685         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9686         Somehow escaped from the 2000-08-14 patch.
9687
9688 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9689
9690         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9691         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9692
9693 2000-08-21  Andy Piper  <andy@xemacs.org>
9694
9695         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9696         window if it is not already displayed.
9697
9698         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9699         it is not already displayed.
9700
9701         * window.c (Fset_window_configuration): don't reset the frame
9702         cache.
9703
9704         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9705         instances from the frame cache if we are actually finalizing them.
9706         (reset_frame_subwindow_instance_cache): reset frame cache only
9707         after unmapping everything.
9708         (map_subwindow): set displayed flag after mapping.
9709
9710 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9711
9712         * data.c (indirect_function):
9713         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9714
9715         * eval.c (function_argcount):
9716         Use original function when signaling errors.
9717
9718 2000-08-18  Andy Piper  <andy@xemacs.org>
9719
9720         * frame.c (delete_frame_internal): use new
9721         free_frame_subwindow_instances name.
9722
9723         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9724         (add_tab_item): make return type correct.
9725         (mswindows_tab_control_instantiate): assert index of tab.
9726         (mswindows_tab_control_redisplay): Re-code to use
9727         gui_item_equal_sans_selected and gui_item_list_find_selected.
9728
9729         * glyphs-widget.c (tab_control_update): Correct comment.
9730
9731         * window.c (window_unmap_subwindows): use new
9732         unmap_subwindow_instance_cache_mapper.
9733         (window_unmap_subwindows_cache_mapper): deleted.
9734         (Fset_window_configuration): comparisons should now be with
9735         EQ. Preserve the subwindow instance cache across configuration
9736         changes.
9737         (allocate_window): ditto.
9738         (make_dummy_parent): ditto.
9739
9740         * glyphs.c (free_frame_subwindow_instances): rename from
9741         free_frame_subwindow_instance_cache. finalize all instances rather
9742         than just those in the display cache.
9743         (finalize_all_subwindow_instances): walk windows unmapping and
9744         finalizing subwindows.
9745         (unmap_subwindow_instance_cache_mapper): moved from
9746         window.c. Allow finalization as well as unmapping.
9747
9748         * gui.c (gui_item_list_find_selected): new function.
9749
9750         * gui.h (gui_item_list_find_selected): declare.
9751
9752         * glyphs-x.c (x_tab_control_redisplay): pick tab
9753         explicitly. Re-code to use gui_item_equal_sans_selected and
9754         gui_item_list_find_selected.
9755
9756         * glyphs-x.h: add lwlib-utils.h
9757
9758         * buffer.c (Frecord_buffer): undo previous change.
9759
9760 2000-08-09  Vin Shelton  <acs@xemacs.org>
9761
9762         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9763         possible.  Create temporary files more securely.  The patch was
9764         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9765         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9766         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9767         for details.
9768
9769 2000-08-07  Ben Wing  <ben@xemacs.org>
9770
9771         * getloadavg.c: remove duplicate (and windows-breaking)
9772         includes of fcntl.h and sys/file.h.
9773
9774         * nt.c: remove duplicate getloadavg() definition.
9775
9776         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9777         encodings.
9778
9779 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9780
9781         * eval.c (function_argcount): If function needs to be autoloaded
9782         actually use the loaded definition.
9783         GCPRO function.
9784
9785 2000-08-05  Ben Wing  <ben@xemacs.org>
9786
9787         * getloadavg.c: add prototype for getloadavg().  remove
9788         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9789         of the code).  remove duplicate header includes.
9790
9791         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9792
9793         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9794         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9795         useful load average.
9796
9797         * alloc.c (reinit_alloc_once_early): removed references to
9798         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9799         the lisp vars are the only things referencing the malloc_sbrk_*
9800         vars, and they were already if 0'd out.  these vars only exist
9801         in the older malloc.c, which is basically unused, and they're
9802         only for informational purposes.
9803
9804         * m\*.h: removed useless VIRT_ADDR_VARIES.
9805
9806         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9807
9808 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9809
9810         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9811         color if the image is a mono pixmap.
9812
9813 2000-07-30  Ben Wing  <ben@xemacs.org>
9814
9815         * Makefile.in.in (release):
9816         Remove stray @.
9817
9818         * buffer.c (directory_is_current_directory):
9819         * dired-msw.c (mswindows_get_files):
9820         * dired.c:
9821         * dired.c (Fdirectory_files):
9822         * dired.c (file_name_completion_stat):
9823         * dired.c (Ffile_attributes):
9824         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9825         preprocessor tricks, to avoid problems on some machines
9826         (e.g. SCO).
9827
9828         * callproc.c (egetenv): GC docs.
9829
9830         * console-msw.h:
9831         * console-msw.h (struct mswindows_dialog_id):
9832         * lrecord.h (lrecord_type):
9833         New object for use with MSW dialogs.
9834
9835         * console.h (struct console_methods):
9836         New enable/disable frame methods, for proper modal dialogs.
9837
9838         * device-msw.c (msprinter_default_printer): Fix to follow
9839         proper Mule conventions.
9840
9841         * device-msw.c:
9842         * device-msw.c (signal_open_printer_error):
9843         * device-msw.c (msprinter_init_device):
9844         * device-msw.c (ensure_not_printing):
9845         * device-msw.c (plist_get_margin):
9846         * device-msw.c (Fmsprinter_select_settings):
9847         * device-msw.c (finalize_devmode):
9848         * device-msw.c (Fmsprinter_settings_despecialize):
9849         * device-msw.c (signal_enum_priner_error):
9850         * extents.c (decode_extent):
9851         * extents.c (decode_map_extents_flags):
9852         * extents.c (decode_extent_at_flag):
9853         * extents.c (Fextent_at):
9854         * extents.c (Fextents_at):
9855         * extents.c (symbol_to_glyph_layout):
9856         [[[[2]]]] Use structured errors.
9857
9858         * dialog-msw.c:
9859         * dialog-msw.c (mswindows_is_dialog_msg):
9860         * dialog-msw.c (mark_mswindows_dialog_id):
9861         * dialog-msw.c (dialog_proc):
9862         * dialog-msw.c (handle_question_dialog_box):
9863         * dialog-msw.c (syms_of_dialog_mswindows):
9864         Define new object to clean up marking; use it as a dialog identifier.
9865         Call new delete-dialog-box-hook.
9866
9867         * dialog-x.c (dbox_selection_callback):
9868         * dialog-x.c (dbox_descriptor_to_widget_value):
9869         * dialog-x.c (x_make_dialog_box_internal):
9870         Call new delete-dialog-box-hook.
9871         Return an id.
9872
9873         * dialog.c:
9874         * dialog.c (syms_of_dialog):
9875         * dialog.c (vars_of_dialog):
9876         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9877
9878         * eval.c:
9879         * eval.c (signal_call_debugger):
9880         when noninteractive, output stack traces on the console instead
9881         of in a (never-seen) buffer.
9882
9883         * eval.c (signal_type_error):
9884         * eval.c (invalid_argument_2):
9885         * lisp.h:
9886         new funs for use w/structured errors.
9887
9888         * event-Xt.c:
9889         * event-Xt.c (x_to_emacs_keysym):
9890         * event-Xt.c (describe_event):
9891         * event-Xt.c (emacs_Xt_event_handler):
9892         * event-Xt.c (vars_of_event_Xt):
9893         * event-msw.c:
9894         * event-msw.c (mswindows_wnd_proc):
9895         * event-msw.c (vars_of_event_mswindows):
9896         rename {x,mswindows}-debug-events to debug-{}-events for
9897         consistency with other debug-foo variables.
9898
9899         * event-stream.c:
9900         document next-event more clearly.
9901
9902         * fileio.c (Ffile_name_directory):
9903         * fileio.c (Ffile_name_nondirectory):
9904         * fileio.c (Funhandled_file_name_directory):
9905         * fileio.c (file_name_as_directory):
9906         * fileio.c (Ffile_name_as_directory):
9907         * fileio.c (directory_file_name):
9908         * fileio.c (Fdirectory_file_name):
9909         * fileio.c (Fmake_temp_name):
9910         * fileio.c (Ffile_truename):
9911         * fileio.c (Fsubstitute_in_file_name):
9912         * fileio.c (expand_and_dir_to_file):
9913         * fileio.c (barf_or_query_if_file_exists):
9914         * fileio.c (check_executable):
9915         * fileio.c (Ffile_exists_p):
9916         * fileio.c (Ffile_writable_p):
9917         * fileio.c (Ffile_directory_p):
9918         * fileio.c (Ffile_regular_p):
9919         * fileio.c (Ffile_modes):
9920         * fileio.c (Ffile_newer_than_file_p):
9921         * fileio.c (Fverify_visited_file_modtime):
9922         * fileio.c (Fset_visited_file_modtime):
9923         * fileio.c (auto_save_1):
9924         (1). (2).
9925         fix up gcpro's.
9926
9927         * frame-msw.c:
9928         * frame-msw.c (mswindows_init_frame_1):
9929         * frame-msw.c (mswindows_enable_frame):
9930         * frame-msw.c (error_frame_unsizable):
9931         * frame-msw.c (msprinter_init_frame_1):
9932         * frame-msw.c (msprinter_init_frame_3):
9933         * frame-msw.c (console_type_create_frame_mswindows):
9934         (2).
9935         implement new enable/disable frame methods.
9936
9937         * frame-x.c:
9938         * frame-x.c (x_enable_frame):
9939         * frame-x.c (console_type_create_frame_x):
9940         implement new enable/disable frame methods.
9941
9942         * frame.c:
9943         * frame.c (Fdisable_frame):
9944         * frame.c (syms_of_frame):
9945         * frame.h (struct frame):
9946         implement new enable/disable frame methods/functions.
9947
9948         * general-slots.h:
9949         add initial-focus.
9950
9951         * glyphs-msw.c (mswindows_widget_instantiate):
9952         comment that initial-focus should be implemented.
9953
9954         * glyphs-widget.c:
9955         * glyphs-widget.c (check_valid_instantiator):
9956         * glyphs-widget.c (check_valid_orientation):
9957         * glyphs-widget.c (check_valid_tab_orientation):
9958         * glyphs-widget.c (check_valid_justification):
9959         * glyphs-widget.c (check_valid_border):
9960         * glyphs-widget.c (check_valid_callback):
9961         * glyphs-widget.c (check_valid_int_or_function):
9962         * glyphs-widget.c (check_valid_string_or_vector):
9963         * glyphs-widget.c (check_valid_item_list_1):
9964         * glyphs-widget.c (widget_validate):
9965         * glyphs-widget.c (combo_box_validate):
9966         * glyphs-widget.c (widget_instantiate):
9967         * glyphs-widget.c (syms_of_glyphs_widget):
9968         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9969         * glyphs-widget.c (image_instantiator_combo_box):
9970         * glyphs-widget.c (image_instantiator_scrollbar):
9971         * glyphs-widget.c (image_instantiator_tab_control):
9972         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9973         (2).
9974         support (unimplemented) keyword initial-focus.
9975         reindent long macros.
9976
9977         * glyphs-x.c (x_redisplay_widget):
9978         * glyphs-x.c (x_button_instantiate):
9979         * glyphs-x.c (x_button_redisplay):
9980         * glyphs-x.c (x_progress_gauge_instantiate):
9981         * glyphs-x.c (x_edit_field_instantiate):
9982         * glyphs-x.c (x_combo_box_instantiate):
9983         * glyphs-x.c (x_tab_control_instantiate):
9984         * glyphs-x.c (x_label_instantiate):
9985         * gui-x.c:
9986         * gui-x.c (button_item_to_widget_value):
9987         * gui-x.c (gui_items_to_widget_values_1):
9988         * gui-x.c (gui_item_children_to_widget_values):
9989         * gui-x.c (gui_items_to_widget_values):
9990         * gui-x.h:
9991         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9992         add new flag to gui-parsing routines to indicate whether
9993         accelerator specs should be supported.
9994
9995         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9996
9997         * glyphs.h (struct Lisp_Image_Instance):
9998         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9999         add initial-focus flag.
10000
10001         * gui.c:
10002         * gui.c (syms_of_gui):
10003         * gui.c (vars_of_gui):
10004         clean up menu-no-selection-hook.
10005
10006         * gui.h:
10007         support delete-dialog-box-hook.
10008
10009         * lread.c (Fload_internal):
10010         * lread.c (locate_file_in_directory_mapper):
10011         (1).
10012
10013         * lrecord.h:
10014         * lrecord.h (struct toolbar_button):
10015         * lrecord.h (syms_of_toolbar):
10016         document how to create a new object.
10017
10018         * menubar-msw.c (mswindows_char_is_accelerator):
10019         may be called on frames w/o menus.
10020
10021         * menubar.c (vars_of_menubar):
10022         clean up :filter docs.
10023
10024         * nt.c (readdir):
10025         * ntproc.c:
10026         (1).
10027
10028         * process-nt.c:
10029         * process-nt.c (validate_signal_number):
10030         * process-nt.c (signal_cannot_launch):
10031         * process-nt.c (nt_create_process):
10032         * process-nt.c (nt_send_process):
10033         * process-nt.c (nt_kill_child_process):
10034         * process-nt.c (nt_open_network_stream):
10035         * process-nt.c (syms_of_process_nt):
10036         (2).
10037         delete quote-handling.  call new lisp code that does it better.
10038
10039         * process-unix.c (connect_to_file_descriptor):
10040         * process-unix.c (allocate_pty):
10041         * process-unix.c (unix_send_process):
10042         * process-unix.c (unix_kill_child_process):
10043         * process-unix.c (unix_open_network_stream):
10044         * process-unix.c (unix_open_multicast_group):
10045         (1). (2).
10046
10047         * process.c:
10048         * process.c (Fstart_process_internal):
10049         (2).  need to canonicalize process path even if absolute.
10050
10051         * select-msw.c (symbol_to_ms_cf):
10052         * select-msw.c (ms_cf_to_symbol):
10053         * select-msw.c (cf_is_autofreed):
10054         * select-msw.c (mswindows_destroy_selection):
10055         * select.c:
10056         * select.c (syms_of_select):
10057         * select.h:
10058         support dibv5, fix bugs. (from Mike Alexander)
10059
10060         * select.c (Fget_selection_internal):
10061         * select.c (select_convert_out):
10062
10063         * sysdep.c:
10064         * sysdep.c (xemacs_stat):
10065         renamed.
10066
10067         * sysdep.c (mkdir):
10068         * sysdep.c (rmdir):
10069         but keep original stat() here because we provide encapsulation
10070         around these funs.
10071
10072         * sysfile.h:
10073         * sysfile.h (fstat):
10074         remove stat garbage.
10075
10076         * syswindows.h:
10077         fix X/MSW conflict.
10078         don't include tchar.h.  it's inappropriate because it makes
10079         compile-time distinctions when we want runtime distinctions.
10080         (we provide our own tchar replacements)
10081
10082         * toolbar.c:
10083         use default object printer for toolbar-button.
10084
10085         * unexcw.c:
10086         make sure we don't encapsulate.
10087
10088         * window.c (vars_of_window):
10089         emphasize that temp-buffer-show-hook is obsolete.
10090
10091 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10092
10093         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10094         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10095
10096         * events.c (Fevent_timestamp_lessp):
10097         Not 64-bit clean.  Use EMACS_INT, not int.
10098
10099 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10100
10101         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10102         unsigned int and changed the last enum to
10103         lrecord_type_last_built_in_type.
10104         (lrecord_implementations_table): changed prototype to know how
10105         long the array is supposed to be.
10106         (lrecord_type_count): new unsigned int to keep track of the
10107         current number of lisp lrecord types.
10108         (DEFINE_EXTERNAL_LRECORD):
10109         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10110         dynamic-modules to declare new lisp types. They are the same
10111         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10112         int for each new type, and increment lrecord_type_count by 1.
10113
10114         * alloc.c (lrecord_implementations_table): Changed to reference
10115         lrecord_type_last_built_in_type for the size of the array.
10116         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10117
10118 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10119
10120         * glyphs.h (check_valid_item_list): Renamed from
10121         check_valid_item_list_1.
10122
10123 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10124
10125         * select.c (Qselect_coerce): New.
10126         * select.c (Vselection_coercion_alist): New.
10127         * select.c (syms_of_select): Declare.
10128         * select.c (get-selection-internal): Use it.
10129         Use the new select-coerce functionality.
10130
10131         * select.c (select_coerce): New.
10132         * select.h (select_coerce): Declare.
10133         New function to coerce one type of data into another.
10134
10135 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10136
10137         * callproc.c (Fcall_process_internal):
10138         (Fcall_process_internal):
10139         * process-unix.c (unix_create_process):
10140         Save and restore the value of errno, so that error messages are accurate.
10141
10142 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10143
10144         * elhash.c (print_hash_table):
10145         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10146         Prettify docstrings and indentation.
10147
10148 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10149
10150         * window.c (Fwindow_pixel_edges): Subtract frame border and
10151         gutter size.
10152
10153 2000-07-31  Andy Piper  <andy@xemacs.org>
10154
10155         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10156         will acknowledge the change.
10157
10158         * glyphs.h: declare tab_control_order_only_changed.
10159
10160         * glyphs-x.c (x_tab_control_redisplay): use
10161         tab_control_order_only_changed.
10162
10163         * glyphs-widget.c (tab_control_order_only_changed): new function.
10164
10165         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10166         tab_control_order_only_changed.
10167
10168         * gui.c (gui_item_equal_sans_selected): new function.
10169         (gui_item_equal): use it.
10170
10171         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10172         :properties in favor of :items..
10173
10174         * glyphs-widget.c (check_valid_item_list): rename from
10175         check_valid_item_list_1.
10176         (check_valid_item_list_1): renamed.
10177         (combo_box_validate): deprecate :properties in favor of :items.
10178         (widget_instantiate): ditto.
10179         (tab_control_update): ditto.
10180         (image_instantiator_combo_box): ditto.
10181         (image_instantiator_tree_view): ditto.
10182         (image_instantiator_tab_control): ditto.
10183         (layout_post_instantiate): remove dead code.
10184
10185         * print.c (debug_print_no_newline): only write to debugger if in
10186         WIN32_NATIVE.
10187
10188         * elhash.c (Fmake_hash_table): update doc string.
10189
10190         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10191         messages whilst in GC. This at least stops XEmacs crashing but has
10192         the potential for wierd behaviour.
10193
10194 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10195
10196         * config.h.in:
10197         Make existence of s&m files optional.
10198
10199         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10200         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10201         * s/gnu.h: Remove HAVE_GETLOADAVG.
10202         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10203         * s/sol2.h: Remove HAVE_GETLOADAVG.
10204         * lisp.h: Remove getloadavg() declaration.
10205         * fns.c:
10206         Include <sys/loadavg.h> if available.
10207         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10208         * config.h.in:  Group together getloadavg()-related macros.
10209         Use only configure-time tests to detect getloadavg().
10210
10211 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10212
10213         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10214
10215 2000-07-25  Andy Piper  <andy@xemacs.org>
10216
10217         * syswindows.h: add tchar.h for native builds.
10218
10219         * frame.c (syms_of_frame): remove set-glyph-image.
10220
10221         * general-slots.h: add Qset_glyph_image.
10222
10223         * glyphs-widget.c (layout_update): add domain arg to
10224         set-glyph-image.
10225         (syms_of_glyphs_widget): remove set-glyph-image.
10226
10227 2000-07-23  Ben Wing  <ben@xemacs.org>
10228
10229         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10230         Vpopup_frame_list.
10231
10232 2000-07-22  Andy Piper  <andy@xemacs.org>
10233
10234         * symsinit.h: add syms_of_win32().
10235
10236         * gui-msw.c (syms_of_gui_mswindows): remove
10237         Fmswindows_shell_execute.
10238         (Fmswindows_shell_execute): moved to win32.c.
10239
10240         * emacs.c (main_1): add syms_of_win32 ().
10241
10242         * win32.c (init_potentially_nonexistent_functions): rewrite in
10243         compiler-friendly terms.
10244         (Fmswindows_shell_execute): move here from gui-msw.c.
10245         (syms_of_win32): new.
10246
10247         * device-msw.c (Fmswindows_printer_list): clean up args to
10248         EnumPrinters.
10249         Don't include tchar under cygwin or mingw.
10250         (msprinter_default_printer): make cygwin-friendly.
10251
10252 2000-07-21  Andy Piper  <andy@xemacs.org>
10253
10254         * glyphs-widget.c (image_instantiator_tree_view): use tab
10255         control's update function.
10256         (layout_property): new function. Retrieve items.
10257
10258         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10259         function. Re-populate the tree view from the pending items.
10260
10261         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10262         is designated the parent if the domain is an image instance. This
10263         is needed so that dirtiness can be cascade up the hierarchy and
10264         thus for layout children to be redisplayed correctly.
10265         (allocate_image_instance): rename glyph -> parent.
10266
10267         * redisplay.h: change redisplay_output_layout signature.
10268
10269         * redisplay-msw.c (mswindows_output_display_block): use domain
10270         arg.
10271
10272         * redisplay-x.c (x_output_display_block): use domain arg.
10273
10274 2000-07-10  Andy Piper  <andy@xemacs.org>
10275
10276         * window.c (Fset_window_configuration): add comment.
10277
10278         * redisplay-output.c (compare_runes):
10279         (redisplay_output_subwindow): redisplay rather than update subwindow.
10280         (redisplay_output_layout): ditto.
10281
10282         * redisplay-msw.c (mswindows_frame_output_end):
10283         (mswindows_frame_output_end): make defer window pos optional.
10284
10285         * lisp.h: add Flast.
10286
10287         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10288         normalize method. Change update method to be for changed
10289         instantiators. Add redisplay method. Change signature of layout
10290         method.
10291         (struct Lisp_Image_Instance): add instantiator.
10292         (IMAGE_INSTANCE_INSTANTIATOR): new.
10293         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10294         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10295         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10296
10297         * glyphs.c:
10298         (find_instantiator_differences): new function.
10299         (Fset_instantiator_property): new convenience function.
10300         (check_image_instance_structure): strictly check for vector
10301         instantiators.
10302         (normalize_image_instantiator): make non-static.
10303         (instantiate_image_instantiator): pass on dest_mask and use new
10304         signatures for image_instance_layout and friends.
10305         (mark_image_instance): mark the instantiator. Mark the subwindow
10306         face not the widget face.
10307         (image_instance_equal): add instantiator.
10308         (image_instance_hash): ditto.
10309         (allocate_image_instance): ditto.
10310         (Fset_image_instance_property): removed.
10311         (Fimage_instance_file_name): ditto.
10312         (Fcolorize_image_instance): ditto.
10313         (image_instance_layout): add offsets to be set.
10314         (update_image_instance): new function. update an image instance
10315         from its changed instantiator.
10316         (inherit_normalize): add dest_mask.
10317         (xbm_normalize): ditto.
10318         (xface_normalize): ditto.
10319         (xpm_normalize): ditto.
10320         (text_update): set_property -> update.
10321         (image_instantiate): use the glyph identity as a hash key, not the
10322         instantiator.
10323         (glyph_width): use new image_instance_layout signature.
10324         (glyph_ascent): ditto.
10325         (glyph_descent): ditto.
10326         (glyph_height): ditto.
10327         (glyph_query_geometry): ressurrect.
10328         (glyph_layout): ditto.
10329         (redisplay_subwindow): update -> redisplay.
10330         (syms_of_glyphs): add Fset_instantiator_property.
10331         (image_instantiator_format_create): set_property -> update.
10332
10333         * glyphs-x.c:
10334         (autodetect_normalize): add dest_maks to signature.
10335         (x_redisplay_subwindow): update -> redisplay.
10336         (x_redisplay_widget): ditto.
10337         (x_button_redisplay): ditto.
10338         (x_progress_gauge_redisplay): ditto.
10339         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10340         stacking order.
10341         (console_type_create_glyphs_x): update -> redisplay.
10342         (image_instantiator_format_create_glyphs_x): ditto.
10343
10344         * glyphs-widget.c:
10345         (check_valid_instantiator): disallow glyphs in the instantiator,
10346         they must now be vectors.
10347         (check_valid_instantiator_list): ditto.
10348         (glyph_instantiator_to_glyph): use internal symbol rather than
10349         intern.
10350         (widget_update): renamed from widget_set_property. Call cascaded
10351         update methods.
10352         (redisplay_widget): renamed from update_widget.
10353         (widget_layout): image_instance_layout now takes position as well
10354         as size.
10355         (widget_normalize): ditto.
10356         (widget_instantiate): ditto.
10357         (tab_control_query_geometry) ditto.:
10358         (tab_control_update): renamed from tab_control_set_property.
10359         (progress_gauge_update): set_property -> update.
10360         (layout_normalize): rewrite so that child instantiators are
10361         normalized also.
10362         (layout_update): new function. Create glyphs from the normalized
10363         children and cope with any other layout keywords. We do not
10364         instantiate children here that will be take care of by
10365         redisplay_output_layout.
10366         (layout_instantiate): call layout_update and not much else.
10367         (layout_post_instantiate): not sure whether this is needed
10368         anymore.
10369         (layout_query_geometry): query glyph geometry rather than
10370         image_instance geometry.
10371         (layout_layout): set offsets from pass in parameters. Use glyph
10372         geometry and layout functions rather than image instance ones.
10373         (native_layout_layout): ditto.
10374         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10375         (image_instantiator_widget): set_property -> update.
10376         (image_instantiator_buttons): ditto.
10377         (image_instantiator_progress_guage): ditto.
10378         (image_instantiator_tab_control): ditto.
10379         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10380         (image_instantiator_layout): add update method.
10381
10382         * glyphs-msw.c (bmp_normalize):
10383         (mswindows_resource_normalize): add dest_mask so that it can be
10384         proprogated by layout_normalize.
10385         (begin_defer_window_pos): make optional because it may not be the
10386         right thing to do and it introduces differences with X.
10387         (mswindows_unmap_subwindow): ditto.
10388         (mswindows_map_subwindow): ditto.
10389         (mswindows_redisplay_subwindow): renamed from
10390         mswindows_update_subwindow.
10391         (mswindows_redisplay_widget): ditto.
10392         (mswindows_button_redisplay): renamed from
10393         mswindows_button_update. Update is now what the instantiation
10394         function does for a changed instantiator.
10395         (mswindows_progress_gauge_instantiate): set the progress value
10396         here if appropriate.
10397         (mswindows_tab_control_redisplay): cope with re-ordering of the
10398         members of the tab widget by simply selecting the new top
10399         widget. This makes things appear ok if you click on a tab.
10400         (mswindows_combo_box_instantiate): image_instance_layout now takes
10401         position as well as size.
10402         (mswindows_progress_gauge_redisplay): renamed from
10403         mswindows_progress_gauge_update.
10404         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10405         (image_instantiator_format_create_glyphs_mswindows): ditto.
10406
10407         * glyphs-eimage.c (jpeg_normalize):
10408         (gif_normalize):
10409         (png_normalize):
10410         (tiff_normalize): add dest_mask so that it can be proprogated by
10411         layout_normalize.
10412
10413         * elhash.c:
10414         (print_hash_table):
10415         (hash_table_weakness_validate):
10416         (decode_hash_table_weakness):
10417         (Fhash_table_weakness):
10418         (Fhash_table_type):
10419         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10420
10421         * console.h (struct console_methods): move update_* to
10422         redisplay_*.
10423
10424 2000-07-20  Ben Wing  <ben@xemacs.org>
10425
10426         * *.[ch] (XSETOBJ): remove unused middle argument.
10427         lisp-disunion.h: correct wrap_object() to one argument.
10428
10429 2000-07-15  Ben Wing  <ben@xemacs.org>
10430
10431         * s/cygwin32.h:
10432         * s/cygwin32.h (CYGWIN_CONV_PATH):
10433         Add missing logb prototype for v1.1.
10434         Use post-b20 names and alias to pre-b20 names when pre-b20.
10435
10436         * s/windowsnt.h: [5].
10437
10438 2000-07-15  Ben Wing  <ben@xemacs.org>
10439
10440         * Makefile.in.in (x_objs):
10441         * Makefile.in.in (sheap_objs):
10442         * Makefile.in.in (objs):
10443         added win32.o, cosmetic cleanups.
10444
10445         * alloc.c (Fmake_byte_code):
10446         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10447         etc. macros which declare their own args now.
10448
10449         * alloc.c (syms_of_alloc):
10450         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10451
10452         * buffer.c:
10453         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10454
10455         * buffer.c (Fget_file_buffer):
10456         Fixed GCPRO problem.
10457
10458         * buffer.c (get_truename_buffer):
10459         Fixed comment about GC checking.
10460
10461         * buffer.c (syms_of_buffer):
10462         Undeclared those dedicated frame funs.
10463         [2].
10464
10465         * buffer.h:
10466         Define convenience macros for internal/external conversions.
10467         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10468         and Qenvironment_variable_encoding for cleaner code.
10469
10470         * bufslots.h:
10471         Remove dedicated-frame; in lisp.
10472
10473         * bytecode.c (funcall_compiled_function):
10474         [1].
10475
10476         * bytecode.c (syms_of_bytecode):
10477         [2].
10478
10479         * console-msw.c:
10480         * console-msw.c (mswindows_show_console): Rewrote.
10481
10482         * console-msw.c (Fmswindows_debugging_output): New.
10483         Sends to OutputDebugString (special MSWin debugger interface).
10484
10485         * console-msw.c (Fmswindows_message_box):
10486         Fixed stupid bugs so it works when called from kill-emacs.
10487
10488         * console-msw.c (syms_of_console_mswindows):
10489         Declare Fmswindows_debugging_output.
10490
10491         * console-msw.h:
10492         New MSWin prototypes.
10493
10494         * console-msw.h (struct mswindows_frame):
10495         New entry last-click-mods for improved button-modifier support.
10496
10497         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10498         New struct entry `popup' with corresponding accessor.
10499
10500         * console-x.c:
10501         * console-x.c (split_up_display_spec):
10502         * console-x.c (get_display_arg_connection):
10503         * console-x.c (x_semi_canonicalize_console_connection):
10504         * console-x.c (x_canonicalize_device_connection):
10505         [[[6]]]: Change char to more specific type.
10506         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10507
10508         * console-x.c (x_semi_canonicalize_console_connection):
10509         * console-x.c (x_canonicalize_device_connection):
10510         [[[9]]]: Fix up error signalling to use new structured error system.
10511
10512         * console-x.h:
10513         [[[4]]]: Define codesys aliases:
10514         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10515         Qx_color_name_encoding, Qx_display_name_encoding.
10516
10517         * console.h (struct console_methods):
10518         New method make_dialog_box_internal supersedes older
10519         popup_dialog_box method.
10520
10521         * data.c:
10522         Define many new errors, part of new structured errors.
10523
10524         * data.c (init_errors_once_early):
10525         * data.c (syms_of_data):
10526         [2].
10527
10528         * device-msw.c (mswindows_init_device):
10529         [[[5]]]: Cleanup to support NT 3.51.
10530
10531         * device-msw.c (decode_devmode): Cleanup.
10532
10533         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10534         * device-msw.c (mswindows_handle_print_dialog_box):
10535         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10536         * device-msw.c (syms_of_device_mswindows):
10537         Delete the dialog box primitives recently introduced by Kirill and
10538         instead interface to general dialog box interface.
10539
10540         * device-x.c:
10541         * device-x.c (compute_x_app_name):
10542         * device-x.c (x_init_device):
10543         * device-x.c (Fx_valid_keysym_name_p):
10544         * device-x.c (Fx_set_font_path):
10545         [6].
10546         [7].
10547
10548         * device.h (wrap_device): New.
10549         First of its kind; meant to replace XSETDEVICE.
10550
10551         * dialog-msw.c: Many file-dialog symbols.
10552
10553         * dialog-msw.c (mswindows_register_popup_frame): New.
10554         * dialog-msw.c (mswindows_is_dialog_msg): New.
10555         For supporting kbd traversal in dialog boxes.
10556
10557         * dialog-msw.c (dialog_proc):
10558         Support hitting ESC in dialogs.
10559
10560         * dialog-msw.c (struct):
10561         Common dialog box errors.
10562
10563         * dialog-msw.c (handle_file_dialog_box): New.
10564         Add file dialog code.
10565
10566         * dialog-msw.c (handle_question_dialog_box):
10567         Redo existing code to support new question dialog syntax.
10568
10569         * dialog-msw.c (console_type_create_dialog_mswindows):
10570         We support new dialog console method.
10571
10572         * dialog-msw.c (syms_of_dialog_mswindows):
10573         * dialog-msw.c (vars_of_dialog_mswindows):
10574         New file dialog symbols, vars.
10575
10576         * dialog-x.c:
10577         * dialog-x.c (maybe_run_dbox_text_callback):
10578         * dialog-x.c (dbox_descriptor_to_widget_value):
10579         * dialog-x.c (x_make_dialog_box_internal):
10580         * dialog-x.c (console_type_create_dialog_x):
10581         Mule-ize entire file.
10582         Redo to support question dialog syntax.
10583         [6].
10584
10585         * dialog.c:
10586         * dialog.c (Fmake_dialog_box_internal):
10587         * dialog.c (syms_of_dialog):
10588         Kill old popup-dialog-box, replace with new primitive.
10589         Just call device method or signal error.
10590
10591         * eldap.c (Fldap_open):
10592         * eldap.c (Fldap_search_basic):
10593         * eldap.c (Fldap_add):
10594         * eldap.c (Fldap_modify):
10595         [1].
10596         [7].
10597
10598         * emacs.c:
10599         * emacs.c (make_arg_list_1):
10600         * emacs.c (make_arg_list):
10601         Mule-ize call to dll_init().
10602         [6].
10603         [8].
10604
10605         * emacs.c (make_argc_argv):
10606         * emacs.c (free_argc_argv):
10607         * emacs.c (init_cmdargs):
10608         * emacs.c (main_1):
10609         * emacs.c (Fkill_emacs):
10610         * emacs.c (Fdump_emacs):
10611         Update comments about what can be used in syms_* etc.
10612         Call init_win32() when necessary.
10613         Fix up MS Win dialog box in kill-buffer to actually work right.
10614         [7].
10615
10616         * eval.c:
10617         * eval.c (For):
10618         * eval.c (Fand):
10619         * eval.c (Fprogn):
10620         * eval.c (Fprog1):
10621         * eval.c (Fprog2):
10622         * eval.c (FletX):
10623         * eval.c (Flet):
10624         * eval.c (condition_case_3):
10625         * eval.c (Feval):
10626         * eval.c (function_argcount):
10627         * eval.c (funcall_lambda):
10628         [1].
10629
10630         * eval.c (type_error): New.
10631         * eval.c (maybe_type_error): New.
10632         * eval.c (continuable_type_error): New.
10633         * eval.c (maybe_continuable_type_error): New.
10634         * eval.c (type_error_with_frob): New.
10635         * eval.c (maybe_type_error_with_frob): New.
10636         * eval.c (continuable_type_error_with_frob): New.
10637         * eval.c (maybe_continuable_type_error_with_frob): New.
10638         New functions for use with structured errors.
10639
10640         * event-Xt.c:
10641         * event-Xt.c (x_event_to_emacs_event):
10642         Buttons are now modifiers too.
10643
10644         * event-Xt.c (emacs_Xt_current_event_timestamp):
10645         Implement new event method.
10646         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10647
10648         * event-msw.c:
10649         * event-msw.c (ntpipe_shove_writer): [5].
10650         * event-msw.c (mswindows_enqueue_mouse_button_event):
10651         * event-msw.c (mswindows_drain_windows_queue):
10652         * event-msw.c (mswindows_wnd_proc): [7].
10653         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10654         * event-msw.c (mswindows_modifier_state):
10655         Throughout: support new button modifiers.
10656
10657         * event-msw.c (emacs_mswindows_current_event_timestamp):
10658         Implement new event method.
10659         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10660
10661         * event-stream.c:
10662         * event-stream.c (event_stream_current_event_timestamp): New.
10663         * event-stream.c (maybe_kbd_translate): New functionality.
10664         * event-stream.c (vars_of_event_stream):
10665         Document new kbd-translate-table functionality.
10666
10667         * event-stream.c (Fcurrent_event_timestamp): New.
10668         New primitive for use in fabricated events.
10669         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10670
10671         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10672
10673         * events.c:
10674         * events.c (Fmake_event):
10675         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10676         [1].
10677         [9].
10678
10679         * events.c (format_event_object): fix gcc warnings.
10680
10681         * events.c (Fevent_timestamp): Document new primitives.
10682
10683         * events.c (TIMESTAMP_HALFSPACE): New.
10684
10685         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10686         comparing timestamps correctly (half-space algorithm).
10687
10688         * events.c (Fevent_modifier_bits): Doc fix.
10689
10690         * events.c (Fevent_modifiers): Major doc addition.
10691         * events.c (event_x_y_pixel_internal): Typo fix.
10692         * events.c (syms_of_events): Declare new primitives.
10693
10694         * events.h:
10695         Update long comment for button modifiers, timestamps.
10696
10697         * events.h (struct event_stream):
10698         New current_event_timestamp method.
10699
10700         * extents.c:
10701         * extents.c (extent_in_region_p):
10702         * extents.c (decode_extent):
10703         * extents.c (Fset_extent_parent):
10704         * extents.c (decode_map_extents_flags):
10705         Fix gcc warnings.
10706         [9].
10707
10708         * extents.c (struct extent_at_arg):
10709         * extents.c (decode_extent_at_flag):
10710         * extents.c (extent_at_mapper):
10711         * extents.c (extent_at_bytind):
10712         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10713         * extents.c (Fextents_at): New primitive. [9].
10714         * extents.c (symbol_to_glyph_layout): [9].
10715         Support new primitive `extents-at'.
10716
10717
10718         * extents.c (get_text_property_bytind):
10719         extent_at_bytind has another arg.
10720         [9].
10721
10722         * extents.c (syms_of_extents): New primitive.
10723
10724         * file-coding.c (Fmake_coding_system): [1].
10725         * file-coding.c (subsidiary_coding_system): fix gcc warning
10726         * file-coding.c (syms_of_file_coding): [2].
10727
10728         * fileio.c (Fexpand_file_name):
10729         * fileio.c (Fsysnetunam):
10730         * fileio.c (Ffile_exists_p):
10731         * fileio.c (Ffile_executable_p):
10732         * fileio.c (Fverify_visited_file_modtime):
10733         Clean up GCPROing.
10734
10735         * fileio.c (syms_of_fileio): [2].
10736
10737         * filelock.c (lock_file_1):
10738         * filelock.c (current_lock_owner):
10739         * filelock.c (lock_if_free):
10740         * filelock.c (lock_file):
10741         * filelock.c (unlock_file):
10742         Clean up GCPROing.
10743
10744         * fns.c (concat): Fix gcc warning.
10745
10746         * fns.c (Fmember):
10747         * fns.c (Fold_member):
10748         * fns.c (Fmemq):
10749         * fns.c (Fold_memq):
10750         * fns.c (memq_no_quit):
10751         * fns.c (Fassoc):
10752         * fns.c (Fold_assoc):
10753         * fns.c (Fassq):
10754         * fns.c (Fold_assq):
10755         * fns.c (assq_no_quit):
10756         * fns.c (Frassoc):
10757         * fns.c (Fold_rassoc):
10758         * fns.c (Frassq):
10759         * fns.c (Fold_rassq):
10760         * fns.c (rassq_no_quit):
10761         * fns.c (Fdelete):
10762         * fns.c (Fold_delete):
10763         * fns.c (Fdelq):
10764         * fns.c (Fold_delq):
10765         * fns.c (delq_no_quit):
10766         * fns.c (Fremassoc):
10767         * fns.c (Fremassq):
10768         * fns.c (remassq_no_quit):
10769         * fns.c (Fremrassoc):
10770         * fns.c (Fremrassq):
10771         * fns.c (remrassq_no_quit):
10772         * fns.c (Freverse):
10773         * fns.c (mapcar1):
10774         [1].
10775
10776         * frame-msw.c (mswindows_init_frame_1):
10777         * frame-msw.c (mswindows_delete_frame):
10778         Register popups with dialog code so keyboard traversing works.
10779
10780         * frame-tty.c (tty_raise_frame_no_select): [1].
10781
10782         * frame-x.c:
10783         * frame-x.c (x_set_frame_text_value):
10784         * frame-x.c (x_set_frame_properties):
10785         * frame-x.c (x_create_widgets):
10786         [7].
10787
10788         * frame.c:
10789         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10790
10791         * frame.h (wrap_frame): New.
10792         Macro like wrap_device.
10793
10794         * general.c:
10795         * general.c (SYMBOL):
10796         * general.c (syms_of_general):
10797         Major reorg.  This is now just a wrapper and symbols themselves
10798         are listed in general-slots.h.
10799
10800         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10801         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10802
10803         * glyphs-msw.c (mswindows_native_layout_instantiate):
10804         Add DS_CONTROL so keyboard traversal will work.
10805
10806         * glyphs-widget.c:
10807         * glyphs-widget.c (syms_of_glyphs_widget):
10808         Move some symbols to general-slots.h.
10809
10810         * glyphs-x.c:
10811         * glyphs-x.c (xbm_instantiate_1):
10812         * glyphs-x.c (x_xbm_instantiate):
10813         * glyphs-x.c (x_xface_instantiate):
10814         * glyphs-x.c (autodetect_instantiate):
10815         * glyphs-x.c (cursor_font_instantiate):
10816         * glyphs-x.c (x_update_widget):
10817         * glyphs-x.c (x_widget_instantiate):
10818         * glyphs.c (bitmap_to_lisp_data):
10819         * glyphs.c (pixmap_to_lisp_data):
10820         [7].
10821
10822         * glyphs.c (syms_of_glyphs):
10823         [2].
10824
10825         * gui-x.c:
10826         * gui-x.c (print_widget_value):
10827         * gui-x.c (menu_separator_style_and_to_external):
10828         * gui-x.c (add_accel_and_to_external):
10829         * gui-x.c (button_item_to_widget_value):
10830         * gui-x.c (gui_items_to_widget_values_1):
10831         * gui-x.c (gui_items_to_widget_values):
10832         * gui-x.c (syms_of_gui_x):
10833         * gui-x.c (vars_of_gui_x):
10834         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10835         [9].
10836
10837         * gui-x.h:
10838         Muleize, prototype changes matching gui-x.c.
10839
10840         * gui.c:
10841         * gui.c (separator_string_p):
10842         * gui.c (gui_item_add_keyval_pair):
10843         * gui.c (make_gui_item_from_keywords_internal):
10844         * gui.c (signal_too_long_error):
10845         * gui.c (parse_gui_item_tree_item):
10846         * gui.c (syms_of_gui):
10847         * gui.c (vars_of_gui):
10848         * gui.h:
10849         menu-no-selection-hook moved here (used by MSWin).
10850         Move some symbols to general-slots.h.
10851         [6].
10852         [9].
10853
10854         * insdel.c (get_buffer_pos_char):
10855         * insdel.c (get_buffer_range_char):
10856         Add GC comments.
10857
10858         * keymap.c (keymap_lookup_directly):
10859         * keymap.c (keymap_store):
10860         * keymap.c (ensure_meta_prefix_char_keymapp):
10861         * keymap.c (describe_map):
10862         * keymap.h:
10863         Support new button modifiers.
10864
10865         * lisp-disunion.h (wrap_object):
10866         * lisp-disunion.h (XSETOBJ):
10867         Rename make_obj to wrap_object.
10868
10869         * lisp-union.h:
10870         * lisp-union.h (make_int):
10871         * lisp-union.h (make_char):
10872         Support wrap_object.
10873
10874         * lisp.h:
10875         * lisp.h (LIST_LOOP):
10876         * lisp.h (EXTERNAL_LIST_LOOP):
10877         * lisp.h (LIST_LOOP_2):
10878         * lisp.h (EXTERNAL_LIST_LOOP_1):
10879         * lisp.h (EXTERNAL_LIST_LOOP_2):
10880         * lisp.h (EXTERNAL_LIST_LOOP_3):
10881         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10882         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10883         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10884         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10885         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10886         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10887         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10888         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10889         * lisp.h (struct Lisp_Symbol):
10890         * lisp.h (maybe_continuable_error_with_frob):
10891         Fix up section comments.
10892         Add new types for char to indicate usage.
10893         Delete symbols auto-generated from general-slots.h.
10894         Add prototypes for structured error functions.
10895         Add long comments describing looping macros and change interface
10896         so that lvalues are automatically declared.
10897         Add NO_DECLARE macro in case callers want to declare lvalues
10898         themselves.
10899
10900         * lread.c (read_syntax_error):
10901         * lread.c (continuable_read_syntax_error):
10902         * lread.c (read_structure):
10903         * lread.c (sequence_reader):
10904         * lread.c (read_list_conser):
10905         * lread.c (read_compiled_function):
10906         Rename syntax_error and continuable_syntax_error to avoid clash
10907         with same-named structured error functions.
10908
10909         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10910         * menubar-msw.c (populate_menu_add_item):
10911         * menubar-msw.c (populate_or_checksum_helper):
10912         [5].
10913         [9].
10914
10915         * menubar-x.c:
10916         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10917         Mule-ize whole file.
10918
10919         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10920
10921         * mule-charset.c (Fmake_charset):
10922         * mule-wnnfns.c (Fwnn_set_param):
10923         [1].
10924
10925         * ntproc.c (create_child):
10926         * ntproc.c (Fwin32_set_current_locale):
10927         Add comments portending doom.
10928
10929         * objects-msw.c:
10930         * objects-msw.c (old_font_enum_callback_2):
10931         * objects-msw.c (font_enum_callback_1):
10932         * objects-msw.c (mswindows_enumerate_fonts):
10933         [5].
10934
10935         * objects-x.c:
10936         * objects-x.c (allocate_nearest_color):
10937         * objects-x.c (x_parse_nearest_color):
10938         * objects-x.c (x_initialize_color_instance):
10939         * objects-x.c (x_print_color_instance):
10940         * objects-x.c (x_finalize_color_instance):
10941         * objects-x.c (x_valid_color_name_p):
10942         * objects-x.c (x_initialize_font_instance):
10943         * objects-x.c (x_print_font_instance):
10944         * objects-x.c (valid_x_font_name_p):
10945         * objects-x.c (truename_via_FONT_prop):
10946         * objects-x.c (truename_via_random_props):
10947         * objects-x.c (truename_via_XListFonts):
10948         * objects-x.c (x_font_truename):
10949         * objects-x.c (x_font_instance_truename):
10950         * objects-x.c (x_font_instance_properties):
10951         * objects-x.c (x_list_fonts):
10952         * objects-x.c (x_find_charset_font):
10953         Mule-ize entire file.
10954         [7].
10955
10956         * objects-x.h:
10957         Mule-verify.
10958
10959         * print.c:
10960         * print.c (std_handle_out_external):
10961         * print.c (debug_print_no_newline):
10962         * print.c (syms_of_print):
10963         Output to all debugger kinds in debug-print.
10964         Fix console-output code under MSWin to actually work.
10965
10966         * process-nt.c (send_signal):
10967         * process-nt.c (nt_create_process):
10968         Use newer Unicode macros.
10969
10970         * process-unix.c (unix_create_process):
10971         * process-unix.c (unix_canonicalize_host_name):
10972         * process-unix.c (unix_open_network_stream):
10973         [7].
10974
10975         * scrollbar-x.c:
10976         Mule-verify.
10977
10978         * search.c (syms_of_search):
10979         [2].
10980
10981         * select-msw.c (mswindows_destroy_selection):
10982         Use LIST_LOOP_2.
10983
10984         * select-x.c (symbol_to_x_atom):
10985         [7].
10986
10987         * select.c (syms_of_select):
10988         [2].
10989
10990         * sound.c (Fplay_sound_file):
10991         [7].
10992
10993         * specifier.c:
10994         * specifier.c (decode_specifier_type):
10995         * specifier.c (Fvalid_specifier_locale_type_p):
10996         * specifier.c (check_valid_locale_or_locale_type):
10997         * specifier.c (decode_locale):
10998         * specifier.c (decode_locale_type):
10999         * specifier.c (decode_locale_list):
11000         * specifier.c (check_valid_domain):
11001         * specifier.c (decode_specifier_tag_set):
11002         * specifier.c (Fcanonicalize_tag_set):
11003         * specifier.c (Fdefine_specifier_tag):
11004         * specifier.c (Fspecifier_tag_predicate):
11005         * specifier.c (check_valid_inst_list):
11006         * specifier.c (check_valid_spec_list):
11007         * specifier.c (decode_how_to_add_specification):
11008         * specifier.c (check_modifiable_specifier):
11009         * specifier.c (specifier_add_spec):
11010         * specifier.c (boolean_validate):
11011         * specifier.c (display_table_validate):
11012         [9].
11013
11014         * specifier.c (syms_of_specifier):
11015         Move some symbols to general-slots.h.
11016         [2].
11017
11018         * symbols.c:
11019         * symbols.c (Fmapatoms):
11020         * symbols.c (Fapropos_internal):
11021         Add GCPROs.
11022
11023         * symbols.c (set_default_buffer_slot_variable):
11024         * symbols.c (set_default_console_slot_variable):
11025         [1].
11026
11027         * symbols.c (defsymbol_massage_name_1):
11028         * symbols.c (defkeyword_massage_name):
11029         * symbols.c (deferror_1):
11030         * symbols.c (deferror):
11031         * symbols.c (deferror_massage_name_and_message):
11032         * symeval.h:
11033         * symeval.h (DEFSYMBOL):
11034         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11035
11036         * symbols.c (syms_of_symbols):
11037         [2].
11038
11039         * symsinit.h:
11040         * symsinit.h (init_win32): New.
11041         Also new is syms_of_dialog_mswindows.
11042
11043         * syswindows.h:
11044         Add new Unicode macros, missing Cygwin wide-char functions,
11045         convenience conversion macros for Qmswindows_tstr, macros for
11046         encapsulating required MSWin <-> Cygwin filename conversions,
11047         prototype for dynamically-extracted (not in NT 3.51) functions.
11048
11049         * toolbar-x.c:
11050         Mule-verify.
11051
11052         * tooltalk.c (Fadd_tooltalk_message_arg):
11053         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11054         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11055         [7].
11056
11057         * tooltalk.c (syms_of_tooltalk):
11058         [2].
11059
11060         * unexnt.c:
11061         * unexnt.c (unexec):
11062         Fix up headers, declaration of unexec() to be more standard.
11063
11064 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11065
11066         * offix.h: Revert change to guard macros - they're used in offix.c!
11067
11068 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11069
11070         * lisp.h: Defsubred Fdelete.
11071
11072         * console-msw.h:  (msprinter_default_printer): Added.
11073
11074         * console-msw.c (msprinter_canonicalize_console_connection):
11075         (msprinter_canonicalize_device_connection): Added.
11076
11077         * device-msw.c (msprinter_default_printer):
11078         (Fmswingows_get_default_printer):
11079         (signal_enum_priner_error):
11080         (Fmswingows_printer_list): Added.
11081
11082 2000-07-19  Martin Buchholz <martin@xemacs.org>
11083
11084         * XEmacs 21.2.35 is released.
11085
11086 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11087
11088         * select-x.c (x_handle_selection_request):
11089         Text selected in xemacs and pasted into xterm failed to appear.
11090         Spelling fixes and cosmetic changes.
11091
11092 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11093
11094         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11095         XEmacs frame (fix for doubling chars in dialog boxes).
11096
11097 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11098
11099         * select.c (select_convert_in, select_convert_out):
11100         Don't call intern() every time.
11101
11102         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11103         * select.c (vars_of_select): Initialise them.
11104
11105 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11106
11107         * select.c (selection-coercible-types): New.
11108
11109         * select.c (own-selection-internal):
11110         * select.c (get-selection-internal):
11111         MULE bug fix - these should default to COMPOUND_TEXT and not
11112         STRING for MULE. I think.
11113
11114         * select.c (select_convert_out): Use selection-coercible-types
11115         to find types that we can attempt to perform coercions on.
11116
11117 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11118
11119         * mule-wnnfns.c:
11120         * mule-canna.c:
11121         Add coding: cookie to identify encoding.
11122
11123         * mule-canna.c (CANNA_mode_keys): make static.
11124         Use proper prototypes, even for functions of no arguments.
11125         Remove external prototype for Fding().
11126
11127         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11128
11129         * select.c (syms_of_select): Add missing DEFSUBR.
11130
11131 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11132
11133         * select.c (get_selection_internal, own_selection_internal):
11134         Make the type default to STRING, rather than placing a nil type
11135         into Vselection_alist.
11136
11137 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11138
11139         * gpmevent.c (tty_selection_exists_p):
11140         * gpmevent.c (tty_own_selection):
11141         Updated parameter lists.
11142
11143 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11144
11145         * select.h (selection-alist): Removed declaration.
11146
11147         * select.h (get_local_selection):
11148         * select.c (get_local_selection):
11149         Made static.
11150
11151         * select.h (convert_selection): Removed declaration.
11152         * select.c (convert_selection): Removed.
11153         This function belongs in Lisp.
11154
11155         * select.h (select_convert_in): Declare.
11156         * select.h (select_convert_out): Declare.
11157         * select.c (select_convert_in): New.
11158         * select.c (select_convert_out): New.
11159         New conversion functions for other files to call.
11160
11161         * select.h (select_notify_buffer_kill): Declare.
11162         * select.c (select_notify_buffer_kill): New.
11163         New functions that get called from kill-buffer.
11164
11165         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11166         X-specific lisp code.
11167
11168         * select.h: Declare some of the lisp-visible functions for
11169         external use.
11170
11171         * select.c (clean_local_selection_data): Removed. This was
11172         a disgusting function, and previously should have been in
11173         select-x.c in any case. The functionality is now provided
11174         in select-convert-from-integer (select.el).
11175
11176         * select.c (available-selection-types): Fixed stupidity where
11177         INTEGER and ATOM got added twice. Also add STRING when we see an
11178         extent.
11179
11180         * select.c (get-selection-internal): Removed symbol stripping. No
11181         longer causes conversion when data comes from the internal cache.
11182
11183         * select.c (syms_of_select): Added new functions.
11184
11185         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11186         error checking - previously this called abort!
11187
11188         * select-x.c (x_own_selection): Changed comment.
11189
11190         * select-x.c (x_handle_selection_request): Use select_convert_out.
11191         Don't mess with selection-alist; it's an internal variable of select.c.
11192
11193         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11194
11195         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11196         rather than messing with selection-alist.
11197
11198         * select-msw.c (mswindows_get_foreign_selection):
11199         Use TO_INTERNAL_FORMAT rather than hacking.
11200
11201 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11202
11203         * process-unix.c (unix_open_multicast_group):
11204         (unix_open_multicast_group): Remove useless casts.
11205
11206 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11207
11208         * sound.c (Fplay_sound): Fix `unused variable' warning.
11209
11210         * emacs.c (main): Use correct type for _environ on SCO5.
11211
11212 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11213
11214         * console.h (own_selection_method):
11215         * console.h (selection_exists_p_method):
11216         * console.h (available_selection_types_method): New.
11217         * console.h (register_selection_data_type_method): New.
11218         * console.h (selection_data_type_name): New.
11219
11220         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11221         function & alist to track GlobalAlloc()'d handles that need
11222         releasing when the clipboard data gets replaced or emptied.
11223
11224         * event-msw.c (mswindows_wnd_proc): Call it.
11225
11226         * lisp.h, general.c (Qappend): New symbol representing a
11227         `how-to-add' mode.
11228
11229         * select.c (own-selection-internal):
11230         * select.c (selection-exists-p):
11231         * select.c (available-selection-types): New.
11232         * select.c (register-selection-data-type): New.
11233         * select.c (selection-data-type-name): New.  New functions to deal
11234         with device-specific selection data formats.
11235         * select.c (selection-converter-out-alist): Renamed.
11236         * select.c (selection-converter-in-alist): New.
11237         * select.c (selection-appender-alist): New.  Added new alists.
11238         * select.c (syms_of_select, vars_of_select): Added new symbols &
11239         variables.
11240         * select.c (get_local_selection): Split.
11241         * select.c: Removed spurious type checking - selections may now be
11242         of any type, not just strings.
11243         * select.c (own-selection-internal):
11244
11245         * select.h, select.c (convert_selection): New. Created
11246         convert_selection() function based on get_local_selection().
11247         * select.h, select.c (QCF_*): New symbols representing mswindows
11248         clipboard formats.
11249         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11250         symbols representing `how-to-add' modes.
11251
11252         * select-msw.c (x_sym_p): New.
11253         * select-msw.c (symbol_to_ms_cf): New.
11254         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11255         symbols & clipboard formats. Can also handle string names.
11256         * select-msw.c (mswindows_own_selection):
11257         * select-msw.c (mswindows_selection_exists_p):
11258         Added `data-type' parameter. Use it.
11259         * select-msw.c (mswindows_available_selection_types): New.
11260         * select-msw.c (mswindows_register_selection_data_type): New.
11261         * select-msw.c (mswindows_selection_data_type_name): New.
11262         * select-msw.c (mswindows_own_selection):
11263         * select-msw.c (mswindows_get_foreign_selection):
11264         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11265         * select-msw.c (console_create_select_mswindows): Added new methods.
11266         * select-msw.c (mswindows_destroy_selection): New.
11267         * select-msw.c (Vhandle_alist): New list.
11268         * select-msw.c (mswindows_own_selection):
11269
11270         * select-x.c (x_own_selection):
11271         * select-x.c (x_selection_exists_p):
11272         * select-x.c: Added some comments about maybe using new
11273         functionality.
11274         * select-x.c (x_own_selection):
11275
11276         * specifier.c: Remove definition of Qappend (now in general.c)
11277         * specifier.c (syms_of_specifier): Remove Qappend.
11278
11279 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11280
11281         * config.h.in: Add socklen_t.
11282
11283         * s/decosf4-0.h: No special compiler flags needed or desired.
11284         In particular, undefine _BSD for DEC OSF 4.0.
11285
11286 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11287
11288         * redisplay-msw.c (msprinter_frame_output_end): Added.
11289         (console_type_create_redisplay_mswindows): Referred the above.
11290
11291         * frame.c (setup_frame_without_minibuffer): Do not create a
11292         default minibuffer frame on a printer device.
11293
11294         * frame-msw.c (apply_dc_geometry): Added.
11295         (msprinter_start_page):
11296         (msprinter_init_frame_3):
11297         (msprinter_eject_page): Use it.
11298
11299         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11300         and removed residual duplex and orientation properties.
11301
11302 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11303
11304         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11305
11306         * unexalpha.c: Remove system prototypes from C sources!
11307
11308 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11309
11310         * eval.c: Remove references to M-x edit-options in DEFUNs for
11311         `defvar' and `defconst'.
11312
11313 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11314
11315         * config.h.in: Remove SMART_INCLUDE hackery.
11316
11317         PostgreSQL hacking:
11318         * config.h.in: Don't use SMART_INCLUDE.
11319
11320         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11321         * inline.c: Simply #include "postgresql.h"
11322         * postgresql.c:
11323         - Don't use SMART_INCLUDE
11324         - Use simply "const".
11325         - Use standard doc string conventions.
11326         - Use correct type for result of PQstatus.
11327
11328 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11329
11330         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11331
11332         C++ compilation changes.
11333         * config.h.in (EXTERN_C): Define.
11334         * config.h.in (not): This is also a C++ keyword.
11335         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11336         * cm.c: Use EXTERN_C.
11337         * redisplay-tty.c: Use EXTERN_C.
11338         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11339
11340 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11341
11342         * general.c: Remove duplicate definition for Qfunction.
11343
11344 2000-07-08  Ben Wing  <ben@xemacs.org>
11345
11346         * device-msw.c (msprinter_init_device):
11347         * device-msw.c (sync_printer_with_devmode):
11348         * device-msw.c (handle_devmode_changes):
11349         * device-msw.c (print_dialog_worker):
11350         * device-msw.c (Fmsprinter_apply_settings):
11351         * device-msw.c (hash_devmode):
11352         * device-msw.c (Fmsprinter_settings_despecialize):
11353         use Qmswindows_tstr, not Qctext.
11354
11355         * vm-limit.c (check_memory_limits):
11356         avoid infinite loop printing warning messages.
11357
11358 2000-07-05  Craig Lanning  <lanning@scra.org>
11359
11360         * Makefile.in.in: Add support for including the Windows resources
11361         when building with the cygwin and mingw targets.
11362
11363         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11364         not set or not correct.
11365         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11366         (init_initial_directory): Don't try to use $PWD on the
11367         WIN32_NATIVE target.
11368
11369         * s\cygwin32.h:
11370         [[Add -mwindows to eliminate console window.]] not required --ben
11371         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11372         (MAIL_USE_POP): removed; now handled by configure.
11373
11374         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11375         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11376         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11377         (MAIL_USE_POP): removed; now handled by configure.
11378         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11379         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11380         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11381         constant string.
11382         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11383         up from <winsock.h> via systime.h.
11384         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11385         (getpagesize): from Dan Holmsand, added.
11386         Added #endif which was left dangling by Ben's mega patch; added
11387         comment to help prevent this in the future.
11388
11389         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11390
11391 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11392
11393         * console-msw.h (struct mswindows_device): Removed unnecessary
11394         cached device geometry values.
11395         Added update_tick and an accessor macro.
11396         (Lisp_Devmode): Added lrecord declaration.
11397         (struct msprinter_device): Contain devmode as a Lisp object.
11398         Added mswindows_get_selected_frame_hwnd();
11399
11400         * console.h (struct console_methods): Indentation nitpicking.
11401
11402         * device-msw.c (mswindows_init_device): Do not initialize geometry
11403         cache. Initialize update tick.
11404         (mswindows_device_system_metrics): Ask the device for its geometry.
11405         (global_free_2_maybe):
11406         (devmode_to_hglobal):
11407         (handle_printer_changes):
11408         (ensure_not_printing):
11409         (print_dialog_worker):
11410         (Fmsprinter_print_setup_dialog):
11411         (Fmsprinter_print_dialog):
11412         (plist_get_margin):
11413         (plist_set_margin):
11414         (Fmsprinter_page_setup_dialog): Added functions.
11415         (sync_printer_with_devmode):
11416         (handle_devmode_changes):
11417         (Fmsprinter_get_settings):
11418         (Fmsprinter_select_settings):
11419         (Fmsprinter_apply_settings):
11420         (allocate_devmode):
11421         (Fmsprinter_settings_copy):
11422         (Fmsprinter_settings_despecialize):
11423         (print_devmode):
11424         (finalize_devmode):
11425         (equal_devmode):
11426         (hash_devmode): Added functions
11427         (syms_of_device_mswindows): Init devmode lrecord class.
11428
11429         * device.h: Added an exfun for find-device.
11430
11431         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11432         geometry; although, recreate the device compatible DC.
11433
11434         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11435         (msprinter_init_frame_3):
11436         (msprinter_frame_property):
11437         (msprinter_internal_frame_property_p):
11438         (msprinter_frame_properties):
11439         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11440         print job properties (will move to device settings).
11441
11442         * lisp.h: Added symbols.
11443
11444         * general.c (syms_of_general): Declared them.
11445
11446         * hash.c (string_hash): Added.
11447
11448         * lrecord.h (lrecord_type): Added devmode lrecord type.
11449
11450 2000-07-02  Mike Sperber <mike@xemacs.org>
11451
11452         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11453         FreeBSD 4.0.
11454
11455 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11456
11457         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11458         integer.
11459
11460 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11461
11462         * data.c (Fstring_to_number): Don't recognize floating point if
11463         base is not 10.
11464
11465 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11466
11467         * glyphs-widget.c (tab_control_query_geometry):
11468         (widget_query_geometry):
11469         (button_query_geometry):
11470         * glyphs.c (text_query_geometry):
11471         Enforce type correctness.
11472
11473 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11474
11475         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11476         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11477
11478 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11479
11480         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11481         conflicts with gcc's fixincluded version of FOO.h.
11482
11483         * glyphs.h (image_instance_geometry): Remove trailing `,'
11484
11485 2000-06-08  Mike Alexander  <mta@arbortext.com>
11486
11487         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11488         (shove_thread): Don't write the same output twice
11489         (make_ntpipe_output_stream): Increase priority of shove thread
11490         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11491         chance to run
11492         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11493         it.
11494
11495 2000-06-12  Ben Wing  <ben@xemacs.org>
11496
11497         * s\mingw32.h (sigset):
11498         * s\windowsnt.h (sigset):
11499         rename msw_ to mswindows_ for consistency with general convention.
11500
11501 2000-06-12  Ben Wing  <ben@xemacs.org>
11502
11503         * console-msw.c:
11504         * console-msw.c (mswindows_get_console_hwnd):
11505         * console-msw.c (mswindows_ensure_console_allocated):
11506         * console-msw.c (mswindows_hide_console):
11507         * console-msw.c (mswindows_show_console):
11508         * console-msw.c (mswindows_ensure_console_buffered):
11509         * console-msw.c (mswindows_output_console_string):
11510         * console-msw.c (mswindows_windows9x_p):
11511         * console-msw.h:
11512         * device-msw.c (mswindows_get_workspace_coords):
11513         * device-msw.c (mswindows_device_system_metrics):
11514         * dialog-msw.c (mswindows_popup_dialog_box):
11515         * event-msw.c (mswindows_wnd_proc):
11516         * frame-msw.c (mswindows_size_frame_internal):
11517         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11518         * menubar-msw.c (displayable_menu_item):
11519         * menubar-msw.c (mswindows_char_is_accelerator):
11520         * nt.c:
11521         * nt.c (mswindows_sigset):
11522         * nt.c (mswindows_sigrelse):
11523         * nt.c (mswindows_sigpause):
11524         * nt.c (mswindows_raise):
11525         * nt.c (timer_proc):
11526         * ntproc.c:
11527         * ntproc.c (find_child_console):
11528         * ntproc.c (sys_kill):
11529         * print.c:
11530         * print.c (std_handle_out_external):
11531         * process-nt.c (find_child_console):
11532         * process-nt.c (send_signal_the_95_way):
11533         * process-nt.c (ensure_console_window_exists):
11534         * process-nt.c (nt_create_process):
11535         * syssignal.h:
11536         rename msw_ to mswindows_ for consistency with general convention.
11537
11538         * emacs.c:
11539         * dumper.c:
11540         include nt.h, not syswindows.h.
11541
11542         * nt.c (mswindows_fstat):
11543         * nt.c (mswindows_stat):
11544         prefix mswindows_ instead of attempting to directly override the
11545         library functions.  fix declarations.
11546
11547         * nt.h:
11548         include syswindows.h.  move some sysdep.h stuff here.
11549
11550         * ntheap.h:
11551         include syswindows.h, not <windows.h>.
11552
11553         * ntplay.c:
11554         clean up headers.
11555
11556         * sysdep.c:
11557         clean up headers.
11558
11559         * sysdep.c (sys_fstat):
11560         * sysdep.c (sys_stat):
11561         call mswindows versions when appropriate.
11562
11563         * sysdep.h:
11564         move mswin decls to nt.h.
11565
11566         * syswindows.h:
11567         add long comment describing appropriate use of the various windows
11568         headers.
11569
11570 2000-06-11  Ben Wing  <ben@xemacs.org>
11571
11572         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11573
11574 2000-06-10  Ben Wing  <ben@xemacs.org>
11575
11576         * Makefile.in.in (release):
11577         Correction to make sure xemacs.exe always dumped when correct.
11578
11579         * alloca.c:
11580         * balloon_help.c:
11581         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11582
11583         * buffer.c (set_buffer_internal):
11584         [[[[2]]]]: Remove HAVE_FEP code.
11585
11586         * buffer.c (init_initial_directory):
11587         [3].
11588
11589         * bytecode.c:
11590         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11591         individual files.
11592
11593         * callproc.c:
11594         * callproc.c (call_process_cleanup):
11595         * callproc.c (Fold_call_process_internal):
11596         * callproc.c (child_setup):
11597         * callproc.c (getenv_internal):
11598         * callproc.c (init_callproc):
11599         * callproc.c (vars_of_callproc):
11600         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11601         __CYGWIN32__ -> CYGWIN.
11602         DOS_NT -> WIN32_NATIVE.
11603         Remove MSDOS support/references, converting to WIN32_NATIVE
11604           where correct.
11605         __MINGW32__ -> MINGW.
11606         Fix windows.h includes.
11607         Remove bogus HAVE_NTGUI.
11608
11609         * config.h.in:
11610         [2].
11611
11612         * console-msw.c:
11613         mswindows_message_outputted added for use in allowing startup
11614         errors on the console to be seen.
11615
11616         * console-msw.c (msw_ensure_console_allocated):
11617         * console-msw.c (msw_output_console_string):
11618         * console-msw.c (DHEADER):
11619         * console-msw.c (DOPAQUE_DATA):
11620         * console-msw.c (DEVENT):
11621         * console-msw.c (DCONS):
11622         * console-msw.c (DCONSCDR):
11623         * console-msw.c (DSTRING):
11624         * console-msw.c (DVECTOR):
11625         * console-msw.c (DSYMBOL):
11626         * console-msw.c (DSYMNAME):
11627         Fix warnings.
11628
11629         * console-stream.c (stream_init_console):
11630         Fix text/binary problems.
11631
11632         * device-msw.c:
11633         * device-msw.c (mswindows_finish_init_device):
11634         * device-msw.c (mswindows_delete_device):
11635         [1].
11636
11637         * device.c (handle_asynch_device_change):
11638         [3].
11639
11640         * dgif_lib.c:
11641         * dgif_lib.c (DGifOpenFileName):
11642         * dgif_lib.c (DGifOpenFileHandle):
11643         * dgif_lib.c (DGifGetLine):
11644         * dgif_lib.c (DGifGetPixel):
11645         Added config.h/lisp.h, fix up includes.
11646         [1].
11647
11648         * dired-msw.c:
11649         [4].
11650
11651         * dired.c:
11652         * dired.c (file_name_completion):
11653         * dired.c (Ffile_attributes):
11654         * dired.c (syms_of_dired):
11655         [1].
11656
11657         * dumper.c:
11658         * dumper.c (pdump_file_unmap):
11659         * dumper.c (pdump_load):
11660         [1].
11661
11662         * editfns.c:
11663         * editfns.c (Ftemp_directory):
11664         * editfns.c (user_login_name):
11665         * editfns.c (Fuser_real_login_name):
11666         * editfns.c (get_home_directory):
11667         [1].
11668
11669         * elhash.c (finish_marking_weak_hash_tables):
11670         [[[[5]]]]: Fix GCC warnings.
11671
11672         * emacs.c:
11673         * emacs.c (mswindows_handle_hardware_exceptions):
11674         * emacs.c (make_arg_list_1):
11675         * emacs.c (main_1):
11676         * emacs.c (Fkill_emacs):
11677         * emacs.c (Fdump_emacs):
11678         [1].
11679         Fix problems with nested crashes, add long comment.
11680
11681         * event-Xt.c (init_event_Xt_late):
11682         [1].
11683
11684         * event-msw.c:
11685         * event-msw.c (mswindows_dde_callback):
11686         * event-msw.c (mswindows_handle_sticky_modifiers):
11687         * event-msw.c (mswindows_wnd_proc):
11688         [1].
11689         [5].
11690
11691         * events.c (character_to_event):
11692         [1].
11693
11694         * fileio.c:
11695         * fileio.c (Ffile_name_directory):
11696         * fileio.c (Ffile_name_nondirectory):
11697         * fileio.c (directory_file_name):
11698         * fileio.c (Fexpand_file_name):
11699         * fileio.c (Fsubstitute_in_file_name):
11700         * fileio.c (Ffile_name_absolute_p):
11701         * fileio.c (check_executable):
11702         * fileio.c (Ffile_readable_p):
11703         * fileio.c (Ffile_accessible_directory_p):
11704         * fileio.c (Ffile_modes):
11705         * fileio.c (Funix_sync):
11706         * fileio.c (vars_of_fileio):
11707         [1]. [4].
11708
11709         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11710
11711         Expand getdefdir defn.
11712         Fix bogus rename() comment.
11713
11714         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11715         to use standard XEmacs include files, e.g. sysfile.h, rather
11716         than system-specific includes.
11717
11718         * fns.c:
11719         * fns.c (Fsubseq):
11720         [5]. [6].
11721
11722         * frame.c (vars_of_frame):
11723         [1].
11724
11725         * getloadavg.c:
11726         * getloadavg.c (getloadavg):
11727         [1]. [6].
11728         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11729         (We don't use it elsewhere in the code; just add a comment.)
11730
11731         * gif_io.c:
11732         [6].
11733         Add config.h.
11734
11735         * glyphs-msw.c:
11736         * glyphs-msw.c (mswindows_resource_instantiate):
11737         [1].
11738
11739         * glyphs-x.c (x_native_layout_instantiate):
11740         [5].
11741
11742         * gui-msw.c (Fmswindows_shell_execute):
11743         [1].
11744
11745         * insdel.c:
11746         [4].
11747
11748         * lisp.h:
11749         [4]. [5].
11750
11751         * lread.c (locate_file_in_directory_mapper):
11752         [1].
11753
11754         * lstream.c:
11755         [4].
11756
11757         * mem-limits.h:
11758         * mem-limits.h (get_lim_data):
11759         [1].
11760
11761         * menubar-msw.c:
11762         [4].
11763
11764         * ndir.h:
11765         [1].
11766
11767         * nt.c:
11768         * nt.c (getwd):
11769         * nt.c (closedir):
11770         * nt.c (rva_to_section):
11771         * nt.c (mswindows_executable_type):
11772         [1]. [6].
11773         Fix closedir() defn.
11774
11775         * nt.h:
11776         [[[[8]]]]: *_OK defs moved to sysfile.h.
11777
11778         * ntproc.c:
11779         [6]. [7].
11780
11781         * objects-x.c:
11782         [4].
11783
11784         * print.c:
11785         * print.c (std_handle_out_external):
11786         [1]. [4].
11787
11788         * process-nt.c:
11789         * process-nt.c (nt_create_process):
11790         [6].
11791         try to fix process quoting somewhat.
11792
11793         * process-unix.c (unix_create_process):
11794         [1].
11795
11796         * process.c:
11797         * process.c (vars_of_process):
11798         Add Vnull_device.
11799
11800         * process.h:
11801         [1].
11802
11803         * realpath.c:
11804         * realpath.c (xrealpath):
11805         [1].
11806
11807         * redisplay-tty.c (init_tty_for_redisplay):
11808         [3].
11809
11810         * redisplay.c:
11811         [4]. [6].
11812
11813         * scrollbar-msw.c:
11814         [4].
11815
11816         * sheap.c:
11817         * sheap.c (more_static_core):
11818         * sheap.c (report_sheap_usage):
11819         [5]. [6].
11820
11821         * signal.c:
11822         * signal.c (alarm_signal):
11823         [1]. [6].
11824
11825         * sound.c:
11826         [6].
11827
11828         * strftime.c:
11829         * strftime.c (zone_name):
11830         [1]. [5].
11831
11832         * symsinit.h (init_sunpro):
11833         [1].
11834
11835         * syscommctrl.h:
11836         commctrl.h not in Cygwin b20.1.
11837
11838         * sysdep.c:
11839         * sysdep.c (endif):
11840         * sysdep.c (sys_subshell):
11841         * sysdep.c (init_baud_rate):
11842         * sysdep.c (emacs_get_tty):
11843         * sysdep.c (emacs_set_tty):
11844         * sysdep.c (tty_init_sys_modes_on_device):
11845         * sysdep.c (init_system_name):
11846         * sysdep.c (sys_open):
11847         * sysdep.c (interruptible_open):
11848         * sysdep.c (sys_fopen):
11849         * sysdep.c (sys_mkdir):
11850         * sysdep.c (sys_rename):
11851         * sysdep.c (get_process_times_1):
11852         [1]. [6].
11853
11854         * sysdep.h:
11855         [1].
11856
11857         * sysdir.h:
11858         * sysdir.h (DIRENTRY_NONEMPTY):
11859         [1]. [6].
11860
11861         * sysdll.c (dll_init):
11862         * sysdll.h:
11863         [1].
11864
11865         * sysfile.h:
11866         [1]. [6]. [8].
11867         added text/binary defs.
11868
11869         * sysfloat.h:
11870         [1].
11871
11872         * sysproc.h:
11873         * sysproc.h (EDESTADDRREQ):
11874         * sysproc.h (poll_fds_for_input):
11875         [1]. [6].
11876
11877         * syspwd.h:
11878         [6].
11879
11880         * syssignal.h:
11881         [1].
11882
11883         * systime.h:
11884         [1]. [6].
11885
11886         * systty.h:
11887         [1].
11888
11889         * syswindows.h:
11890         [1].
11891         Always define WIN32_LEAN_AND_MEAN.
11892
11893         * unexcw.c (unexec):
11894         [5].
11895
11896         * unexec.c:
11897         * unexec.c (copy_text_and_data):
11898         * unexec.c (adjust_lnnoptrs):
11899         [1].
11900
11901         * unexnt.c:
11902         * unexnt.c (_start):
11903         [1].
11904
11905 2000-06-07  Ben Wing  <ben@xemacs.org>
11906
11907         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11908         was used only as a model.  We've long since extracted any useful
11909         logic or code out of this. (I just did an exhaustive search.)
11910
11911         * s\msdos.h: Removed.
11912
11913         * s\windows95.h: Removed.
11914
11915 2000-06-10  Ben Wing  <ben@xemacs.org>
11916
11917         * s\cygwin32.h:
11918         [1]. [5].
11919         Don't use extern with fun defs.
11920
11921         * s\mingw32.h:
11922         [1]. [7].
11923         Remove nt\inc include.
11924         Remove getdisk, getdefdir. (The former is unused, the latter
11925         expanded in fileio.h.)
11926
11927         * s\windowsnt.h:
11928         * s\windowsnt.h (WIN32_NATIVE):
11929         * s\windowsnt.h (HAVE_STRCASECMP):
11930         [1]. [7].
11931         Add long comment about preprocessor changes.
11932         Remove getdisk, getdefdir. (The former is unused, the latter
11933         expanded in fileio.h.)
11934
11935 2000-06-10  Ben Wing  <ben@xemacs.org>
11936
11937         * m\arm.h:
11938         * m\delta.h:
11939         * m\intel386.h:
11940         * m\sequent.h:
11941         * m\template.h:
11942         * m\windowsnt.h:
11943         [1].
11944         Remove bogus/unused NO_SOCK_SIGIO.
11945
11946 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11947
11948         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11949         not an Emchar.
11950
11951 2000-06-04  Mike Sperber <mike@xemacs.org>
11952
11953         * casetab.c (set_case_table): For `set-standard-case-table',
11954         actually deposit the new case tables where the rest of XEmacs can
11955         see them.
11956
11957 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11958
11959         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11960
11961 2000-06-05  Ben Wing  <ben@xemacs.org>
11962
11963         * callproc.c (child_setup): Don't do close_load_descs() under
11964         MS Windows.  Put in a comment explaining why.
11965
11966 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11967
11968         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11969         Toolkit shell" which breaks `kill-compilation' on Windows NT
11970         native, retaining STDERR handling improvements.
11971
11972 2000-06-01  Andreas Jaeger  <aj@suse.de>
11973
11974         * s/s390.h: Support for S390, based on a patch by Martin
11975         Schwidefsky <schwidefsky@de.ibm.com>.
11976
11977 2000-05-30  Andy Piper  <andy@xemacs.org>
11978
11979         * window.c (allocate_window):
11980         (make_dummy_parent):
11981         (Fset_window_configuration): use new hashtable type.
11982
11983         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11984         (struct image_instantiator_methods):
11985         (struct Lisp_Image_Instance): make instance geometry signed.
11986
11987         * glyphs.c (instantiate_image_instantiator):
11988         (image_instance_query_geometry):
11989         (image_instance_layout):
11990         (image_instance_layout):
11991         (query_string_geometry):
11992         (text_query_geometry):
11993         (image_instantiate):
11994         (image_instantiate):
11995         (cache_subwindow_instance_in_frame_maybe):
11996         (subwindow_query_geometry): make instance geometry signed.
11997
11998         * glyphs-widget.c (widget_query_geometry):
11999         (widget_layout):
12000         (button_query_geometry):
12001         (tree_view_query_geometry):
12002         (tab_control_query_geometry):
12003         (layout_query_geometry):
12004         (layout_layout):
12005         (native_layout_layout): make instance geometry signed.
12006
12007 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12008
12009         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12010         constant.
12011
12012         * general.c (syms_of_general): Add Qfull_assoc symbol.
12013
12014         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12015         correctly.
12016         (decode_weak_list_type): Decode full-assoc type.
12017         (encode_weak_list_type): Encode full-assoc type.
12018         (Fmake_weak_list): Update doc string.
12019
12020 2000-05-30  Andy Piper  <andy@xemacs.org>
12021
12022         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12023
12024         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12025         (decode_hash_table_weakness): ditto.
12026         (Fhash_table_weakness): ditto.
12027         (Fhash_table_type): ditto.
12028         (finish_marking_weak_hash_tables): ditto.
12029         (hash_table_weakness_validate): ditto.
12030         (syms_of_elhash): ditto.
12031
12032 2000-05-28  Martin Buchholz <martin@xemacs.org>
12033
12034         * XEmacs 21.2.34 is released.
12035
12036 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12037
12038         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12039         start cache.
12040         (updating_line_start_cache): Gone.
12041         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12042         generic code to force a minimum of 1 line laid out in the
12043         CMOTION_DISP case.
12044
12045 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12046
12047         * glyphs.c (instantiate_image_instantiator): Check for initialized
12048         height & width no longer special cases IMAGE_NOTHING.
12049         (nothing_instantiate): Set height and width of instance.
12050
12051 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12052
12053         * unexelf.c (unexec): Search for ".data" section.
12054         Initialize new_data2_offset from old_data_index.
12055         Remove redundant check for ElfW.
12056
12057 2000-05-23  Andy Piper  <andy@xemacs.org>
12058
12059         * glyphs.c (get_image_instantiator_governing_domain): allow more
12060         specific domains as the governing domain rather than expecting an
12061         exact match. This fixes problems with layouts.
12062
12063 2000-05-22  Andy Piper  <andy@xemacs.org>
12064
12065         * redisplay-output.c (compare_runes): check for non-images
12066
12067         * glyphs.c (set_glyph_dirty_p): ditto.
12068         (update_glyph_cachel_data): ditto.
12069
12070         * glyphs-widget.c (layout_post_instantiate): ditto.
12071         (layout_post_instantiate): ditto.
12072
12073         * event-msw.c (mswindows_wnd_proc): warning removal.
12074
12075 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12076
12077         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12078
12079         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12080
12081         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12082
12083         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12084         (mswindows_executable_type): mingw32 now has enough headers for
12085         this to work.
12086
12087 2000-05-20  Andy Piper  <andy@xemacs.org>
12088
12089         * console-msw.c (mswindows_output_last_error): ; -> ,
12090
12091 2000-05-12  Andy Piper  <andy@xemacs.org>
12092
12093         * console-msw.c (FROB): compare ints with ints.
12094
12095 2000-05-11  Andy Piper  <andy@xemacs.org>
12096
12097         * glyphs-x.c (x_finalize_image_instance): make minimal build
12098         happy.
12099
12100 2000-05-20  Ben Wing  <ben@xemacs.org>
12101
12102         * event-Xt.c:
12103         * event-Xt.c (vars_of_event_Xt):
12104         move modifier-keys-are-sticky to event-stream.c.
12105
12106         * event-msw.c:
12107         * event-msw.c (mswindows_enqueue_mouse_button_event):
12108         * event-msw.c (key_needs_default_processing_p):
12109         * event-msw.c (XEMSW_LCONTROL):
12110         * event-msw.c (mswindows_handle_sticky_modifiers):
12111         * event-msw.c (FROB):
12112         * event-msw.c (clear_sticky_modifiers):
12113         * event-msw.c (output_modifier_keyboard_state):
12114         * event-msw.c (output_alt_keyboard_state):
12115         * event-msw.c (mswindows_wnd_proc):
12116         * event-msw.c (mswindows_modifier_state):
12117         * event-msw.c (emacs_mswindows_handle_magic_event):
12118         implement sticky modifiers.
12119
12120         * event-stream.c:
12121         * event-stream.c (vars_of_event_stream):
12122         move modifier-keys-are-sticky here.
12123
12124         * lisp.h:
12125         add CHECK_FUNCTION.
12126
12127         * rangetab.c:
12128         implement map-range-table.
12129
12130
12131 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12132
12133         * redisplay-tty.c (reset_tty_modes):
12134         (tty_redisplay_shutdown): Adjust argument type to
12135         tty_frame_output_end.
12136
12137 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12138
12139         * eval.c (Fbacktrace): Don't output a line with only right
12140         parenthesis.
12141
12142 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12143
12144         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12145         (Fpq_reset_poll): Ditto.
12146
12147 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12148
12149         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12150
12151 2000-05-16  Ben Wing  <ben@xemacs.org>
12152
12153         * buffer.c:
12154         * buffer.c (dfc_convert_to/from_internal_format):
12155         * buffer.c (reinit_vars_of_buffer):
12156         Fix conversion functions to allow reentrancy.
12157
12158         * console-msw.c:
12159         * console-msw.c (mswindows_output_last_error):
12160         New fun, generally useful -- output a human-readable
12161         version of GetLastError() on the console.
12162
12163         * console-msw.h:
12164         * console-msw.h (struct mswindows_frame):
12165         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12166
12167         * console-stream.c (stream_output_begin):
12168         * console-stream.c (stream_output_end):
12169         * console-stream.c (stream_output_vertical_divider):
12170         * console-stream.c (stream_clear_region):
12171         * console-stream.c (stream_flash):
12172         * console-stream.c (console_type_create_stream):
12173         Delete blank stream methods, not needed.
12174
12175         * console.h (struct console_methods):
12176         Split begin/end methods into window and frame.
12177
12178         * event-msw.c:
12179         * event-msw.c (mswindows_handle_paint):
12180         * event-msw.c (output_alt_keyboard_state):
12181         * event-msw.c (mswindows_wnd_proc):
12182         * event-msw.c (vars_of_event_mswindows):
12183         Comment about problems with ignored-expose.
12184         Define mswindows-debug-events; not really implemented.
12185
12186         * frame-msw.c (mswindows_init_frame_1):
12187         random cleanups.
12188
12189         * glyphs-msw.c:
12190         * glyphs-msw.c (begin_defer_window_pos):
12191         * glyphs-msw.c (mswindows_unmap_subwindow):
12192         * glyphs-msw.c (mswindows_map_subwindow):
12193         * glyphs-msw.c (mswindows_resize_subwindow):
12194         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12195
12196         * glyphs.c (make_image_instance_1):
12197         Fix crash.
12198
12199         * gutter.c (Fredisplay_gutter_area):
12200         Use new begin/end methods.
12201
12202         * lisp.h (Dynarr_new2):
12203         New creation fun.
12204
12205         * redisplay-msw.c:
12206         * redisplay-msw.c (mswindows_frame_output_begin):
12207         * redisplay-msw.c (mswindows_frame_output_end):
12208         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12209         New begin/end methods -- handle DeferWindowPos.
12210
12211         * redisplay-output.c (redisplay_move_cursor):
12212         * redisplay-output.c (redraw_cursor_in_window):
12213         * redisplay-output.c (redisplay_update_line):
12214         * redisplay-output.c (redisplay_output_window):
12215         New begin/end methods.
12216
12217         * redisplay-tty.c:
12218         * redisplay-tty.c (tty_frame_output_begin):
12219         * redisplay-tty.c (tty_frame_output_end):
12220         * redisplay-tty.c (console_type_create_redisplay_tty):
12221         New begin/end methods.
12222
12223         * redisplay-x.c:
12224         * redisplay-x.c (x_window_output_begin):
12225         * redisplay-x.c (x_window_output_end):
12226         * redisplay-x.c (console_type_create_redisplay_x):
12227         New begin/end methods.
12228
12229         * redisplay.c (redisplay_frame):
12230         * redisplay.c (Fredisplay_echo_area):
12231         New begin/end methods.
12232         use MAYBE_DEVMETH for clear_frame; it may not exist.
12233
12234         * window.h (WINDOW_XFRAME):
12235         WINDOW_XFOO macros -- get locale and decode struct pointer.
12236
12237
12238 2000-05-12  Ben Wing  <ben@xemacs.org>
12239
12240         * emacs.c:
12241         * emacs.c (ensure_no_quitting_from_now_on):
12242         * emacs.c (fatal_error_signal):
12243         * emacs.c (mswindows_handle_hardware_exceptions):
12244         * emacs.c (main):
12245         * emacs.c (Fkill_emacs):
12246         * emacs.c (shut_down_emacs):
12247         * emacs.c (assert_failed):
12248         various improvements in fatal error handling.
12249
12250         * eval.c:
12251         move preparing_for_armageddon to emacs.c.
12252
12253         * lisp.h:
12254         declare fatal_error_in_progress.
12255
12256         * print.c:
12257         * print.c (std_handle_out_external):
12258         * print.c (std_handle_out_va):
12259         * print.c (stderr_out):
12260         * print.c (stdout_out):
12261         use console under mswin when no standard output.
12262         don't do code conversion during fatal error.
12263
12264         * scrollbar.c (Fscrollbar_page_up):
12265         * scrollbar.c (Fscrollbar_page_down):
12266         fix missing else.  reindent.
12267
12268 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12269
12270         Emergency fix.
12271
12272         * glyphs.h (GLYPH_CACHEL_DESCENT):
12273         (GLYPH_CACHEL_DESCENT):
12274         (GLYPH_CACHEL_DESCENT):
12275         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12276         used in case these are inline functions.
12277         Use more absurd values to error check.
12278
12279         include window.h for error check functions.
12280
12281 2000-05-11  Ben Wing  <ben@xemacs.org>
12282
12283         * cmdloop.c (Freally_early_error_handler):
12284         Display message box under windows; otherwise, message will disappear
12285         before it can be viewed.
12286
12287         * console-msw.c:
12288         * console-msw.c (Fmswindows_message_box):
12289         * console-msw.c (FROB):
12290         * console-msw.c (syms_of_console_mswindows):
12291         Define new fun `mswindows-message-box'.
12292         #### I will merge this into `popup-dialog-box'; just give me
12293         a bit of time.
12294
12295         * general.c:
12296         * general.c (syms_of_general):
12297         Some new symbols used in `mswindows-message-box'.
12298
12299         * glyphs.c:
12300         * glyphs.c (Fset_image_instance_property):
12301         put warning in this fun.
12302
12303         * glyphs.h:
12304         * glyphs.h (GLYPH_CACHEL_WIDTH):
12305         * glyphs.h (GLYPH_CACHEL_ASCENT):
12306         * glyphs.h (GLYPH_CACHEL):
12307         * glyphs.h (GLYPH_CACHEL_GLYPH):
12308         define error-checking versions to try to catch a bug i've seen --
12309         redisplay gets in an infinite loop because the glyph width of the
12310         continuation glyph is 65535.
12311
12312         * lisp.h:
12313         Extern message-box stuff.
12314
12315         * window.c (allocate_window):
12316         * window.c (make_dummy_parent):
12317         * window.c (Fset_window_configuration):
12318         Use EQUAL not EQ for subwindow caches to make them work a bit
12319         better. (Something is still very broken.)
12320
12321
12322 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12323
12324         * glyphs.c (image_instantiate): Suppress gcc warnings.
12325         (Fmake_image_instance): Fix doc string.
12326         * specifier.c (Fmake_specifier): Ditto.
12327
12328 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12329
12330         * paths.h.in (PATH_LOCK): Removed.
12331         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12332         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12333
12334 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12335
12336         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12337         Document (featurep '(and xemacs 21.02)).
12338
12339 2000-05-09  Ben Wing  <ben@xemacs.org>
12340
12341         * buffer.c (complex_vars_of_buffer):
12342         update modeline-format doc.
12343
12344         * device.h:
12345         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12346
12347         * emacs.c:
12348         timeline of all released versions of Emacs, for use in creating
12349         authorship comments and in synching up.
12350
12351         * glyphs-widget.c (image_instantiator_buttons):
12352         * glyphs-widget.c (image_instantiator_edit_fields):
12353         * glyphs-widget.c (image_instantiator_combo_box):
12354         * glyphs-widget.c (image_instantiator_scrollbar):
12355         * glyphs-widget.c (image_instantiator_progress_guage):
12356         * glyphs-widget.c (image_instantiator_tree_view):
12357         * glyphs-widget.c (image_instantiator_tab_control):
12358         * glyphs-widget.c (image_instantiator_labels):
12359         * glyphs-widget.c (image_instantiator_layout):
12360         * glyphs-widget.c (image_instantiator_native_layout):
12361         rename decode_domain method to governing_domain.
12362
12363         * glyphs.c:
12364         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12365         * glyphs.c (add_entry_to_device_ii_format_list):
12366         make sure we don't put an entry more than once into the list.
12367         * glyphs.c (check_instance_cache_mapper):
12368         *************************************************************
12369         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12370         HAVE BEEN GETTING.
12371         *************************************************************
12372         * glyphs.c (get_image_instantiator_governing_domain):
12373         clean up, expand on new concept of governing domain.
12374         * glyphs.c (instantiate_image_instantiator):
12375         * glyphs.c (allocate_image_instance):
12376         use governing_domain instead of cache_domain in naming.
12377         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12378         * glyphs.c (make_image_instance_1):
12379         * glyphs.c (Fmake_image_instance):
12380         allow for any domain (not just device), and process the
12381         governing domain correctly.  very big doc fix.
12382         * glyphs.c (Fimage_instance_domain):
12383         new primitive, to retrieve the governing domain of an image instance.
12384         * glyphs.c (image_instantiate):
12385         use new governing_domain stuff.  this fixes a crash you could get
12386         by instantiating certain widget glyphs in frame locales. (should
12387         signal an error instead of crashing.)
12388         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12389         * glyphs.c (Fglyphp): clean up doc.
12390         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12391         * glyphs.c (syms_of_glyphs):
12392         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12393         * glyphs.c (image_instantiator_format_create): add some comments about
12394         bogus code.
12395         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12396         for current-display-table. (Apparently Hrjove implemented in 1998 a
12397         design I wrote up in 1996, but didn't update the doc string.)
12398
12399         * glyphs.h: clean up a doc string.
12400         * glyphs.h (governing_domain):
12401         * glyphs.h (struct image_instantiator_methods):
12402         changes for governing_domain stuff.
12403
12404         * gutter.c:
12405         * gutter.c (Fgutter_specifier_p):
12406         * gutter.c (Fgutter_size_specifier_p):
12407         * gutter.c (Fgutter_visible_specifier_p):
12408         * objects.c:
12409         * objects.c (Fcolor_specifier_p):
12410         * objects.c (Ffont_specifier_p):
12411         * objects.c (Fface_boolean_specifier_p):
12412         doc strings moved to make-*-specifier.
12413
12414         * redisplay.c (add_disp_table_entry_runes_1):
12415         * redisplay.c (generate_fstring_runes):
12416         * redisplay.c (screen):
12417         add random comments and doc strings.
12418
12419         * specifier.c:
12420         * specifier.c (Fmake_specifier):
12421         major overhaul of this doc string.
12422
12423         * specifier.c (Fvalid_specifier_domain_p):
12424         comment about the bogosity of image instances being domains.
12425         * specifier.c (decode_domain):
12426         now non-static, used in glyphs.c.
12427         * specifier.c (specifier_instance):
12428         comment about the bogosity of image instances being domains.
12429         * specifier.c (Fgeneric_specifier_p):
12430         move doc string to make-generic-specifier.
12431         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12432         rebackslashify.
12433
12434         * specifier.h:
12435         * specifier.h (DOMAIN_FRAME):
12436         * specifier.h (DOMAIN_LIVE_P):
12437         * specifier.h (DOMAIN_XDEVICE):
12438         rebackslashify.
12439         add comments about problems with these macros.
12440         prototype for decode_domain.
12441
12442         * toolbar.c:
12443         * toolbar.c (Ftoolbar_specifier_p):
12444         move doc string to `make-toolbar-specifier'.
12445
12446         * window.c (window_unmap_subwindows_cache_mapper):
12447         *************************************************************
12448         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12449         HAVE BEEN GETTING.
12450         *************************************************************
12451
12452 2000-05-09  Andy Piper  <andy@xemacs.org>
12453
12454         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12455
12456         * window.c (Fset_window_configuration): reset the frame subwindow
12457         cache and re-initialize the window subwindow caches.
12458
12459         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12460
12461 2000-05-09  Ben Wing  <ben@xemacs.org>
12462
12463         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12464         DWORD.
12465
12466 2000-04-26  Mike Woolley  <mike@bulsara.com>
12467
12468         * ntheap.c: Changed recreate_heap to limit the amount reserved
12469         for the heap to that which is actually available. Also now
12470         displays a message box (with some dignostics) in the event that
12471         it still can't start.
12472
12473 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12474
12475         * callproc.c (Fold_call_process_internal): GCPRO path
12476
12477 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12478
12479         Patch by Bill Perry.
12480
12481         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12482         back data instead of #ifdef.
12483         (Fscrollbar_page_down): ditto.
12484
12485 2000-05-07  Ben Wing  <ben@xemacs.org>
12486
12487         * buffer.h:
12488         Kludge for defining Qmswindows_tstr.
12489
12490         * nt.c:
12491         * nt.c (open_input_file):
12492         * nt.c (open_output_file):
12493         * nt.c (rva_to_section):
12494         * nt.c (mswindows_executable_type):
12495         Move all memory-mapped-file routines here (some were in unexnt.c,
12496         which is bad because they are used by process-nt.c, and unexnt
12497         won't be around when portable dumping).  Synched the above routines
12498         with FSF 20.6.
12499
12500         * nt.h:
12501         Removed ifdef'd out bogus code.
12502         Fixed some prototypes.
12503
12504         * nt.h (file_data):
12505         * nt.h (OFFSET_TO_RVA):
12506         * nt.h (RVA_TO_OFFSET):
12507         * nt.h (RVA_TO_PTR):
12508         Moved the memory-mapped-file structures, macros and prototypes
12509         here, to parallel nt.c.  ntheap.h should really be removed
12510         entirely, and it's a non-portable-dumper specific file.
12511
12512         * ntheap.h (round_to_next):
12513         Moved the memory-mapped-file structures, macros and prototypes
12514         to nt.h.
12515
12516         * ntproc.c (compare_env):
12517         Moved rva_to_section and mswindows_executable_type to nt.c.
12518         Moved compare_env to process-nt.c.
12519         ntproc.c will die, one day.
12520
12521         * ntproc.c (sys_spawnve):
12522         Account for win32_ -> mswindows_.
12523
12524         * process-nt.c:
12525         * process-nt.c (struct nt_process_data):
12526         * process-nt.c (ensure_console_window_exists):
12527         * process-nt.c (compare_env):
12528         * process-nt.c (nt_create_process):
12529         * process-nt.c (nt_kill_process_by_pid):
12530         * process-nt.c (syms_of_process_nt):
12531         * process-nt.c (vars_of_process_nt):
12532         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12533         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12534         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12535         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12536         Move compare_env here from ntproc.c.
12537
12538         * process.c (Fprocess_send_region):
12539         Takes an optional fourth argument, BUFFER, which should fix some
12540         problems with call-process.
12541
12542         * syscommctrl.h:
12543         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12544
12545         * syswindows.h:
12546         Move ICC_BAR_CLASSES to syscommctrl.h.
12547         Add preliminary macros for MSWindows/Mule.  More to come.
12548
12549         * unexnt.c:
12550         * unexnt.c (unexec):
12551         open_output_file moved to nt.c.
12552
12553
12554 2000-05-05  Andy Piper  <andy@xemacs.org>
12555
12556         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12557         instance from the frame cache also since GC may catch up too late
12558         to make frame deletion sane.
12559
12560 2000-05-04  Andy Piper  <andy@xemacs.org>
12561
12562         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12563         (x_finalize_image_instance): ungcpro on deletion.
12564
12565         * glyphs.c (image_instantiator_format_create): give pointers a
12566         query geometry method so that the geometry is at least set.
12567
12568         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12569         initialize layouts if using widgets.
12570
12571 2000-05-03  Andy Piper  <andy@xemacs.org>
12572
12573         * nt.c: remove bogus reference to sysmmsystem.h
12574
12575         * gui-x.c (popup_selection_callback): fix no selection abort.
12576
12577 2000-05-02  Andy Piper  <andy@xemacs.org>
12578
12579         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12580         (mswindows_widget_instantiate): ditto.
12581
12582         * glyphs-widget.c (initialize_widget_image_instance): initialize
12583         children correctly.
12584         (widget_instantiate): cope with children and items in the same
12585         instance.
12586
12587         * glyphs.c (mark_image_instance): cope with children as a first
12588         class member.
12589         (image_instance_equal): ditto.
12590         (image_instance_hash): ditto.
12591         (image_instance_changed): ditto.
12592
12593 2000-04-30  Andy Piper  <andy@xemacs.org>
12594
12595         * glyphs.c (subwindow_query_geometry): new function. Return some
12596         defaults.
12597         (subwindow_instantiate): don't assign dimensions if none have been
12598         given.
12599         (image_instantiator_format_create): add subwindow_query_geometry.
12600         (print_image_instance): cope with layouts as widgets.
12601
12602 2000-04-29  Andy Piper  <andy@xemacs.org>
12603
12604         * frame.c (delete_frame_internal): call
12605         free_frame_subwindow_instance_cache so that all subwindows are
12606         finalized before their parent.
12607         (mark_frame): remove subwindow_cachels.
12608         (Fmake_frame): remove subwindow_cachel manipulation.
12609         (allocate_frame_core): subwindow_instance_cache is a weak list.
12610         (delete_frame_internal): set subwindow_instance_cache to nil.
12611
12612         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12613         finalization safe.
12614         (mswindows_finalize_image_instance): use the device
12615         not the domain as the domain may have died already.
12616
12617         * glyphs-x.c (x_finalize_image_instance): ditto.
12618         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12619         HEIGHT.
12620
12621         * redisplay-output.c (redisplay_unmap_subwindows): update for
12622         subwindow instance cache as a weak list.
12623         (redisplay_unmap_subwindows_maybe): ditto.
12624         (redisplay_unmap_subwindows_except_us): ditto.
12625
12626         * glyphs.c (unmap_subwindow): error checking will check the domain
12627         so don't deal with it here. Don't use cachels anymore.
12628         (map_subwindow): ditto.
12629         (update_subwindow_cachel_data): remove old accessor names.
12630         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12631         (Fresize_subwindow): don't update cachel.
12632         (mark_subwindow_cachels):
12633         (update_subwindow_cachel_data):
12634         (add_subwindow_cachel):
12635         (get_subwindow_cachel_index):
12636         (update_subwindow_cachel):
12637         (reset_subwindow_cachels):
12638         (mark_subwindow_cachels_as_not_updated): deleted.
12639         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12640         subwindow instance to the frame cache.
12641         (find_matching_subwindow): update for subwindow instance cache as
12642         a weak list.
12643         (update_widget_instances): ditto.
12644         (image_instance_type_to_mask):inlined.
12645         (free_frame_subwindow_instance_cache): new function. finalize all
12646         subwindows that are instantiated.
12647
12648         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12649         of cachel information.
12650         (IMAGE_INSTANCE_DISPLAY_X):
12651         (IMAGE_INSTANCE_DISPLAY_Y):
12652         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12653         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12654         (XIMAGE_INSTANCE_DISPLAY_X):
12655         (XIMAGE_INSTANCE_DISPLAY_Y):
12656         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12657         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12658         remove subwindow_cachel structure and function references.
12659         (image_instance_type_to_mask): inline from glyphs.c
12660
12661         * redisplay.c (redisplay_frame): remove subwindow_cachel
12662         references.
12663
12664         * frame.h (struct frame): remove subwindow_cachels.
12665         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12666
12667         * frameslots.h: add subwindow_instance_cache.
12668
12669         * window.c (replace_window): check subwindow cache of replacement.
12670         (window_unmap_subwindows_cache_mapper):
12671         (window_unmap_subwindows): new functions. Unmap all subwindows
12672         cached on this window.
12673         (mark_window_as_deleted): unmap all subwindows.
12674
12675 2000-04-27  Andy Piper  <andy@xemacs.org>
12676
12677         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12678
12679         * glyphs-widget.c (widget_layout): return something.
12680         (layout_layout): return something. Fail if not initialized.
12681         (layout_query_geometry): ditto.
12682         (image_instantiator_native_layout): new function. Initialized the
12683         native layout type.
12684         (widget_instantiate): don't do layout stuff here.
12685
12686         * glyphs.c (instantiate_image_instantiator): reorded calling or
12687         instantiate and post_instantiate with layout in between.
12688         (image_instance_layout): be more selective about deciding whether
12689         the layout has been done or not.
12690
12691         * glyphs.h (struct image_instantiator_methods): return a value
12692         from layout_method.
12693
12694 2000-04-26  Andy Piper  <andy@xemacs.org>
12695
12696         * glyphs.c (allocate_image_instance): make initial width and
12697         height unspecified. Set initialized to 0.
12698
12699         * syscommctrl.h new file. Encapsulates commctrl.h.
12700
12701         * syswindows.h new file. Encapsulates windows.h.
12702
12703         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12704         * nt.c: ditto.
12705         * console-msw.h: ditto.
12706
12707         * redisplay-tty.c (tty_output_display_block): remove layout references.
12708
12709         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12710         window handle rather than just the frame.
12711
12712         * glyphs.c (mark_image_instance): remove layout references.
12713         (print_image_instance): ditto.
12714         (image_instance_equal): ditto.
12715         (image_instance_hash): ditto.
12716         (decode_image_instance_type): ditto.
12717         (encode_image_instance_type): ditto.
12718         (image_instantiate): ditto.
12719         (allocate_glyph): ditto.
12720         (Fimage_instance_height): ditto.
12721         (Fimage_instance_width): ditto.
12722         (update_subwindow): ditto.
12723
12724         * redisplay-x.c (x_output_display_block): recode for layouts as
12725         widgets.
12726
12727         * redisplay-output.c (redisplay_output_layout): recode for layouts
12728         as widgets.
12729         (compare_runes): remove layout references.
12730
12731         * redisplay-msw.c (mswindows_output_display_block): recode for
12732         layouts as widgets.
12733
12734         * glyphs-widget.c (image_instantiator_layout): remove
12735         layout_possible_dest_types.
12736         (layout_possible_dest_types): deleted.
12737
12738         * glyphs.h (image_instance_type): remove layout references.
12739         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12740         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12741         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12742
12743 2000-04-25  Andy Piper  <andy@xemacs.org>
12744
12745         * glyphs-widget.c (image_instantiator_buttons):
12746         (image_instantiator_edit_fields):
12747         (image_instantiator_combo_box):
12748         (image_instantiator_scrollbar):
12749         (image_instantiator_progress_guage):
12750         (image_instantiator_tree_view):
12751         (image_instantiator_tab_control):
12752         (image_instantiator_labels):
12753         (image_instantiator_layout): call default post_instantiate method.
12754         (widget_post_instantiate): new function. Simply lays out the
12755         widgets.
12756
12757         * glyphs.h (struct image_instantiator_methods): add
12758         post_instantiate method.
12759
12760         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12761         method calls.
12762
12763 2000-04-23  Andy Piper  <andy@xemacs.org>
12764
12765         * glyphs.h (struct image_instantiator_methods): add
12766         decode_domain_method.
12767         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12768         derived from the domain.
12769         (IMAGE_INSTANCE_FRAME): new accessor.
12770         (XIMAGE_INSTANCE_FRAME): ditto.
12771
12772         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12773         instead of _SUBWINDOW_FRAME.
12774         (finalize_image_instance): ditto.
12775         (Fimage_instance_foreground): ditto.
12776         (Fimage_instance_background): ditto.
12777         (image_instantiate): ditto.
12778         (update_subwindow_cachel): ditto.
12779         (update_subwindow): ditto.
12780         (unmap_subwindow): ditto.
12781         (map_subwindow): ditto
12782         (subwindow_instantiate): ditto.
12783         * glyphs-msw.c (mswindows_update_widget): ditto.
12784         (mswindows_progress_gauge_instantiate): ditto.
12785         (mswindows_tab_control_update): ditto.
12786         * glyphs-x.c (x_update_widget): ditto.
12787         (x_widget_instantiate): ditto.
12788         (x_tab_control_instantiate): ditto.
12789         (x_tab_control_update): ditto.
12790         * event-msw.c (mswindows_wnd_proc): ditto
12791
12792         * glyphs-widget.c (image_instantiator_layout): use
12793         subwindow_decode_domain.
12794         (image_instantiator_buttons): ditto.
12795         (image_instantiator_edit_fields): ditto.
12796         (image_instantiator_combo_box): ditto.
12797         (image_instantiator_scrollbar): ditto.
12798         (image_instantiator_progress_guage): ditto.
12799         (image_instantiator_tree_view): ditto.
12800         (image_instantiator_tab_control): ditto.
12801         (image_instantiator_labels): ditto.
12802         (image_instantiator_layout): ditto.
12803
12804         * glyphs.c: add instance error checking to many functions.
12805         (instantiate_image_instantiator): decode device from cache_domain.
12806         (image_instantiate): partially rewrite by using
12807         decode_image_instantiator_domain to determine what domain the
12808         instance needs to be cached in.
12809         (decode_image_instantiator_domain): new function. Determine what
12810         domain the image needs to be cached in.
12811         (check_window_subwindow_cache): new error checking function.
12812         (check_instance_cache_mapper): ditto.
12813         (check_image_instance_structure): ditto.
12814         (subwindow_decode_domain): new function. Encodes a window as a
12815         subwindow's cache domain.
12816         (image_instantiator_format_create): use it for text and
12817         subwindows.
12818
12819 2000-04-21  Andy Piper  <andy@xemacs.org>
12820
12821         * glyphs.c (image_instance_device): new function.
12822         (image_instance_frame): new function.
12823         (image_instance_window): new function.
12824         (image_instance_live_p): new function.
12825
12826         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12827         cache to nil.
12828
12829         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12830         (IMAGE_INSTANCE_DOMAIN): new accessor.
12831         (XIMAGE_INSTANCE_DOMAIN): ditto.
12832
12833         * glyphs-x.c (x_finalize_image_instance): device->domain.
12834
12835         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12836         (mswindows_finalize_image_instance): ditto.
12837
12838         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12839         (gif_instantiate): ditto.
12840         (png_instantiate): ditto.
12841         (tiff_instantiate): ditto.
12842
12843         * glyphs.c (instantiate_image_instantiator): use domain rather
12844         than device.
12845         (mark_image_instance): device -> domain.
12846         (print_image_instance): ditto.
12847         (finalize_image_instance): ditto.
12848         (image_instance_equal): ditto.
12849         (allocate_image_instance): ditto.
12850         (Fcolorize_image_instance): ditto.
12851         (query_string_geometry): ditto.
12852         (image_instantiate): ditto
12853         (query_string_font): ditto.
12854         (image_instantiate): ditto.
12855         (update_subwindow): ditto.
12856         (unmap_subwindow): ditto.
12857         (map_subwindow): ditto.
12858         (subwindow_instantiate): ditto.
12859
12860         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12861         (DOMAIN_FRAME): ditto.
12862         (DOMAIN_WINDOW): ditto.
12863         (DOMAIN_LIVE_P): ditto.
12864         (XDOMAIN_DEVICE): ditto.
12865         (XDOMAIN_FRAME): ditto.
12866         (XDOMAIN_WINDOW): ditto.
12867
12868         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12869         a valid specifier domain.
12870
12871 2000-04-19  Andy Piper  <andy@xemacs.org>
12872
12873         * glyphs-widget.c (syms_of_glyphs_widget): remove
12874         widget-callback-current-channel.
12875         (vars_of_glyphs_widget): ditto.
12876         * glyphs.h: ditto
12877
12878         * gui.c (get_gui_callback): revert to previous behaviour.
12879
12880 2000-04-18  Andy Piper  <andy@xemacs.org>
12881
12882         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12883         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12884         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12885
12886         * glyphs.c (image_instance_equal): add margin_width.
12887         (image_instance_hash): ditto.
12888
12889         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12890         (layout_query_geometry): ditto.
12891         (layout_layout): ditto.
12892         (syms_of_glyphs_widget): add margin-width.
12893         (image_instantiator_layout): allow margin-width.
12894
12895         * glyphs.c (update_widget_instances): make a normal function.
12896         (syms_of_glyphs): remove Qupdate_widget_instances.
12897         * glyphs.h: ditto.
12898
12899         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12900         so that we don't corrupt ideas about the last event or
12901         command. Remove widget-callback-current-channel fiddling.
12902         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12903
12904 2000-05-01  Martin Buchholz <martin@xemacs.org>
12905
12906         * XEmacs 21.2.33 is released.
12907
12908 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12909
12910         * make-src-depend: Allow dots in header file name.
12911
12912 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12913
12914         * mule-charset.h (struct charset_lookup): Add
12915         next_allocated_1_byte_leading_byte and
12916         next_allocated_2_byte_leading_byte.
12917         * mule-charset.c: Move above two variables so that those values
12918         will be dumped.
12919
12920 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12921
12922         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12923         when string length is zero.
12924         (find_charsets_in_emchar_string): Ditto.
12925
12926 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12927
12928         * lisp.h: extern Qdialog and Qmenubar.
12929
12930         * gui-x.c: added events.h.
12931                 also fixed typo which made the file uncompilable.
12932
12933         * general.c: Added Qmenubar and Qdialog
12934
12935 2000-04-28  Ben Wing  <ben@xemacs.org>
12936
12937         * frame-msw.c (mswindows_init_frame_1):
12938         * frame-msw.c (mswindows_mark_frame):
12939         * event-msw.c (mswindows_enqueue_dispatch_event):
12940         * console-msw.h:
12941         * console-msw.h (struct mswindows_frame):
12942         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12943         there are now three hash tables for callbacks.
12944         mswindows_enqueue_dispatch_event is no longer static.
12945
12946         * dialog-x.c (maybe_run_dbox_text_callback):
12947         * dialog-x.c (dbox_descriptor_to_widget_value):
12948         switch to new cons3 form for callbacks.
12949
12950         * glyphs-msw.c (mswindows_register_gui_item):
12951         * glyphs-msw.c (mswindows_widget_instantiate):
12952         * glyphs-msw.c (add_tree_item):
12953         * glyphs-msw.c (add_tab_item):
12954         new image instance parameter, so it can be passed to callback-ex.
12955         respect :callback-ex as well as :callback.
12956
12957         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12958         add :callback-ex.
12959
12960         * glyphs.c (print_image_instance):
12961         prettify, e.g. now prints widget type.
12962
12963         * gui-x.h:
12964         certain funs have new image instance parameter.
12965
12966         * gui.c:
12967         * gui.c (get_gui_callback):
12968         * gui.c (gui_item_add_keyval_pair):
12969         * gui.c (gui_item_init):
12970         * gui.c (gui_add_item_keywords_to_plist):
12971         * gui.c (mark_gui_item):
12972         * gui.c (gui_item_hash):
12973         * gui.c (gui_item_equal):
12974         * gui.c (copy_gui_item):
12975         * gui.c (syms_of_gui):
12976         recognize callback-ex in a number of places.
12977         also, fix the annoying "can't get out of yes-no dialog" bug.
12978
12979         * gui.h:
12980         * gui.h (struct Lisp_Gui_Item):
12981         recognize callback-ex in a number of places.
12982
12983         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12984         new parameter in button_item_to_widget_value.
12985
12986         * glyphs-x.c (x_update_widget):
12987         * glyphs-x.c (x_button_instantiate):
12988         * glyphs-x.c (x_button_update):
12989         * glyphs-x.c (x_progress_gauge_instantiate):
12990         * glyphs-x.c (x_edit_field_instantiate):
12991         * glyphs-x.c (x_combo_box_instantiate):
12992         * glyphs-x.c (x_tab_control_instantiate):
12993         * glyphs-x.c (x_label_instantiate):
12994         new image instance parameter in various places.
12995
12996         * event-Xt.c:
12997         * event-Xt.c (enqueue_Xt_dispatch_event):
12998         this fun gets exported.
12999
13000         * gui-msw.c:
13001         * gui-msw.c (mswindows_handle_gui_wm_command):
13002         handle both :callback and :callback-ex, and generate our own
13003         event because it's one of the callback-ex arguments.
13004
13005         * gui-x.c:
13006         * gui-x.c (popup_selection_callback):
13007         handle both :callback and :callback-ex, and generate our own
13008         event because it's one of the callback-ex arguments.
13009         * gui-x.c (button_item_to_widget_value):
13010         * gui-x.c (gui_items_to_widget_values_1):
13011         * gui-x.c (gui_item_children_to_widget_values):
13012         * gui-x.c (gui_items_to_widget_values):
13013         new image instance parameter in various places.
13014
13015         * fns.c (Freplace_list):
13016         fix small typo in doc string.
13017
13018         * lisp.h:
13019         declare enqueue_Xt_dispatch_event.
13020
13021 2000-04-28  Ben Wing  <ben@xemacs.org>
13022
13023         * buffer.c:
13024         * buffer.c (Frecord_buffer):
13025         * buffer.c (syms_of_buffer):
13026         delete record-buffer-hook.
13027
13028         * fns.c:
13029         * fns.c (Freplace_list):
13030         * fns.c (syms_of_fns):
13031         new primitive replace-list.
13032
13033         * frameslots.h:
13034         slot for old buffer-alist.
13035
13036         * lisp.h:
13037         exfun replace-list.
13038
13039         * redisplay.c:
13040         * redisplay.c (redisplay_frame):
13041         * redisplay.c (syms_of_redisplay):
13042         * redisplay.c (vars_of_redisplay):
13043         new hook buffer-list-changed-hook.
13044         call it.
13045
13046 2000-04-27  Ben Wing  <ben@xemacs.org>
13047
13048         * extents.h: extern in_modeline_generation.
13049
13050         * redisplay.c (generate_formatted_string_db): set
13051         in_modeline_generation.
13052
13053         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13054         flags if in modeline generation.  otherwise frame-modified-tick
13055         is ticked far too often.
13056         Declare in_modeline_generation.
13057
13058 2000-04-26  Ben Wing  <ben@xemacs.org>
13059
13060         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13061         option.
13062         (vars_of_emacs): add quick-build as an error-checking option.
13063         A bit kludgy, but there doesn't seem much point in creating
13064         a real var for this.
13065
13066         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13067
13068 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13069
13070         * redisplay.h (struct display_line): Add a new variable,
13071         line_continuation.
13072
13073         * redisplay.c (create_text_block): Set dl->line_continuation if
13074         the line continues.
13075         (create_string_text_block): Ditto.
13076         (regenerate_window_incrementally): Use line_continuation instead
13077         of searching continuation glyph.
13078         (add_margin_runes): Call add_glyph_rune.
13079         (add_glyph_rune): Handle margin glyph.
13080
13081 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13082
13083         * filelock.c (fill_in_lock_file_name):
13084         ANSIfy.
13085         Check for IS_ANY_SEP instead of '/'.
13086         (lock_file_1):
13087         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13088         Never check errno without first seeing that system call failed.
13089         (unlock_file): Add GCPRO.
13090         (Flock_buffer): Fix docstring.
13091         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13092
13093 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13094
13095         * sysdep.c (get_pty_max_bytes):
13096         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13097         strings longer than 252 bytes.
13098
13099         * md5.c: Unconditionally include ANSI header <limits.h>
13100
13101         * glyphs-x.c (convert_EImage_to_XImage):
13102         * lisp-union.h (union Lisp_Object):
13103         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13104
13105 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13106
13107         * filelock.c (current_lock_owner): Remove unused variable o, p.
13108
13109 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13110
13111         * callint.c: Remove multiply defined symbol Qlet
13112         (syms_of_callint): ditto.
13113
13114 2000-04-14  Andy Piper  <andy@xemacs.org>
13115
13116         * general.c (syms_of_general): add last-command, this-command, let
13117         and funcall.
13118
13119         * lisp.h: declare various symbols.
13120
13121         * glyphs.h: declare Qwidget_callback_current_channel;
13122
13123         * glyphs-widget.c (syms_of_glyphs_widget): add
13124         Qgui_callback_current_channel.
13125         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13126
13127         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13128         widget-callback-current-channel when invoking the interactive
13129         arg. Also bind last-command and next-command when invoking the
13130         widget updates.
13131         * gui-x.c (popup_selection_callback): ditto.
13132
13133         * gui.c (get_gui_callback): massage args so that we are always
13134         calling eval. This allows us to add our own variable bindings
13135         outside.
13136
13137         * glyphs-x.c (x_button_instantiate): use
13138         gui_items_to_widget_values since this is GC safe.
13139         (x_progress_gauge_instantiate): ditto.
13140         (x_edit_field_instantiate): ditto.
13141         (x_label_instantiate): ditto.
13142
13143         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13144         (emacs_Xt_event_widget_focus_out): new function
13145         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13146         focus.
13147         (emacs_Xt_event_add_widget_actions): new function. add focus
13148         functions as actions.
13149         (init_event_Xt_late): use it.
13150
13151 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13152
13153         * event-stream.c (Fdispatch_event): Doc fix.
13154
13155 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13156
13157         * postgresql.c: Remove all references to PQsetenv*.
13158
13159         * postgresql.h: Remove references to PGsetenvHandler object.
13160         * lrecord.h (lrecord_type): Ditto.
13161
13162 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13163
13164         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13165         real_heigh and real_width members, and accessor macros for these.
13166
13167         * glyphs-msw.c (init_image_instance_geometry): New function.
13168         (init_image_instance_from_dibitmap): Use it.
13169         (mswindows_resource_instantiate): Use it.
13170         (init_image_instance_from_xbm_inline): Use it.
13171         (mswindows_initialize_image_instance_mask): Use real bitmap
13172         geometry.
13173         (mswindows_create_resized_bitmap): Ditto.
13174         (mswindows_create_resized_mask): Ditto.
13175
13176         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13177         and bitmap to their surface size.
13178
13179 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13180
13181         * process-unix.c (unix_send_process): Guard against process MIA
13182         after Faccept_process_output.
13183
13184 2000-04-11  Ben Wing  <ben@xemacs.org>
13185
13186         * eval.c (unbind_to_hairy): fix brokenness introduced by
13187         nanosecond speed improvements.
13188
13189 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13190
13191         * sunplay.c (init_device): To play sounds correctly, the device
13192         apparently needs to be initialized at least once by XEmacs.  Make
13193         it so.
13194
13195 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13196
13197         * redisplay.c (add_margin_runes): Add text image glyph
13198           handling.
13199
13200 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13201
13202         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13203         gcc is newer than 2.5.
13204
13205 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13206
13207         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13208
13209         * fns.c (size_bit_vector):
13210         * alloc.c (size_vector):
13211         (make_vector_internal):
13212         (make_bit_vector_internal):
13213         (sweep_bit_vectors_1):
13214         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13215
13216 2000-04-06  Andy Piper  <andy@xemacs.org>
13217
13218         * gmalloc.c (malloc): undo previous change.
13219         (malloc): ditto.
13220         (free): ditto.
13221         (realloc): ditto.
13222
13223 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13224
13225         * line-number.c (buffer_line_number): Revert to former version.
13226
13227 2000-04-06  Andy Piper  <andy@xemacs.org>
13228
13229         * gmalloc.c (malloc): add error checking.
13230         (malloc): ditto.
13231         (free): ditto.
13232         (realloc): ditto.
13233
13234         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13235         button_item_to_widget_value arg.
13236
13237         * glyphs-x.c (x_button_instantiate): add extra
13238         button_item_to_widget_value arg.
13239         (x_progress_gauge_instantiate): ditto.
13240         (x_edit_field_instantiate): ditto.
13241         (x_label_instantiate): ditto.
13242
13243         * gui-x.c (gui_items_to_widget_values_1): add extra
13244         button_item_to_widget_value arg.
13245         (button_item_to_widget_value): add extra menu_item_p arg.
13246
13247         * gui-x.h: change signature of button_item_to_widget_value.
13248
13249         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13250         button_item_to_widget_value arg.
13251
13252 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13253
13254         * buffer.h (struct buffer): auto_save_modified should be long.
13255
13256 2000-04-05  Andy Piper  <andy@xemacs.org>
13257
13258         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13259         type.
13260         (button_query_geometry): give a little more room so that athena
13261         buttons fit.
13262
13263 2000-04-05  Andy Piper  <andy@xemacs.org>
13264
13265         * faces.c (complex_vars_of_faces): The widget face should inherit
13266         the font of the gui-element face.
13267
13268 2000-04-04  Andy Piper  <andy@xemacs.org>
13269
13270         * glyphs-x.c (x_button_update): new function. unconditionally
13271         update a button's state when the instance is dirty.
13272         (image_instantiator_format_create_glyphs_x): add x_button_update.
13273         (x_widget_instantiate): remove old resize cruft.
13274
13275 2000-04-02  Andy Piper  <andy@xemacs.org>
13276
13277         * frame.c (change_frame_size_1): The introduction of gutters means
13278         that we need to allow 0 as a potential frame dimension.
13279
13280 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13281
13282         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13283         image glyph if allow_cursor.
13284         (add_hscroll_rune): Don't allow cursor to border glyph.
13285         (create_text_block): Ditto.
13286
13287         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13288         text not in buffer.
13289         (redisplay_output_layout): Call ensure_face_cachel_complete for
13290         text image glyph.
13291
13292
13293 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13294
13295         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13296
13297         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13298         not in buffer
13299
13300         * redisplay-tty.c (tty_output_display_block): Delete the routine
13301         for text image glyph
13302         * redisplay-x.c (x_output_display_block): ditto
13303         * redisplay-msw.c (mswindows_output_display_block): ditto
13304
13305 2000-02-02  Mike Alexander  <mta@arbortext.com>
13306
13307         Note: Some of these were committed by accident as part of other
13308         patches.
13309
13310         * regex.c (regex_compile): Avoid compiler warnings.
13311
13312         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13313
13314         * nt.h: Declare term_ntproc correctly.
13315
13316         * nt.c: Remove incorrect declaration of get_home_directory which
13317         is declared correctly in lisp.h.
13318
13319         * keymap.c (get_keyelt): Avoid compiler warnings.
13320         (raw_lookup_key_mapper): Avoid compiler warnings.
13321
13322         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13323
13324         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13325
13326         * filemode.c (mode_string): Avoid compiler warnings.
13327
13328         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13329         avoid warning.
13330
13331         * events-mod.h: Undef some things that winuser.h defines differently.
13332
13333         * data.c (Faset): Avoid compiler warnings.
13334
13335         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13336
13337 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13338
13339         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13340         Fall through to simple beep on error.
13341         Replace "extern" by real header file.
13342
13343         * linuxplay.c: Use nativesound.h
13344         (play_sound_data): Return error code. Be less verbose on error.
13345
13346         * sunplay.c: Use nativesound.h
13347         (play_sound_data): Return error code. Be less verbose on error.
13348
13349         * ntplay.c: Use nativesound.h
13350         (play_sound_data): Return fake error code
13351
13352         * sgiplay.c: Use nativesound.h
13353         (play_sound_data): Return error code
13354
13355         * hpplay.c: Use nativesound.h, partially implement
13356         new error code. Break compilation until finished.
13357         (play_sound_data): error code.
13358
13359         * nativesound.h (play_sound_file):
13360           (play_sound_data): Prototype in new header.
13361
13362 2000-03-31  Andy Piper  <andy@xemacs.org>
13363
13364         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13365         for toggle and radio buttons.
13366         (image_instantiator_buttons): use it.
13367
13368 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13369
13370         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13371         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13372         found. Scrollbar event probably belonged to some old config.
13373
13374 2000-03-31  Andy Piper  <andy@xemacs.org>
13375
13376         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13377         than 1.
13378         (initialize_widget_image_instance): default layout to
13379         LAYOUT_HORIZONTAL rather than 0.
13380         (widget_instantiate): reverse the item list at the end rather than
13381         every iteration.
13382         (layout_layout): re-code for the border text at the front of the
13383         item list rather than at the end.
13384         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13385         provided by the user.
13386         (widget_query_geometry): comment.
13387
13388 2000-03-30  Andy Piper  <andy@xemacs.org>
13389
13390         * glyphs-widget.c (image_instantiator_layout): allow standard
13391         widget keywords in layouts.
13392
13393         * gutter.c (output_gutter): cope with nil gutter contents.
13394
13395         * frame.c (Fset_frame_properties): add gutter docs.
13396
13397 2000-03-29  Andy Piper  <andy@xemacs.org>
13398
13399         * toolbar-msw.c (TBSTYLE_FLAT): add.
13400         (mswindows_output_toolbar): minor fiddling.
13401
13402 2000-03-29  Andy Piper  <andy@xemacs.org>
13403
13404         * gutter.c (output_gutter): force gutter size recalculation if
13405         what we are trying to display won't fit.
13406         (update_gutter_geometry): new function. A per-gutter version of
13407         update_frame_gutter_geometry.
13408         (update_frame_gutter_geometry): use it.
13409         (redraw_exposed_gutter): add extra debugging output.
13410
13411 2000-03-28  Mike Alexander  <mta@arbortext.com>
13412
13413         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13414         (pdump_file_unmap): Implement it on Windows
13415         (pdump_file_get): Save alocated handles for pdump_file_unmap
13416
13417 2000-03-28  Andy Piper  <andy@xemacs.org>
13418
13419         * gui.c (get_gui_callback): treat Quit specially.
13420
13421 2000-03-27  Andy Piper  <andy@xemacs.org>
13422
13423         * glyphs.c (image_instantiate): be careful to check in the same
13424         way we assigned.
13425
13426 2000-03-27  Didier Verna  <didier@xemacs.org>
13427
13428         * config.h.in: define the proper SMART_INCLUDE macro.
13429         handle renaming of `foo_h_path' to `foo_h_file'.
13430
13431         * database.c: ditto.
13432
13433         * emacs.c: ditto.
13434
13435         * linuxplay.c: ditto.
13436
13437         * terminfo.c: ditto.
13438
13439         * tooltalk.h: ditto.
13440
13441 2000-03-27  Andy Piper  <andy@xemacs.org>
13442
13443         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13444         gets updated whenever the face might have changed.
13445
13446 2000-03-26  Mike Alexander  <mta@arbortext.com>
13447
13448         * dumper.c (pdump_resource_free): Fix the comment.
13449
13450 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13451
13452         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13453
13454 2000-03-22  Mike Alexander  <mta@arbortext.com>
13455
13456         * dumper.c: Include Windows headers on Windows
13457         (pdump_resource_free): Add a body to the function
13458         (pdump_load): exe_name -> exe_path and add some comments.
13459
13460 2000-03-25  Mike Alexander  <mta@arbortext.com>
13461
13462         * gui.c (copy_gui_item_tree): Return a value in all cases
13463
13464 2000-03-21  Didier Verna  <didier@xemacs.org>
13465
13466         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13467         lwlib/config.h.in.
13468         (SMART_INCLUDE): new macro.
13469         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13470         the proper location.
13471
13472         * postgresql.c: use it.
13473
13474         * inline.c: ditto.
13475
13476 2000-03-24  Andy Piper  <andy@xemacs.org>
13477
13478         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13479         do this.
13480
13481 2000-03-24  Andy Piper  <andy@xemacs.org>
13482
13483         * redisplay-output.c (compare_runes): use image_instance_changed
13484         to detect changes. Do not depend on glyphs_changed, only depend on
13485         dirtiness.
13486          (redisplay_output_layout): add debug messages.
13487         (compare_runes): ditto.
13488
13489         * glyphs.h: declare new functions.
13490         (struct Lisp_Image_Instance): remove percent and associated
13491         accessors.
13492
13493         * gui.h: declare new copying functions.
13494
13495         * gui.c (copy_gui_item_tree): new function.
13496         (copy_gui_item): new function.
13497         (gui_item_id_hash): revert to standard hash.
13498         (gui_item_hash): ditto.
13499         (gui_item_hash_internal): deleted.
13500         (mark_gui_item): mark value.
13501         (gui_item_add_keyval_pair): add value.
13502         (gui_item_init): ditto.
13503         (gui_add_item_keywords_to_plist): ditto.
13504         (gui_item_equal): ditto.
13505         (syms_of_gui): add Q_value.
13506
13507         * glyphs-x.c (x_progress_gauge_update): use pending items and
13508         value for setting the state.
13509         (x_update_widget): don't set items from pending here.
13510
13511         * glyphs-widget.c (update_widget): update items here.
13512         (progress_gauge_set_property): use items for storing value. Put
13513         new value in pending items.
13514
13515         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13516         items for new value. Convert percent -> value.
13517         (mswindows_tab_control_update): don't update items here.
13518
13519         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13520         (update_subwindow): ditto.
13521         (image_instance_changed): new function. Compare hash values and
13522         past and present widget items.
13523         (image_instantiate): We more careful about where we instantiate
13524         things.
13525         (image_instantiate): add error checking.
13526
13527         * gutter.c (syms_of_gutter): use -hook.
13528
13529 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13530
13531         * console-tty.c (Fset_console_tty_input_coding_system): Use
13532         Qkeyboard.
13533         (Fset_console_tty_output_coding_system): Use Qterminal.
13534         (tty_init_console): Use Qkeyboard and Qterminal.
13535
13536 2000-03-21  Ben Wing  <ben@xemacs.org>
13537
13538         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13539         From Mike Alexander <mta@arbortext.com>.
13540
13541 2000-03-21  Ben Wing  <ben@xemacs.org>
13542
13543         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13544         process brokenness.  Proper implementation to come.
13545         * callproc.c:
13546         Rename call-process-internal to old-call-process-internal.
13547         New impl. in process.el.
13548
13549 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13550
13551         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13552
13553 2000-03-20  Andy Piper  <andy@xemacs.org>
13554
13555         * glyphs.c (full_list_hash): make hashes of the same elements in
13556         different orders return different values.
13557
13558 2000-03-20  Martin Buchholz <martin@xemacs.org>
13559
13560         * XEmacs 21.2.32 is released.
13561
13562 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13563
13564         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13565         (DFC_MALLOC_USE_CONVERTED_DATA):
13566         Add aliasing-safe casts to allow use with char* or unsigned char*
13567         lvalues.
13568
13569         * eldap.c (Fldap_open):
13570         (Fldap_search_basic):
13571         (Fldap_add):
13572         (Fldap_modify):
13573         Make C++-compilable.
13574         Make sure GCPRO'ed variables are initialized.
13575         Use temp variables to avoid repeated calls to Flength.
13576
13577 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13578
13579         * sysfile.h:
13580         Make sure PATH_MAX is always defined.
13581         Include limits.h for PATH_MAX.
13582         Deprecate use of MAXPATHLEN.
13583
13584 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13585
13586         * emacs.c: Add reinit_vars_of_fileio.
13587         * symsinit.h: Add reinit_vars_of_fileio.
13588         * fileio.c (reinit_vars_of_fileio): New.
13589         * fileio.c (Fmake_temp_name):
13590         Initialize temp_name random number from microseconds to make
13591         collisions even less likely.  Initialize always at process startup
13592         time.  (make-temp-name) used to return the same file name twice in
13593         a row when PDUMP.
13594         Random stylistic fiddling.
13595         Comment fixes.
13596
13597 2000-03-20  Andy Piper  <andy@xemacs.org>
13598
13599         * glyphs.c (image_instantiate): allow text glyphs to be
13600         instantiated in the minibuffer window.
13601
13602 2000-03-19  Andy Piper  <andy@xemacs.org>
13603
13604         * glyphs.c (image_instance_hash): be careful about which items we
13605         hash on.
13606
13607         * glyphs-widget.c (tab_control_set_property): record into pending
13608         items rather than the actual items.
13609
13610         * glyphs-x.c (x_update_widget): use pending items to update with.
13611
13612         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13613         to update with.
13614
13615         * glyphs.c (mark_image_instance): mark pending items.
13616
13617         * window.c (Fset_window_configuration): record the buffer.
13618         (Fselect_window): totally revert previous change which breaks many
13619         things.
13620
13621 2000-03-18  Andy Piper  <andy@xemacs.org>
13622
13623         * glyphs-msw.c (mswindows_tab_control_update): force selected
13624         item.
13625
13626         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13627         window domain cache, otherwise we get inconsistencies at
13628         startup. There is something fishy at startup which can lead to the
13629         minibuffer being the selected window when the gutter content is
13630         instantiated.
13631
13632         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13633         gcpros.
13634         (parse_gui_item_tree_children): ditto.
13635         (parse_gui_item_tree_item): ditto.
13636
13637         * glyphs.c (Fupdate_widget_instances): return something.
13638
13639 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13640
13641         * window.c (Fselect_window): Undo 2000-03-17 change.
13642
13643 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13644
13645         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13646         against v7.0 libraries.  Insta-coredump city until the postgres
13647         folks fix it.
13648
13649 2000-03-17  Andy Piper  <andy@xemacs.org>
13650
13651         * faces.c (complex_vars_of_faces): don't give the widget face an
13652         inherited background pixmap.
13653
13654         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13655         selected item.
13656
13657         * event-stream.c (Fdispatch_non_command_events): return something.
13658
13659         * gutter.c (output_gutter): use widget face.
13660         (clear_gutter): ditto.
13661
13662         * NEWS: adjust again.
13663
13664         * window.c (Fselect_window): make sure this runs to completion to
13665         avoid oddities with Fset_window_configuration.
13666         (Fcurrent_window_configuration): in general do not save the
13667         minibuffer as the selected window.
13668
13669         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13670
13671 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13672
13673         * emacs.c (Frunning_temacs_p): Revert previous patch.
13674         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13675
13676 2000-03-16  Andy Piper  <andy@xemacs.org>
13677
13678         * glyphs-x.c (x_tab_control_update): if no widget values then
13679         return.
13680
13681         * NEWS: update for new features.
13682
13683         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13684         synthetic event to the native system.
13685         (reinit_vars_of_event_Xt): set force_event_pending to
13686         emacs_Xt_force_event_pending.
13687
13688         * events.h (struct event_stream): add force_event_pending.
13689
13690         * specifier.c (recompute_one_cached_specifier_in_window): add
13691         comment.
13692
13693         * redisplay.c (redisplay_frame): don't call
13694         update_frame_subwindows. Reset subwindow cachels when
13695         subwindows_changed, removing this was an optimization too far.
13696
13697         * redisplay-output.c (compare_runes): reorganize so that we catch
13698         glyph changes when we want them. Set optimize_output when this
13699         would help layouts.
13700         (redisplay_output_layout): remove frame_really_changed, use
13701         optimize_output instead.
13702
13703         * redisplay-msw.c (mswindows_output_display_block): reset
13704         optimize_output after outputting a glyph.
13705         * redisplay-x.c (x_output_display_block): ditto.
13706         * redisplay-tty.c (tty_output_display_block): ditto.
13707
13708         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13709         functions.
13710         (gutter_specs_changed): do specific gutter positions.
13711         (top_gutter_specs_changed): new function. Only update the
13712         specified gutter specs.
13713         (bottom_gutter_specs_changed): ditto.
13714         (left_gutter_specs_changed): ditto.
13715         (right_gutter_specs_changed): ditto.
13716
13717         * gui.c (gui_item_hash_internal): new function, does a real hash.
13718         (gui_item_id_hash): use it.
13719         (gui_item_hash): hash the eval'ed gui_item.
13720
13721         * gui-x.c (popup_selection_callback): send an eval event to call
13722         Fupdate_widget_instances.
13723
13724         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13725         to call Fupdate_widget_instances.
13726
13727         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13728         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13729
13730         * glyphs.c: (update_frame_subwindows): deleted.
13731         (Fupdate_widget_instances): new function for updating the dirty
13732         state of widgets that might have changed.
13733         (syms_of_glyphs): add Qupdate_widget_instances.
13734         (full_list_hash): hash a list completely.
13735         (image_instance_hash): use it for items and properties.
13736
13737         * frame-msw.c (mswindows_size_frame_internal): remove unused
13738         variable.
13739
13740         * faces.h (struct face_cachel): fix comment.
13741
13742         * event-stream.c (Fdispatch_non_command_events): new
13743         function. Process non-command events, forcing an event cycle
13744         beforehand.
13745         (syms_of_event_stream): declare.
13746         (event_stream_force_event_pending): new function. Force an event
13747         on the native event queue so that an event cycle will occur next
13748         time we check.
13749
13750         * event-msw.c:
13751         (struct ntpipe_shove_stream):
13752         (mswindows_enqueue_dispatch_event):
13753         (mswindows_dequeue_dispatch_event):
13754         (mswindows_cancel_dispatch_event):
13755         (mswindows_pump_outstanding_events):
13756         (mswindows_drain_windows_queue):
13757         (mswindows_handle_paint):
13758         (mswindows_wnd_proc):
13759         (mswindows_key_to_emacs_keysym):
13760         (get_process_input_waitable):
13761         (emacs_mswindows_delete_stream_pair): re-indent file.
13762         (mswindows_need_event): do not process further fds if the windows
13763         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13764         fixes the 100% cpu problem.
13765         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13766
13767 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13768
13769         * alloc.h: New.
13770         * dumper.h: New.
13771         * dumper.c: New.
13772
13773         * emacs.c: Moved dump file searching to dumper.c.
13774         (Frunning_temacs_p): Fixed.
13775
13776         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13777         last_lrecord_type_index_assigned.
13778
13779 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13780
13781         * symsinit.h: Added reinit parameter to init_console_stream
13782         declaration.
13783
13784         * lisp.h: Added file parameter to pdump_load declaration.
13785
13786         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13787         support.  Added dump file searching.
13788
13789         * config.h.in: Added EMACS_PROGNAME.
13790
13791         * console-stream.c (init_console_stream): Fix reinitialisation
13792         when running from temacs.
13793
13794         * alloc.c (pdump): Add id support.
13795         (pdump_load): Add file parameter and signature/id support.
13796
13797         * Makefile.in.in: Add full pdump support.
13798
13799 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13800
13801         * postgresql.c: Update documentation to reflect latest code
13802         status.
13803         (print_result): Show tuple counts in printed representation when
13804         appropriate.
13805         (Fpq_put_nbytes): MULE-ize.
13806         (Fpq_get_line_async): Ditto.
13807
13808 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13809
13810         * postgresql.c (Fpq_lo_import): Fix return value.
13811         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13812
13813 2000-03-13  Ben Wing  <ben@xemacs.org>
13814
13815         * alloc.c (pdump_load):
13816         Fix compile warning under mswin.
13817
13818 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13819
13820         * postgresql.c: Mule-ization, bug fixes.
13821         Use PG_CODING to encapsulate coding system name changes.
13822         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13823         (pg-coding-system): Create.
13824
13825         (Fpq_conn_defaults): Mule-ize.
13826         (Fpq_connectdb): Mule-ize & bug fix.
13827         (Fpq_connect_start): Mule-ize.
13828         (Fpq_set_client_encoding): Mule-ize.
13829         (Fpq_finish): Document `DEAD' connection status.
13830         (Fpq_clear): Ditto.
13831         (Fpq_pgconn): Mule-ize.
13832         (Fpq_exec): Mule-ize & bug fix.
13833         (Fpq_send_query): Ditto.
13834         (Fpq_get_result): Ditto.
13835         (Fpq_res_status): Mule-ize.
13836         (Fpq_result_error_message): Mule-ize.
13837         (Fpq_ntuples): fix comments.
13838         (Fpq_fname): Mule-ize.
13839         (Fpq_fnumber): Mule-ize.
13840         (Fpq_ftype): fix comments.
13841         (Fpq_get_value): Mule-ize.
13842         (Fpq_cmd_status): Ditto.
13843         (Fpq_cmd_tuples): Ditto.
13844         (Fpq_oid_value): Ditto.
13845         (Fpq_notifies): Ditto.
13846         (Fpq_lo_import): Ditto.
13847         (Fpq_lo_export): Ditto.
13848         (Fpq_get_line): Ditto.
13849         (Fpq_put_line): Mule-ize and bug fix.
13850         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13851
13852 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13853
13854         * postgresql.c (vars_of_postgresql): Mule-ize.
13855         (Fpq_conn_defaults): Ditto.
13856
13857 2000-03-12  Ben Wing  <ben@xemacs.org>
13858
13859         * alloc.c (Fmake_byte_code):
13860         * alloc.c (debug_string_purity_print):
13861         * alloc.c (pdump_backtrace):
13862         * alloc.c (pdump_get_indirect_count):
13863         * alloc.c (pdump_register_sub):
13864         * alloc.c (pdump_register_object):
13865         * alloc.c (pdump_register_struct):
13866         * alloc.c (pdump_dump_data):
13867         * alloc.c (pdump_reloc_one):
13868         Minor cleanups.
13869
13870         * console-msw.c:
13871         * console-msw.c (GetConsoleHwnd):
13872         * console-msw.c (msw_hide_console):
13873         * console-msw.c (msw_show_console):
13874         * console-msw.c (msw_ensure_console_buffered):
13875         * console-msw.c (msw_output_console_string):
13876         * console-msw.c (console_type_create_mswindows):
13877
13878         a) Added functions to manipulate the console window for use with
13879         shell support.
13880
13881         b) Added support for writing text to the console, which is now
13882         used under Windows when xemacs is not being run non-interactively,
13883         to write text that would otherwise be destined for stdout because
13884         under these circumstances, text written to stdout tends to
13885         disappear and not be seen.
13886
13887         * console-msw.h:
13888         * event-Xt.c:
13889         * event-Xt.c (x_event_to_emacs_event):
13890         * event-Xt.c (describe_event_window):
13891         * events-mod.h (XEMACS_MOD_CONTROL):
13892         * events.c:
13893         * events.c (Fmake_event):
13894         * events.c (character_to_event):
13895         * events.c (event_to_character):
13896         * events.c (format_event_object):
13897         * events.c (Fevent_modifiers):
13898         * events.h:
13899         * events.h (struct key_data):
13900         * events.h (struct button_data):
13901         * events.h (struct misc_user_data):
13902         * frame-x.c (Fcde_start_drag_internal):
13903         * frame-x.c (Foffix_start_drag_internal):
13904         * gpmevent.c (Freceive_gpm_event):
13905         * keymap.c:
13906         * keymap.c (bucky_sym_to_bucky_bit):
13907         * keymap.c (control_meta_superify):
13908         * keymap.c (make_key_description):
13909         * keymap.c (keymap_lookup_directly):
13910         * keymap.c (create_bucky_submap):
13911         * keymap.c (keymap_store):
13912         * keymap.c (define_key_check_and_coerce_keysym):
13913         * keymap.c (define_key_parser):
13914         * keymap.c (define_key_alternate_name):
13915         * keymap.c (Fdefine_key):
13916         * keymap.c (raw_lookup_key_mapper):
13917         * keymap.c (struct map_keymap_unsorted_closure):
13918         * keymap.c (map_keymap_unsorted_mapper):
13919         * keymap.c (map_keymap_sort_predicate):
13920         * keymap.c (map_keymap_sorted):
13921         * keymap.c (accessible_keymaps_mapper_1):
13922         * keymap.c (where_is_recursive_mapper):
13923         * keymap.c (describe_map_mapper):
13924         * keymap.c (describe_map_sort_predicate):
13925         * keymap.c (describe_map):
13926         * keymap.c (complex_vars_of_keymap):
13927         And a number of other files, the key modifier preprocessor
13928         constants that xemacs uses have names that conflict with constants
13929         defined under MS Windows for other purposes, so they were renamed
13930         to begin with the prefix XEMACS_. The variables that hold such
13931         modifiers were changed to consistently be of type int to fix
13932         various compile warnings.
13933
13934         * console.c (complex_vars_of_console):
13935         * device.c:
13936         * device-msw.c:
13937         * device-msw.c (mswindows_finish_init_device):
13938         * device-msw.c (msw_get_workspace_coords):
13939         * device-msw.c (mswindows_device_system_metrics):
13940         and various other files, added support for a new
13941         device property called offset-workspace which returns the position
13942         of the upper left corner of the workspace area and goes along with
13943         the existing size-workspace property.
13944
13945         * dialog-msw.c:
13946         * dialog-msw.c (push_bufbyte_string_as_unicode):
13947         * dialog-msw.c (mswindows_popup_dialog_box):
13948         Added support for XEmacs-style accelerator specifications in
13949         button text.  Note: I didn't add support for this under X Windows,
13950         and somebody needs to do this.
13951
13952         * dialog.c:
13953         * dialog.c (Fpopup_dialog_box):
13954         Documented the support for accelerators that was just mentioned.
13955
13956         editfns.c (get_home_directory): Changed behavior under Windows
13957         when HOME not defined; former behavior was irretrievably broken.
13958
13959         * emacs.c:
13960         * emacs.c (main_1):
13961         * emacs.c (main):
13962         * minibuf.c (clear_echo_area_internal):
13963         * minibuf.c (echo_area_append):
13964         * print.c:
13965         * print.c (std_handle_out_external):
13966         * print.c (std_handle_out_va):
13967         * print.c (fatal):
13968         * print.c (write_string_to_stdio_stream):
13969         * print.c (output_string):
13970         * print.c (debug_print):
13971         * print.c (debug_backtrace):
13972         * print.c (debug_short_backtrace):
13973         Cleaned up the code that prints text to stdout so that this can be
13974         changed to output into a console window instead under MS Windows,
13975         as described above.
13976
13977         * eval.c:
13978         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13979         * eval.c (internal_catch):
13980         * eval.c (unwind_to_catch):
13981         * eval.c (throw_or_bomb_out):
13982         * eval.c (condition_case_1):
13983         * eval.c (signal_1):
13984         * eval.c (check_error_state_sanity):
13985         * eval.c (call_with_suspended_errors_1):
13986         * eval.c (call_with_suspended_errors):
13987         * eval.c (reinit_vars_of_eval):
13988         Added code to catch throw loops and check for a pesky bug that may
13989         be gone now.
13990
13991         * event-msw.c:
13992         * event-msw.c (key_needs_default_processing_p):
13993         * event-msw.c (mswindows_wnd_proc):
13994         * event-msw.c (mswindows_modifier_state):
13995         * event-msw.c (emacs_mswindows_quit_p):
13996         * event-msw.c (vars_of_event_mswindows):
13997         a) Added support for using the alt key to select menu items as is
13998         standard under MS Windows.  This is controlled using the variable
13999         menu-accelerator-enabled, just like under X Windows.  There is an
14000         option on the options menu to turn this support on.  I really
14001         think that it should be on by default under Windows, but I'm not
14002         going to make this change yet.
14003
14004         b)  Added support for dynamic display size changes under Windows.
14005
14006         * event-stream.c:
14007         * event-stream.c (maybe_echo_keys):
14008         * event-stream.c (Fnext_event):
14009         * event-stream.c (command_builder_find_leaf):
14010         * event-stream.c (lookup_command_event):
14011         * event-stream.c (execute_command_event):
14012         * event-stream.c (pre_command_hook):
14013         * event-stream.c (post_command_hook):
14014         * event-stream.c (syms_of_event_stream):
14015         * event-stream.c (vars_of_event_stream):
14016         * event-stream.c (complex_vars_of_event_stream):
14017         * events.h (struct command_builder):
14018
14019         a) Tried to clean up a little bit the horribly written x-specific
14020         accelerator code that crept into this file.  I moved this code
14021         into menubar-x.c where it belongs. I also needed to move the
14022         command builder structure into the file events.h because it is
14023         accessed directly by this accelerator code.  What I didn't do, but
14024         which should be done at some point, is to properly abstract this
14025         code using device methods instead of the kludgy way that it
14026         currently hooks into the event code.
14027
14028         b) Added the lisp variables this-command-properties and
14029         last-command- properties, which should be used to synchronize two
14030         adjacent commands in preference to playing games with the variable
14031         this-command, which is typically what happens.
14032
14033         c) Added some slightly nasty code to hook into the lisp support
14034         for shifted- motion-key selection.  This is actually necessary for
14035         somewhat complicated reasons, which are described in
14036         simple.el. (NB: I think the proper thing would be to have the code
14037         that calls the pre and post command hooks also call out to generic
14038         lisp functions in simple.el, where all built-in stuff could be
14039         added.  I will think about this more.)
14040
14041         * event-unixoid.c (poll_fds_for_input):
14042         * lread.c (readchar):
14043         * redisplay-tty.c (tty_clear_frame):
14044         * redisplay-x.c (x_get_gc):
14045         * signal.c (interrupt_signal):
14046         And a whole bunch of other files: fixed up places that printed
14047         directly to stderr to instead call the function stderr_out so that
14048         the changes I made under Windows work correctly.
14049
14050         * filemode.c (mode_string):
14051         Warning fixes.
14052
14053         * frame-msw.c:
14054         * frame-msw.c (mswindows_size_frame_internal):
14055         Fixed the computation of frame size and position to keep the frame
14056         within the workspace area, rather than within the physical
14057         dimensions of the screen, so that the frame doesn't overlap window
14058         manager decorations, such as the start menu and toolbar, typically
14059         at the bottom of the screen.
14060
14061         * frame.c (vars_of_frame):
14062         Changed the default frame title format under MS Windows to consist
14063         of buffername-XEmacs, which is standard under MS Windows.  I think
14064         it might be a good idea to change this everywhere because I think
14065         it is superior to the current frame title format, but this is the
14066         kind of change that is likely to cause some people to get annoyed,
14067         so I'm not making it.
14068
14069         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14070
14071         * gui-msw.c (mswindows_handle_gui_wm_command):
14072         Fixed compile warnings.
14073
14074         * gui-x.c:
14075         * gui-x.c (strdup_and_add_accel):
14076         * gui-x.c (button_item_to_widget_value):
14077         * gui-x.h:
14078         Added code to automatically put an accelerator onto the beginning
14079         of menu items that don't have one as is now the standard, and is
14080         described more later.  Also fixed things so that the menu item
14081         name can be an evaluated expression, again a new standard.
14082
14083         * gui.c:
14084         * gui.c (gui_item_add_keyval_pair):
14085         * gui.c (make_gui_item_from_keywords_internal):
14086         * gui.c (gui_add_item_keywords_to_plist):
14087         * gui.c (gui_item_accelerator):
14088         * gui.c (gui_name_accelerator):
14089         * gui.c (gui_item_included_p):
14090         * gui.c (gui_item_display_flush_left):
14091         * gui.c (gui_item_display_flush_right):
14092         * gui.c (parse_gui_item_tree_item):
14093         * gui.c (parse_gui_item_tree_children):
14094         * gui.c (parse_gui_item_tree_list):
14095         Mule-ized.  Cleanup.  GCPRO addition.
14096
14097         * line-number.c (buffer_line_number):
14098         * lisp.h:
14099         * lisp.h (EMACS_INT_MAX):
14100         Added the manifest constant EMACS_INT_MIN corresponding to the
14101         existing constant EMACS_INT_MAX.  This is partially to fix compile
14102         warnings under Windows, and partly for cleanliness.
14103
14104         * menubar-msw.c:
14105         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14106         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14107         * menubar-msw.c (displayable_menu_item):
14108         * menubar-msw.c (populate_menu_add_item):
14109         * menubar-msw.c (populate_or_checksum_helper):
14110         * menubar-msw.c (populate_menu):
14111         * menubar-msw.c (update_frame_menubar_maybe):
14112         * menubar-msw.c (prune_menubar):
14113         * menubar-msw.c (msw_char_is_accelerator):
14114         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14115         * menubar-msw.c (mswindows_handle_wm_command):
14116         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14117         * menubar-msw.c (mswindows_handle_wm_initmenu):
14118         * menubar-msw.c (mswindows_update_frame_menubars):
14119         * menubar-msw.c (mswindows_free_frame_menubars):
14120         * menubar-msw.c (mswindows_popup_menu):
14121         Fixed a bug in handling accelerators where an extra character
14122         would be displayed in the menu item.  Also generalized the
14123         function displayable_menu_item because it is now used by the
14124         dialog box code as well.  And finally, added code in the functions
14125         that create the menubar to extract a list of accelerators for the
14126         top level menubar, which is used in the event code to determine
14127         whether a particular alt-key combination should be used to invoke
14128         a menu item, or should be passed through to access the standard
14129         XEmacs keymap binding for this key combination.
14130
14131         Much needed GCPROing.
14132
14133         * menubar-x.c:
14134         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14135         * menubar-x.c (menu_item_descriptor_to_widget_value):
14136         * menubar-x.c (restore_in_menu_callback):
14137         * menubar-x.c (x_popup_menu):
14138         * menubar-x.c (menu_move_up):
14139         * menubar-x.c (menu_move_down):
14140         * menubar-x.c (menu_move_left):
14141         * menubar-x.c (menu_move_right):
14142         * menubar-x.c (menu_select_item):
14143         * menubar-x.c (command_builder_operate_menu_accelerator):
14144         * menubar-x.c (menu_accelerator_junk_on_error):
14145         * menubar-x.c (command_builder_find_menu_accelerator):
14146         * menubar-x.c (Faccelerate_menu):
14147         * menubar.h:
14148         Moved a whole bunch of code here that was previously in
14149         event-stream.c as described above.  There is also code connected
14150         to the new standard of adding an accelerator to the beginning of
14151         menu items that don't have one as described above and below.
14152
14153         * menubar.c:
14154         * menubar.c (menu_parse_submenu_keywords):
14155         * menubar.c (Fmenu_find_real_submenu):
14156         * menubar.c (Fnormalize_menu_item_name):
14157         * menubar.c (syms_of_menubar):
14158         * menubar.c (vars_of_menubar):
14159         * menubar.c (complex_vars_of_menubar):
14160
14161         a) Cleaned up a bunch of documentation and improved it.
14162
14163         b) XEmacs now automatically adds an accelerator onto the beginning
14164         of any menu items that don't have one.  I did this because there
14165         will inevitably be some menu items on the main menubar that don't
14166         have accelerators on them because the package that adds that
14167         particular menu item hasn't yet been fixed up to have accelerators
14168         in them and it looked rather strange to have some items with and
14169         some items without accelerators, especially since even in items
14170         without accelerators, you can, at least under windows, still
14171         access the item through an accelerator corresponding to the first
14172         character in the item's name.  If people don't like this behavior,
14173         I can add a variable to turn it off optionally, but I'm not sure
14174         this is a good idea because we really do need to have accelerators
14175         on all of the menu items, and if a package doesn't like the
14176         accelerators being put on the first character, then it should put
14177         the accelerators where they belong.
14178
14179         c) I made a behavior change, which is that the descriptor that
14180         specifies the text of the menu item, which formerly was just a
14181         string, can now also be an evaluated expression.  This makes this
14182         descriptor parallel with all of the others, which could also be
14183         evaluated expressions.  This also obviates the need for the
14184         keyword :label, which was previously listed in the documentation
14185         as unimplemented, and which was for the same purpose.
14186
14187         d) GCPROing.
14188
14189         * ntproc.c:
14190         * ntproc.c (new_child):
14191         * ntproc.c (sys_spawnve):
14192         * ntproc.c (find_child_console):
14193         * ntproc.c (sys_kill):
14194         Fixed compile warnings.  By the way, this file should really go
14195         away entirely, and this will happen as soon as Kirill makes his
14196         final round of process cleanups, which affect the function
14197         call-process.
14198
14199         * process-nt.c:
14200         * process-nt.c (struct nt_process_data):
14201         * process-nt.c (find_process_from_pid):
14202         * process-nt.c (send_signal_the_nt_way):
14203         * process-nt.c (enable_child_signals):
14204         * process-nt.c (find_child_console):
14205         * process-nt.c (send_signal_the_95_way):
14206         * process-nt.c (nt_finalize_process_data):
14207         * process-nt.c (ensure_console_window_exists):
14208         * process-nt.c (nt_create_process):
14209         * process-nt.c (nt_kill_child_process):
14210         * process-nt.c (nt_kill_process_by_pid):
14211         * process-nt.c (nt_open_network_stream):
14212         * process-nt.c (vars_of_process_nt):
14213         Copied over code from Emacs 20.5 to correctly send signals to sub-
14214         processes under Windows 95.  Also added code to automatically
14215         create and hide console window when a sub-process is created under
14216         Windows 95, which obviates the need for the separate runemacs.exe
14217         executable, and finally implemented some variables that were
14218         implemented in Emacs 20.5, but previously not in XEmacs.  These
14219         include mswindows- start-process-share-console and
14220         mswindows-start-process-inherit-error-mode. (Both of these only
14221         apply to Windows 95.)
14222
14223         * regex.c (regex_compile): Fixed a compile warning.
14224
14225         * select-msw.c:
14226         * select-msw.c (mswindows_own_selection):
14227         * select-msw.c (mswindows_get_foreign_selection):
14228         * select-msw.c (mswindows_disown_selection):
14229         * select-msw.c (console_type_create_select_mswindows):
14230         * select-msw.c (syms_of_select_mswindows):
14231         Cleaned up the file and implemented the device method
14232         selection_exists_p, which had accidentally been left out.  Also
14233         removed four lisp functions that were remnants from before the
14234         time when the selection code was properly device abstracted.
14235         These functions are no longer needed because there are generic
14236         equivalents, and because they were added recently and don't exist
14237         in FSF Emacs, I don't think there's any problem with just deleting
14238         them.
14239
14240         * sysdep.c:
14241         * sysdep.c (sys_subshell):
14242         Fixed a compile warning, although in this case there's probably
14243         something wrong with this code, and it ought to be looked into
14244         more thoroughly by somebody who understands it.
14245
14246         * window.c:
14247         * window.c (Fwindow_text_area_height):
14248         * window.c (Fwindow_width):
14249         * window.c (Fwindow_full_width):
14250         * window.c (Fwindow_pixel_width):
14251         * window.c (debug_print_window):
14252         * window.c (syms_of_window):
14253         Added functions window-text-area-height and window-full-width,
14254         which are functions for returning various width and height
14255         characteristics of a window. (One of these functions is necessary
14256         for making the file dialog box work correctly, and the other one
14257         was added for completeness.)  Also added a table to the
14258         documentation for window-height which describes the entire scheme
14259         for accessing width and height characteristics of a window.
14260
14261 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14262
14263         * nt.c (fstat): Added a comment for another problem with
14264         non-encapsulated [f]stat(), reported by Adrian Aichner
14265         <aichner@ecf.teradyne.com>.
14266
14267 2000-03-11  Andy Piper  <andy@xemacs.org>
14268
14269         * window.c (make_dummy_parent): initialize subwindow instance
14270         cache.
14271         (Fset_window_configuration): zero extent_modiff.
14272
14273 2000-03-10  Andy Piper  <andy@xemacs.org>
14274
14275         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14276         more changes can be triggered.
14277         (Fredisplay_frame): ditto.
14278         (Fredraw_device): ditto.
14279         (Fredisplay_device): ditto.
14280         (redisplay_frame): make non-static.
14281         (redisplay_frame): call update_frame_gutter_geometry outside of
14282         display proper.
14283
14284         * gutter.h: declare update_frame_gutter_geometry.
14285
14286         * redisplay.h: declare redisplay_frame.
14287
14288         * gutter.c (update_frame_gutter_geometry): move geometry changes
14289         in update_frame_gutters here. Geometry changes can only occur
14290         outside of redisplay.
14291         (update_frame_gutters): remove geometry change code.
14292         (Fredisplay_gutter_area): make sure that we are in display when we
14293         update and that we have flushed any size changes.
14294
14295 2000-03-11  Andy Piper  <andy@xemacs.org>
14296
14297         * alloc.c (pdump_dump_data): remove i & count shadows.
14298
14299 2000-02-27  Mike Alexander  <mta@arbortext.com>
14300
14301         * sysdep.h: Declare pdump_read_file
14302
14303         * sysdep.c (pdump_read_file): New function
14304
14305         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14306         dump data
14307
14308 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14309
14310         * lrecord.h: add `lrecord_type_pgsetenv'.
14311
14312 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14313
14314         * symsinit.h: declare (vars|syms)_of* functions.
14315         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14316
14317 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14318
14319         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14320
14321         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14322         GCCs.
14323
14324         * emacs.c (main_1): Call postgres initialization code.
14325
14326         * postgresql.h: New file.  PostgreSQL RDBMS support.
14327         * postgresql.c: New file.
14328
14329 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14330
14331         * redisplay-output.c (redisplay_output_display_block): Disable
14332         redundant code.
14333
14334 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14335
14336         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14337         (Fcanna_henkan_next): Ditto.
14338         (Fcanna_bunsetu_henkou): Ditto.
14339         (Fcanna_henkan_kakutei): Ditto.
14340         (Fcanna_henkan_end): Ditto.
14341         (Fcanna_henkan_quit): Ditto.
14342         (Fcanna_henkan_next): Set retun value correctly.
14343         (c2mu): Use unsigned char instead of signed char.
14344
14345 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14346
14347         * emacs.c (main_1): Always call syms_of_gui.
14348         * inline.c: include gui.h
14349
14350 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14351
14352         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14353         converted to Lisp_Object.
14354         (Qtop_bottom): New variable.
14355         (syms_of_redisplay): Initialize it.
14356         * redisplay.h (Vvisible_bell): Ditto.
14357         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14358         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14359         only flash top and bottom.
14360
14361 2000-03-08  Andy Piper  <andy@xemacs.org>
14362
14363         * buffer.c (Frename_buffer): record new buffer name the right way.
14364
14365 2000-03-08  Andy Piper  <andy@xemacs.org>
14366
14367         * glyphs.c (update_subwindow): increase hash depth so that widget
14368         items get picked up properly.
14369
14370         * redisplay-output.c (compare_runes): increase hash depth so that
14371         widget items get picked up properly.
14372
14373 2000-03-08  Andy Piper  <andy@xemacs.org>
14374
14375         * gutter.c (output_gutter): add some debug.
14376
14377         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14378         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14379         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14380
14381         * redisplay-output.c (compare_runes): use display_hash to
14382         determine if glyphs really are not the same.
14383
14384         * glyphs.c (update_subwindow): check display_hash to see if
14385         anything really needs to be updated. If not then do
14386         nothing. Record the display_hash after updating.
14387         (image_instance_equal): compare the image_instance face also.
14388
14389 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14390
14391         * redisplay.h: Fix comment style.
14392
14393 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14394
14395         * consle-msw.h (struct mswindows_frame):
14396         Added new member paint_pending to indicate whether a WM_PAINT
14397         magic event has been queued for this frame.
14398
14399         * event-msw.c (mswindows_drain_windows_queue):
14400         Don't queue a WM_PAINT magic event if one is already queued.
14401         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14402
14403         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14404
14405 2000-03-07  Didier Verna  <didier@xemacs.org>
14406
14407         * dired.c: #include `regex.h' after `sysfile.h'.
14408
14409 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14410
14411         * sound.c (init_nas_sound): Fix compiler warning.
14412
14413         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14414         (FREE_STRUCT_P):
14415         (MARK_STRUCT_AS_FREE):
14416         (MARK_STRUCT_AS_NOT_FREE):
14417         Make `gcc -fstrict-aliasing' work properly.
14418
14419 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14420
14421         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14422         (mswindows_delete_device): Call CoUnnitialize().
14423
14424         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14425
14426 2000-02-25    <CraigL@DyCon.com>
14427
14428         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14429         <errno.h>.
14430
14431         * sysdep.c: This extern declaration for environ prevents MinGW
14432         from finding the variable in CRTDLL.DLL.
14433
14434         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14435         windows headers.
14436         (SHGFI_EXETYPE): ..
14437         (WM_MOUSEWHEEL): ..
14438         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14439         definitions.
14440         (MMRESULT): Removed, now defined in cygwin's windows headers.
14441         (TIMECAPS): ..
14442         (uid_t,gid_t,pid_t,ssize_t): ..
14443         (_timeb): Removed, MinGW defines both _timeb and timeb.
14444         (HAVE_H_ERRNO): Added.
14445         (HAVE_TZNAME): Added, configure is not detecting this.
14446
14447 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14448
14449         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14450         * syntax.c (syntax_match): Use it.
14451
14452         * cmds.c: Import auto-fill-chars from FSF Emacs.
14453         (Vauto_fill_chars): New variables.
14454         (internal_self_insert): Check Vauto_fill_chars.
14455         (vars_of_cmds):
14456         Declare auto-fill-chars as a Lisp variable and initialize it.
14457
14458 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14459
14460         * fileio.c (Fmake_symbolic_link):
14461         (Ffile_symlink_p):
14462         Run handlers even if local machine doesn't have symlinks.
14463
14464 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14465
14466         * event-msw.c (mswindows_drain_windows_queue):
14467         Don't generate paint magic events for non-XEmacs frames.
14468
14469 2000-03-05  Andy Piper  <andy@xemacs.org>
14470
14471         * redisplay.c (redisplay_frame): generate_displayable_area and
14472         friends assumes that we are not in GC, we therefore have to make
14473         sure that this doesn't happen.
14474
14475         * gutter.c (calculate_gutter_size): generate_displayable_area
14476         assumes that we are not in GC, we therefore have to make sure that
14477         this doesn't happen.
14478
14479 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14480
14481         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14482
14483 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14484
14485         * redisplay.c (regenerate_window): Make sure we set a sane value
14486         for end_pos even if we jump out of the loop.
14487         (regenerate_window): Answer Ben's question :-).
14488         (start_end_of_last_line): Add may_error argument.
14489         (start_of_last_line):
14490         (end_of_last_line): Pass may_error = 0.
14491         (end_of_last_line_may_error): New function.
14492         (pixel_to_glyph_translation): Use it, so we don't crash in
14493         event_to_glyph.
14494
14495 2000-03-04  Andy Piper  <andy@xemacs.org>
14496
14497         * window.h (struct window): add gutter_extent_modiff.
14498
14499         * window.c (allocate_window): zero out gutter_extent_modiff.
14500
14501         * redisplay.h: declare sync_display_line_structs.
14502
14503         * redisplay.c (add_glyph_rune): add a better comment.
14504
14505         * redisplay-output.c (sync_display_line_structs): made non-static.
14506         (compare_runes): remove unneccesary glyph cachel access.
14507
14508         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14509
14510         * gutter.c (output_gutter): don't output the gutter if extent
14511         changes only involve extents in buffers. use 4 sets of display
14512         lines.
14513         (gutter_extent_signal_changed_region_maybe): new function. Mark
14514         extents in gutters as changed.
14515         (update_frame_gutters): use 4 sets of display lines.
14516         (reset_gutter_display_lines): ditto.
14517         (free_frame_gutters): ditto.
14518         (redraw_exposed_gutter): force output of gutters.
14519
14520         * frame.h (struct frame): add 4 sets of gutter display lines.
14521
14522         * extents.c: (extent_changed_for_redisplay): signal changes to
14523         extents in strings in the gutter as well as extents in buffers.
14524
14525 2000-03-02  Andy Piper  <andy@xemacs.org>
14526
14527         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14528
14529         * frame.c (Fmake_frame): make sure the gutters get initialized
14530         after the frame is visible.
14531         (set_frame_selected_window): re-arrange compilation macros a
14532         little.
14533         (change_frame_size_1): mark gutters changed.
14534
14535         * device.c (Fset_device_class): mark gutters changed.
14536
14537 2000-03-01  Andy Piper  <andy@xemacs.org>
14538
14539         * window.c (window_top_frame_gutter_height): deleted.
14540         (window_bottom_frame_gutter_height): ditto.
14541         (window_left_frame_gutter_height): ditto.
14542         (window_right_frame_gutter_height): ditto.
14543         (window_top_gutter_height): don't use them.
14544         (window_bottom_gutter_height): ditto.
14545         (window_left_gutter_width): ditto.
14546         (window_right_gutter_width): ditto.
14547         (Fsplit_window): ditto.
14548         (Fwindow_pixel_edges): don't use border dimensions here.
14549
14550         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14551         (update_scrollbar_instance): ditto.
14552
14553         * redisplay.c (generate_modeline): don't take gutters into account.
14554         (generate_modeline): ditto.
14555         (redisplay_frame): small gutter display optimization.
14556
14557         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14558
14559         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14560         gutters into account.
14561
14562         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14563         for window position and type.
14564
14565         * gutter.c (get_gutter_coords): fix for frame gutters.
14566         (update_frame_gutters): update frame geometry if the gutters have
14567         changed.
14568         (init_frame_gutters): record current gutter geometries.
14569
14570         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14571         var.
14572         (mswindows_widget_instantiate): ditto.
14573
14574         * frame.h (struct frame): add current_gutter_bounds.
14575
14576         * frame.c (change_frame_size_1): position window and minibuffer
14577         appropriately taking into account the frame gutters.
14578
14579         * frame-x.c: (x_initialize_frame_size): take into account the
14580         frame gutters.
14581
14582 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14583
14584         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14585
14586 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14587
14588         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14589
14590 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14591
14592         * file-coding.c (reset_decoding_stream): Clear previous
14593         detection state when autodetect.
14594
14595 2000-02-29  Didier Verna  <didier@xemacs.org>
14596
14597         * extents.c (set_extent_glyph_1): don't require extents to be
14598         attached.
14599
14600 2000-02-27  Andy Piper  <andy@xemacs.org>
14601
14602         * gutter.c (Fset_default_gutter_position): don't default left and
14603         right gutter visibility to t.
14604         (Fset_default_gutter_position): run
14605         default-gutter-position-changed-hook.
14606         (syms_of_gutter): add default-gutter-position-changed-hook.
14607
14608 2000-02-26  Andy Piper  <andy@xemacs.org>
14609
14610         * specifier.c (Fmake_specifier): add gutter references.
14611
14612         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14613
14614         * lisp.h: declare Fvalid_plist_p.
14615
14616         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14617         as changed.
14618         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14619         well as its visibility so that it gets reconstructed.
14620         (construct_window_gutter_spec): new function. Construct a string
14621         to be displayed in the gutter from a plist of strings. Take care
14622         to only use elements that are declared as visible.
14623         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14624         WINDOW_GUTTER.
14625         (gutter_validate): allow plists of strings in the specifier.
14626         (gutter_specs_changed): construct the real_gutter from the gutter
14627         specs using construct_window_gutter_spec.
14628         (gutter_visible_validate): gutter-visible is a new specifier type.
14629         (Fgutter_visible_specifier_p): new function for the new specifier.
14630         (syms_of_gutter): declare gutter-visible and
14631         Fgutter_visible_specifier_p.
14632         (specifier_type_create_gutter): intitalize new gutter-visible
14633         specifier.
14634         (reinit_specifier_type_create_gutter): ditto.
14635         (specifier_vars_of_gutter): use new specifier type for gutter
14636         visibility.
14637         (init_frame_gutters): construct real_gutter correctly.
14638         (Fgutter_specifier_p): beef up documentation.
14639         (Fgutter_size_specifier_p): ditto.
14640
14641         * winslots.h: add real_gutter slots.
14642
14643 2000-02-25  Andy Piper  <andy@xemacs.org>
14644
14645         * device-msw.c: Be kind to older cygwin versions. From Raymond
14646         Toy <toy@rtp.ericsson.se>.
14647
14648         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14649         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14650
14651 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14652
14653         * elhash.c (MARK_OBJ): Practice macro hygiene.
14654
14655 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14656
14657         * miscplay.c: s/__inline__/inline/g;
14658         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14659         (get_device_compdc): INLINE ==> static inline
14660         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14661         find -name '*.h' | \
14662         xargs global-replace \
14663         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14664
14665 2000-02-25  Andy Piper  <andy@xemacs.org>
14666
14667         * window.c (window_top_frame_gutter_height): new function.
14668         (window_top_window_gutter_height): ditto.
14669         (window_top_gutter_height): use them.
14670         (window_bottom_frame_gutter_height): new function.
14671         (window_bottom_window_gutter_height): ditto.
14672         (window_bottom_gutter_height): use them.
14673         (window_left_window_gutter_width): new function.
14674         (window_left_frame_gutter_width): ditto.
14675         (window_left_gutter_width): use them.
14676         (window_right_window_gutter_width): new function.
14677         (window_right_frame_gutter_width): ditto.
14678         (window_right_gutter_width): use them.
14679         (window_pixel_height): new function. calulate window pixel height
14680         with frame gutter involvement.
14681         (Fsplit_window): calculate new sizes taking frame gutters into
14682         account.
14683         (window_char_height_to_pixel_height): don't include frame gutters.
14684         (window_char_height): use window_pixel_height.
14685         (window_pixheight): rename from window_pixel_height.
14686         (change_window_height): use it.
14687         (window_pixel_height_to_char_height): don't include frame gutters.
14688         (window_char_width_to_pixel_width): ditto.
14689
14690 2000-02-25  Andy Piper  <andy@xemacs.org>
14691
14692         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14693         if it is.
14694
14695 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14696
14697         * alloc.c (staticpro):
14698         (staticpro_nodump):
14699         (dumpstruct):
14700         (dumpopaque):
14701         (pdump_wire):
14702         (pdump_wire_list):
14703         (compact_string_chars):
14704         (pdump_dump_wired):
14705         Convert:  if (foo) abort();  ==>  assert (! foo);
14706
14707         * eldap.c (Fldap_search_basic):
14708         (Fldap_add):
14709         (Fldap_modify):
14710         (Fldap_delete):
14711         Fix compiler warnings, and possible crashes if (random) return
14712         value were to be used.
14713
14714 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14715
14716         * device-msw.c: Workaround ResetDC failure.
14717
14718         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14719         applying a devmode.
14720
14721         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14722         (mswindows_text_width): Do not start printer page.
14723
14724         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14725
14726         * glyphs-msw.c: Added image methods to msprinter console and
14727         msprinter-specific image instantiation.
14728
14729 2000-02-20  Mike Alexander  <mta@arbortext.com>
14730
14731         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14732         to avoid crashes when selection-sets-clipboard is on
14733         (mswindows_own_selection): ditto
14734
14735 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14736
14737         * glyphs-msw.c:
14738         * redisplay-msw.c (get_frame_dc):
14739         (get_frame_compdc):
14740         * console-msw.h:
14741         * device-msw.c (mswindows_init_device):
14742         (mswindows_delete_device):
14743         (msprinter_init_device):
14744         (msprinter_delete_device):
14745         * frame-msw.c (mswindows_init_frame_1):
14746         (mswindows_delete_frame):
14747         (msprinter_init_frame_3):
14748         (msprinter_delete_frame): Move compatible DC to device object from
14749         frame object, for both mswindows and msprinter. Only one at a time
14750         is needed, it is a real waste to have one per frame!
14751
14752 2000-02-23  Andy Piper  <andy@xemacs.org>
14753
14754         * glyphs.c: add dynamic width and height elements.
14755         (image_instance_equal): ditto.
14756
14757         * glyphs-widget.c (widget_query_geometry): calculate width and
14758         height dynamically if required.
14759         (initialize_widget_image_instance): initialize dynamic dimensions.
14760         (widget_instantiate): pick-up dynamic dimensions.
14761
14762         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14763         dynamic determination. Add appropriate macros.
14764
14765         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14766         dimensions safe.
14767         (WINDOW_GUTTER_SIZE): ditto.
14768         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14769
14770         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14771         inline.
14772         (get_frame_dc): ditto.
14773
14774         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14775         here.
14776
14777 2000-02-23  Martin Buchholz <martin@xemacs.org>
14778
14779         * XEmacs 21.2.31 is released.
14780
14781 2000-02-22  Ben Wing <ben@xemacs.org>
14782
14783         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14784
14785 2000-02-22  Andy Piper  <andy@xemacs.org>
14786
14787         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14788
14789 2000-02-21  Mike Sperber <mike@xemacs.org>
14790
14791         * .dbxrc:
14792         * .gdbinit:
14793         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14794         variables.
14795
14796 2000-02-21  Mike Sperber <mike@xemacs.org>
14797
14798         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14799
14800 2000-02-21  Martin Buchholz <martin@xemacs.org>
14801
14802         * XEmacs 21.2.30 is released.
14803
14804 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14805
14806         Performance hacking.
14807         * *.c (syms_of_*):
14808         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14809         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14810         * emacs.c (main_1):
14811         * lisp.h (DEFUN):
14812         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14813         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14814         * symeval.h (DEFVAR_SYMVAL_FWD):
14815         * symbols.c (guts_of_unbound_marker):
14816         Make all c_readonly objects also lisp_readonly and marked for life.
14817         * lrecord.h (struct lrecord_implementation):
14818         Document flags better.
14819         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14820         * lrecord.h (DECLARE_LRECORD):
14821         * lrecord.h (XSETRECORD):
14822         * lrecord.h (RECORDP):
14823         * lrecord.h (RECORD_TYPEP):
14824         * lrecord.h (RECORD_MARKER): New.
14825         * lrecord.h (error_check_*):
14826         * lrecord.h (CONCHECK_NONRECORD):
14827         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14828         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14829         * lrecord.h (set_lheader_implementation):
14830         * lrecord.h (enum lrecord_type): New.
14831         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14832         * alloc.c (disksave_object_finalization_1):
14833         * alloc.c (mark_object):
14834         * alloc.c (lrecord_type_index):
14835         * alloc.c (tick_lcrecord_stats):
14836         * alloc.c (Fgarbage_collect):
14837         * alloc.c (init_alloc_once_early):
14838         * alloc.c (pdump_load):
14839         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14840         * alloc.c (lrecord_type_index): Delete.
14841         Make lisp object type indexes be constant.
14842           Makes (byte-compile) 5% faster.
14843         Put all marker functions into their own array.
14844           Makes (garbage-collect) 5% faster.
14845         Optimize SYMBOL_VALUE_MAGIC_P.
14846           Makes (byte-compile) 2-3% faster.
14847         * config.h.in (gc_checking_assert): New.
14848         * alloc.c: Use gc_checking_assert().
14849         * .dbxrc: Make compatible with new object type implementation.
14850         * .gdbinit: Make compatible with new object type implementation.
14851         * alloc.c: Delete all symbols defined only for debugging, such as
14852         Lisp_Type_Vector and lrecord_charset.
14853
14854 2000-02-21  Andy Piper  <andy@xemacs.org>
14855
14856         * gui-msw.c (Fmswindows_shell_execute): fix file location
14857         problems.
14858
14859         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14860         unshowing so that set_window_buffer doesn't undo
14861         kill_buffer_hook's hard work.
14862
14863         * glyphs-widget.c (tab_control_query_geometry): don't count the
14864         first item when calculating geometry.
14865
14866         * glyphs.c (map_subwindow): remove redundant code.
14867         (update_frame_subwindows): be more circumspect about when to
14868         update subwindows.
14869
14870         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14871         when items haven't changed. Update faces if faces have changed as
14872         well as just the widget face.
14873         (x_tab_control_update): Update faces if faces have changed as well
14874         as just the widget face.
14875
14876 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14877
14878         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14879         registration.
14880         (build_syscolor_string): Use mswindows_color_to_string to try to
14881         get a named color.
14882         (mswindows_device_system_metrics): Reverse the foreground and
14883         background colors so that they match the documentation.
14884
14885         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14886         they match the default Windows palette.
14887         (mswindows_color_to_string): New function.
14888
14889 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14890
14891         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14892
14893 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14894
14895         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14896         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14897
14898         * symbols.c (init_symbols_once_early): Removed obsolete
14899         DATA_SEG_BITS related kludge.
14900         (defvar_magic): Ditto.
14901
14902         * malloc.c: Removed obsolete DATA_SEG_BITS
14903         * ralloc.c: Ditto.
14904         * mem-limits.h: Ditto.
14905
14906         * Makefile.in.in: Removed obsolete HAVE_SHM
14907         * emacs.c: Ditto.
14908
14909 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14910
14911         *  device-msw.c (mswindows_delete_device): Free DDE string
14912         handles.
14913
14914 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14915
14916         * keymap.c (get_keyelt):
14917         * unexnt.c (unexec):
14918         * vm-limit.c (memory_warnings):
14919         * ntheap.c (recreate_heap):
14920         * ntheap.h (UNINIT_PTR):
14921         * select-msw.c (Fmswindows_get_clipboard):
14922         (Fmswindows_set_clipboard):
14923         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14924         * objects-msw.c:
14925         * menubar-msw.c (displayable_menu_item):
14926         * glyphs-msw.c:
14927         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14928         * sysdep.c (sys_subshell):
14929         * process-nt.c (nt_create_process):
14930         * nt.c (normalize_filename):
14931         (dostounix_filename):
14932         (unixtodos_filename):
14933         * ntproc.c (win32_executable_type):
14934         * ntplay.c (play_sound_data_1):
14935         (play_sound_file):
14936         * editfns.c (get_home_directory):
14937         * event-msw.c (struct winsock_stream):
14938         (mswindows_dde_callback):
14939         * device-msw.c (msprinter_init_device):
14940         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14941
14942         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14943         mswindows_clear_toolbar were swapped!
14944
14945         * objects-msw.c:(colormap_t):
14946         (fontmap_t):
14947         * emacs.c (struct standard_args): Fixed const jumble.
14948
14949         * glyphs-widget.c (update_widget): Fixed comparison notation.
14950
14951         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14952
14953         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14954         __declspec(noreturn) syntax.
14955
14956 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14957
14958         * eldap.c (Fldap_open):
14959         (Fldap_search_basic):
14960         (Fldap_add):
14961         (Fldap_modify):
14962         Use new coding system conversion macros.
14963
14964 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14965
14966         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14967
14968 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14969
14970         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14971         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14972
14973         * eldap.c (Qadd, Qreplace): New constant symbols
14974         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14975         interruptions by XEmacs signals
14976         Remove unnecessary calls to slow_down_interrupts and
14977         speed_up_interrupts
14978         (Fldap_search_basic): Renamed from Fldap_search_internal
14979         Added new optional parameter VERBOSE that triggers the
14980         display of progress messages
14981         Remove unnecessary calls to slow_down_interrupts and
14982         speed_up_interrupts
14983         LDAP result code analysis rewritten
14984         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14985         (syms_of_eldap): Define the new symbols and functions
14986
14987
14988 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14989
14990         * realpath.c: Determine PATH_MAX maximally portably.
14991
14992         * insdel.c (bytecount_to_charcount): Optimize.
14993         The function used to be optimized for entirely ASCII sequences.
14994         Now it is optimized for successive characters from the same
14995         charset.  This also wins big for _mostly_ ASCII sequences.
14996
14997         * fileio.c (Ffile_truename): convert return from realpath() using
14998         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14999         - Rewrite GCPROing slightly.
15000
15001         * sysdep.c (sys_open): Do filename conversion, like all other
15002         sys_* functions.  Fixes bug:
15003         (let ((file-name-coding-system 'iso-8859-2))
15004            (write-region x y latin2-name))
15005         ==> writes filename using internal encoding.
15006
15007 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15008
15009         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15010         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15011         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15012         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15013         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15014         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15015         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15016         (CONST_IF_NOT_DEBUG): Delete.
15017         * alloc.c (this_one_is_unmarkable): Delete.
15018         (mark_object): Don't check for this_one_is_unmarkable. Use the
15019         c_readonly flag instead.
15020         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15021
15022 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15023
15024         * event-msw.c (mswindows_drain_windows_queue):
15025         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15026         away redundant repaint events.
15027
15028 2000-02-17  Andy Piper  <andy@xemacs.org>
15029
15030         * redisplay.h: declare mark_redisplay_structs.
15031
15032         * redisplay.c (redisplay_window):
15033         (redisplay_frame): don't check subwindows_state_changed.
15034         (mark_redisplay): mark gutters here.
15035
15036         * glyphs.c: (instantiate_image_instantiator): always layout if we
15037         haven't done so already.
15038         (allocate_image_instance): don't mark as dirty.
15039         (update_subwindow): bind inhibit_quit.
15040
15041         * gutter.c (mark_gutters): new function.
15042
15043         * glyphs-x.c (x_update_widget): Always resize to get round a
15044         widget bug.
15045
15046         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15047         breaking absolutely everything.
15048
15049         * gutter.h: declare mark_gutters.
15050
15051 2000-02-16  Martin Buchholz <martin@xemacs.org>
15052
15053         * XEmacs 21.2.29 is released.
15054
15055 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15056
15057         * fns.c (size_bit_vector): Fix computation of the size.
15058
15059 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15060
15061         * *.[ch]: Change CONST to const globally.
15062         find -name '*.[ch]' | \
15063         xargs global-replace \
15064         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15065         - Remove vestigial references to CONST_IS_LOSING
15066
15067 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15068
15069         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15070         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15071         events instead of dispatching them directly.
15072         (mswindows_handle_paint): New function to do repainting.
15073         (mswindows_wnd_proc):
15074         (emacs_mswindows_handle_magic_event): Call above function.
15075
15076 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15077
15078         * objects-msw.c (mswindows_create_font_variant): Return the new
15079         font handle.
15080         (initialize_font_instance): Get font metrics from the underlined
15081         variant of the font to cope with the case where the underlined
15082         font has a bigger descent.
15083
15084 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15085
15086         * gui.c (gui_item_accelerator): Return the first underlined
15087         character in item name.
15088
15089 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15090
15091         * lisp.h: Added Qprinter.
15092
15093         * general.c (syms_of_general): Initialized it.
15094
15095         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15096         (get_frame_dc):
15097         (get_frame_compdc): Made inline.
15098
15099         * console.h (struct console_methods): Added eject_page method.
15100
15101         * frame.h: Added FRAME_DISPLAY_P and friends.
15102         Aligned backslahes in many macros in more readable fashion.
15103         Added page_number to struct frame, and an accessor macro
15104         for it.
15105
15106         * defice.h: Added DEVICE_DISPLAY_P and friends.
15107
15108         * device.c (Fdevice_printer_p): Used these.
15109
15110         * frame.c (allocate_frame_core): Initialize page number.
15111         (Fprint_job_page_number):
15112         (Fprint_job_eject_page): Implemented.
15113
15114         * frame-msw.c (msprinter_eject_page): Added method.
15115         (msprinter_start_page): Added.
15116
15117         * window.c (Fwindow_truncated_p): Fixed docstring.
15118         (Fwindow_last_line_visible_height): Implemented.
15119
15120 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15121
15122         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15123
15124 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15125
15126         * syntax.c (scan_words): Always advance at least one character.
15127
15128 2000-02-13  Andy Piper  <andy@xemacs.org>
15129
15130         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15131         to make sure the glyph is in the cachels.
15132
15133         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15134         global image instance flag.
15135         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15136         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15137
15138         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15139         (Fset_image_instance_property): mark layout as changed.
15140         (invalidate_glyph_geometry_maybe): mark layout as changed.
15141         (glyph_width): use new NEEDS_LAYOUT macro.
15142         (glyph_ascent): ditto.
15143         (glyph_descent): ditto.
15144         (glyph_height): ditto.
15145         (image_instance_layout): mark layout as clean after laying out.
15146         (update_subwindow): don't mark layout as clean here.
15147
15148         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15149         should no longer be needed.
15150
15151         * glyphs-x.c (x_update_widget): sanitize asserts.
15152         (x_finalize_image_instance): sanitize assignment to widgets.
15153
15154         * glyphs-widget.c (widget_instantiate): don't need to clear the
15155         layout flag here.
15156
15157 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15158
15159         * sysdep.c (getcwd): Use standard prototype.
15160         * sysdep.h (getcwd): Use standard prototype.
15161
15162         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15163         (sequence, start, end).
15164         Remove redundant type checking.
15165         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15166         view of `caller-protects') to avoid a crash where the real fix was
15167         found elsewhere.
15168
15169 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15170
15171         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15172
15173         * s/sol2.h: Remove feature macro initialization.
15174
15175         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15176         (vector_hash): New.  Code from internal_hash.
15177         * lrecord.h:
15178         Fix up allocation subsystem comments.
15179
15180         * config.h.in: Add __EXTENSIONS__ for Solaris.
15181
15182         * systime.h (EMACS_GETTIMEOFDAY): New.
15183         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15184         Remove Solaris-specific code.
15185         Use void* for the (ignored) second arg for gettimeofday().
15186
15187         * elhash.c (hash_table_hash): Implement it, finally.
15188         * elhash.c:  Use hashcode_t.
15189
15190         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15191         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15192
15193         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15194         * fns.c (size_bit_vector):
15195         * alloc.c (size_vector):
15196         (make_vector_internal):
15197         (make_bit_vector_internal):
15198         (sweep_bit_vectors_1):
15199         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15200
15201 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15202
15203         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15204         Include strings.h to avoid warnings for bzero and strcasecmp.
15205
15206 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15207
15208         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15209         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15210
15211         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15212         sequence.
15213
15214 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15215
15216         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15217         use a value field instead.
15218         (symbol_value_forward_forward): Use value field.
15219         (DEFVAR_SYMVAL_FWD): Use value field.
15220         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15221         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15222         (DEFVAR_CONST_INT): Ditto.
15223         (DEFVAR_BOOL): Ditto.
15224         (DEFVAR_CONST_BOOL): Ditto.
15225         (DEFVAR_INT_MAGIC): Ditto.
15226         (DEFVAR_BOOL_MAGIC): Ditto.
15227
15228         * symbols.c (guts_of_unbound_marker): Use value field.
15229         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15230         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15231
15232         * lisp.h: Declare dumpopaque and noninteractive1.
15233
15234         * alloc.c (dumpopaque): Added.
15235         (pdump_dump_opaquevec): Added.
15236         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15237         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15238         noninteractive.
15239
15240 2000-02-10  Andy Piper  <andy@xemacs.org>
15241
15242         * glyphs.c (image_instance_layout): if the size changes, mark it
15243         as such.
15244
15245         * redisplay-output.c (redisplay_output_layout): Update the
15246         subwindow here.
15247         (redisplay_output_subwindow): ditto.
15248
15249         * glyphs.c (update_subwindow): make sure we reset flags for
15250         layouts as well as everything else.
15251
15252         * glyphs-widget.c (layout_layout): don't need to set the instances
15253         dimensions here.
15254
15255 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15256
15257         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15258         not HAVE_DLOPEN, which is a lower-level thing.
15259
15260         * .cvsignore: Ignore gmon.out
15261
15262 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15263
15264         * .cvsignore: Ignore portable dumper xemacs.dmp file
15265
15266 2000-02-09  Andy Piper  <andy@xemacs.org>
15267
15268         * redisplay-output.c (redisplay_output_layout): be more clever
15269         about when we output based on the changed flags.
15270
15271         * glyphs.h (struct image_instantiator_methods): add update_method.
15272         (struct Lisp_Image_Instance): add changed flags. Declare new
15273         macros for manipulating them.
15274
15275         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15276         (image_instance_parent_glyph): find an image_instance's parent
15277         glyph or image_instance.
15278         (image_instance_layout): mark the size as changed.
15279         (set_image_instance_dirty_p): new function. mark an image
15280         instance, plus all of its parents, as dirty.
15281         (Fset_image_instance_property): use it.
15282         (Fglyph_animated_timeout_handler): use it.
15283         (update_subwindow): call update_widget and device methods for
15284         update_subwindow. Mark all changed flags as clean.
15285         (Fresize_subwindow): mark size as changed.
15286
15287         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15288         failures.
15289         (x_update_subwindow): only resize subwindows here.
15290         (x_update_widget): new function. Update all changed properties of
15291         a widget.
15292         (x_resize_subwindow): deleted.
15293         (x_widget_set_property): deleted.
15294         (x_progress_gauge_set_property): deleted.
15295         (x_progress_gauge_update): new function. Implement recorded
15296         changes.
15297         (x_tab_control_update): ditto.
15298         (x_tab_control_set_property): deleted.
15299         (console_type_create_glyphs_x): declare new functions.
15300         (image_instantiator_format_create_glyphs_x): ditto.
15301
15302         * glyphs-widget.c (widget_set_property): mark text changed.
15303         (update_widget): new function. Update properties of a widget.
15304         (widget_instantiate): for layouts make sure we set their
15305         children's parent correctly.
15306         (tab_control_set_property): new function. Record changes that will
15307         take place under redisplay's control.
15308         (progress_gauge_set_property): ditto.
15309         (image_instantiator_progress_guage): declare new functions.
15310         (image_instantiator_tab_control): ditto.
15311
15312         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15313         now.
15314         (mswindows_update_widget): new function. Update all properties on
15315         a widget that have changed.
15316         (mswindows_button_update): new function. Update a button's set
15317         state.
15318         (mswindows_tab_control_update): new function. Update the items in
15319         a tab.
15320         (mswindows_tab_control_set_property): deleted.
15321         (mswindows_progress_gauge_update): new function. Update the
15322         progress gauge's progress.
15323         (mswindows_widget_set_property): deleted. This is all done
15324         asynchronously now.
15325         (mswindows_progress_gauge_set_property): ditto.
15326         (console_type_create_glyphs_mswindows): declare new methods.
15327         (image_instantiator_format_create_glyphs_mswindows): ditto.
15328
15329         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15330         (msprinter_set_frame_properties): ditto.
15331
15332         * console.h (struct console_methods): Add update_widget_method.
15333
15334 2000-02-09  Andy Piper  <andy@xemacs.org>
15335
15336         * gui-msw.c (Fmswindows_shell_execute): Make
15337         mswindows-shell-execute industrial strength.
15338
15339 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15340
15341         * lrecord.h: Make macro argument `props' match member function `plist'.
15342         * fns.c (Fget):
15343         * fns.c (Fput):
15344         * fns.c (Fremprop):
15345         * fns.c (Fobject_plist):
15346         * alloc.c:
15347         * symbols.c:
15348         Object property list frobbing cleanup.
15349         - Allow any lisp object (compared with `eq'), not just symbols, as
15350           keys in object plists.
15351         - Move symbol plist frobbing into symbols.c, where it belongs.
15352         - Move string plist frobbing into alloc.c, where it belongs.
15353         - Everything's an lrecord now, so no need to test for symbolp, etc.
15354         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15355
15356         * extents.c: Reorder code to remove declarations.
15357
15358         * frame.h (store_in_alist): Remove useless declaration.
15359
15360 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15361
15362         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15363         * config.h.in: Add HAVE_XCONVERTCASE.
15364
15365 2000-02-07  Andy Piper  <andy@xemacs.org>
15366
15367         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15368         it breaks many things.
15369
15370 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15371
15372         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15373         actually can start a common comment type.
15374         * src/syntax.h (SYNTAX_END_P): ditto for end.
15375
15376 2000-02-07  Martin Buchholz <martin@xemacs.org>
15377
15378         * XEmacs 21.2.28 is released.
15379
15380 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15381
15382         * event-Xt.c (x_keysym_to_character): New.
15383         (maybe_define_x_key_as_self_inserting_character): New.
15384         (x_has_keysym): New.
15385         Auto-define all keys on the keyboard as self-insert-key.
15386
15387 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15388
15389         * menubar.c (vars_of_menubar): A small code simplification.
15390
15391         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15392
15393         * ExternalShell.c:
15394         * ExternalClient.c:
15395         * EmacsShell-sub.c:
15396         * EmacsManager.c:
15397         * EmacsFrame.c:
15398         Use consistent style for specifying X resources.
15399
15400         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15401         This makes (dontusethis-set-symbol-value-handler) actually usable.
15402
15403         * lrecord.h (lrecord_decription_type):
15404         * alloc.c (pdump_register_sub):
15405         (pdump_dump_data):
15406         (pdump_reloc_one):
15407         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15408         Comply with XEmacs coding style.
15409         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15410         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15411
15412         * keymap.c (Faccessible_keymaps):
15413         Make (accessible-keymaps map "\C-h") do the Right Thing.
15414         Make (accessible-keymaps map []) do the Right Thing.
15415         Make (accessible-keymaps map "") do the Right Thing.
15416         (check_keymap_definition_loop): New function.
15417         (keymap_store_internal): Keep luser from shooting self in foot,
15418           via (define-key ctl-x-4-map "p" global-map).
15419         Remove fullness slot from struct Lisp_Keymap, since hash tables
15420         are now reliable.
15421         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15422
15423 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15424
15425         * redisplay.c (init_redisplay): Fix small memory leak.
15426         * elhash.h:
15427         * elhash.c (pdump_reorganize_hash_table):
15428         Rename from reorganize_hash_table. Change prototype.
15429         Reuse the original memory for hentries.  Save 100k.
15430         * alloc.c (PDUMP_READ): new macro.
15431         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15432         * alloc.c: No need to #ifndef before #undef.
15433
15434         * print.c: Allow debug_print() to print readably by modifying
15435         debug_print_readably.  Use consistent variable names.
15436
15437         * .dbxrc: Try to get things to work even if stopped in a function
15438         without source available by explicitly specifying source files.
15439 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15440
15441         * unexnt.c (_start): Removed bogus code which caused loading heap
15442         from differrent executable file.
15443         Removed bogus assignment to _fmode, which caused inconsistencies.
15444
15445 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15446
15447         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15448         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15449         Do not preliminary `#define signal sigset'.
15450
15451         * systime.h: Do not prototype environ on windows nt and cygwin,
15452         this conflicts with system header.
15453
15454         * syssignal.h: Use correct define for WINDOWSNT
15455
15456         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15457         with system header.
15458
15459         * sysdep.c (near start of file): Fixed commentary and rearranged
15460         ifdefs in readable order.
15461         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15462         (start_of_text):
15463         (end_of_text):
15464         (end_of_data): Do not compile in if using PDUMP.
15465
15466         * symsinit.h: Prototyped vars_of_nt().
15467
15468         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15469         (find_child_console): Use it.
15470         (sys_kill): Use it.
15471
15472         * ntheap.h: Do not extern os_subtype.
15473
15474         * ntheap.c (cache_system_info): Do not cache unneeded:
15475         nt_major_version, nt_minor_version and os_subtype.
15476         (recreate_heap): Do not compile in when PDUMPing.
15477
15478         * nt.c (geteuid and friends): Use the new varibale
15479         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15480         (init_user_info): Removed the above mentioned hackery.
15481         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15482         stat has been fixed in the C runtime.
15483         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15484
15485         * file-coding.c (struct file_coding_dump): Do not define
15486         ucs_to_mule_table in the struct if not MULE.
15487         (struct struct lrecord_description fcd_description_1): Do not dump
15488         the above.
15489
15490         * emacs.c (main_1): Call vars_of_nt().
15491         (right before Fdump_emacs_data): Don't need lastfile if using both
15492         portabe dumper and system malloc.
15493
15494         * alloc.c (Fmemory_limit): Conditionalized out.
15495         (pdump): Use OPEN_BINARY for the portable dump file.
15496         (pdump_load): Ditto.
15497
15498 2000-02-02  Mike Alexander  <mta@arbortext.com>
15499
15500         * nt.c (convert_time): Set tm_isdst before calling mktime and
15501         avoid calling it at all if the compiler supports 64 bit integers.
15502         Also initialize utc_base_ft before using it.
15503
15504 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15505
15506         * frame.c (change_frame_size_1): Take f->internal_border_width
15507         into consideration when calculating the width of the frame.
15508
15509 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15510
15511         * window.c (frame_min_height):
15512         (frame_size_valid_p):
15513         (frame_pixsize_valid_p): Added.
15514         (check_frame_size): Generalized.
15515
15516         * window.h: Prototyped the above.
15517
15518         * lisp.h:
15519         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15520         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15521         Deleted Vwin32_* and Vbinary_process_* unused variables.
15522
15523         * device-msw.c (msprinter_init_device): Do not get printer font
15524         list; Added DEVMODE functions.
15525
15526         * frame-msw.c: Added lots of printer code.
15527
15528         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15529         general.c.
15530
15531         * console-msw.h: Added more msprinter device private slots.
15532
15533 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15534
15535         * event-msw.c (key_needs_default_processing_p): Added.
15536         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15537
15538 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15539
15540         * glyphs.c (image_instance_layout): Mark image instance as clean
15541         after layout.
15542         (glyph_dirty_p): Removed redundant function.
15543         (invalidate_glyph_geometry_maybe): Added.
15544         (update_glyph_cachel_data): Call it.
15545
15546         * glyphs.h: Prototyped it.
15547
15548         * redisplay.c (add_glyph_rune): Call it.
15549         (redisplay_window): Reset glyphs cachels when frame faces have
15550         changed, thus forcing recomputation of built-in border glyphs.
15551
15552 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15553
15554         * Makefile.in.in: Make portable dumper and purify play well together.
15555         Add imperfect, but better than nothing, support for pdump.
15556         Remove xemacs.dmp when temacs is re-generated.
15557         Don't ignore errors when dumping xemacs.
15558
15559         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15560
15561 2000-01-28  Andy Piper  <andy@xemacs.org>
15562
15563         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15564         (setup_normal_frame): ditto.
15565         (setup_frame_without_minibuffer): ditto.
15566         (setup_minibuffer_frame): ditto.
15567         (delete_frame_internal): ditto.
15568         (Fmake_frame_invisible): ditto.
15569         (Ficonify_frame): ditto.
15570
15571         * window.h: change Fset_window_buffer signature.
15572
15573         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15574         (Fset_window_buffer): allow recording of buffer if the window is
15575         the selected window.
15576         (window_loop): Use new Fset_window signature.
15577
15578 2000-01-23  Daniel Pittman  <daniel@danann.net>
15579
15580         * config.h.in: Added template for `HAVE_ATHENA_3D'
15581
15582 2000-01-29  Andy Piper  <andy@xemacs.org>
15583
15584         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15585
15586         * gutter.c (output_gutter): Don't output if the window isn't live.
15587
15588 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15589
15590         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15591         of 01/12/00: Moved SetFocus back here where it belongs.
15592
15593 2000-01-23  Andy Piper  <andy@xemacs.org>
15594
15595         * s/cygwin32.h: declare printer things.
15596
15597 2000-01-26  Andy Piper  <andy@xemacs.org>
15598
15599         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15600         Alexander.
15601
15602 2000-01-24  Andy Piper  <andy@xemacs.org>
15603
15604         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15605         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15606
15607         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15608
15609         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15610
15611         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15612
15613         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15614         (mswindows_output_display_block): Avoid local shadows.
15615
15616         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15617         (mswindows_enqueue_mouse_button_event): ditto.
15618         (mswindows_handle_gui_wm_command): remove declaration.
15619
15620         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15621         warnings.
15622
15623         * console-msw.h: Avoid shadows.
15624         (mswindows_get_toolbar_button_text):
15625         (emacs_mswindows_create_stream_pair):
15626         (emacs_mswindows_delete_stream_pair):
15627         (mswindows_handle_toolbar_wm_command): declare.
15628
15629         * device-msw.c (build_syscolor_string): Avoid shadows.
15630
15631 2000-01-23  Andy Piper  <andy@xemacs.org>
15632
15633         * glyphs-widget.c (widget_instantiate): reverse the items for
15634         layouts so that children are in the expected order.
15635
15636 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15637
15638         * ralloc.c: safe_bcopy ==> memmove
15639         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15640         * s/msdos.h: Remove BCOPY macros.
15641         * insdel.c (gap_right): Remove BCOPY conditional code.
15642         * insdel.c (gap_left): Remove BCOPY conditional code.
15643         XEmacs demands a working ANSI C compiler - hence memmove.
15644
15645         * regex.c (regex_compile): Remove accidental use of trigraphs.
15646
15647 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15648
15649         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15650         event timestamp.
15651
15652 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15653
15654         * event-msw.c (mswindows_drain_windows_queue): Added the
15655         parameter.
15656         (mswindows_need_event): Commented the call to
15657         mswindows_drain_windows_queue().
15658         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15659         only.
15660
15661         * console-msw.h: Moved a few function prototypes here from
15662         event-msw.c.
15663
15664         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15665         parameter from unsigned short to unsigned long.
15666         (Fmswindows_shell_execute): Added return value.
15667
15668 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15669
15670         * sysdep.c (init_system_name):
15671           process-unix.c (unix_canonicalized_host_name):
15672         Don't call freeaddrinfo() if getaddrinfo() fails.
15673
15674         * process-unix.c (unix_open_unix_network_stream):
15675         Moved the code to get a port # into address loop.
15676
15677 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15678
15679         * buffer.c (reinit_vars_of_buffer):
15680         The right place to initialize conversion_in_dynarr and
15681         conversion_out_dynarr.
15682
15683         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15684
15685         * process-unix.c (unix_canonicalize_host_name): Muleize.
15686         (unix_open_network_stream): Muleize.
15687
15688         * buffer.h: Fix up prototypes for ralloc.c functions.
15689
15690 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15691         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15692         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15693                 instead of gethostbyname()
15694         * process-unix.c: In unix_canonicalize_host_name() and
15695                 unix_open_network_stream(), add code to use getaddrinfo()
15696                 instead of gethostbyname().
15697
15698 2000-01-27  Daniel Pittman <daniel@danann.net>
15699
15700         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15701         libs when built with flat Athena.
15702
15703 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15704
15705         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15706         Use coding standards for function prototypes.
15707
15708 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15709
15710         * dialog-msw.c (push_lisp_string_as_unicode):
15711         * doc.c (unparesseuxify_doc_string):
15712         * dired.c (Fuser_name_completion_1):
15713         * dired.c (Fuser_name_all_completions):
15714         * dired.c (free_user_cache):
15715         * dired.c (user_name_completion):
15716         * console-x.c (get_display_arg_connection):
15717         * minibuf.c (clear_echo_area_internal):
15718         * minibuf.c (echo_area_append):
15719         * eldap.c (Fldap_open):
15720         * eldap.c (Fldap_search_internal):
15721         * frame-x.c (x_set_frame_text_value):
15722         * frame-x.c (x_set_frame_properties):
15723         * frame-x.c (x_create_widgets):
15724         * redisplay-tty.c (term_get_fkeys_1):
15725         * objects-x.c (x_parse_nearest_color):
15726         * objects-x.c (x_valid_color_name_p):
15727         * objects-x.c (x_initialize_font_instance):
15728         * objects-x.c (x_list_fonts):
15729         * objects-x.c (x_find_charset_font):
15730         * tooltalk.c (Fadd_tooltalk_message_arg):
15731         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15732         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15733         * process-unix.c (unix_create_process):
15734         * ntproc.c (sys_spawnve):
15735         * sound.c (Fplay_sound_file):
15736         * sound.c (Fplay_sound):
15737         * buffer.c (init_initial_directory):
15738         * buffer.c (init_buffer):
15739         * editfns.c (init_editfns):
15740         * editfns.c (Ftemp_directory):
15741         * editfns.c (Fuser_full_name):
15742         * editfns.c (uncache_home_directory):
15743         * editfns.c (get_home_directory):
15744         * editfns.c (Fuser_home_directory):
15745         * editfns.c (Fformat_time_string):
15746         * editfns.c (Fcurrent_time_string):
15747         * gui-x.c (button_item_to_widget_value):
15748         * database.c (Fopen_database):
15749         * event-Xt.c (x_to_emacs_keysym):
15750         * event-Xt.c (x_event_to_emacs_event):
15751         * event-Xt.c (describe_event_window):
15752         * event-msw.c (mswindows_wnd_proc):
15753         * glyphs-eimage.c (jpeg_instantiate):
15754         * glyphs-eimage.c (gif_instantiate):
15755         * glyphs-eimage.c (png_instantiate):
15756         * glyphs-eimage.c (tiff_instantiate):
15757         * glyphs-x.c (xbm_instantiate_1):
15758         * glyphs-x.c (x_xbm_instantiate):
15759         * glyphs-x.c (x_xface_instantiate):
15760         * glyphs-x.c (autodetect_instantiate):
15761         * glyphs-x.c (cursor_font_instantiate):
15762         * glyphs-x.c (x_widget_instantiate):
15763         * glyphs-x.c (x_widget_set_property):
15764         * glyphs-x.c (x_widget_property):
15765         * glyphs-x.c (BUILD_GLYPH_INST):
15766         * print.c (write_string_to_stdio_stream):
15767         * print.c (output_string):
15768         * print.c (Falternate_debugging_output):
15769         * print.c (Fexternal_debugging_output):
15770         * glyphs-msw.c (extract_xpm_color_names):
15771         * glyphs-msw.c (mswindows_xpm_instantiate):
15772         * glyphs-msw.c (bmp_instantiate):
15773         * glyphs-msw.c (resource_name_to_resource):
15774         * glyphs-msw.c (mswindows_resource_instantiate):
15775         * glyphs-msw.c (xbm_instantiate_1):
15776         * glyphs-msw.c (mswindows_xbm_instantiate):
15777         * glyphs-msw.c (mswindows_xface_instantiate):
15778         * glyphs-msw.c (mswindows_widget_instantiate):
15779         * glyphs-msw.c (add_tree_item):
15780         * glyphs-msw.c (add_tab_item):
15781         * glyphs-msw.c (mswindows_combo_box_instantiate):
15782         * glyphs-msw.c (mswindows_widget_property):
15783         * glyphs-msw.c (mswindows_combo_box_property):
15784         * glyphs-msw.c (mswindows_widget_set_property):
15785         * console.c (stuff_buffered_input):
15786         * objects-msw.c (mswindows_initialize_color_instance):
15787         * objects-msw.c (mswindows_valid_color_name_p):
15788         * objects-msw.c (mswindows_list_fonts):
15789         * objects-msw.c (mswindows_font_instance_truename):
15790         * bytecode.c (optimize_compiled_function):
15791         * select-x.c (symbol_to_x_atom):
15792         * select-x.c (x_atom_to_symbol):
15793         * select-x.c (hack_motif_clipboard_selection):
15794         * select-x.c (selection_data_to_lisp_data):
15795         * select-x.c (lisp_data_to_selection_data):
15796         * select-x.c (Fx_get_cutbuffer_internal):
15797         * select-x.c (Fx_store_cutbuffer_internal):
15798         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15799         * buffer.h (TO_INTERNAL_FORMAT): New function.
15800         * emacs.c (make_arg_list_1):
15801         * emacs.c (make_argc_argv):
15802         * emacs.c (main_1):
15803         * emacs.c (Fdump_emacs):
15804         * emacs.c (split_string_by_emchar_1):
15805         * file-coding.h:
15806         * lisp.h:
15807         * lstream.h:
15808         * symsinit.h:
15809         * device-x.c (x_init_device):
15810         * device-x.c (Fx_valid_keysym_name_p):
15811         * device-x.c (Fx_get_font_path):
15812         * device-x.c (Fx_set_font_path):
15813         * glyphs.c (bitmap_to_lisp_data):
15814         * glyphs.c (pixmap_to_lisp_data):
15815         * alloc.c (make_ext_string): Use coding system arguments.  Update
15816         all callers.
15817         * alloc.c (build_string):
15818         * callproc.c (child_setup):
15819         * callproc.c (init_callproc):
15820         * fileio.c (lisp_strerror):
15821         * fileio.c (directory_file_name):
15822         * fileio.c (Fexpand_file_name):
15823         * fileio.c (Ffile_truename):
15824         * fileio.c (Fsysnetunam):
15825         * fileio.c (Fdo_auto_save):
15826         * sysdep.c (sys_readdir):
15827         * tests.c: New file.  Allow adding C tests.
15828         Replace GET_* macros with a more comprehensible and flexible
15829         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15830         Modify all calls.
15831         Any coding system can be used to do format conversion.
15832         Eliminate enum external_data_format.
15833         Eliminate convert_to_external_format.
15834         Eliminate convert_to_internal_format.
15835         Make sure file-name, keyboard, terminal, and ctext are always
15836         defined as coding systems or aliases.  Make
15837         file-name-coding-system, terminal-coding-system, and
15838         keyboard-coding-system magical variables that are equivalent to
15839         defining the corresponding coding system aliases.
15840
15841         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15842         * file-coding.c (Fcoding_system_alias_p): New function.
15843         * file-coding.c (Fcoding_system_aliasee): New function.
15844         * file-coding.c (append_suffix_to_symbol): New function.
15845         * file-coding.c (dangling_coding_system_alias_p): New function.
15846         * file-coding.c (Ffind_coding_system):
15847         * file-coding.c (Fcopy_coding_system):
15848         * file-coding.c (encode_coding_no_conversion):
15849         * file-coding.c (syms_of_file_coding):
15850         * file-coding.c (vars_of_file_coding):
15851         Rewrite coding system alias code.
15852         Allow nested aliases, like symbolic links.
15853         Allow redefinition of coding system aliases.
15854         Prevent existence of dangling coding system aliases.
15855
15856         * dired.c (Fuser_name_completion_1):
15857         * dired.c (Fuser_name_all_completions):
15858         A crash would happen if user did QUIT in the middle of building
15859         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15860
15861         * lisp.h:
15862         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15863
15864         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15865         an unsigned char *.  Update all callers.
15866
15867 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15868
15869         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15870
15871 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15872
15873         * elhash.c (hentry_description): Use more portable definition.
15874         (resize_hash_table): Initialize new hentries using
15875         xnew_array_and_zero, thereby simplifying the code.
15876
15877         * mule-charset.c (make_charset): Make sure entire object is
15878         initialized, to avoid Purify warnings.
15879
15880         * alloc.c (resize_string): Fix unlikely crash with big strings.
15881
15882 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15883
15884         * realpath.c (xrealpath):
15885         Don't call getwd().
15886
15887 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15888
15889         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15890
15891 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15892
15893         * unexelfsgi.c (unexec): Change the way we decide which segment
15894         should be extended.
15895
15896         Assumption that .bss section should be outside the PT_LOADable
15897         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15898         it's present) is inside the 'data' segment. This would fail the
15899         test which was used to find a segment to grow and cover new
15900         heap. Instead of this assumption, I created another one - on IRIX
15901         the segment to grow should start below .bss and it's address
15902         should extent above the end of .bss. Once this segment is
15903         identified, it's grown to accommodate the new heap and new
15904         zero-length .bss section is added at the end of .data2.
15905
15906 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15907
15908         * eval.c (Feval): Wrong number of arguments should use original
15909         function, not the indirect_function version of it.
15910
15911 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15912
15913         * glyphs-x.c (x_button_instantiate): Don't add image if
15914         it is not a pixmap.
15915         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15916         is relative.
15917
15918 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15919
15920         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15921         declaration.
15922         (DEFVAR_INT_MAGIC): Ditto.
15923         (DEFVAR_BOOL_MAGIC): Ditto.
15924         * glyphs.h: Reindent backslash.
15925
15926 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15927
15928         * glyphs-widget.c (layout_query_geometry):
15929         (layout_layout): Use correct types for gheight, gwidth.
15930
15931 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15932
15933         * EmacsManager.c (QueryGeometry): Purified.
15934
15935 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15936
15937         * alloc.c (make_float): Make sure entire object is initialized, to
15938         avoid Purify warnings.
15939         (pdump_register_sub): Remove useless assignment.
15940         (pdump): Use xmalloc, not malloc.
15941         (pdump_load): Use xmalloc, not malloc.
15942
15943 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15944
15945         * callproc.c:
15946         * dired-msw.c:
15947         * fileio.c:
15948         * process-nt.c:
15949         * redisplay-msw.c:
15950         * sysdep.c: Removed redundant #include <windows.h>
15951
15952 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15953
15954         * frame.c (delete_frame_internal): Do not delete device when its
15955         implementation so declares.
15956         (delete_frame_internal): Set device selected frame to nil when
15957         last frame goes away.
15958
15959         * device-msw.c (msprinter_device_system_metrics): Implemented.
15960         (mswindows_device_system_metrics): Added 'device-dpi property.
15961
15962         * device.c: (Fdevice_printer_p): Added.
15963         Added 'offset-workspace device metric.
15964
15965         * console.h (device_metrics): Declared DM_offset_workspace.
15966
15967 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15968
15969         * fileio.c (Ffile_truename): Remove pointless and confusing
15970         initialization of elen.
15971
15972         * glyphs-widget.c: Compiler warning fixes.
15973
15974 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15975
15976         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15977         instead of a Lisp_Object as argument to make it consistent with
15978         the other LIVE_P macros.
15979         (CHECK_LIVE_PROCESS): New macro.
15980
15981         * process.c: Declare Qprocess_live_p.
15982         (Fprocess_live_p): New function.
15983         (create_process): Use PROCESS_LIVE_P.
15984         (read_process_output): Ditto.
15985         (set_process_filter): Ditto.
15986         (Fdelete_process): Ditto.
15987         (kill_buffer_processes): Ditto
15988         (process_send_signal): Use CHECK_LIVE_PROCESS.
15989         (Fprocess_input_coding_system): Check whether process is still
15990         alive (fix PR#1061).
15991         (Fprocess_output_coding_system): Ditto.
15992         (Fprocess_coding_system): Ditto.
15993         (Fset_process_input_coding_system): Ditto.
15994         (Fset_process_output_coding_system): Ditto.
15995
15996 2000-01-23  Andy Piper  <andy@xemacs.org>
15997
15998         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15999         layout and widget.
16000
16001         * glyphs.c (mark_image_instance): take into account changed
16002         image_instance format.
16003         (image_instance_equal): ditto.
16004         (image_instance_hash): ditto.
16005
16006         * glyphs-widget.c (widget_instantiate): Incorporate layout
16007         instantiation here. Delay layout of the layout until later.
16008         (layout_instantiate): deleted.
16009         (layout_query_geometry): new function. get the geometry of a
16010         layout.
16011         (layout_layout): layout a layout dynamically.
16012         (image_instantiator_widget): New function - splitting up
16013         image_instantiator_format_create_glyphs_widget for netwinder
16014         compilation.
16015         (image_instantiator_buttons):
16016         (image_instantiator_edit_fields):
16017         (image_instantiator_combo_box):
16018         (image_instantiator_scrollbar):
16019         (image_instantiator_progress_guage):
16020         (image_instantiator_tree_view):
16021         (image_instantiator_tab_control):
16022         (image_instantiator_labels):
16023         (image_instantiator_layout): ditto.
16024         (image_instantiator_format_create_glyphs_widget): Call preceding
16025         functions.
16026
16027 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16028
16029         * process.c (Fset_process_coding_system):
16030         * device-x.c (Fx_keysym_hash_table):
16031         Docstring fixes.
16032
16033         * lstream.c (Lstream_write): Return documented value, not 0.
16034
16035         * fileio.c (directory_file_name):
16036         (Fsubstitute_in_file_name):
16037         (Fsubstitute_insert_file_contents_internal):
16038         (Fwrite_region_internal):
16039         * emacs.c:
16040         * sysdep.c:
16041         * getloadavg.c:
16042         * systty.h:
16043         Remove vestigial APOLLO-conditional code.
16044
16045 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16046
16047         * getpagesize.h: Add guard macros.
16048         * libsst.h: Add guard macros.
16049         * libst.h: Add guard macros.
16050         * line-number.h: Add guard macros.
16051         * ndir.h: Add guard macros.
16052         * sysfloat.h: Add guard macros.
16053         * sysfile.h: Add guard macros.
16054         * sysproc.h: Add guard macros.
16055         * syswait.h: Add guard macros.
16056         * xintrinsic.h: Add guard macros.
16057         * xintrinsicp.h: Add guard macros.
16058         * xmmanager.h: Add guard macros.
16059         * xmmanagerp.h: Add guard macros.
16060         * xmprimitive.h: Add guard macros.
16061         * xmu.h: Add guard macros.
16062         * gpmevent.h: Add copyright statement. Add guard macros.
16063         * miscplay.h: Add guard macros.
16064         * *.h: Use consistent C-standards-approved guard macro names.
16065
16066         * opaque.c (make_opaque): Switch parameter order.
16067         * opaque.h (make_opaque): Switch parameter order.
16068         Update all callers.
16069         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16070
16071         * config.h.in (type_checking_assert): Added.
16072         (bufpos_checking_assert): Added.
16073
16074 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16075
16076         * alloc.c: Harmless pdump changes.
16077         - Use countof().
16078         - spell alignment correctly.
16079         * sysdep.c: Use countof()
16080
16081 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16082
16083         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16084         initially_selected_for_input() console method, default to 0.
16085         (semi_canonicalize_console_connection): Try to delegate to
16086         canonicalize_console_connection if no such console method.
16087         (canonicalize_console_connection): Vice versa.
16088         (print_console): Do not print nil connection.
16089
16090         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16091         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16092         (XDEVIMPF_FRAMELESS_OK): Added.
16093         (CONSOLE_INHERITS_METHOD): Added.
16094
16095         * console-msw.c (mswindows_canonicalize_console_connection):
16096         Added.
16097         (mswindows_canonicalize_device_connection): Added.
16098
16099         * console-msw.h (struct msprinter_device): Added this struct and
16100         accessor macros.
16101         (mswindows_device): Made fontlist a lisp object.
16102
16103         * device.c (semi_canonicalize_device_connection):  Try to delegate
16104         to canonicalize_device_connection if no such console method.
16105         (canonicalize_device_connection): Vice versa.
16106         (print_device): Do not print nil connection.
16107
16108         * device-msw.c (mswindows_init_device): Call InitCommonControls
16109         when have widgets.
16110         (mswindows_delete_device): Removed fontlist deallocation.
16111         (mswindows_mark_device): Added.
16112
16113         * events.c (event_equal): Added abort() at unreached code.
16114         (event_hash): Ditto.
16115
16116         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16117         fallback tags of Windows devices.
16118
16119         * general.c (syms_of_general): Initialized Qmsprinter.
16120
16121         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16122         of fallback tags of Windows devices.
16123
16124         * lisp.h: Declared Qmsprinter.
16125
16126         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16127         of strings.
16128         (mswindows_list_fonts): Ditto.
16129         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16130         that it can be used by both mswindows and msprinter devices.
16131         (initialize_font_instance): Added.
16132         (mswindows_initialize_font_instance): Use it.
16133         (msprinter_initialize_font_instance): Added.
16134
16135         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16136         and implementation flags check.
16137         (redisplay_without_hooks): Changed the call to the above.
16138         (Fredraw_device): Ditto.
16139         (Fredisplay_device): Ditto.
16140
16141         * redisplay-msw.c (get_frame_dc): Implemented.
16142         (get_frame_compdc): Implemented.
16143         (many functions): Use the two functions above to get device
16144         contexts, ether for a window or a printer.
16145
16146 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16147
16148         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16149         initialization here.
16150         (init_symbols_once_early): Call it.
16151         * emacs.c (main_1): Call it.
16152         * symsinit.h: Declare it.
16153
16154 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16155
16156         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16157         Lisp_Object.
16158         (pdump_backtrace): Ditto.
16159         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16160         (pdump_get_entry): Abort if trying to register a null pointer.
16161         (pdump_dump_data): Cleanup types when relocating.
16162         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16163         (pdump_dump_rtables): Remove bad casts.
16164         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16165         Lisp_Object instead of a EMACS_INT for the hashtable
16166         reorganization.
16167
16168 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16169
16170         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16171
16172         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16173
16174         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16175
16176         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16177
16178 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16179
16180         * faces.h (FACE_STRIKETHRU_P): Added.
16181
16182         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16183         of font variants.
16184
16185         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16186         (mswindows_set_dc_font): New function, aware of font variants,
16187         separated from mswindows_update_dc.
16188
16189         * objects-msw.h (struct mswindows_font_instance_data): Added
16190         definition.
16191
16192         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16193         cached fonts and the data structure.
16194         (mswindows_initialize_font_instance): Added creation of font data
16195         structure.
16196         (mswindows_print_font_instance): Print at least something.
16197         (mswindows_create_font_variant): Implemented.
16198         (mswindows_get_hfont): Implemented.
16199
16200 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16201
16202         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16203         prototyping problem with msvc.
16204
16205         * emacs.c (main_1): added syms_of_gui_mswindows() call
16206
16207         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16208         syms_of_gui_mswindows() function
16209
16210         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16211
16212 2000-01-18  Martin Buchholz <martin@xemacs.org>
16213
16214         * XEmacs 21.2.27 is released.
16215
16216 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16217
16218         * glyphs-eimage.c (struct tiff_error_struct):
16219         (tiff_error_func):
16220         (tiff_warning_func):
16221         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16222
16223         * unexmips.c:
16224         * unexhp9k3.c:
16225         * unexfreebsd.c:
16226         * unexec.c: Remove vestigial Lucid C code.
16227         * unexalpha.c:
16228         * unexaix.c:
16229         * termcap.c:
16230         * libsst.c: Ansify.
16231         Remove declarations of errno and strerror().
16232
16233         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16234
16235         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16236
16237 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16238
16239         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16240         Optimize.
16241
16242 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16243
16244         * md5.c:
16245         * file-coding.c:
16246         * file-coding.h:
16247         Change enum eol_type to eol_type_t.
16248
16249 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16250
16251         * gui.c (get_gui_callback): Check cons before accessing car.
16252
16253 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16254
16255         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16256         (XSETSPECIFIER_TYPE): Ditto.
16257
16258 2000-01-17  Didier Verna  <didier@xemacs.org>
16259
16260         * redisplay.c (generate_fstring_runes): compute string size in
16261         characters, not bytes.
16262
16263 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16264
16265         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16266
16267 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16268
16269         * print.c (print_error_message): Call print_prepare().
16270
16271 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16272
16273         * .dbxrc: Renamed from dbxrc.
16274
16275         * events.c (event_to_character):
16276         Use `assert (foo)' instead of `if (!foo) abort()'
16277
16278         * .gdbinit (xtype): Add documentation.
16279         * .gdbinit (check-temacs): New function.
16280         * .gdbinit (check-xemacs): New function.
16281         * dbxrc (check-xemacs): New function.
16282         * dbxrc (check-xemacs): New function.
16283
16284 2000-01-14  Andy Piper  <andy@xemacs.org>
16285
16286         * glyphs-widget.c (widget_query_geometry): Make sure that we
16287         calculate default dimensions correctly.
16288
16289 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16290
16291         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16292
16293         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16294         pdump_wire'd variable.
16295
16296         * emacs.c: (main_1): Conditionalized calls to
16297         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16298
16299 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16300
16301         * window.c (Fset_window_configuration):
16302         * sysdep.c (_start):
16303         * input-method-motif.c (res):
16304         * event-Xt.c (Xt_process_to_emacs_event):
16305         Simple compiler warning fixes.
16306
16307         * bytecode.c (funcall_compiled_function): Use the original
16308         function symbol on the backtrace list in preference to the
16309         compiled_function object in error messages.
16310
16311 2000-01-13  Andy Piper  <andy@xemacs.org>
16312
16313         * glyphs-x.c (update_widget_face): Make sure we update the widget
16314         background as well as foreground.
16315
16316 2000-01-13  Andy Piper  <andy@xemacs.org>
16317
16318         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16319         fields to subwindow.
16320         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16321         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16322         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16323         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16324
16325         * glyphs-widget.c (check_valid_tab_orientation): new function.
16326         (initialize_widget_image_instance): zero orientation and
16327         justification.
16328         (widget_instantiate): pick up orientation.
16329         (tab_control_query_geometry): return appropriate values for
16330         vertical tabs.
16331
16332         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16333         appropriate creation flags for left, right and bottom tabs.
16334
16335         * s/cygwin32.h: add tab definitions.
16336
16337 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16338
16339         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16340         frame upon hiding a subwindow.
16341         (mswindows_button_instantiate): Changed the push button style to
16342         BS_PUSHBUTTON.
16343         (mswindows_button_instantiate): Removed button BS_NOTIFY
16344         style.
16345         (mswindows_button_instantiate): Removed redundant check for
16346         a disabled gui item.
16347         (mswindows_button_instantiate): Made use of WS_TABSTOP
16348         consistent: "operable" controls (edit, button, tree, scroll) have
16349         this style, "display-only" ones (static, progress gauge) do
16350         not. This style is currently ignored by XEmacs though. Also,
16351         removed the WS_EX_CONTROLPARENT style - it is not for children,
16352         it is for their parents!
16353         (mswindows_edit_field_instantiate): Ditto.
16354         (mswindows_progress_gauge_instantiate): Ditto.
16355         (mswindows_tree_view_instantiate): Ditto.
16356         (mswindows_tab_control_instantiate): Ditto.
16357         (mswindows_scrollbar_instantiate): Ditto.
16358         (mswindows_combo_box_instantiate): Ditto.
16359         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16360         style to the "clip" window.
16361         (mswindows_button_instantiate): Removed compilation warning by
16362         equally typing terms of the ?: operator.
16363
16364 2000-01-12  Didier Verna  <didier@xemacs.org>
16365
16366         * redisplay.c (generate_fstring_runes): new parameter holding the
16367         last modeline-format extent.
16368         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16369         extent, fill the glyph block with it.
16370         (generate_fstring_runes): handle these parameters.
16371         (generate_formatted_string_db): ditto.
16372
16373         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16374         glyphs'extents in the modeline.
16375
16376 1999-01-11  Mike Woolley  <mike@bulsara.com>
16377
16378         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16379         256Mb, as a workaround for the non-starting problem many people
16380         have experienced.
16381
16382 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16383
16384         * console-tty.c (Fset_console_tty_output_coding_system):
16385         Force redrawing tty frame.
16386
16387 2000-01-10  Didier Verna  <didier@xemacs.org>
16388
16389         * redisplay.c (generate_fstring_runes): fix size computation bug.
16390
16391 2000-01-09  William M. Perry <wmperry@aventail.com>
16392
16393         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16394
16395 2000-01-09  Andy Piper  <andy@xemacs.org>
16396
16397         * glyphs-msw.c: index -> i to avoid shadows.
16398         (xbm_create_bitmap_from_data): make static.
16399         (check_valid_string_or_int): deleted.
16400         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16401
16402         * glyphs-x.c (x_update_subwindow): remove unused args.
16403
16404         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16405         back pointer - this is done in allocate_image_instance.
16406         (query_string_font): return Qnil to make the compiler happy.
16407         (unmap_subwindow): set to ~0 to make the compiler happy.
16408         (glyph_query_geometry): comment out until used.
16409         (glyph_layout): ditto.
16410
16411 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16412
16413         * insdel.c (signal_after_change): Remove extraneous unbind_to().