update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Q_vulgar): Deleted.
4         (Q_vulgar_of): Deleted.
5         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
6         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
7         for `{<-|->}vulgar'.
8         (syms_of_chartab): Don't define `{<-|->}vulgar'.
9
10 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * chartab.c (Fput_char_attribute): Convert char-refs in value of
13         `{<-|->}wrong[^*]*' to characters and put reverse links.
14         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
15         for `{<-|->}wrong[^*]*'.
16
17 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * chartab.c (Q_vulgar): New variable.
20         (Q_vulgar_of): New variable.
21         (Fput_char_attribute): Convert char-refs in value of
22         `{->|<-}vulgar' to characters and put reverse links.
23         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
24         for `{->|<-}vulgar'.
25         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
26
27 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * text-coding.c (decode_add_er_char): Must to quote prefix string
30         as regexp.
31
32 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * mule-charset.c (put_char_ccs_code_point): Store characters of
35         =ucs whose code_points >= 0xF0000.
36
37 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
40         CHISE.
41         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
42         CHISE.
43         (complex_vars_of_mule_charset): Add new coded-charset
44         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
45         builtin characters over 0xEFFFF.
46
47         * chartab.c (syms_of_chartab): Don't define symbol
48         `system-char-id' in every case.
49
50         * char-ucs.h (Qsystem_char_id): New extern variable.
51         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
52
53 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * text-coding.c (char_encode_utf8): Try to use entity-references
56         for U-000F0000 ...  U-0010FFFF.
57
58 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * text-coding.c (ER_BUF_SIZE): New macro.
61         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
62         `er_buf'.
63         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
64         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
65
66 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * chartab.c (find_char_feature_in_family): New function.
69         (Fchar_feature): Use `find_char_feature_in_family' with
70         `->identical', `<-subsumptive' and `<-denotational'.
71
72 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
73
74         * text-coding.c (char_encode_as_entity_reference): Allow prefix
75         within 8 characters; fix infinite loop.
76
77 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * chartab.c (Q_same): New variable.
80         (Q_same_of): New variable.
81         (Fput_char_attribute): Convert char-refs in value of `{->|<-}same'
82         to characters and put reverse links.
83         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
84         for `{->|<-}same'.
85         (syms_of_chartab): Add new symbols `{->|<-}same'.
86
87 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * chartab.c (Q_component): New variable.
90         (Q_component_of): Likewise.
91         (Fput_char_attribute): Convert char-refs in value of
92         `{->|<-}ideographic-component-forms' to characters and put reverse
93         links.
94         (syms_of_chartab): Add new symbols
95         `{->|<-}ideographic-component-forms'.
96
97 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
98
99         * chartab.c (Q_identical): New variable.
100         (Q_identical_from): New variable.
101         (Fchar_feature): Regard `->identical' as a feature to find
102         ancestors.
103         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
104         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
105         for `{->|<-}identical'.
106         (syms_of_chartab): Add new symbols `{->|<-}identical'.
107
108 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * char-ucs.h (encode_char_2): New inline function.
111         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
112
113 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * chartab.c (Fput_char_attribute): Convert char-specs to
116         characters in value of `ideographic-structure'.
117         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
118         for `{<-|->}simplified(@...)'.
119         (Fdefine_char): bTry to use predefined character's id.
120
121 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
122
123         * fns.c (simplify_char_spec): Try to convert builtin chars to
124         defined chars.
125
126 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * chartab.c (Fput_char_attribute): Convert char-refs in value of
129         `<-simplified[^*]*' to characters and put reverse links.
130
131 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * chartab.c (Q_subsumptive): Renamed from Q_unified.
134         (Q_subsumptive_from): Renamed from Q_unified_from.
135         (Fchar_feature): Use `Q_subsumptive_from' instead of
136         `Q_unified_from'.
137         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
138         `Q_unified'.
139         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
140         `<-unified' to `<-subsumptive'.
141
142 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
143
144         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
145         inheritance itself; fix typo; stop recursive search if cyclic
146         inheritance is found.
147
148 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (Q_denotational): New variable.
151         (Q_denotational_from): New variable.
152         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
153         (put_char_attribute): New function.
154         (Fput_char_attribute): Use `put_char_attribute'; regard
155         `->denotational' and `<-denotational' as same as `->unified' and
156         `<-unified'.
157         (syms_of_chartab): Add new symbols `->denotational' and
158         `<-denotational'.
159
160 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
163         `Fget_char_attribute'.
164         (Fchar_variants): Likewise.
165         (get_char_table): Likewise.
166         (Fchar_feature): New function.
167         (put_char_composition): Use `Fchar_feature' instead of
168         `Fget_char_attribute'.
169         (Fput_char_attribute): Likewise; don't put the target character
170         into its `->unified' value.
171         (syms_of_chartab): Add new builtin function `char-feature'.
172
173 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
176         `Fget_char_attribute'.
177         (char_encode_utf8): Likewise.
178
179         * chartab.h: Add an EXFUN for `Fchar_feature'.
180
181 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (Vnext_defined_char_id): New variable.
184         (Fput_char_attribute): Accept characters in `->unified'.
185         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
186         new characters which are not related with builtin char-id ranges.
187         (vars_of_chartab): Add new variable `next-defined-char-id'.
188
189 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * chartab.c (Q_unified): New variable.
192         (Q_unified_from): New variable.
193         (Fput_char_attribute): Add code for `->unified'.
194         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
195         XEmacs CHISE.
196
197 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * mule-charset.c (decode_ccs_conversion): New function.
200         (decode_defined_char): Use `decode_ccs_conversion'.
201         (decode_builtin_char): Likewise.
202
203 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * char-ucs.h: Change some charset-ids of private coded-charsets.
206
207 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
210         (char_encode_as_entity_reference): Likewise.
211         (decode_coding_big5): Modify for `decode_defined_char' and
212         `DECODE_CHAR'.
213         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
214         avoid compiler warning.
215         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
216
217         * mule-charset.c (decode_defined_char): Add new argument
218         `without_inheritance'.
219         (Fdecode_char): Add new optional argument `without_inheritance'.
220         (Fdecode_builtin_char): Modify for `Fdecode_char'.
221
222         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
223         (simplify_char_spec): Likewise.
224
225         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
226         setting.
227
228         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
229         (map_char_table): Likewise.
230         (Fdefine_char): Use `Fdecode_char' without inheritance.
231         (Ffind_char): Modify for `Fdecode_char'.
232
233         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
234
235         * char-ucs.h (decode_defined_char): Add new argument
236         `without_inheritance'.
237         (DECODE_CHAR): Likewise.
238         (MAKE_CHAR): Modify for `DECODE_CHAR'.
239
240 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * chartab.c (Vchise_system_db_directory): New variable.
243         (vars_of_chartab): Add new variable `chise-system-db-directory'.
244
245 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c: EXFUN `Fmount_char_attribute_table'.
248         (print_chartab_range): Don't define when `UTF2000' is defined.
249         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
250         `CHISE_DS_open'.
251
252 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
255         and optional argument `rehash' is specified, call
256         `open_chise_data_source_maybe' before
257         `chise_ds_foreach_char_feature_name' is called.
258
259 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * chartab.c (char_attribute_list_reset_map_func): New function
262         when HAVE_LIBCHISE is defined.
263         (Fchar_attribute_list): Add new optional argument `rehash' when
264         HAVE_LIBCHISE is defined.
265         (open_chise_data_source_maybe): Use "chise-db" instead of
266         "char-db".
267         (char_attribute_system_db_file): Likewise.
268         (Fload_char_attribute_table): Use
269         `chise_feature_foreach_char_with_value' instead of
270         `chise_char_feature_value_iterate'.
271
272 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * chartab.c (Vchise_db_directory): New variable.
275         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
276
277 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
280         instead of HAVE_CHISE to specify using with libchise.
281
282         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
283
284         * chartab.h: Don't use HAVE_CHISE_CLIENT.
285
286         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
287         defined or HAVE_LIBCHISE_LIBCHISE is defined.
288         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
289         is defined.
290         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
291         HAVE_CHISE to specify using with libchise.
292         (syms_of_chartab): Don't define symbol `system-char-id' when
293         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
294
295 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
296
297         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
298         specify CHISE DB support.
299         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
300         of `char_attribute_system_db_file' to check feature DB file.
301
302         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
303         HAVE_CHISE_CLIENT to specify CHISE DB support.
304
305         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
306         specify CHISE DB support.
307         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
308         not defined.
309         (Freset_char_attribute_table): Use `chise_feature_setup_db'
310         instead of `char_attribute_system_db_file' to check feature DB
311         file.
312
313 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
316         `HAVE_CHISE_CLIENT'.
317
318 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
321         (Fsave_charset_mapping_table): Don't use
322         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
323
324         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
325         (HAVE_LIBCHISE): New macro.
326
327         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
328
329         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
330         (Fsave_char_attribute_table): Don't use
331         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
332
333 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
336         defined.
337         (save_uint16_byte_table): Likewise.
338         (save_byte_table): Likewise.
339         (char_table_get_db): Use `chise_ds_load_char_feature_value'
340         instead of `chise_char_load_feature_value'.
341         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
342
343 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * chartab.h (struct Lisp_Char_Table): Delete member
346         `feature_table' if CHISE is defined.
347
348         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
349         (Fcopy_char_table): Likewise.
350         (char_table_open_db_maybe): Likewise.
351         (char_table_close_db_maybe): Likewise.
352         (char_table_get_db): Likewise.
353         (Fmount_char_attribute_table): Likewise.
354         (Fload_char_attribute_table): Likewise.
355
356 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * mule-charset.c (load_char_decoding_entry_maybe): Use
359         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
360         `chise_ccs_decode'.
361
362 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
363
364         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
365         instead of `chise_open_data_source'.
366         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
367         `chise_ds_close'.
368
369 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
372         instead of `chise_ds_open_feature_table'.
373         (char_table_close_db_maybe): Don't use `chise_ft_close'.
374
375 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
376
377         * mule-charset.c (Fsave_charset_mapping_table): Use
378         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
379         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
380         `chise_ccs_sync' instead of `chise_ccst_close'.
381         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
382
383         * chartab.c (open_chise_data_source_maybe): Modify for
384         `chise_open_data_source'.
385         (char_table_open_db_maybe): Modify for
386         `chise_ds_open_feature_table'.
387
388 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
389
390         * mule-charset.c (load_char_decoding_entry_maybe): Use
391         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
392         `chise_ccst_close'.
393
394 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
395
396         * mule-charset.c (Fsave_charset_mapping_table): Use
397         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
398         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
399         `chise_dt_put_char' and `chise_dt_close'.
400         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
401         `chise_ccs_decode' and `chise_ccst_close' instead of
402         `chise_ds_open_decoding_table', `chise_dt_get_char' and
403         `chise_dt_close'.
404
405         * chartab.c (char_table_get_db): Use
406         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
407         (load_char_attribute_table_map_func): Modify for
408         `chise_char_feature_value_iterate'.
409         (Fload_char_attribute_table): Use
410         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
411
412 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
413
414         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
415
416 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
417
418         * chartab.c (put_char_table): Modify for inherited coded-charsets
419         in XEmacs CHISE.
420
421 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
422
423         * chartab.c (Fput_char_table_map_function): Fixed.
424         (word_boundary_p): Don't check charset in XEmacs CHISE.
425
426 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
427
428         * mule-charset.c (Fsave_charset_mapping_table): Use
429         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
430         instead of `chise_open_decoding_table'; refer
431         `default_chise_data_source'; use `chise_dt_close' instead of
432         `chise_close_decoding_table'.
433         (load_char_decoding_entry_maybe): Likewise.
434
435         * chartab.c (default_chise_data_source): New variable when `CHISE'
436         is defined.
437         (Fcopy_char_table): `ct->ds' is deleted.
438         (open_chise_data_source_maybe): New function.
439         (Fclose_char_data_source): New function.
440         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
441         use `chise_ds_open_feature_table' instead of
442         `chise_open_feature_table'.
443         (char_table_close_db_maybe): Use `chise_ft_close' instead of
444         `chise_close_feature_table'; `cit->ds' is deleted.
445         (syms_of_chartab): Add new builtin function
446         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
447
448         * chartab.h (default_chise_data_source): New extern variable.
449         (open_chise_data_source_maybe): New prototype.
450         (struct Lisp_Char_Table): Delete `ds'.
451
452 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
455         `CHISE' is defined.
456
457 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
458
459         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
460         not defined; add code for non-libchise setting.
461         (char_table_close_db_maybe): Likewise.
462         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
463         defined.
464         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
465         even if `CHISE' is not defined.
466         (Freset_char_attribute_table): Likewise.
467         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
468         `char_table_close_db_maybe' even if `CHISE' is not defined; use
469         `char_table_get_db'.
470         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
471         `char_table_close_db_maybe' even if `CHISE' is not defined.
472
473 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
474
475         * chartab.c (char_table_open_db_maybe): New function.
476         (char_table_close_db_maybe): New function.
477         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
478         (Freset_char_attribute_table): Likewise.
479         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
480         `char_table_close_db_maybe'.
481         (Fload_char_attribute_table): Likewise.
482
483 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
484
485         * chartab.c: Don't include <chise.h> because it is included in
486         chartab.h.
487         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
488         defined.
489         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
490         `CHISE' is defined.
491         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
492         `CHISE' is defined.
493         (Fclose_char_attribute_table): Close `ct->feature_table' and
494         `ct->ds' when `CHISE' is defined.
495         (Freset_char_attribute_table): Likewise.
496         (load_char_attribute_maybe): Use `cit->ds' and
497         `cit->feature_table' when `CHISE' is defined.
498         (Fload_char_attribute_table): Likewise.
499
500         * chartab.h: Include <chise.h> when `CHISE' is defined.
501         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
502         when `CHISE' is defined.
503
504 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
505
506         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
507         is defined.
508         (char_table_description): Likewise.
509         (Fmake_char_table): Likewise.
510         (Fcopy_char_table): Likewise.
511         (Fmount_char_attribute_table): Likewise.
512         (Fclose_char_attribute_table): Likewise.
513         (Freset_char_attribute_table): Likewise.
514         (load_char_attribute_maybe): Likewise.
515         (Fload_char_attribute_table): Likewise.
516
517         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
518         defined.
519
520 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
521
522         * chartab.c (load_char_attribute_table_map_func): New function
523         when CHISE is defined.
524         (Qload_char_attribute_table_map_function): Don't define when CHISE
525         is defined.
526         (Fload_char_attribute_table_map_function): Likewise.
527         (Fload_char_attribute_table): Use libchise when `CHISE' is
528         defined.
529         (syms_of_chartab): Don't define
530         `load-char-attribute-table-map-function' when CHISE is defined.
531
532 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
533
534         * chartab.c: Include <chise.h> when `CHISE' is defined.
535         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
536
537 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
538
539         * mule-charset.c (charset_code_point): Fix problem when searching
540         in mother CCS fails with `defined_only' mode.
541
542 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
545         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
546         (put_char_composition): Likewise.
547         (Fput_char_attribute): Likewise.
548         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
549
550 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
551
552         * chartab.c (Q_ucs): Deleted.
553         (Fput_char_attribute): Don't refer `->ucs'.
554         (Fdefine_char): Likewise.
555         (Ffind_char): Likewise.
556         (syms_of_chartab): Delete `->ucs'.
557
558 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * mule-charset.c (Qmap_cns11643_2): Renamed from
561         `Qchinese_cns11643_2'.
562         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
563         `chinese-cns11643-2'.
564         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
565         `=cns11643-2'.
566
567 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
568
569         * mule-charset.c (Qmap_cns11643_1): Renamed from
570         `Qchinese_cns11643_1'.
571         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
572         `chinese-cns11643-1'.
573         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
574         `=cns11643-1'.
575
576 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
577
578         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
579         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
580         `chinese-gb12345'.
581         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
582         `=gb12345'.
583
584 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
585
586         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
587         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
588         `chinese-gb2312'.
589         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
590         `=gb2312'.
591
592 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
593
594         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
595         (syms_of_mule_charset): Add new symbol `=big5' instead of
596         `chinese-big5'.
597         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
598
599 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
600
601         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
602         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
603         `korean-ksc5601'.
604         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
605         `=ks-x1001'.
606
607 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * mule-charset.c (Qmap_jis_x0212): Renamed from
610         `Qjapanese_jisx0212'.
611         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
612         `japanese-jisx0212'.
613         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
614         `=jis-x0212'.
615
616 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
617
618         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
619         `Qjapanese_jisx0208'.
620         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
621         of `japanese-jisx0208'.
622         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
623         `=jis-x0208-1983'.
624
625 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
628         `Qjapanese_jisx0208_1978'.
629         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
630         of `japanese-jisx0208-1978'.
631         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
632         `=jis-x0208-1978'.
633
634 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
635
636         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
637         only for XEmacs CHISE.
638
639 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
640
641         * char-ucs.h: Compact non-ISO-IR charset-ids.
642         (LEADING_BYTE_UCS): Changed to -177.
643         (LEADING_BYTE_CONTROL_1): Changed to -77.
644         (LEADING_BYTE_UCS_BMP): Changed to -176.
645         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
646
647 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * mule-charset.c (Qiso_ir): New variable.
650         (Fmake_charset): Recognise new property `iso-ir'.
651         (syms_of_mule_charset): Add new symbol `iso-ir'.
652
653 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
654
655         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
656         n to -n; charset-id of non ISO-IR sets are changed to positive
657         numbers.
658
659 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
660
661         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
662         for &MCS-XXXXXXXX; values.
663
664 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
665
666         * mule.c (Vxemacs_chise_version): Renamed from
667         `Vutf_2000_version'.
668         (vars_of_mule): Add new variable `xemacs-chise-version'; define
669         `utf-2000-version' as an alias for `xemacs-chise-version'.
670
671 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
672
673         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
674         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
675         defined.
676
677         * config.h.in (CHISE): New macro.
678
679 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
680
681         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
682         of `ucs'.
683         (Qmap_ucs): New variable.
684         (syms_of_mule_charset): Add new symbol `=ucs'.
685         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
686
687         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
688         (simplify_char_spec): Likewise.
689
690         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
691
692         * char-ucs.h (Qmap_ucs): New extern variable.
693
694 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
697         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
698         don't define it when UTF2000 is not defined.
699         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
700         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
701         when UTF2000 is not defined.
702         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
703         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
704
705 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
708
709         * mule-charset.c (Vcharset_ucs_gb): Deleted.
710         (Qucs_gb): Deleted.
711         (syms_of_mule_charset): Delete `ucs-gb'.
712         (complex_vars_of_mule_charset): Likewise.
713
714 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
715
716         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
717
718         * mule-charset.c (Vcharset_ucs_cns): Deleted.
719         (Qucs_cns): Deleted.
720         (syms_of_mule_charset): Delete `ucs-cns'.
721         (complex_vars_of_mule_charset): Likewise.
722
723 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
726
727         * mule-charset.c (Vcharset_ucs_jis): Deleted.
728         (Qucs_jis): Deleted.
729         (syms_of_mule_charset): Delete `ucs-jis'.
730         (complex_vars_of_mule_charset): Likewise.
731
732 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
735
736         * mule-charset.c (Vcharset_ucs_ks): Deleted.
737         (Qucs_ks): Deleted.
738         (syms_of_mule_charset): Delete `ucs-ks'.
739         (complex_vars_of_mule_charset): Likewise.
740
741 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
742
743         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
744         (Qideograph_daikanwa_2): Deleted.
745         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
746         (complex_vars_of_mule_charset): Likewise.
747
748         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
749         (LEADING_BYTE_DAIKANWA_1): Deleted.
750         (LEADING_BYTE_DAIKANWA_2): Deleted.
751         (MIN_CHAR_DAIKANWA): Deleted.
752         (MAX_CHAR_DAIKANWA): Deleted.
753
754 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
757         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
758         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
759
760         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
761         (Vcharset_ideograph_daikanwa): Deleted.
762         (Qideograph_hanziku_{1..12}): Deleted.
763         (Qideograph_daikanwa): Deleted.
764         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
765         Vcharset_ideograph_daikanwa.
766         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
767         `ideograph-hanziku-{1..12}'.
768         (complex_vars_of_mule_charset): Likewise.
769
770 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
771
772         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
773
774         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
775         (Qideograph_gt_pj_{1..11}): Deleted.
776         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
777         (complex_vars_of_mule_charset): Likewise.
778
779 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
780
781         * mule-charset.c (Vcharset_ucs_big5): Deleted.
782         (Vcharset_ideograph_gt): Deleted.
783         (Qucs_big5): Deleted.
784         (Qideograph_gt): Deleted.
785         (syms_of_mule_charset): Delete symbol `ucs-big5' and
786         `ideograph-gt'.
787         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
788         and `ideograph-gt'.
789
790         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
791         (LEADING_BYTE_GT): Deleted.
792         (MIN_CHAR_GT): Deleted.
793         (MAX_CHAR_GT): Deleted.
794
795 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
796
797         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
798
799 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
802         (save_uint16_byte_table): Likewise.
803         (save_byte_table): Likewise; convert values by it.
804         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
805         for `ideographic-structure'.
806         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
807         as the filter for `ideographic-structure'.
808
809 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
810
811         * chartab.c (put_char_composition): New function.
812         (Fput_char_attribute): Use `put_char_composition'; use
813         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
814
815         * fns.c (simplify_char_spec): New function.
816         (char_ref_simplify_spec): New function.
817         (Fchar_refs_simplify_char_specs): New function.
818         (syms_of_fns): Add new builtin function
819         `char-refs-simplify-char-specs'.
820
821 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
822
823         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
824         (Qideograph_cbeta): Deleted.
825         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
826         (complex_vars_of_mule_charset): Likewise.
827
828         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
829         (MIN_CHAR_CBETA): Comment out.
830         (MAX_CHAR_CBETA): Likewise.
831
832 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
835         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
836         CHISE client feature.
837
838 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
839
840         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
841
842 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
843
844         * mule-charset.c (charset_lookup_description_1): Use
845         `NUM_LEADING_BYTES' in UTF-2000.
846
847 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
848
849         * char-ucs.h (GC_CHARSETP): Deleted.
850
851 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * char-ucs.h (MAX_CHAR_GT): Updated.
854
855 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
856
857         * text-coding.c: Sync with XEmacs 21.4.10.
858
859 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * mule-charset.c (Vcharset_china3_jef): Deleted.
862         (Qchina3_jef): Deleted.
863         (syms_of_mule_charset): Don't define `china3-jef'.
864         (complex_vars_of_mule_charset): Likewise.
865
866         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
867         (MIN_CHAR_CHINA3_JEF): Comment out.
868         (MAX_CHAR_CHINA3_JEF): Comment out.
869
870 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * mule-charset.c (Vcharset_ucs_gb): New variable.
873         (Qucs_gb): New variable.
874         (syms_of_mule_charset): Add new symbol `ucs-gb'.
875         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
876
877         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
878
879 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * mule-charset.c (charset_code_point): if a coded-charset has a
882         final-byte, don't inherit the builtin range of the mother CCS.
883
884 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * mule-charset.c (charset_code_point): Fix problem about
887         inheritance.
888
889 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
890
891         * mule-charset.c (decode_builtin_char): Reorganized.
892
893 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
894
895         * text-coding.c (char_encode_as_entity_reference): Modify for
896         `charset_code_point'.
897         (char_encode_shift_jis): Likewise.
898         (char_encode_big5): Likewise.
899         (char_encode_utf8): Likewise.
900         (char_encode_iso2022): Likewise.
901
902         * mule-charset.c (charset_code_point): Add new argument
903         `defined_only'.
904         (Fencode_char): Add new optional argument `defined_only'.
905
906         * chartab.c (put_char_table): Modify for `charset_code_point'.
907
908         * char-ucs.h (charset_code_point): Add new argument
909         `defined_only'.
910         (encode_char_1): Modify for `charset_code_point'.
911
912 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
913
914         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
915         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
916
917 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
920         (Qjis_x0208): Likewise.
921         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
922         XCHARSET_FINAL(charset).
923         (charset_code_point): Modify condition for final-byte based
924         builtin-chars.
925         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
926         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
927         in UTF-2000; specify `=jis-x0208' as the mother of
928         `japanese-jisx0208-1978', `japanese-jisx0208' and
929         `japanese-jisx0208-1990' in UTF-2000.
930
931 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
932
933         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
934
935 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
936
937         * text-coding.c (decode_coding_utf16): Support UTF-16.
938         (char_encode_utf16): Fixed.
939
940 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
941
942         * text-coding.c (Qutf16): New variable in MULE.
943         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
944         (Fcoding_system_type): Add `utf-16' in MULE.
945         (struct detection_state): Add a structure for utf16 in MULE.
946         (detect_coding_type): Setup st->utf16.mask in MULE.
947         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
948         MULE.
949         (reset_encoding_stream): Use `char_encode_utf16' and
950         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
951         (detect_coding_utf16): New function [incomplete].
952         (decode_coding_utf16): New function [support only UCS-2].
953         (char_encode_utf16): New function.
954         (char_finish_utf16): New function.
955         (syms_of_file_coding): Add new symbol `utf-16'; setup
956         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
957
958         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
959         UTF-2000.
960         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
961         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
962
963 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
964
965         * chartab.c (put_char_table): When a charset is specified as a
966         range in UTF-2000, don't support builtin characters.
967
968 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
969
970         * mule-charset.c (decode_defined_char): Don't refer external
971         database if Qunbound or Qnil are found.
972         (Fsave_charset_mapping_table): Don't define it if
973         HAVE_CHISE_CLIENT is not defined.
974         (Freset_charset_mapping_table): New function.
975         (load_char_decoding_entry_maybe): Store Qnil if a character is not
976         found in external database.
977         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
978         if HAVE_CHISE_CLIENT is not defined; add new builtin function
979         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
980
981 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
982
983         * text-coding.c (decode_coding_utf8): Check CCS is specified or
984         not.
985
986 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
987
988         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
989         Q_lowercase, Q_uppercase in UTF-2000.
990
991         * chartab.c (get_char_table): Add special code for the standard
992         case table to use character attribute `->downcase' and
993         `->uppercase' for case operations in UTF-2000.
994
995         * casetab.c (Qflippedcase): New variable in UTF-2000.
996         (Q_lowercase): Likewise.
997         (Q_uppercase): Likewise.
998         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
999         and `->uppercase' in UTF-2000.
1000         (complex_vars_of_casetab): Assign attribute name `downcase' to
1001         downcase and CANON table of Vstandard_case_table in UTF-2000;
1002         assign attribute name `flippedcase' to upcase and EQV table of
1003         Vstandard_case_table in UTF-2000.
1004
1005 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * text-coding.c (decode_add_er_char): Support isolated-chars.
1008         (char_encode_as_entity_reference): Likewise.
1009
1010 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * emacs.c (Vutf_2000_lisp_directory): New variable.
1013         (Vconfigure_utf_2000_lisp_directory): Likewise.
1014         (complex_vars_of_emacs): Add new variable
1015         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1016
1017 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1018
1019         * char-ucs.h (DECODE_CHAR): Delete special code for
1020         `chinese-big5-1' and `chinese-big5-2'.
1021
1022         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1023         (Qbig5_2): Likewise.
1024         (decode_defined_char): Support CONVERSION_BIG5_1 and
1025         CONVERSION_BIG5_2.
1026         (decode_builtin_char): Likewise.
1027         (charset_code_point): Likewise.
1028         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1029         'conversion in UTF-2000.
1030         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1031         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1032         `chinese-big5-2' as children of `chinese-big5'.
1033
1034         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1035         (CONVERSION_BIG5_2): New macro.
1036
1037 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1038
1039         * text-coding.c (char_encode_big5): Support entity-reference.
1040
1041 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1042
1043         * text-coding.c (char_encode_as_entity_reference): New function.
1044         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1045
1046 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1047
1048         * text-coding.c (decode_coding_big5): Support entity-reference
1049         decoding feature.
1050
1051 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1052
1053         * text-coding.c (allocate_coding_system): Initialize initial
1054         charsets for CODESYS_UTF8.
1055         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1056         charset-g2 for CODESYS_UTF8.
1057         (decode_coding_utf8): Use charset-g0.
1058         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1059         to force variants to map to UCS.
1060
1061 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1062
1063         * text-coding.c (Qutf_8_mcs): New variable.
1064         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1065         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1066         instead of `utf-8' in UTF-2000.
1067
1068 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1069
1070         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1071         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1072         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1073         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1074         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1075         CONVERSION_96x96x96x96 are introduced.
1076         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1077         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1078         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1079
1080         * char-ucs.h (CONVERSION_94): New macro.
1081         (CONVERSION_96): New macro.
1082         (CONVERSION_94x94): New macro.
1083         (CONVERSION_96x96): New macro.
1084         (CONVERSION_94x94x94): New macro.
1085         (CONVERSION_96x96x96): New macro.
1086         (CONVERSION_94x94x94x60): New macro.
1087         (CONVERSION_94x94x94x94): New macro.
1088         (CONVERSION_96x96x96x96): New macro.
1089
1090 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1091
1092         * chartab.c (Vcharacter_variant_table): Deleted.
1093         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1094         of `Vcharacter_variant_table'.
1095         (Fput_char_attribute): Likewise.
1096         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1097         (complex_vars_of_chartab): Likewise.
1098
1099 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1100
1101         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1102
1103         * fns.c (Qideographic_structure): New variable.
1104         (Qkeyword_char): New variable.
1105         (ids_format_unit): New function.
1106         (Fideographic_structure_to_ids): New function.
1107         (syms_of_fns): Add new symbols `ideographic-structure' and
1108         `:char'; add new builtin function `ideographic-structure-to-ids'.
1109
1110         * data.c (Fchar_ref_p): New function.
1111         (syms_of_data): Add new builtin function `char-ref-p'.
1112
1113         * chartab.h: Add an EXFUN for `Ffind_char'.
1114
1115 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116
1117         * text-coding.c (Vcharacter_composition_table): Deleted.
1118         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1119         in every UTF-2000.
1120
1121         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1122         UTF-2000.
1123         (Vcharacter_composition_table): Deleted.
1124         (Fget_composite_char): Use the implementation for external-DB
1125         support in every UTF-2000.
1126         (Fput_char_attribute): Likewise.
1127         (char_attribute_system_db_file): Don't define if external-DB
1128         feature is not available.
1129         (Fsave_char_attribute_table): Likewise.
1130         (Fmount_char_attribute_table): Likewise.
1131         (Fclose_char_attribute_table): Likewise.
1132         (Freset_char_attribute_table): Likewise.
1133         (Fload_char_attribute_table): Likewise.
1134         (syms_of_chartab): Don't define `save-char-attribute-table',
1135         `mount-char-attribute-table', `reset-char-attribute-table',
1136         `close-char-attribute-table' and `load-char-attribute-table' if
1137         external-DB feature is not available.
1138         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1139
1140 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1141
1142         * text-coding.c (Qcomposition): Add extern if external-DB feature
1143         is supported.
1144         (Vcharacter_composition_table): Don't add extern if external-DB
1145         feature is supported.
1146         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1147         character composition rule if external-DB feature is supported.
1148
1149         * chartab.c (Vcharacter_composition_table): Don't define if
1150         external-DB feature is supported.
1151         (Qcomposition): New variable.
1152         (Fget_composite_char): New implementation for external-DB support.
1153         (Fput_char_attribute): Use `composition' property of each
1154         character instead of `Vcharacter_composition_table' to store
1155         character-composition rules if external-DB feature is supported.
1156         (syms_of_chartab): Add new symbol `composition'.
1157         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1158         external-DB feature is supported.
1159
1160 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * chartab.c (Vchar_db_stingy_mode): New variable.
1163         (load_char_attribute_maybe): Close database if
1164         Vchar_db_stingy_mode is not NIL.
1165         (Fload_char_attribute_table_map_function): Use
1166         `get_char_id_table_0' instead of `get_char_id_table'.
1167         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1168
1169         * chartab.h (get_char_id_table_0): New inline function.
1170         (get_char_id_table): Use `get_char_id_table_0'.
1171
1172 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1173
1174         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1175         and `COMPOSE_ADD_CHAR'.
1176         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1177
1178 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1181         instead of `DECODE_ADD_UCS_CHAR'.
1182         (COMPOSE_ADD_CHAR): Likewise.
1183
1184 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1185
1186         * text-coding.c (decode_flush_er_chars): New inline function.
1187         (decode_add_er_char): New function.
1188         (decode_coding_utf8): Use `decode_flush_er_chars' and
1189         `decode_add_er_char'.
1190
1191 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1192
1193         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1194         done before `decode_output_utf8_partial_char'.
1195
1196         * mule-charset.c (complex_vars_of_mule_charset): Specify
1197         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1198         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1199
1200 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201
1202         * mule-charset.c (decode_defined_char): New function; search
1203         mother.
1204         (decode_builtin_char): Don't search mother if
1205         XCHARSET_MAX_CODE(charset) == 0.
1206         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1207         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1208         (Fdecode_char): Use `decode_defined_char' instead of
1209         `DECODE_DEFINED_CHAR'.
1210         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1211         mother of `Vcharset_ucs_jis'.
1212
1213         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1214         instead of `DECODE_DEFINED_CHAR'.
1215
1216         * char-ucs.h (decode_defined_char): Renamed from
1217         `DECODE_DEFINED_CHAR'; changed to normal function.
1218         (DECODE_CHAR): Use `decode_defined_char' instead of
1219         `DECODE_DEFINED_CHAR'.
1220
1221         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1222
1223 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1226
1227         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1228         variable.
1229         (Quse_entity_reference): New variable.
1230         (Qd): New variable.
1231         (Qx): New variable.
1232         (QX): New variable.
1233         (coding_system_description): Add description for
1234         `ccs_priority_list'.
1235         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1236         (allocate_coding_system): Initialize `ccs_priority_list' in
1237         UTF-2000.
1238         (Fmake_coding_system): Add description about
1239         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1240         (codesys).
1241         (Fcoding_system_property): Accept `disable-composition' and
1242         `use-entity-reference' in UTF-2000.
1243         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1244         in UTF-2000.
1245         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1246         (decode_coding_utf8): Decode entity-reference if
1247         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1248         (char_encode_utf8): Encode non-Unicode characters as
1249         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1250         (str->codesys).
1251         (syms_of_file_coding): Add new symbols `use-entity-reference',
1252         `d', `x', `X'.
1253         (vars_of_file_coding): Add new variable
1254         `coded-charset-entity-reference-alist'.
1255         (complex_vars_of_file_coding): Declare `disable-composition' and
1256         `use-entity-reference' to be coding-system-properties in UTF-2000.
1257
1258         * file-coding.h (struct Lisp_Coding_System): Add new member
1259         `use_entity_reference' and `ccs_priority_list'.
1260         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1261         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1262         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1263
1264 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1265
1266         * chartab.c (save_uint8_byte_table): Don't clear the table.
1267         (save_uint16_byte_table): Likewise.
1268         (save_byte_table): Likewise.
1269         (Fmount_char_attribute_table): New function.
1270         (syms_of_chartab): Add new builtin function
1271         `mount-char-attribute-table'.
1272
1273 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274
1275         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1276         "w+" mode.
1277         (load_char_decoding_entry_maybe): Open database as read-only mode.
1278
1279         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1280         open database as "w+" mode.
1281         (load_char_attribute_maybe): Open database as read-only mode.
1282         (Fload_char_attribute_table): Likewise.
1283
1284 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285
1286         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1287         (char_table_description): Delete member `db_file'.
1288         (Fmake_char_table): Don't refer `ct->db_file'.
1289         (Fcopy_char_table): Likewise.
1290         (Fsave_char_attribute_table): Likewise.
1291         (Fclose_char_attribute_table): Likewise.
1292         (Freset_char_attribute_table): Likewise.
1293         (load_char_attribute_maybe): Likewise.
1294         (Fload_char_attribute_table): Likewise.
1295
1296         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1297
1298 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299
1300         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1301         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1302         `ct->db' is living.
1303         (load_char_attribute_maybe): Likewise.
1304         (Fload_char_attribute_table): Likewise.
1305
1306 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1307
1308         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1309         `ct->db_file' unconditionally.
1310
1311 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1314         UTF-2000.
1315         (char_table_description): Add description for `db_file' and `db'
1316         in UTF-2000.
1317         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1318         UTF-2000.
1319         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1320         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1321         (Fclose_char_attribute_table): New function.
1322         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1323         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1324         and `cit->db'.
1325         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1326         (syms_of_chartab): Add new builtin function
1327         `Fclose_char_attribute_table'.
1328
1329 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1330
1331         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1332         `db' in UTF-2000.
1333         (load_char_attribute_maybe): Change interface.
1334         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1335
1336 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1337
1338         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1339
1340 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1341
1342         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1343         instead of `DECODE_CHAR' for mother; don't use special code for
1344         chinese-big5 to use code space of chinese-big5-1 and
1345         chinese-big5-2.
1346         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1347         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1348
1349         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1350         (MAX_CHAR_BIG5_CDP): Revival.
1351
1352 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1355         the XLFD registry-encoding name of `chinese-big5'.
1356
1357 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1358
1359         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1360         (Qchinese_big5_cdp): Deleted.
1361         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1362         (complex_vars_of_mule_charset): Delete coded-charset
1363         `chinese-big5-cdp'.
1364
1365         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1366         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1367         `CHARSET_ID_OFFSET - n' for private CCS.
1368         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1369         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1370         of `MIN_LEADING_BYTE'.
1371         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1372         `(CHARSET_ID_OFFSET - 97)'.
1373         (MIN_CHAR_BIG5_CDP): Deleted.
1374         (MAX_CHAR_BIG5_CDP): Deleted.
1375
1376 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1377
1378         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1379
1380 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1381
1382         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1383         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1384         chartab.c].
1385
1386         * chartab.c (Vutf_2000_version): Moved to mule.c.
1387         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1388
1389 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1390
1391         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1392         when HAVE_CHISE_CLIENT is not defined.
1393
1394         * mule.c (vars_of_mule): Provide feature `chise' when
1395         HAVE_CHISE_CLIENT is defined.
1396
1397 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1398
1399         * config.h.in (UTF2000): Add comment.
1400         (HAVE_CHISE_CLIENT): New macro.
1401
1402 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1403
1404         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1405         CONSP.
1406         (Fput_char_attribute): Likewise.
1407         (char_attribute_system_db_file): Encode file-name of attribute.
1408         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1409         the initial value.
1410
1411 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1412
1413         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1414         (Fsave_charset_mapping_table): Use
1415         `char_attribute_system_db_file'.
1416         (load_char_decoding_entry_maybe): Likewise.
1417
1418         * chartab.h (Qsystem_char_id): New external variable.
1419         (char_attribute_system_db_file): New prototype.
1420
1421         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1422         (char_attribute_system_db_file): New function.
1423         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1424         (Freset_char_attribute_table): Likewise.
1425         (load_char_attribute_maybe): Likewise.
1426         (Fload_char_attribute_table): Likewise.
1427         (syms_of_chartab): Add new symbol `system-char-id'.
1428
1429 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1430
1431         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1432         `XCHARSET_GRAPHIC(ccs)'.
1433
1434 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1437
1438 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1439
1440         * chartab.c (Q_ucs_variants): New variable.
1441         (syms_of_chartab): Add new symbol `->ucs-variants'.
1442         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1443         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1444         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1445
1446         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1447
1448         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1449         `HAVE_DATABASE' is defined.
1450         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1451         `HAVE_DATABASE' is defined.
1452
1453 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1454
1455         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1456         attribute-table.
1457         (Freset_char_attribute_table): New function.
1458         (syms_of_chartab): Add new builtin function
1459         `reset-char-attribute-table'.
1460
1461 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1462
1463         * chartab.c (load_char_attribute_maybe): Don't make directories.
1464
1465 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1466
1467         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1468
1469         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1470         for decoding-table.
1471
1472 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1473
1474         * mule-charset.c (Fsave_charset_mapping_table): Use
1475         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1476
1477         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1478         instead of `XCHARSET_CHARS'.
1479
1480 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1481
1482         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1483         (XCHARSET_BYTE_SIZE): Likewise.
1484
1485         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1486         mule-charset.c].
1487         (XCHARSET_BYTE_SIZE): Likewise.
1488
1489 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1492         data-directory to store database.
1493         (Fsave_char_attribute_table): Likewise.
1494         (load_char_attribute_maybe): Likewise.
1495         (Fload_char_attribute_table): Likewise.
1496
1497 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1498
1499         * mule-charset.c (Fsave_charset_mapping_table): New function.
1500         (syms_of_mule_charset): Add new builtin function
1501         `save-charset-mapping-table'.
1502
1503 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1506         (get_ccs_octet_table): New inline function.
1507         (put_ccs_octet_table): Likewise.
1508         (decoding_table_put_char): Use `get_ccs_octet_table' and
1509         `put_ccs_octet_table'.
1510         (decoding_table_remove_char): Use `decoding_table_put_char'.
1511         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1512
1513         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1514         into encoding_table.
1515         (make_charset): Use Qunbound instead Qnil as initial value of
1516         decoding_table.
1517
1518 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1519
1520         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1521         element is Qunloaded.
1522         (map_over_uint16_byte_table): Likewise.
1523         (map_over_byte_table): Likewise.
1524         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1525         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1526         database support, load encoding-table of the specified
1527         coded-charset if it is not loaded yet.
1528         (save_uint8_byte_table): New function of UTF-2000 with external
1529         database support.
1530         (save_uint16_byte_table): Likewise.
1531         (save_byte_table): Likewise.
1532         (Fput_char_attribute): Don't store value into external database
1533         even if the external database feature is supported in UTF-2000;
1534         set `attribute' as name of char-table if the external database
1535         feature is supported.
1536         (Fsave_char_attribute_table): New function in UTF-2000.
1537         (syms_of_chartab): Add new builtin function
1538         `save-char-attribute-table' in UTF-2000.
1539
1540 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1541
1542         * chartab.c (char_attribute_table_to_put): New variable in
1543         UTF-2000.
1544         (Qput_char_table_map_function): Likewise.
1545         (value_to_put): Likewise.
1546         (Fput_char_table_map_function): New function in UTF-2000.
1547         (put_char_table): Use `Fmap_char_attribute' for
1548         CHARTAB_RANGE_CHARSET in UTF-2000.
1549         (Fput_char_attribute): Store symbol instead of string in
1550         `XCHAR_TABLE_NAME (table)'.
1551         (load_char_attribute_maybe): Likewise.
1552         (syms_of_chartab): Add new symbol/function
1553         `put-char-table-map-function'.
1554
1555 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1556
1557         * database.h: Add new EXFUN for `Fmap_database'.
1558
1559         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1560         (syms_of_database): Likewise.
1561
1562         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1563         UTF-2000.
1564         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1565         (XCHAR_TABLE_UNLOADED): Likewise.
1566
1567         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1568         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1569         HAVE_DATABASE is defined.
1570         (char_attribute_table_to_load): New variable of UTF-2000 with
1571         external database support.
1572         (Qload_char_attribute_table_map_function): Likewise.
1573         (Fload_char_attribute_table_map_function): New function of
1574         UTF-2000 with external database support.
1575         (Fload_char_attribute_table): New function of UTF-2000.
1576         (Fmap_char_attribute): Call Fload_char_attribute_table if
1577         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1578         (syms_of_chartab): Add new symbol and function
1579         `load-char-attribute-table-map-function' in UTF-2000 with external
1580         database support; add new function `load-char-attribute-table' in
1581         UTF-2000.
1582
1583 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584
1585         * chartab.h (load_char_attribute_maybe): New prototype for
1586         UTF-2000 with DATABASE support.
1587         (get_char_id_table): Use `load_char_attribute_maybe' if
1588         HAVE_DATABASE is defined.
1589
1590         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1591         with DATABASE support.
1592
1593 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1594
1595         * chartab.c (Fput_char_attribute): Use S-expression as key of
1596         external database.
1597
1598         * chartab.h (get_char_id_table): Use S-expression as key of
1599         external database.
1600
1601 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602
1603         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1604         if an element is not loaded, load the corresponding attributes
1605         from an external database.
1606         (map_over_uint16_byte_table): Likewise.
1607         (map_over_byte_table): Likewise.
1608         (map_char_table): Modify for `map_over_uint8_byte_table',
1609         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1610         element is not loaded, load the corresponding attributes from an
1611         external database.
1612         (Fput_char_attribute): Change initial values to Qunloaded.
1613
1614         * chartab.h (get_char_id_table): If a character attribute is not
1615         loaded and the attribute value is not found in an external
1616         database, store Qunbound as the attribute value.
1617
1618 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1619
1620         * chartab.c (BT_UINT8_unloaded): New macro.
1621         (UINT8_VALUE_P): Accept Qunloaded.
1622         (UINT8_ENCODE): Likewise.
1623         (UINT8_DECODE): Likewise.
1624         (BT_UINT16_unloaded): New macro.
1625         (UINT16_VALUE_P): Accept Qunloaded.
1626         (UINT16_ENCODE): Likewise.
1627         (UINT16_DECODE): Likewise.
1628         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1629         BT_UINT16_unloaded.
1630         (mark_char_table): Mark `ct->name' in UTF-2000.
1631         (char_table_description): Add `name' in UTF-2000.
1632         (Fmake_char_table): Initialize `ct->name'.
1633         (Fcopy_char_table): Copy `ct->name'.
1634         (Fput_char_attribute): Store value into an external database if
1635         HAVE_DATABASE is defined.
1636
1637         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1638         UTF-2000.
1639         (CHAR_TABLE_NAME): New macro in UTF-2000.
1640         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1641         (get_char_id_table): Try to read an external database if Qunloaded
1642         is stored in a table.
1643
1644         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1645         Qunloaded.
1646
1647 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1648
1649         * database.h: Add EXFUN definitions for Fopen_database,
1650         Fput_database, Fget_database and Fclose_database.
1651
1652         * data.c (Qunloaded): New variable in UTF-2000.
1653
1654         * lisp.h (Qunloaded): New variable in UTF-2000.
1655
1656 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1657
1658         * mule-charset.c (put_char_ccs_code_point): Modify for
1659         `decoding_table_remove_char' and `decoding_table_put_char'.
1660         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1661
1662         * char-ucs.h (decoding_table_remove_char): Change arguments to
1663         hide decoding_table vector.
1664         (decoding_table_put_char): Likewise.
1665
1666 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * mule-charset.c (decoding_table_remove_char): Moved to
1669         char-ucs.h.
1670         (decoding_table_put_char): Likewise.
1671
1672         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1673         from mule-charset.c].
1674         (decoding_table_remove_char): New inline function [moved from
1675         mule-charset.c].
1676         (decoding_table_put_char): Likewise.
1677
1678 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1679
1680         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1681         extension.
1682
1683 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1684
1685         * mule-charset.c (decode_builtin_char): Support mother charsets.
1686
1687 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1688
1689         * mule-charset.c (Q94x94x60): New variable.
1690         (charset_code_point): Support conversion `94x94x60'.
1691         (Fmake_charset): Likewise.
1692         (syms_of_mule_charset): Add new symbol `94x94x60'.
1693
1694         * char-ucs.h (CONVERSION_94x94x60): New macro.
1695
1696 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1697
1698         * mule-charset.c (charset_code_point): Unify code about
1699         `code-offset'.
1700
1701 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1702
1703         * mule-charset.c (charset_code_point): Merge code about builtin
1704         characters into code about mother charsets; don't use
1705         `range_charset_code_point'.
1706         (range_charset_code_point): Deleted.
1707
1708 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * mule-charset.c (Qcode_offset): New variable.
1711         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1712         `max-code'; accept new property `code-offset'.
1713         (syms_of_mule_charset): Add new symbol `code-offset'.
1714
1715 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716
1717         * mule-charset.c (range_charset_code_point): Fixed.
1718
1719 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1720
1721         * mule-charset.c (decode_builtin_char): Change semantics of
1722         code-offset of coded-charset.
1723         (charset_code_point): Likewise.
1724         (range_charset_code_point): Likewise.
1725         (complex_vars_of_mule_charset): Modify for the change.
1726
1727 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1728
1729         * mule-charset.c (Fencode_char): Reverse arguments.
1730
1731         * mule-charset.c (charset_code_point): Fixed.
1732
1733 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1734
1735         * mule-charset.c (Vcharset_mojikyo): Deleted.
1736         (Vcharset_mojikyo_2022_1): Deleted.
1737         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1738         (Qmin_code): New variable in UTF-2000.
1739         (Qmax_code): Likewise.
1740         (Qmother): Likewise.
1741         (Qconversion): Likewise.
1742         (Q94x60): Likewise.
1743         (Qmojikyo): Deleted.
1744         (Qmojikyo_2022_1): Deleted.
1745         (Qmojikyo_pj_{1..22}): Deleted.
1746         (mark_charset): Mark `cs->mother'.
1747         (charset_description): Add description for `mother'.
1748         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1749         new arguments `mother' and `conversion'; use
1750         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1751         (charset_code_point): Moved from char-ucs.h; support `mother'
1752         charset feature.
1753         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1754         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1755         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1756         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1757         allow 2 as the value of `graphic' in UTF-2000; add new properties
1758         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1759         require `final' in UTF-2000; modify for `make_charset'.
1760         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1761         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1762         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1763         (Fencode_char): New function.
1764         (syms_of_mule_charset): Add new builtin function `encode-char' in
1765         UTF-2000; add new symbols `min-code', `max-code', `mother',
1766         `conversion' and `94x60'; delete symbols `mojikyo',
1767         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1768         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1769         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1770         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1771
1772         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1773         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1774
1775         * char-ucs.h (Vcharset_mojikyo): Deleted.
1776         (Vcharset_mojikyo_2022_1): Deleted.
1777         (LEADING_BYTE_MOJIKYO): Deleted.
1778         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1779         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1780         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1781         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1782         add new member `mother'; add new member `conversion'.
1783         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1784         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1785         (CHARSET_MOTHER): New macro.
1786         (CHARSET_CONVERSION): New macro.
1787         (CONVERSION_IDENTICAL): New macro.
1788         (CONVERSION_94x60): New macro.
1789         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1790         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1791         (XCHARSET_MOTHER): New macro.
1792         (XCHARSET_CONVERSION): New macro.
1793         (MIN_CHAR_MOJIKYO): Deleted.
1794         (MAX_CHAR_MOJIKYO): Deleted.
1795         (DECODE_MOJIKYO_2022): Deleted.
1796         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1797         (charset_code_point): Changed to non-inline function.
1798         (encode_char_1): Use `charset_code_point'.
1799         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1800
1801 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * lread.c (read_compiled_function): Fix prototype.
1804         (read_vector): Likewise.
1805
1806 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * lrecord.h (struct lrecord_header): Delete `older'.
1809         (set_lheader_implementation): Delete code for `older'.
1810         (set_lheader_older_implementation): Deleted.
1811         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1812         (OLDER_RECORD_P): Deleted.
1813         (OLDER_RECORD_HEADER_P): Deleted.
1814         (alloc_older_lcrecord): Deleted.
1815         (alloc_older_lcrecord_type): Deleted.
1816
1817         * alloc.c (all_older_lcrecords): Deleted.
1818         (alloc_older_lcrecord): Deleted.
1819         (disksave_object_finalization_1): Delete code for older objects.
1820         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1821         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1822
1823 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1826         instead of `make_older_vector'.
1827         (put_char_ccs_code_point): Likewise.
1828         (mark_charset): Mark `cs->decoding_table'.
1829         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1830
1831         * lisp.h (make_older_vector): Deleted.
1832         (make_vector_newer): Deleted.
1833
1834         * config.h.in (HAVE_GGC): Deleted.
1835
1836         * alloc.c (make_older_vector): Deleted.
1837         (make_vector_newer_1): Deleted.
1838         (make_vector_newer): Deleted.
1839
1840 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1841
1842         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1843         (Qideograph_daikanwa_2): New variable.
1844         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1845         (complex_vars_of_mule_charset): Add new coded-charset
1846         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1847         `LEADING_BYTE_DAIKANWA'.
1848
1849         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1850         (LEADING_BYTE_DAIKANWA_1): New macro.
1851         (LEADING_BYTE_DAIKANWA_2): New macro.
1852         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1853
1854 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855
1856         * mule-charset.c (complex_vars_of_mule_charset): Change
1857         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1858         the second revised version.
1859
1860 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1861
1862         * mule-charset.c (Vcharset_ucs_smp): New variable.
1863         (Vcharset_ucs_sip): New variable.
1864         (Qucs_smp): New variable.
1865         (Qucs_sip): New variable.
1866         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1867         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1868         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1869         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1870         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1871         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1872
1873         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1874         (LEADING_BYTE_UCS_SIP): New macro.
1875         (MIN_CHAR_SMP): New macro.
1876         (MAX_CHAR_SMP): New macro.
1877         (MIN_CHAR_SIP): New macro.
1878         (MAX_CHAR_SIP): New macro.
1879
1880 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1881
1882         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1883         utf-2000.
1884
1885 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1886
1887         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1888         value; don't store value into `encoding_table' of `Lisp_Charset'.
1889         (mark_charset): `encoding_table' was deleted.
1890         (charset_description): Likewise.
1891         (make_charset): Likewise.
1892         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1893         `put_char_ccs_code_point'.
1894
1895         * chartab.h (Fput_char_attribute): New EXFUN.
1896
1897         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1898         is unified with normal symbol space.
1899         (Fget_char_attribute): Likewise.
1900         (Fput_char_attribute): Likewise; behavior of
1901         `put_char_ccs_code_point' is changed.
1902
1903         * char-ucs.h: Include "elhash.h".
1904         (Vchar_attribute_hash_table): New external variable.
1905         (struct Lisp_Charset): Delete `encoding_table'.
1906         (CHARSET_ENCODING_TABLE): New implementation; refer
1907         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1908         `Lisp_Charset'.
1909
1910 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1911
1912         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1913         (cs) == 0.
1914
1915 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1916
1917         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1918         `chinese-big5'.
1919
1920 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1921
1922         * chartab.c (uint8_byte_table_description): New constant.
1923         (uint8-byte-table): Use `uint8_byte_table_description'.
1924         (uint16_byte_table_description): New constant.
1925         (uint16-byte-table): Use `uint16_byte_table_description'.
1926
1927 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1928
1929         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1930         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1931
1932 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * mule-charset.c (Vcharset_ucs_ks): New variable.
1935         (Qucs_ks): New variable.
1936         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1937         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1938
1939         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1940
1941 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1942
1943         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1944         (Fdecode_char): Likewise.
1945
1946         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1947         chartab.h.
1948         (Fdefine_char): Modify for Fdecode_char.
1949         (Ffind_char): Likewise.
1950
1951         * mule-charset.c (Fdecode_char): Add new optional argument
1952         `defined-only'.
1953         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1954
1955 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1958         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1959         (allocate_coding_system): Initialize initial-charsets of
1960         CODESYS_BIG5 in XEmacs UTF-2000.
1961         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1962         CODESYS_BIG5 in XEmacs UTF-2000.
1963         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1964         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1965
1966         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1967         variables.
1968         (Qideograph_hanziku_{1 .. 12}): Likewise.
1969         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1970         .. 12}'.
1971         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1972         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1973         `ideograph-hanziku-{1 .. 12}'.
1974
1975         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1976         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1977         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1978         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1979         (DECODE_DEFINED_CHAR): New inline function.
1980         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1981
1982 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1983
1984         * mule-charset.c (Vcharset_china3_jef): Renamed from
1985         `Vcharset_japanese_jef_china3'.
1986         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1987         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1988         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1989         (syms_of_mule_charset): Rename `china3-jef' from
1990         `japanese-jef-china3'.
1991         (complex_vars_of_mule_charset): Likewise; rename
1992         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1993
1994         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1995         `LEADING_BYTE_JEF_CHINA3'.
1996         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1997         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1998
1999 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000
2001         * mule-charset.c (encode_builtin_char_1): Comment out special code
2002         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2003
2004         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2005         (MAX_CHAR_MOJIKYO_0): Comment out.
2006         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2007         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2008         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2009         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2010
2011 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012
2013         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2014         (Qideograph_cbeta): New variable.
2015         (encode_builtin_char_1): Comment out special code for
2016         coded-charset `mojikyo' and `japanese-jef-china3'.
2017         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2018         (complex_vars_of_mule_charset): Add new coded-charset
2019         `ideograph-cbeta'.
2020
2021         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2022         (MIN_CHAR_CBETA): New macro.
2023         (MAX_CHAR_CBETA): New macro.
2024
2025 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2026
2027         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2028         (LEADING_BYTE_JEF_CHINA3): New macro.
2029         (MIN_CHAR_JEF_CHINA3): New macro.
2030         (MAX_CHAR_JEF_CHINA3): Likewise.
2031         (DECODE_CHAR): Fixed.
2032
2033 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2034
2035         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2036         (Qjapanese_jef_china3): New variable.
2037         (encode_builtin_char_1): Support `japanese-jef-china3'.
2038         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2039         (complex_vars_of_mule_charset): Add new coded-charset
2040         `japanese-jef-china3'.
2041
2042 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2043
2044         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2045         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2046         94^4, 96^3, 96^4, 128^n and 256^n set.
2047         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2048         (map_char_table): Likewise.
2049
2050 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2051
2052         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2053         UTF-2000.
2054
2055 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056
2057         * chartab.h (get_char_id_table): New inline function.
2058
2059         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2060         function.
2061
2062 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2063
2064         * chartab.h (decode_char_table_range): New prototype in XEmacs
2065         UTF-2000.
2066         (put_char_id_table): New inline function in XEmacs UTF-2000.
2067
2068         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2069         function.
2070         (decode_char_table_range): Delete static declaration in XEmacs
2071         UTF-2000.
2072
2073 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074
2075         * chartab.c (put_char_id_table): Use `put_char_table'.
2076
2077 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2080         (map_over_uint16_byte_table): Likewise.
2081         (map_over_byte_table): Likewise.
2082         (map_char_table): Modify for `map_over_uint8_byte_table',
2083         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2084         UTF-2000.
2085
2086 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2087
2088         * chartab.c (struct map_char_table_for_charset_arg): New
2089         structure.
2090         (map_char_table_for_charset_fun): New function.
2091         (map_char_table): Use `map_char_table' for encoding_table of
2092         `range->charset'.
2093
2094 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2095
2096         * chartab.c (map_char_table): Check a character is found in
2097         range->charset instead of non default value is defined in
2098         char-table when range is CHARTAB_RANGE_ROW.
2099
2100 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * chartab.c (map_char_id_table): Deleted.
2103         (Fmap_char_attribute): Use `map_char_table' instead of
2104         `map_char_id_table'.
2105
2106 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2109         UTF-2000.
2110         (update_syntax_table): Deleted in XEmacs UTF-2000.
2111
2112         * syntax.c (find_defun_start): Use `syntax_table' instead of
2113         `mirror_syntax_table' in XEmacs UTF-2000.
2114         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2115         UTF-2000.
2116         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2117         XEmacs UTF-2000.
2118         (Fmatching_paren): Likewise.
2119         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2120         in XEmacs UTF-2000.
2121         (find_start_of_comment): Likewise.
2122         (find_end_of_comment): Likewise.
2123         (Fforward_comment): Likewise.
2124         (scan_lists): Likewise.
2125         (char_quoted): Likewise.
2126         (Fbackward_prefix_chars): Likewise.
2127         (scan_sexps_forward): Likewise.
2128         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2129         (update_syntax_table): Likewise.
2130
2131         * search.c (skip_chars): Use `syntax_table' instead of
2132         `mirror_syntax_table' in XEmacs UTF-2000.
2133         (wordify): Likewise.
2134         (Freplace_match): Likewise.
2135
2136         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2137         `mirror_syntax_table' in XEmacs UTF-2000.
2138         (WORDCHAR_P_UNSAFE): Likewise.
2139         (re_match_2_internal): Likewise.
2140
2141         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2142         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2143
2144         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2145         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2146
2147         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2148         XEmacs UTF-2000.
2149
2150         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2151         UTF-2000.
2152         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2153         (char_table_description): Delete `mirror_table' in XEmacs
2154         UTF-2000.
2155         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2156         UTF-2000.
2157         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2158         (Fcopy_char_table): Likewise.
2159         (put_char_table): Don't call `update_syntax_table' in XEmacs
2160         UTF-2000.
2161
2162         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2163         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2164         (casify_region_internal): Likewise.
2165
2166         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2167
2168         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2169         `mirror_syntax_table' in XEmacs UTF-2000.
2170
2171         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2172         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2173         (Fexpand_abbrev): Likewise.
2174
2175 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176
2177         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2178
2179 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2182         (map_over_uint16_byte_table): Likewise.
2183         (map_over_byte_table): Likewise.
2184         (get_char_id_table): Refer `cit->default_value'.
2185         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2186         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2187         of character-id ranges.
2188         (mark_char_table): Mark `ct->default_value'.
2189         (char_table_description): Add `default_value'.
2190         (fill_char_table): Use `default_value'.
2191         (decode_char_table_range): Decode `nil' as
2192         `CHARTAB_RANGE_DEFAULT'.
2193         (get_char_id_table): Refer `cit->default_value'.
2194         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2195         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2196         temporary hack; check value of char-table is bound or not.
2197         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2198
2199         * chartab.h (struct Lisp_Char_Table): Add new member
2200         `default_value' in XEmacs UTF-2000.
2201         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2202         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2203         UTF-2000.
2204
2205 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * chartab.h (Lisp_Char_ID_Table): Deleted.
2208
2209         * chartab.c (char_table_description): Fix typo.
2210         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2211         `Lisp_Char_ID_Table'.
2212
2213 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214
2215         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2216         `CHAR_ID_TABLE_P'.
2217
2218         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2219         `CHAR_ID_TABLE_P'.
2220
2221         * chartab.h (XCHAR_ID_TABLE): Deleted.
2222         (XSETCHAR_ID_TABLE): Deleted.
2223         (CHAR_ID_TABLE_P): Deleted.
2224
2225         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2226         `CHAR_ID_TABLE_P'.
2227         (Fget_composite_char): Likewise.
2228         (put_char_table): Likewise.
2229         (add_char_attribute_alist_mapper): Fixed.
2230         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2231         `CHAR_ID_TABLE_P'.
2232         (Fget_char_attribute): Likewise.
2233         (Fget_char_attribute): Likewise.
2234         (Fmap_char_attribute): Likewise.
2235
2236         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2237         `CHAR_ID_TABLE_P'.
2238         (encode_char_1): Likewise.
2239
2240 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241
2242         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2243         `XCHAR_ID_TABLE'.
2244
2245         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2246         instead of `XCHAR_ID_TABLE'.
2247         (remove_char_ccs): Likewise.
2248
2249         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2250         `XCHAR_ID_TABLE'.
2251         (Fget_composite_char): Likewise.
2252         (Fchar_variants): Likewise.
2253         (put_char_table): Likewise.
2254         (add_char_attribute_alist_mapper): Likewise.
2255         (Fchar_attribute_alist): Likewise.
2256         (Fget_char_attribute): Likewise.
2257         (Fput_char_attribute): Likewise.
2258         (Fmap_char_attribute): Likewise.
2259         (Fmap_char_attribute): Likewise.
2260
2261         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2262         `XCHAR_ID_TABLE'.
2263         (encode_char_1): Likewise.
2264
2265 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2268         `Lisp_Char_ID_Table'.
2269         (mark_char_id_table): Deleted.
2270         (print_char_id_table): Likewise.
2271         (char_id_table_equal): Likewise.
2272         (char_id_table_hash): Likewise.
2273         (char_id_table_description): Likewise.
2274         (char_id_table): Likewise.
2275         (make_char_id_table): Use `Fmake_char_table' and
2276         `fill_char_table'.
2277         (get_char_id_table): Use `Lisp_Char_Table' instead of
2278         `Lisp_Char_ID_Table'.
2279         (put_char_id_table): Likewise.
2280         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2281         `XCHAR_ID_TABLE'.
2282         (Fremove_char_attribute): Likewise.
2283         (syms_of_chartab): Don't define type `char-id-table'.
2284
2285         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2286         (char_id_table): Likewise.
2287         (GC_CHAR_ID_TABLE_P): Likewise.
2288         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2289         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2290         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2291         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2292         (get_char_id_table): Use `Lisp_Char_Table' instead of
2293         `Lisp_Char_ID_Table'.
2294         (put_char_id_table_0): Likewise.
2295         (put_char_id_table): Likewise.
2296
2297 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2298
2299         * chartab.h: Lisp_Byte_Table related codes are moved from
2300         chartab.h.
2301
2302         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2303
2304 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2305
2306         * chartab.h: Don't include "chartab.h".
2307         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2308         (Lisp_Char_ID_Table): Likewise.
2309         (char_id_table): Likewise.
2310         (XCHAR_ID_TABLE): Likewise.
2311         (XSETCHAR_ID_TABLE): Likewise.
2312         (CHAR_ID_TABLE_P): Likewise.
2313         (GC_CHAR_ID_TABLE_P): Likewise.
2314         (get_char_id_table): Likewise.
2315
2316         * char-ucs.h: Include "chartab.h".
2317         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2318         (Lisp_Char_ID_Table): Likewise.
2319         (char_id_table): Likewise.
2320         (XCHAR_ID_TABLE): Likewise.
2321         (XSETCHAR_ID_TABLE): Likewise.
2322         (CHAR_ID_TABLE_P): Likewise.
2323         (GC_CHAR_ID_TABLE_P): Likewise.
2324         (get_char_id_table): Likewise.
2325
2326 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2327
2328         * chartab.c (copy_uint8_byte_table): New function.
2329         (copy_uint16_byte_table): New function.
2330         (copy_byte_table): New function.
2331         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2332         characters to call.
2333         (map_over_uint16_byte_table): Likewise.
2334         (map_over_byte_table): Likewise.
2335         (get_byte_table): Move prototype to chartab.h.
2336         (put_byte_table): Likewise.
2337         (put_char_id_table_0): Moved to chartab.h.
2338         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2339         (char_table_entry_equal): Likewise.
2340         (char_table_entry_hash): Likewise.
2341         (char_table_entry_description): Likewise.
2342         (char_table_entry): Likewise.
2343         (make_char_table_entry): Likewise.
2344         (copy_char_table_entry): Likewise.
2345         (get_non_ascii_char_table_value): Likewise.
2346         (map_over_charset_ascii): Likewise.
2347         (map_over_charset_control_1): Likewise.
2348         (map_over_charset_row): Likewise.
2349         (map_over_other_charset): Likewise.
2350         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2351         (print_char_table): Likewise.
2352         (char_table_equal): Likewise.
2353         (char_table_hash): Likewise.
2354         (char_table_description): Likewise.
2355         (fill_char_table): Likewise.
2356         (Fcopy_char_table): Likewise.
2357         (get_char_table): Likewise.
2358         (Fget_range_char_table): Likewise.
2359         (put_char_table): Likewise.
2360         (map_char_table): Likewise.
2361         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2362         UTF-2000.
2363
2364 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365
2366         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2367         `Vauto_fill_chars' in XEmacs UTF-2000.
2368
2369         * chartab.h (get_byte_table): New prototype [moved from
2370         chartab.c].
2371         (put_byte_table): Likewise [moved from chartab.c].
2372         (put_char_id_table_0): New inline function [moved from chartab.c].
2373         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2374         (Lisp_Char_Table_Entry): Likewise.
2375         (char_table_entry): Likewise.
2376         (XCHAR_TABLE_ENTRY): Likewise.
2377         (XSETCHAR_TABLE_ENTRY): Likewise.
2378         (CHAR_TABLE_ENTRYP): Likewise.
2379         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2380         (NUM_ASCII_CHARS): Likewise.
2381         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2382         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2383
2384 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * chartab.c (get_char_id_table): Change interface.
2387         (put_char_id_table_0): New function.
2388         (put_char_id_table): Change interface; new implementation.
2389         (Fget_composite_char): Modify for interface change of
2390         `get_char_id_table'.
2391         (Fchar_variants): Likewise.
2392         (add_char_attribute_alist_mapper): Likewise.
2393         (Fchar_attribute_alist): Likewise.
2394         (Fget_char_attribute): Likewise.
2395         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2396         as same as character as the first argument like `put-char-table';
2397         modify for interface change of `put_char_id_table'.
2398         (Fremove_char_attribute): Modify for interface change of
2399         `put_char_id_table'.
2400
2401 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2402
2403         * text-coding.c: Sync up with XEmacs 21.2.41.
2404         (COMPOSE_ADD_CHAR): Modify for interface change of
2405         `get_char_id_table'.
2406
2407         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2408         change of `put_char_id_table'.
2409         (remove_char_ccs): Likewise.
2410
2411         * chartab.h (put_char_id_table): Change interface.
2412
2413         * char-ucs.h (get_char_id_table): Change interface.
2414         (charset_code_point): Modify for interface change of
2415         `get_char_id_table'.
2416         (encode_char_1): Likewise.
2417
2418 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2419
2420         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2421         argument `ccs'.
2422         (map_over_uint16_byte_table): Likewise.
2423         (map_over_byte_table): Likewise.
2424         (map_char_id_table): Add new argument `range' like
2425         `map_char_table'.
2426         (Fmap_char_attribute): Add new argument `range' like
2427         `Fmap_char_table'.
2428
2429 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * chartab.c (map_over_uint8_byte_table): Change interface of
2432         mapping function to use struct chartab_range instead of Emchar.
2433         (map_over_uint16_byte_table): Likewise.
2434         (map_over_byte_table): Likewise.
2435         (map_char_id_table): Likewise.
2436         (struct slow_map_char_id_table_arg): Deleted.
2437         (slow_map_char_id_table_fun): Deleted.
2438         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2439         function `slow_map_char_table_fun' instead of struct
2440         `slow_map_char_id_table_arg' and function
2441         `slow_map_char_id_table_fun'.
2442
2443 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2444
2445         * mule-charset.c: Move char-it-table related codes to chartab.c.
2446         (Vutf_2000_version): Moved to chartab.c.
2447         (Fdefine_char): Likewise.
2448         (Ffind_char): Likewise.
2449         (syms_of_mule_charset): Move types `uint8-byte-table',
2450         `uint16-byte-table', `byte-table' and `char-id-table' to
2451         chartab.c; move functions `char_attribute_list,
2452         `find_char_attribute_table, `char_attribute_alist,
2453         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2454         `map_char_attribute, `define_char, `find_char, `char_variants and
2455         `get_composite_char to chartab.c; move symbols `=>ucs',
2456         `->decomposition', `compat', `isolated', `initial', `medial',
2457         `final', `vertical', `noBreak', `fraction', `super', `sub',
2458         `circle', `square', `wide', `narrow', `small' and `font' to
2459         chartab.c.
2460         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2461         setting codes for `Vcharacter_composition_table' and
2462         `Vcharacter_variant_table' to chartab.c.
2463         (complex_vars_of_mule_charset): Move setting code for
2464         `Vchar_attribute_hash_table' to chartab.c.
2465
2466         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2467         (make_char_id_table): New prototype.
2468         (put_char_id_table): Likewise.
2469         (Fget_char_attribute): Likewise.
2470
2471         * chartab.c: Move char-id-table related code from mule-charset.c.
2472         (Vutf_2000_version): Moved from mule-charset.c.
2473
2474         * char-ucs.h (Qucs): New external variable.
2475         (put_char_ccs_code_point): New prototype.
2476         (remove_char_ccs): Likewise.
2477
2478 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2479
2480         * mule-charset.c (Vcharset_ucs_jis): New variable.
2481         (Qucs_jis): Likewise.
2482         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2483         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2484
2485         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2486
2487 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * mule-charset.c (map_over_uint8_byte_table): New function.
2490         (map_over_uint16_byte_table): Likewise.
2491         (map_over_byte_table): Likewise.
2492         (map_char_id_table): Likewise.
2493         (slow_map_char_id_table_fun): Likewise.
2494         (Fmap_char_attribute): Likewise.
2495         (syms_of_mule_charset): Add new function `map-char-attribute'.
2496
2497 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2498
2499         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2500         (syms_of_mule_charset): Add new function `find-char'.
2501
2502 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2503
2504         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2505         XEmacs UTF-2000.
2506         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2507         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2508         XEmacs UTF-2000.
2509         (complex_vars_of_mule_charset): Add new coded-charset
2510         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2511         `ideograph-gt-pj-*'.
2512
2513         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2514
2515 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2516
2517         * mule-charset.c (encode_builtin_char_1): Purge codes about
2518         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2519         {MIN|MAX}_CHAR_HEBREW.
2520         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2521         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2522
2523         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2524         (MAX_CHAR_GREEK): Purged.
2525         (MIN_CHAR_CYRILLIC): Purged.
2526         (MAX_CHAR_CYRILLIC): Purged.
2527         (MIN_CHAR_HEBREW): Commented out.
2528         (MAX_CHAR_HEBREW): Likewise.
2529
2530 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2531
2532         * mule-charset.c (Qto_ucs): New variable.
2533         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2534         (Fdefine_char): Likewise.
2535         (syms_of_mule_charset): Add new symbol `=>ucs'.
2536
2537 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2538
2539         * mule-charset.c (Fdecode_char): Fixed.
2540
2541 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2544         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2545         "tcvn5712-1".
2546
2547 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2548
2549         * mule-charset.c (Vcharset_ucs_big5): New variable.
2550         (Qucs_big5): Likewise.
2551         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2552         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2553
2554         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2555
2556 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2557
2558         * mule-charset.c (decode_builtin_char): Check Big5 code range
2559         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2560
2561 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2562
2563         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2564         (Qchinese_gb12345): Likewise.
2565         (Fdecode_builtin_char): Fixed.
2566         (syms_of_mule_charset): Add `chinese-gb12345'.
2567         (complex_vars_of_mule_charset): Add coded-charset
2568         `chinese-gb12345'.
2569
2570         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2571         (LEADING_BYTE_CHINESE_GB12345): New macro.
2572
2573 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2576         and `latin-viscii-upper' for `latin-viscii'.
2577
2578 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2579
2580         * mule-charset.c (Fdecode_builtin_char): Comment out
2581         regularization code for ISO-IR GR representation.
2582
2583 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2584
2585         * mule-charset.c (decode_builtin_char): New function; renamed from
2586         `make_builtin_char'; return -1 instead of signal.
2587         (Fdecode_builtin_char): Use `decode_builtin_char'.
2588
2589         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2590         `make_builtin_char'.
2591         (DECODE_CHAR): Use `decode_builtin_char' instead of
2592         `make_builtin_char'; use mapping table of `chinese-big5' for
2593         `chinese-big5-{1,2}'.
2594
2595 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * text-coding.c (char_encode_big5): New function.
2598         (char_finish_big5): Likewise.
2599         (reset_encoding_stream): Use `char_encode_big5' and
2600         `char_finish_big5' for CODESYS_BIG5.
2601         (mule_encode): Don't use `encode_coding_big5'.
2602         (encode_coding_big5): Deleted.
2603
2604 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2605
2606         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2607         0x81- in XEmacs UTF-2000.
2608         (detect_coding_big5): Likewise.
2609
2610 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2611
2612         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2613         generate character-id if the CCS property does not have
2614         corresponding predefined character.
2615         (make_builtin_char): Return -1 if corresponding predefined
2616         character is not found.
2617         (Fdecode_char): Return nil if corresponding character is not
2618         found.
2619         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2620         don't map to builtin ucs space.
2621
2622 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2623
2624         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2625         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2626
2627 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2628
2629         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2630         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2631         (Qideograph_gt): Likewise.
2632         (Qideograph_gt_pj_{1..11}): Likewise.
2633         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2634         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2635         `ideograph-gt-pj-11'.
2636         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2637         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2638         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2639
2640         * char-ucs.h (LEADING_BYTE_GT): New macro.
2641         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2642         (MIN_CHAR_GT): Likewise.
2643         (MAX_CHAR_GT): Likewise.
2644
2645 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646
2647         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2648         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2649
2650         * doprnt.c (unsigned_int_converters): Add `c'.
2651         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2652
2653         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2654         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2655         `MIN_CHAR_MOJIKYO'.
2656         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2657         (MAX_CHAR_MOJIKYO_0): New macro.
2658         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2659
2660 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2661
2662         * mule-charset.c (Fdefine_char): Delete cemented out code.
2663         (encode_builtin_char_1): Modify for new allocation of builtin
2664         Mojikyo characters.
2665
2666         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2667
2668 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * mule-charset.c (Vcharset_ucs_cns): New variable.
2671         (Qucs_cns): New variable.
2672         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2673         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2674
2675 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2676
2677         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2678
2679 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2680
2681         * search.c (search_buffer): Make `charset_base_code' as
2682         character-id >> 6 to eliminate the corresponding last byte in
2683         UTF-8 representation [I'm not sure it is right thing].
2684         (boyer_moore): Likewise.
2685
2686 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2687
2688         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2689         representation in MULE.
2690
2691 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2692
2693         * text-coding.c (Fmake_coding_system): Use
2694         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2695         `EXTERNAL_PROPERTY_LIST_LOOP'.
2696
2697 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2698
2699         * text-coding.c (decode_output_utf8_partial_char): New function.
2700         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2701
2702 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2703
2704         * text-coding.c (decode_coding_utf8): Output original byte
2705         sequence if it is broken; change order of conditions.
2706
2707         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2708         of conditions.
2709
2710         * mb-multibyte.h (BYTE_ASCII_P):
2711         Use bit ops for char-signedness safety.
2712         (BYTE_C0_P): Use bit ops for char-signedness safety.
2713         (BYTE_C1_P): Use bit ops for char-signedness safety.
2714
2715         * character.h: (XCHAR_OR_CHAR_INT):
2716         Always use inline function.
2717         Remove redundant type checking assert() - XINT will abort quite
2718         nicely.
2719
2720 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2721
2722         * text-coding.c: (Fencode_shift_jis_char):
2723         (Fencode_big5_char):
2724         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2725         Replace 0 with '\0' when working with bytes.
2726         Replace initial "(" with "\(" in docstrings.
2727
2728         (Fmake_coding_system):
2729         When type is ccl and value is vector, register it with a proper
2730         symbol.  And checks whether the given ccl program is valid.
2731         (mule_decode): When calling ccl_driver, if src indicates
2732         NULL pointer, set an empty string instead.
2733         (mule_encode): Likewise.
2734
2735         (detect_eol_type):
2736         (detect_coding_sjis):
2737         (decode_coding_sjis):
2738         (detect_coding_big5):
2739         (decode_coding_big5):
2740         (detect_coding_ucs4):
2741         (decode_coding_ucs4):
2742         (detect_coding_utf8):
2743         (decode_coding_utf8):
2744         (detect_coding_iso2022):
2745         (decode_coding_iso2022):
2746         (decode_coding_no_conversion):
2747         (mule_decode):
2748         Make all detecting and decoding functions take an Extbyte * arg.
2749         (text_encode_generic):
2750         (encode_coding_big5):
2751         (encode_coding_no_conversion):
2752         (mule_encode):
2753         Make all encoding functions take a Bufbyte * arg.
2754         Use size_t instead of unsigned int for memory sizes.
2755         Only cast to unsigned char whenever dereferencing Extbyte *.
2756
2757         (struct lrecord_description fcd_description_1): Use countof.
2758         (complex_vars_of_file_coding):
2759         Use countof instead of sizeof.
2760         Use CHECK_NATNUM instead of CHECK_INT.
2761
2762 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2763
2764         * mule-charset.c (Fget_char_attribute): Add new optional argument
2765         `default-value'.
2766         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2767         (remove_char_ccs): Likewise.
2768
2769 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2770
2771         * text-coding.c (char_encode_shift_jis): New implementation in
2772         UTF-2000.
2773         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2774         ...)'.
2775
2776         * mule-charset.c (Vcharset_chinese_big5): New variable in
2777         UTF-2000.
2778         (Qchinese_big5): New variable in UTF-2000.
2779         (BIG5_SAME_ROW): New macro in UTF-2000.
2780         (make_builtin_char): Use builtin characters of
2781         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2782         characters of `Vcharset_chinese_big5'.
2783         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2784         (complex_vars_of_mule_charset): Add new coded-charset
2785         `chinese-big5' in UTF-2000.
2786
2787         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2788         (Vcharset_chinese_big5): New external variable declaration.
2789         (Vcharset_japanese_jisx0208_1990): Likewise.
2790
2791 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2794         function.
2795         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2796
2797 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2800         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2801         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2802         `mojikyo-pj-*'.
2803
2804 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2805
2806         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2807
2808 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2811         to 0.17.
2812
2813 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2816         for `CHARSET_BY_ATTRIBUTES'.
2817         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2818         `CHARSET_BY_ATTRIBUTES'.
2819
2820         * text-coding.c (struct decoding_stream): Rename member `CH' to
2821         `CPOS'.
2822         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2823         (decode_coding_sjis): Likewise.
2824         (decode_coding_big5): Likewise.
2825         (decode_coding_ucs4): Likewise.
2826         (decode_coding_utf8): Likewise.
2827         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2828         `CHARSET_BY_ATTRIBUTES'.
2829         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2830         `str->counter'; decode 3, 4 bytes sets.
2831         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2832         sets.
2833         (decode_coding_no_conversion): Use `str->cpos' instead of
2834         `str->ch'.
2835
2836         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2837         (Qmojikyo_2022_1): New variable.
2838         (make_charset): Don't use `CHARSET_TYPE_*'.
2839         (range_charset_code_point): Support coded-charset
2840         `mojikyo-2022-1'.
2841         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2842         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2843         `CHARSET_BY_ATTRIBUTES'.
2844         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2845         `CHARSET_BY_ATTRIBUTES'.
2846         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2847         (complex_vars_of_mule_charset): Add new coded-charset
2848         `mojikyo-2022-1'.
2849
2850         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2851         interface; changed to inline function.
2852
2853         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2854         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2855         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2856         (CHARSET_TYPE_94): Deleted.
2857         (CHARSET_TYPE_94X94): Deleted.
2858         (CHARSET_TYPE_96): Deleted.
2859         (CHARSET_TYPE_96X96): Deleted.
2860         (CHARSET_TYPE_128): Deleted.
2861         (CHARSET_TYPE_128X128): Deleted.
2862         (CHARSET_TYPE_256): Deleted.
2863         (CHARSET_TYPE_256X256): Deleted.
2864         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2865         to inline function.
2866         (DECODE_MOJIKYO_2022): New inline function.
2867         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2868         `Vcharset_mojikyo_2022_1'.
2869
2870 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2871
2872         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2873         instead of `EQ'.
2874         (put_byte_table): Likewise.
2875         (char_id_table_equal): Use `get_byte_table' [new implementation].
2876
2877 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878
2879         * mule-charset.c: Include <limits.h> in UTF-2000.
2880         (BT_UINT8_MIN): New macro in UTF-2000.
2881         (BT_UINT8_MAX): New macro in UTF-2000.
2882         (BT_UINT8_t): New macro in UTF-2000.
2883         (BT_UINT8_nil): New macro in UTF-2000.
2884         (BT_UINT8_unbound): New macro in UTF-2000.
2885         (INT_UINT8_P): New inline function in UTF-2000.
2886         (UINT8_VALUE_P): New inline function in UTF-2000.
2887         (UINT8_ENCODE): New inline function in UTF-2000.
2888         (UINT8_DECODE): New inline function in UTF-2000.
2889         (mark_uint8_byte_table): New function in UTF-2000.
2890         (print_uint8_byte_table): New function in UTF-2000.
2891         (uint8_byte_table_equal): New function in UTF-2000.
2892         (uint8_byte_table_hash): New function in UTF-2000.
2893         (make_uint8_byte_table): New function in UTF-2000.
2894         (uint8_byte_table_same_value_p): New function in UTF-2000.
2895         (BT_UINT16_MIN): New macro in UTF-2000.
2896         (BT_UINT16_MAX): New macro in UTF-2000.
2897         (BT_UINT16_t): New macro in UTF-2000.
2898         (BT_UINT16_nil): New macro in UTF-2000.
2899         (BT_UINT16_unbound): New macro in UTF-2000.
2900         (INT_UINT16_P): New inline function in UTF-2000.
2901         (UINT16_VALUE_P): New inline function in UTF-2000.
2902         (UINT16_ENCODE): New inline function in UTF-2000.
2903         (UINT16_DECODE): New inline function in UTF-2000.
2904         (UINT8_TO_UINT16): New inline function in UTF-2000.
2905         (mark_uint16_byte_table): New function in UTF-2000.
2906         (print_uint16_byte_table): New function in UTF-2000.
2907         (uint16_byte_table_equal): New function in UTF-2000.
2908         (uint16_byte_table_hash): New function in UTF-2000.
2909         (make_uint16_byte_table): New function in UTF-2000.
2910         (uint16_byte_table_same_value_p): New function in UTF-2000.
2911         (print_byte_table): New function in UTF-2000.
2912         (byte-table): Use `print_byte_table' as printer.
2913         (make_byte_table): Delete second argument `older'.
2914         (byte_table_same_value_p): New function in UTF-2000.
2915         (copy_byte_table): Deleted.
2916         (get_byte_table): New function in UTF-2000.
2917         (put_byte_table): New function in UTF-2000.
2918         (print_char_id_table): New function in UTF-2000.
2919         (char-id-table): Use `print_char_id_table' as printer.
2920         (make_char_id_table): Delete second argument `older'.
2921         (get_char_id_table): Use `get_byte_table [new implementation].
2922         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2923         implementation].
2924         (Ffind_char_attribute_table): New function in UTF-2000.
2925         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2926         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2927         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2928         (syms_of_mule_charset): Add new function
2929         `find-char-attribute-table' in UTF-2000.
2930
2931         * lrecord.h (enum lrecord_type): Add
2932         `lrecord_type_uint16_byte_table' and
2933         `lrecord_type_uint8_byte_table'.
2934
2935         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2936         (Lisp_Uint8_Byte_Table): New type.
2937         (XUINT8_BYTE_TABLE): New macro.
2938         (XSETUINT8_BYTE_TABLE): New macro.
2939         (UINT8_BYTE_TABLE_P): New macro.
2940         (GC_UINT8_BYTE_TABLE_P): New macro.
2941         (struct Lisp_Uint16_Byte_Table): New structure.
2942         (Lisp_Uint16_Byte_Table): New type.
2943         (XUINT16_BYTE_TABLE): New macro.
2944         (XSETUINT16_BYTE_TABLE): New macro.
2945         (UINT16_BYTE_TABLE_P): New macro.
2946         (GC_UINT16_BYTE_TABLE_P): New macro.
2947
2948 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2949
2950         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2951         (Vcharacter_ideographic_strokes_table): Deleted.
2952         (Vcharacter_total_strokes_table): Deleted.
2953         (Vcharacter_morohashi_daikanwa_table): Deleted.
2954         (Vcharacter_decomposition_table): Deleted.
2955         (Qname): Deleted because it is duplicated.
2956         (Qideographic_radical): Deleted.
2957         (Qideographic_strokes): Deleted.
2958         (Qtotal_strokes): Deleted.
2959         (Qmorohashi_daikanwa): Deleted.
2960         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2961         `ideographic-radical', `ideographic-strokes', `total-strokes',
2962         `morohashi-daikanwa' and `->decomposition'.
2963         (Fget_char_attribute): Likewise.
2964         (Fput_char_attribute): Likewise; use `make-vector' instead of
2965         `make_older_vector' for `->decomposition' value.
2966         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2967         `ideograph-daikanwa'.
2968         (syms_of_mule_charset): Delete builtin symbols `name',
2969         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2970         `morohashi-daikanwa'.
2971         (vars_of_mule_charset): Don't setup
2972         `Vcharacter_ideographic_radical_table',
2973         `Vcharacter_ideographic_strokes_table',
2974         `Vcharacter_total_strokes_table',
2975         `Vcharacter_morohashi_daikanwa_table' and
2976         `Vcharacter_decomposition_table'.
2977
2978 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2979
2980         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2981         `make_older_vector', `make_vector_newer_1' and
2982         `make_vector_newer'.
2983
2984         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2985         `make_older_vector' and `make_vector_newer'.
2986
2987         * config.h.in (HAVE_GGC): New macro.
2988
2989 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2990
2991         * mule-charset.c (struct char_attribute_list_closure): New
2992         structure in UTF-2000.
2993         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2994         (Fchar_attribute_list): Likewise.
2995         (Fset_charset_mapping_table): Use `make_vector_newer'.
2996         (Fdecode_builtin_char): New function in UTF-2000.
2997         (syms_of_mule_charset): Add new function `char-attribute-list' and
2998         `decode-builtin-char' in UTF-2000.
2999
3000         * lisp.h (make_vector_newer): New prototype.
3001
3002         * alloc.c (make_vector_newer_1): New function.
3003         (make_vector_newer): New function.
3004
3005 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3006
3007         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3008         50100)'.
3009
3010 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3013         (Vcharacter_attribute_table): Deleted.
3014         (Vcharacter_name_table): Deleted.
3015         (put_char_attribute): Deleted.
3016         (remove_char_attribute): Deleted.
3017         (struct char_attribute_alist_closure): New structure.
3018         (add_char_attribute_alist_mapper): New function.
3019         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3020         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3021         (Fget_char_attribute): Likewise.
3022         (Fput_char_attribute): Likewise.
3023         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3024         of `remove_char_attribute'.
3025         (Fdefine_char): Return character.
3026         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3027         and `Vcharacter_name_table'.
3028         (complex_vars_of_mule_charset): Likewise
3029         `Vchar_attribute_hash_table'.
3030
3031 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3032
3033         * character.h (CHARC_CHARSET): New macro.
3034         (CHARC_CHARSET_ID): New macro.
3035         (CHARC_CODE_POINT): New macro.
3036         (CHARC_COLUMNS): New macro.
3037         (CHARC_TO_CHAR): New inline function.
3038         (CHARC_EQ): New inline function.
3039         (CHARC_ASCII_EQ): New inline function.
3040         (CHARC_IS_SPACE): New inline function.
3041         (ASCII_TO_CHARC): New inline function.
3042
3043         * char-ucs.h (encode_char_2): Deleted.
3044         (ENCODE_CHAR): Use `encode_char_1' again.
3045         (breakup_char_1): Likewise.
3046         (CHAR_TO_CHARC): New inline function.
3047
3048         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3049
3050 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3051
3052         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3053         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3054         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3055         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3056         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3057         `CHARC_IS_SPACE'.
3058         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3059
3060         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3061         `CHARC_CODE_POINT'.
3062         (x_output_display_block): Use `CHARC_CHARSET' and
3063         `CHARC_ASCII_EQ'.
3064
3065         * redisplay-tty.c (tty_output_display_block): Use
3066         `CHARC_ASCII_EQ'.
3067         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3068
3069         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3070
3071         * insdel.c (find_charsets_in_charc_string): Use
3072         `CHARC_CHARSET_ID'.
3073         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3074         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3075         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3076         (convert_charc_string_into_malloced_string): Likewise.
3077
3078 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3079
3080         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3081         instead of <Emchar_dynarr *> for buf; use
3082         `convert_bufbyte_string_into_charc_dynarr' instead of
3083         `convert_bufbyte_string_into_emchar_dynarr'; use
3084         `find_charsets_in_charc_string' instead of
3085         `find_charsets_in_emchar_string'.
3086
3087         * redisplay.h:
3088         - Include "character.h".
3089         (struct rune): New member `cglyph'; delete member `chr'.
3090
3091         * redisplay.c (redisplay_text_width_charc_string): New function;
3092         delete `redisplay_text_width_emchar_string'.
3093         (rtw_charc_dynarr): New variable; renamed from
3094         `rtw_emchar_dynarr'.
3095         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3096         `rtw_emchar_dynarr'; use
3097         `convert_bufbyte_string_into_charc_dynarr' instead of
3098         `convert_bufbyte_string_into_emchar_dynarr'; use
3099         `redisplay_text_width_charc_string' instead of
3100         `redisplay_text_width_emchar_string'.
3101         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3102         instead of `rtw_emchar_dynarr'; use
3103         `convert_bufbyte_string_into_charc_dynarr' instead of
3104         `convert_bufbyte_string_into_emchar_dynarr'.
3105         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3106         `redisplay_text_width_charc_string' instead of
3107         `redisplay_text_width_emchar_string'.
3108         (create_text_block): Modify for <struct rune> change.
3109         (generate_formatted_string_db): Likewise.
3110         (create_string_text_block): Likewise.
3111         (pixel_to_glyph_translation): Likewise.
3112
3113         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3114         instead of <const Emchar *>.
3115         (x_text_width): Likewise.
3116         (x_output_display_block): Use <Charc_dynarr *> instead
3117         <Emchar_dynarr *>; modify for <structure rune> change.
3118         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3119         *>.
3120
3121         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3122         <const Emchar *>; use `charc_string_displayed_columns' instead of
3123         `emchar_string_displayed_columns'.
3124         (tty_output_display_block): Use <Charc_dynarr *> instead of
3125         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3126         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3127         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3128         `tty_output_emchar_dynarr_dynarr'.
3129         (tty_output_charc_dynarr): New function; delete
3130         `tty_output_charc_dynarr'.
3131
3132         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3133         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3134         <Emchar_dynarr *> for buf; use
3135         `convert_bufbyte_string_into_charc_dynarr' instead of
3136         `convert_bufbyte_string_into_emchar_dynarr'.
3137
3138         * frame.c (title_string_charc_dynarr): New variable; renamed from
3139         `title_string_emchar_dynarr'.
3140         (generate_title_string): Use `title_string_charc_dynarr' instead
3141         of `title_string_emchar_dynarr'; use
3142         `convert_charc_string_into_malloced_string' instead of
3143         `convert_emchar_string_into_malloced_string'.
3144         (init_frame): Use `title_string_charc_dynarr' instead of
3145         `title_string_emchar_dynarr'.
3146
3147         * console.h:
3148         - Include "character.h".
3149         (struct console_methods): Use <const Charc *> instead of <const
3150         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3151         <Emchar_dynarr *> in output_string_method.
3152
3153         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3154         <Emchar_dynarr *>.
3155
3156         * console-stream.c (stream_text_width): Use <const Charc *>
3157         instead of <const Emchar *>.
3158
3159         * character.h (Charc_dynarr): New type.
3160
3161         * char-ucs.h (structure Charc): New structure; define new type
3162         `Charc'.
3163
3164         * char-lb.h (DECODE_CHAR): New inline function.
3165         (encode_char_1): New inline function.
3166         (ENCODE_CHAR): New macro.
3167         (structure Charc): New structure; define new type `Charc'.
3168
3169         * char-1byte.h (Vcharset_control_1): New macro.
3170         (Vcharset_latin_iso8859_1): New macro.
3171         (DECODE_CHAR): New inline function.
3172         (encode_char_1): New inline function.
3173         (ENCODE_CHAR): New macro.
3174         (structure Charc): New structure; define new type `Charc'.
3175
3176         * insdel.c (find_charsets_in_charc_string): New function; delete
3177         `find_charsets_in_emchar_string'.
3178         (charc_string_displayed_columns): New function; delete
3179         `emchar_string_displayed_columns'.
3180         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3181         `convert_bufbyte_string_into_emchar_dynarr'.
3182         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3183         `convert_charc_string_into_bufbyte_dynarr'.
3184         (convert_charc_string_into_malloced_string): New function; delete
3185         `convert_charc_string_into_malloced_string'.
3186
3187         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3188         `find_charsets_in_emchar_string'.
3189         (charc_string_displayed_columns): New prototype; delete
3190         `emchar_string_displayed_columns'.
3191         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3192         `convert_charc_string_into_bufbyte_dynarr'.
3193         (convert_charc_string_into_malloced_string): New prototype; delete
3194         `convert_charc_string_into_malloced_string'.
3195
3196 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3197
3198         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3199
3200 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201
3202         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3203
3204         * char-ucs.h: Use <short> for <Charset_ID>.
3205
3206         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3207         <Charset_ID>.
3208
3209 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3210
3211         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3212         to 0.16.
3213
3214 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3215
3216         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3217         variable.
3218         (Qmorohashi_daikanwa): New variable.
3219         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3220         for `morohashi-daikanwa' attribute.
3221         (Fget_char_attribute): Likewise.
3222         (Fput_char_attribute): Likewise.
3223         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3224         has the same value of `ideograph-daikanwa'.
3225         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3226         (vars_of_mule_charset): Setup
3227         `Vcharacter_morohashi_daikanwa_table'.
3228
3229 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3232         attributes.
3233         (add_charset_to_list_mapper): Add `key' instead of
3234         `XCHARSET_NAME (value)' to return aliases.
3235
3236 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3237
3238         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3239         variable.
3240         (Vcharacter_ideographic_strokes_table): New variable.
3241         (Qideographic_radical): New variable.
3242         (Qideographic_strokes): New variable.
3243         (Fchar_attribute_alist): Use
3244         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3245         attribute; use `Vcharacter_ideographic_strokes_table' for
3246         `ideographic-strokes' attribute.
3247         (Fget_char_attribute): Likewise.
3248         (Fput_char_attribute): Likewise.
3249         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3250         `ideographic-strokes'.
3251         (vars_of_mule_charset): Setup
3252         `Vcharacter_ideographic_radical_table' and
3253         `Vcharacter_ideographic_strokes_table'.
3254
3255 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3256
3257         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3258         (Qtotal_strokes): New variable.
3259         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3260         `total-strokes' attribute.
3261         (Fget_char_attribute): Likewise.
3262         (Fput_char_attribute): Likewise.
3263         (syms_of_mule_charset): Add new symbol `total-strokes'.
3264         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3265
3266 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3267
3268         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3269         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3270         are found.
3271         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3272         `->decomposition' attribute.
3273         (Fput_char_attribute): Likewise.
3274         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3275
3276 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3277
3278         * mule-charset.c (decoding_table_check_elements): New function.
3279         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3280
3281 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * mule-charset.c (Fset_charset_mapping_table): Use
3284         `put_char_ccs_code_point'.
3285
3286 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3287
3288         * mule-charset.c (decoding_table_put_char): New inline function.
3289         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3290
3291 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3292
3293         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3294         (XCHARSET_BYTE_SIZE): New macro.
3295         (decoding_table_remove_char): New inline function.
3296         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3297         `decoding_table_remove_char'.
3298         (remove_char_ccs): Use `decoding_table_remove_char'.
3299         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3300
3301 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3302
3303         * mule-charset.c (Vcharacter_name_table): New variable.
3304         (Qname): New variable.
3305         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3306         attribute.
3307         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3308         `Vcharacter_name_table' for `name' attribute.
3309         (Fremove_char_attribute): Use function `remove_char_ccs'.
3310         (put_char_ccs_code_point): New function.
3311         (remove_char_ccs): New function.
3312         (syms_of_mule_charset): Add new symbol `name'.
3313         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3314
3315 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3316
3317         * mule-charset.c (make_byte_table): Add new argument `older'.
3318         (make_char_id_table): Likewise.
3319         (copy_char_id_table): Comment out because it is not used.
3320         (put_char_id_table): Modify for `make_byte_table'.
3321         (Fput_char_attribute): Make encoding_table as older object;
3322         inherit older bit of `Vcharacter_composition_table'.
3323         (mark_charset): Don't mark `cs->encoding_table'.
3324         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3325         normal object; make `Vcharacter_composition_table' as an older
3326         object; delete staticpro for `Vcharacter_composition_table'; make
3327         `Vcharacter_variant_table' as a normal object.
3328
3329         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3330         (mark_object): Don't check older object in UTF-2000.
3331
3332         * lrecord.h (struct lrecord_header): Add new member `older' in
3333         UTF-2000.
3334         (set_lheader_implementation): Setup `SLI_header->older' in
3335         UTF-2000.
3336         (set_lheader_older_implementation): New macro in UTF-2000.
3337         (OLDER_RECORD_P): New macro in UTF-2000.
3338         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3339         (alloc_older_lcrecord): New prototype in UTF-2000.
3340         (alloc_older_lcrecord_type): New macro in UTF-2000.
3341
3342 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3343
3344         * mule-charset.c (byte_table_description): Use
3345         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3346         (char_id_table_description): Delete bogus `, 1'.
3347         (Fget_char_attribute): Refer encoding_table of each coded-charset
3348         to get value of coded-charset attribute of a character.
3349         (Fput_char_attribute): Use `make_older_vector' instead of
3350         `make_vector'; use encoding_table of each coded-charset to store
3351         value of coded-charset attribute of a character.
3352         (Fremove_char_attribute): Use encoding_table of each coded-charset
3353         to store value of coded-charset attribute of a character.
3354         (mark_charset): Mark `cs->encoding_table'; don't mark
3355         `cs->decoding_table'.
3356         (charset_description): Add description of new member
3357         `encoding_table'.
3358         (make_charset): Initialize `encoding_table'.
3359
3360         * char-ucs.h (struct Lisp_Charset): Add new member
3361         `encoding_table'.
3362         (CHARSET_ENCODING_TABLE): New macro.
3363         (XCHARSET_ENCODING_TABLE): New macro.
3364         (charset_code_point): New implementation.
3365         (encode_char_1): Likewise.
3366
3367         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3368         (disksave_object_finalization_1): Call finalizers of
3369         `all_older_lcrecords' in UTF-2000.
3370         (make_older_vector): New function in UTF-2000.
3371         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3372         UTF-2000.
3373
3374         * lisp.h (make_older_vector): New prototype in UTF-2000.
3375
3376 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3377
3378         * lrecord.h (enum lrecord_type): Rename
3379         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3380
3381         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3382         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3383         `get_char_code_table'.
3384
3385         * mule-charset.c (mark_char_id_table): Renamed from
3386         `mark_char_code_table'.
3387         (char_id_table_equal): Renamed from `char_code_table_equal'.
3388         (char_id_table_hash): Renamed from `char_code_table_hash'.
3389         (make_char_id_table): Renamed from `make_char_code_table'.
3390         (copy_char_id_table): Renamed from `copy_char_code_table'.
3391         (get_char_id_table): Renamed from `get_char_code_table'.
3392         (put_char_id_table): Renamed from `put_char_code_table'.
3393         (to_char_id): Renamed from `to_char_code'.
3394
3395         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3396         `Lisp_Char_Code_Table'.
3397         (char_id_table): Renamed from `char_code_table'.
3398         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3399         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3400         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3401         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3402         (get_char_id_table): Renamed from `get_char_code_table'.
3403
3404 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3405
3406         * lrecord.h (enum lrecord_type): Rename
3407         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3408
3409         * mule-charset.c (mark_byte_table): Renamed from
3410         `mark_char_byte_table'.
3411         (byte_table_equal): Renamed from `char_byte_table_equal'.
3412         (byte_table_hash): Renamed from `byte_table_hash'.
3413         (make_byte_table): Renamed from `make_byte_table'.
3414         (copy_byte_table): Renamed from `copy_char_byte_table'.
3415
3416         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3417         `Lisp_Char_Byte_Table'.
3418         (byte_table): Renamed from `char_byte_table'.
3419         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3420         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3421         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3422         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3423
3424 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3425
3426         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3427         (dfc_convert_to_internal_format): Likewise.
3428         
3429         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3430         * text-coding.c (Fcoding_system_alias_p): New function.
3431         * text-coding.c (Fcoding_system_aliasee): New function.
3432         * text-coding.c (append_suffix_to_symbol): New function.
3433         * text-coding.c (dangling_coding_system_alias_p): New function.
3434         * text-coding.c (Ffind_coding_system):
3435         * text-coding.c (Fcopy_coding_system):
3436         * text-coding.c (encode_coding_no_conversion):
3437         * text-coding.c (syms_of_file_coding):
3438         * text-coding.c (vars_of_file_coding):
3439         Rewrite coding system alias code.
3440         Allow nested aliases, like symbolic links.
3441         Allow redefinition of coding system aliases.
3442         Prevent existence of dangling coding system aliases.
3443         Eliminate convert_to_external_format.
3444         Eliminate convert_to_internal_format.
3445         
3446         * text-coding.c: Change enum eol_type to eol_type_t.
3447
3448 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3449
3450         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3451         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3452
3453         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3454         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3455
3456 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3457
3458         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3459         `ideograph-daikanwa'.
3460
3461         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3462         (Vcharset_ucs_bmp): Likewise.
3463         (Vcharset_mojikyo): Add new extern variable definition.
3464         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3465         (Vcharset_latin_iso8859_3): Likewise.
3466         (Vcharset_latin_iso8859_4): Likewise.
3467         (Vcharset_latin_iso8859_9): Likewise.
3468         (Vcharset_latin_viscii_lower): Likewise.
3469         (Vcharset_latin_viscii_upper): Likewise.
3470         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3471         `mojikyo' code-point is used to decode.
3472         (encode_char_2): New function [to convert `mojikyo' code-point to
3473         Mojikyo font encoding].
3474         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3475         (breakup_char_1): Likewise.
3476         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3477
3478 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3479
3480         * text-coding.c (Fmake_coding_system): Add document about
3481         `disable-composition' property.
3482
3483 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3484
3485         * text-coding.c (Qdisable_composition): New variable; delete
3486         `Qcomposite'.
3487         (Fmake_coding_system): Add new property `disable-composite';
3488         delete property `composite'.
3489         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3490         instead of `!CODING_SYSTEM_COMPOSITE'.
3491         (syms_of_file_coding): Add new symbol `disable-composition';
3492         delete symbol `composite'.
3493
3494         * file-coding.h (struct Lisp_Coding_System): Add
3495         `disable_composition'; delete `enable_composition'.
3496         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3497         `CODING_SYSTEM_COMPOSITE'.
3498         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3499         `XCODING_SYSTEM_COMPOSITE'.
3500
3501 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3502
3503         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3504         to 0.15.
3505
3506 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3507
3508         * text-coding.c (Qcomposite): New variable.
3509         (Fmake_coding_system): Add new property `composite'.
3510         (struct decoding_stream): Add `combined_char_count',
3511         `combined_chars' and `combining_table' in UTF-2000.
3512         (COMPOSE_FLUSH_CHARS): New macro.
3513         (COMPOSE_ADD_CHAR): New macro.
3514         (reset_decoding_stream): Reset `str->combined_char_count' and
3515         `str->combining_table' in UTF-2000.
3516         (decode_coding_iso2022): Modify for character-decomposition.
3517         (syms_of_file_coding): Add new symbol `composite'.
3518
3519 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3520
3521         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3522         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3523         of `Vcharacter_composition_table' if `->decomposition' property
3524         has only 1 element.
3525         (Qlatin_tcvn5712): New variable.
3526         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3527         (complex_vars_of_mule_charset): Add new coded-charset
3528         `latin-tcvn5712'.
3529
3530         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3531
3532 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3533
3534         * file-coding.h (struct Lisp_Coding_System): Add
3535         `enable_composition'.
3536         (CODING_SYSTEM_COMPOSITE): New macro.
3537         (XCODING_SYSTEM_COMPOSITE): New macro.
3538
3539 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3540
3541         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3542
3543 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3544
3545         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3546         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3547
3548 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3549
3550         * mule-charset.c (Vcharset_mojikyo): New variable.
3551         (Fdefine_char): Don't use coded-charset which does not have
3552         non-builtin character range to allocate character-id.
3553         (Qmojikyo): New variable.
3554         (syms_of_mule_charset): Add new symbol `mojikyo'.
3555         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3556
3557         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3558         (LEADING_BYTE_MOJIKYO): New macro.
3559         (MIN_CHAR_MOJIKYO): New macro.
3560         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3561         (MAX_CHAR_MOJIKYO): New macro.
3562
3563 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3564
3565         * mule-charset.c (remove_char_attribute): Fixed.
3566
3567 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3568
3569         * mule-charset.c (remove_char_attribute): New function.
3570         (Fremove_char_attribute): New function.
3571         (encode_builtin_char_1): Comment out builtin-support for
3572         greek-iso8859-7 and cyrillic-iso8859-5.
3573         (Fdecode_char): Check `code' is an integer.
3574         (syms_of_mule_charset): Add `remove-char-attribute'.
3575         (MIN_CHAR_GREEK): Deleted.
3576         (MAX_CHAR_GREEK): Likewise.
3577         (MIN_CHAR_CYRILLIC): Likewise.
3578         (MAX_CHAR_CYRILLIC): Likewise.
3579         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3580         MAX_CHAR_GREEK for `greek-iso8859-7'.
3581
3582         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3583         (MAX_CHAR_GREEK): Likewise.
3584         (MIN_CHAR_CYRILLIC): Likewise.
3585         (MAX_CHAR_CYRILLIC): Likewise.
3586
3587 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3588
3589         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3590         format is used without `ucs' property.
3591         (Fdecode_char): Fix problem with GR representation.
3592         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3593         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3594
3595 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3596
3597         * mule-charset.c (make_builtin_char): New function.
3598         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3599         (Fset_charset_mapping_table): Modify for new representation of
3600         code-point.
3601         (Fdecode_char): New function.
3602         (syms_of_mule_charset): Add new builtin function `decode-char' in
3603         UTF-2000.
3604
3605         * char-ucs.h (make_builtin_char): New prototype.
3606         (DECODE_CHAR): New inline function.
3607         (MAKE_CHAR): Use `DECODE_CHAR'.
3608
3609 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3610
3611         * text-coding.c (parse_charset_conversion_specs): Use
3612         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3613         `XCHARSET_TYPE'.
3614         (iso2022_designate): Likewise.
3615
3616         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3617         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3618
3619         * mule-charset.c (Vcharset_ucs): New variable.
3620         (print_charset): Change design; use `CHARSET_CHARS' and
3621         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3622         (make_charset): Change signature to specify `chars' and
3623         `dimension' instead of `type'.
3624         (range_charset_code_point): Modify for 256^n-set.
3625         (encode_builtin_char_1): Encode as `ucs' in default.
3626         (Fmake_charset): Modify for `make_charset'.
3627         (Fmake_reverse_direction_charset): Likewise.
3628         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3629         UTF-2000.
3630         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3631         for `make_charset'.
3632
3633         * char-ucs.h (Vcharset_ucs): New variable.
3634         (LEADING_BYTE_UCS): New macro.
3635         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3636         and `chars' to `unsigned short' from `unsigned int'.
3637         (CHARSET_TYPE): Deleted.
3638         (XCHARSET_TYPE): Deleted.
3639
3640 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3641
3642         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3643
3644         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3645         (ENCODE_CHAR): New macro.
3646
3647 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3648
3649         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3650         to 0.14 (Kawachi-Katakami).
3651
3652 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3653
3654         * text-coding.c (char_encode_shift_jis): Modify for
3655         `charset_code_point'.
3656         (char_encode_iso2022): Likewise.
3657
3658         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3659         (integer) instead of list of <Lisp_Object>s (integers) as the
3660         format of code-point of a coded-charset.
3661         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3662         (encode_builtin_char_1): New function; delete
3663         `split_builtin_char'.
3664         (charset_code_point): Return <int> instead of <Lisp_Object>.
3665         (Fsplit_char): Don't use `SPLIT_CHAR'.
3666
3667         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3668         prototype for `split_builtin_char'.
3669         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3670         (charset_code_point): Likewise.
3671         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3672         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3673
3674 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3675
3676         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3677         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3678
3679 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3680
3681         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3682
3683         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3684         (MAX_CHAR_OBS_94x94): Deleted.
3685
3686 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3687
3688         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3689
3690         * char-ucs.h (MAX_CHAR_BMP): New macro.
3691
3692 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * text-coding.c: Sync with r21-2-24.
3695
3696 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3697
3698         * file-coding.c: Modify for UTF-2000.
3699
3700 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3701
3702         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3703         to 0.13 (Takaida).
3704
3705 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3706
3707         * mule-charset.c (split_builtin_char): Delete builtin support for
3708         `katakana-jisx0201'.
3709         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3710         BMP area in builtin representation.
3711
3712         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3713         `Vcharset_katakana_jisx0201'.
3714
3715 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3716
3717         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3718         (Qisolated): New variable.
3719         (Qinitial): New variable.
3720         (Qmedial): New variable.
3721         (Qfinal): New variable.
3722         (Qvertical): New variable.
3723         (Qsmall): New variable.
3724         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3725         `Qvertical' and `Qsmall'.
3726         (Qmojikyo_pj_[1 .. 21]): New variable.
3727         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3728         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3729         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3730         .. 21]'.
3731
3732 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3733
3734         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3735         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3736         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3737
3738 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3739
3740         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3741         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3742         BMP.
3743         (Qjapanese_jisx0208_1990): New variable.
3744         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3745         (complex_vars_of_mule_charset): Add new coded-charset
3746         `japanese-jisx0208-1990'.
3747
3748         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3749         (MIN_CHAR_JIS_X0208_1990): New macro.
3750         (MAX_CHAR_JIS_X0208_1990): New macro.
3751
3752 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3753
3754         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3755         coded-charset is not found.
3756
3757 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3758
3759         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3760         (Fdefine_char): Use `Fmake_char'.
3761
3762 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3763
3764         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3765         (Vcharset_hiragana_jisx0208): Deleted.
3766         (Vcharset_katakana_jisx0208): Deleted.
3767         (Qideograph_daikanwa): New variable.
3768         (Qhiragana_jisx0208): Deleted.
3769         (Qkatakana_jisx0208): Deleted.
3770         (split_builtin_char): Split `ideograph-daikanwa'.
3771         (Fsplit_char): New implementation for UTF-2000.
3772         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3773         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3774         (complex_vars_of_mule_charset): Add new coded-charset
3775         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3776         `katakana-jisx0208'.
3777
3778         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3779         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3780         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3781         (MIN_CHAR_DAIKANWA): New macro.
3782         (MAX_CHAR_DAIKANWA): New macro.
3783
3784 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3785
3786         * data.c (Fstring_to_number): Don't recognize floating point if
3787         base is not 10.
3788
3789 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3790
3791         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3792
3793 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3794
3795         * mule-charset.c (Qsquare): New variable.
3796         (to_char_code): Add `Qsquare'.
3797         (syms_of_mule_charset): Add new symbol `square'.
3798
3799 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3800
3801         * mule-charset.c (Qcircle): New variable.
3802         (to_char_code): Add `Qcircle'.
3803         (syms_of_mule_charset): Add new symbol `circle'.
3804
3805 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3806
3807         * mule-charset.c (Qfont): New variable.
3808         (to_char_code): Add `Qfont'.
3809         (syms_of_mule_charset): Add new symbol `font'.
3810
3811 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3812
3813         * mule-charset.c (Qsub): New variable.
3814         (to_char_code): Add `Qsub'.
3815         (syms_of_mule_charset): Add new symbol `sub'.
3816
3817 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3818
3819         * mule-charset.c (Fput_char_attribute): Convert each element of
3820         VALUE to GL position if ATTRIBUTE is a GR-set,
3821
3822 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3823
3824         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3825         coded-charset is a GR-set.
3826
3827 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3828
3829         * mule-charset.c (Fput_char_attribute): Check each element of
3830         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3831
3832 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3833
3834         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3835         UTF-2000.
3836         (Qethiopic_ucs): New variable in UTF-2000.
3837         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3838         (complex_vars_of_mule_charset): Add new coded-charset
3839         `ethiopic-ucs' in UTF-2000.
3840
3841         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3842         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3843         9)'.
3844         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3845         10)'.
3846         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3847
3848 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3849
3850         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3851         `ascii'.
3852
3853 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3854
3855         * mule-charset.c (Vcharacter_variant_table): New variable.
3856         (Q_ucs): New variable.
3857         (Fchar_variants): New function.
3858         (Fput_char_attribute): Register `->ucs' value to
3859         `Vcharacter_variant_table'.
3860         (syms_of_mule_charset): Add new function `char-variants' and new
3861         symbol `->ucs'.
3862         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3863
3864 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3865
3866         * mule-charset.c (get_char_code_table): Allow negative character
3867         code.
3868         (put_char_code_table): Likewise.
3869         (Vcharacter_composition_table): New variable.
3870         (Q_decomposition): New variable.
3871         (Qwide): New variable.
3872         (Qnarrow): New variable.
3873         (Qcompat): New variable.
3874         (QnoBreak): New variable.
3875         (Qsuper): New variable.
3876         (Qfraction): New variable.
3877         (to_char_code): New function.
3878         (Fget_composite_char): New function.
3879         (Fput_char_attribute): Register `->decomposition' value to
3880         `Vcharacter_composition_table'.
3881         (syms_of_mule_charset): Add new function `get-composite-char', new
3882         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3883         `super' and `fraction'.
3884         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3885
3886 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3887
3888         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3889         character; copy the return value.
3890
3891 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3892
3893         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3894
3895         * mule-charset.c (range_charset_code_point): Must use make_int.
3896         (split_builtin_char): New function.
3897
3898 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3899
3900         * mule-charset.c (char_byte_table): Change name from
3901         "char-code-table" to "char-byte-table".
3902         (mark_char_code_table): New function.
3903         (char_code_table_equal): New function.
3904         (char_code_table_hash): New function.
3905         (char_code_table_description): New constant.
3906         (char_code_table): New type.
3907         (make_char_code_table): New function.
3908         (copy_char_code_table): New function.
3909         (get_char_code_table): Modify for `char_code_table' type.
3910         (put_char_code_table): Likewise.
3911         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3912         (Kashiwara).
3913
3914         * char-ucs.h (char_code_table): New type.
3915         (XCHAR_CODE_TABLE): New macro.
3916         (XSETCHAR_CODE_TABLE): New macro.
3917         (CHAR_CODE_TABLE_P): New macro.
3918         (GC_CHAR_CODE_TABLE_P): New macro.
3919         (struct Lisp_Char_Code_Table): New structure.
3920
3921 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3922
3923         * mule-charset.c (Fmake_charset): Setup byte_offset for
3924         {94|96}^n-set.
3925
3926 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3927
3928         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3929         character.
3930
3931 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3932
3933         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3934         is found.
3935
3936 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3937
3938         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3939         charset, it is regarded as a charset.
3940         (put_char_attribute): New function in UTF-2000.
3941         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3942         charset, mapping-table of the charset is modified.
3943         (Fdefine_char): New function in UTF-2000.
3944         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3945         `Fput_char_attribute'.
3946         (syms_of_mule_charset): Add new function `define-char' and new
3947         symbol `ucs' in UTF-2000.
3948         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3949
3950 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3951
3952         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3953         non-UTF-2000 configuration.
3954
3955 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3956
3957         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3958         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3959
3960         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3961         deleted.
3962         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3963         (Fset_charset_mapping_table): Likewise.
3964
3965         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3966         (CHARSET_ENCODING_TABLE): Delete.
3967         (XCHARSET_ENCODING_TABLE): Delete.
3968         (charset_code_point): New interface.
3969
3970 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3971
3972         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3973         instead of `charset_get_byte1' and `charset_get_byte2'.
3974
3975         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3976         (charset_get_byte2): Deleted.
3977
3978 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3979
3980         * char-ucs.h (SPLIT_CHAR): New inline function.
3981         (breakup_char_1): Use `SPLIT_CHAR'.
3982
3983         * mule-charset.c (range_charset_code_point): New function.
3984         (charset_code_point): New function.
3985
3986         * char-ucs.h (range_charset_code_point): New interface.
3987         (breakup_char_1): Use `range_charset_code_point'.
3988
3989 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * mule-charset.c (Fmake_charset): Delete unused local variable
3992         `code_offset'.
3993
3994         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3995         (breakup_char_1): Find a charset and code-point in
3996         `Vcharacter_attribute_table'.
3997
3998 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3999
4000         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4001         to 0.10 (Yao).
4002
4003 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4004
4005         * mule-charset.c (Vcharacter_attribute_table): New variable.
4006         (Fchar_attribute_alist): New function.
4007         (Fget_char_attribute): New function.
4008         (Fput_char_attribute): New function.
4009         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4010         too.
4011         (syms_of_mule_charset): Add new function `char-attribute-alist',
4012         `get-char-attribute' and `put-char-attribute'.
4013         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4014
4015 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4016
4017         * mule-charset.c (Fmake_charset): Just use
4018         `get_unallocated_leading_byte'.
4019
4020         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4021         sets; don't use final-byte based number for private sets.
4022
4023 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4024
4025         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4026         integer.
4027
4028 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4029
4030         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4031         to 0.9.
4032
4033 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4034
4035         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4036         of `CHAR_LEADING_BYTE' in UTF-2000.
4037
4038         * insdel.c (find_charsets_in_bufbyte_string): Use
4039         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4040         (find_charsets_in_emchar_string): Likewise.
4041
4042         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4043         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4044
4045         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4046         (CHAR_CHARSET_ID): New macro.
4047
4048 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4049
4050         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4051         charset-id - MIN_LEADING_BYTE.
4052         (put_char_table): Likewise.
4053
4054 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4055
4056         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4057         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4058         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4059         (CHARSET_ID_OFFSET): New macro.
4060         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4061         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4062         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4063         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4064         4).
4065         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4066         5).
4067         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4068         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4069         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4070         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4071         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4072
4073 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4074
4075         * mule-charset.c (next_allocated_leading_byte): New variable in
4076         UTF-2000.
4077         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4078         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4079         (get_unallocated_leading_byte): Simply use
4080         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4081         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4082         UTF-2000.
4083
4084         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4085         (MAX_LEADING_BYTE_PRIVATE): New macro.
4086         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4087         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4088
4089 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4090
4091         * mule-charset.c (Fmake_charset): Allocate final-byte based
4092         charset-id for 94-set, 96-set and 94x94-set.
4093
4094 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4095
4096         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4097         ambiguous `else'.
4098         (Fmake_charset): Likewise.
4099         (complex_vars_of_mule_charset): Modify the font registry of
4100         `ucs-bmp' not to match `Ethiopic-Unicode'.
4101
4102 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4103
4104         * mule-charset.c (complex_vars_of_mule_charset): Add font
4105         registory of `ucs-bmp'.
4106
4107 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4108
4109         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4110         coded-charsets in `default-coded-charset-priority-list' when
4111         breaking up a character.
4112
4113         * mule-charset.c (Vcharset_latin_viscii): New variable.
4114         (Qlatin_viscii): New variable.
4115         (make_charset): Don't use `decoding_table'.
4116         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4117         byte_offset.
4118         (Fset_charset_mapping_table): New implementation.
4119         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4120         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4121         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4122         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4123         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4124         charset `latin_viscii'.
4125
4126         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4127         (CHARSET_TYPE_94X94): Change to 1 from 2.
4128         (CHARSET_TYPE_96): Change to 2 from 1.
4129         (CHARSET_TYPE_128): New macro.
4130         (CHARSET_TYPE_128X128): Change to 5 from 4.
4131         (CHARSET_TYPE_256): New macro.
4132         (CHARSET_TYPE_256X256): Change to 7 from 5.
4133         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4134
4135 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4136
4137         * text-coding.c (char_encode_shift_jis): Refer
4138         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4139         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4140
4141         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4142         (char_byte_table_equal): New function in UTF-2000.
4143         (char_byte_table_hash): New function in UTF-2000.
4144         (char_byte_table_description): New constant in UTF-2000.
4145         (char_byte_table): New type in UTF-2000.
4146         (make_char_byte_table): New function in UTF-2000.
4147         (copy_char_byte_table): New function in UTF-2000.
4148         (make_char_code_table): New macro in UTF-2000.
4149         (get_char_code_table): New function in UTF-2000.
4150         (put_char_code_table): New function in UTF-2000.
4151         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4152         (charset_description): Add setting in UTF-2000.
4153         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4154         `CHARSET_TO_BYTE1_TABLE(cs)'.
4155         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4156         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4157         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4158         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4159         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4160         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4161         `CHARSET_TO_BYTE2_TABLE(cs)'.
4162
4163         * char-ucs.h (char_byte_table): New type.
4164         (XCHAR_BYTE_TABLE): New macro.
4165         (XSETCHAR_BYTE_TABLE): New macro.
4166         (CHAR_BYTE_TABLE_P): New macro.
4167         (GC_CHAR_BYTE_TABLE_P): New macro.
4168         (struct Lisp_Char_Byte_Table): New structure.
4169         (get_char_code_table): New interface.
4170         (Emchar_to_byte_table): Deleted.
4171         (get_byte_from_character_table): Deleted.
4172         (struct Lisp_Charset): Add `encoding_table'; delete
4173         `to_byte1_table' and `to_byte2_table'.
4174         (CHARSET_ENCODING_TABLE): New macro.
4175         (CHARSET_TO_BYTE1_TABLE): Deleted.
4176         (CHARSET_TO_BYTE2_TABLE): Deleted.
4177         (XCHARSET_ENCODING_TABLE): New macro.
4178         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4179         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4180
4181 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4182
4183         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4184         `vietnamese-viscii-*'.
4185
4186 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4187
4188         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4189         (Qvietnamese_viscii_upper): New variable.
4190         (Fdefine_charset_alias): New function.
4191         (syms_of_mule_charset): Add new function `define-charset-alias'.
4192         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4193         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4194         `latin-viscii-*'.
4195
4196 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4197
4198         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4199         (MAX_CHAR_OBS_94x94): New macro.
4200         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4201         for 94x94 sets.
4202
4203         * mule-charset.c (put_byte_from_character_table): Change unit size
4204         from 128 to 256.
4205         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4206         not defined.
4207         (Fmake_reverse_direction_charset): Modify dummy argument of
4208         `make_charset' for non-UTF-2000 environment.
4209
4210 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4211
4212         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4213
4214         * mule-charset.c (destroy_byte_from_character_table): New macro.
4215         (latin_jisx0201_to_ucs): Deleted.
4216         (latin_iso8859_2_to_ucs): Deleted.
4217         (latin_iso8859_3_to_ucs): Deleted.
4218         (latin_iso8859_4_to_ucs): Deleted.
4219         (latin_iso8859_9_to_ucs): Deleted.
4220         (latin_viscii_lower_to_ucs): Deleted.
4221         (latin_viscii_upper_to_ucs): Deleted.
4222         (mark_charset): Mark `cs->decoding_table'.
4223         (Fcharset_mapping_table): Fix DOC-string.
4224         (Fset_charset_mapping_table): New function.
4225         (syms_of_mule_charset): Add nwe function
4226         `set-charset-mapping-table'.
4227         (complex_vars_of_mule_charset): Don't setup and use
4228         `latin_*_to_ucs'.
4229
4230 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4231
4232         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4233         charset.
4234
4235 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4236
4237         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4238         (Vcharset_katakana_jisx0208): New variable.
4239         (Qhiragana_jisx0208): New variable.
4240         (Qkatakana_jisx0208): New variable.
4241         (make_charset): Add new argument `byte_offset'.
4242         (charset_get_byte1): Modify for new coded-charset definition; use
4243         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4244         `XCHARSET_BYTE_OFFSET'.
4245         (Fmake_charset): Modify for `make_charset'.
4246         (Fmake_reverse_direction_charset): Likewise.
4247         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4248         `katakana-jisx0208'.
4249         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4250         `.'  in font registry of charset `katakana-jisx0201',
4251         `latin-jisx0201', `vietnamese-viscii-lower' and
4252         `vietnamese-viscii-upper'; modify DOC-string of charset
4253         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4254         registry of charset `japanese-jisx0208' not to use font for JIS
4255         X0208:1990; add new charset `hiragana-jisx0208' and
4256         `katakana-jisx0208'.
4257
4258         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4259         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4260         (struct Lisp_Charset): Add `byte_offset'.
4261         (CHARSET_BYTE_OFFSET): New macro.
4262         (XCHARSET_UCS_MIN): New macro.
4263         (XCHARSET_UCS_MAX): New macro.
4264         (XCHARSET_CODE_OFFSET): New macro.
4265         (XCHARSET_BYTE_OFFSET): New macro.
4266         (MIN_CHAR_HIRAGANA): New macro.
4267         (MAX_CHAR_HIRAGANA): New macro.
4268         (MIN_CHAR_KATAKANA): New macro.
4269         (MAX_CHAR_KATAKANA): New macro.
4270         (MAKE_CHAR): Modify for new coded-charset definition; use
4271         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4272         `XCHARSET_BYTE_OFFSET'.
4273
4274 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4275
4276         * mule-charset.c (CHAR96): Deleted.
4277         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4278         <Lisp_Object>.
4279         (latin_iso8859_2_to_ucs): Likewise.
4280         (latin_iso8859_3_to_ucs): Likewise.
4281         (latin_iso8859_4_to_ucs): Likewise.
4282         (latin_iso8859_9_to_ucs): Likewise.
4283         (latin_viscii_lower_to_ucs): Likewise.
4284         (latin_viscii_upper_to_ucs): Likewise.
4285         (latin_tcvn5712_to_ucs): Commented out.
4286         (make_charset): Change type of argument `decoding_table' from
4287         <Emchar*> to <Lisp_Object> [vector of characters].
4288         (Fmake_charset): Modify for `make_charset'.
4289         (Fmake_reverse_direction_charset): Likewise.
4290         (Fcharset_mapping_table): New function in UTF-2000.
4291         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4292         UTF-2000.
4293         (complex_vars_of_mule_charset): Modify for type change of
4294         `*_to_ucs'; modify for `make_charset'.
4295
4296         * char-ucs.h (struct Lisp_Charset): Change type of
4297         `decoding_table' from <Emchar*> to <Lisp_Object>.
4298         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4299
4300 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4301
4302         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4303         error with non-UTF-2000-Mule.
4304
4305 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4306
4307         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4308         in lisp again].
4309         (Vcharset_chinese_cns11643_4): Likewise.
4310         (Vcharset_chinese_cns11643_5): Likewise.
4311         (Vcharset_chinese_cns11643_6): Likewise.
4312         (Vcharset_chinese_cns11643_7): Likewise.
4313         (Qchinese_cns11643_3): Likewise.
4314         (Qchinese_cns11643_4): Likewise.
4315         (Qchinese_cns11643_5): Likewise.
4316         (Qchinese_cns11643_6): Likewise.
4317         (Qchinese_cns11643_7): Likewise.
4318         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4319         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4320         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4321         (complex_vars_of_mule_charset): Likewise.
4322
4323 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4324
4325         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4326         96-set.
4327         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4328         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4329
4330 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4331
4332         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4333         0xFF60.
4334         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4335         (breakup_char_1): Likewise.
4336
4337         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4338         one of them includes the specified character.
4339
4340 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4341
4342         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4343
4344 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4345
4346         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4347
4348 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4349
4350         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4351         definition for non-UTF-2000 Mule.
4352         (latin_iso8859_3_to_ucs): Likewise.
4353         (latin_iso8859_4_to_ucs): Likewise.
4354         (latin_iso8859_9_to_ucs): Likewise.
4355         (latin_jisx0201_to_ucs): Likewise.
4356         (MIN_CHAR_THAI): Likewise.
4357         (MAX_CHAR_THAI): Likewise.
4358         (MIN_CHAR_GREEK): Likewise.
4359         (MAX_CHAR_GREEK): Likewise.
4360         (MIN_CHAR_HEBREW): Likewise.
4361         (MAX_CHAR_HEBREW): Likewise.
4362         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4363         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4364         (MIN_CHAR_CYRILLIC): Likewise.
4365         (MAX_CHAR_CYRILLIC): Likewise.
4366
4367 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4368
4369         * char-ucs.h (breakup_char_1): Use
4370         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4371         thai-tis620 and katakana-jisx0201 area.
4372
4373 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4374
4375         * char-ucs.h (breakup_char_1): Use
4376         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4377         area.
4378
4379         * text-coding.c (reset_encoding_stream): Fixed.
4380         (char_encode_ucs4): Delete `& 255'.
4381
4382         * char-ucs.h (breakup_char_1): Use
4383         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4384
4385 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4386
4387         * file-coding.c (Fmake_coding_system): Don't set up
4388         `codesys->fixed.size'.
4389         (encode_coding_no_conversion): Don't refer
4390         `str->codesys->fixed.size'.
4391
4392 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4393
4394         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4395         (latin_a_char_to_byte1): Deleted.
4396         (latin_a_char_to_byte2): Deleted.
4397
4398 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4399
4400         * mule-charset.c (make_charset): Add new argument `ucs_min',
4401         `ucs_max' and `code_offset'.
4402         (charset_get_byte1): New implementation [delete specific charset
4403         depended implementations].
4404         (Fmake_charset): Modify for `make_charset'.
4405         (Fmake_reverse_direction_charset): Likewise.
4406         (complex_vars_of_mule_charset): Likewise.
4407
4408         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4409         `code_offset'.
4410         (CHARSET_UCS_MIN): New macro.
4411         (CHARSET_UCS_MAX): New macro.
4412         (CHARSET_CODE_OFFSET): New macro.
4413         (MAKE_CHAR): Delete charset depended definitions [except
4414         katakana-jisx0201].
4415
4416 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4417
4418         * char-ucs.h (breakup_char_1): Use
4419         `Vdefault_coded_charset_priority_list' for C0-Controls,
4420         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4421
4422 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4423
4424         * char-ucs.h (charset_get_byte1): New function.
4425         (XCHARSET_GET_BYTE1): Deleted.
4426         (charset_get_byte2): New function.
4427         (XCHARSET_GET_BYTE2): Deleted.
4428         (Vdefault_coded_charset_priority_list): New external variable.
4429         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4430         `Vdefault_preferred_coded_charset_list'.
4431
4432         * mule-charset.c (charset_get_byte1): New function.
4433         (charset_get_byte2): New function.
4434         (Vdefault_coded_charset_priority_list): New variable.
4435         (vars_of_mule_charset): Add new variable
4436         `default-coded-charset-priority-list'.
4437
4438 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4439
4440         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4441         (XCHARSET_GET_BYTE2): New inline function.
4442         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4443         `XCHARSET_GET_BYTE2'.
4444
4445 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4446
4447         * mule-charset.c (make_charset): Initialize
4448         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4449         NULL if table is not defined.
4450
4451 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4452
4453         * text-coding.c (char_encode_shift_jis): Use
4454         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4455         `ucs_to_latin_jisx0201'.
4456
4457         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4458         (ucs_to_latin_iso8859_2): Deleted.
4459         (ucs_to_latin_iso8859_3): Deleted.
4460         (ucs_to_latin_iso8859_4): Deleted.
4461         (ucs_to_latin_iso8859_9): Deleted.
4462         (ucs_to_latin_viscii_lower): Deleted.
4463         (ucs_to_latin_viscii_upper): Deleted.
4464         (ucs_to_latin_tcvn5712): Deleted.
4465         (make_charset): Add new argument `decoding_table'; set up
4466         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4467         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4468         `decoding_table' is defined in UTF-2000.
4469         (Fmake_charset): Modify for `make_charset'.
4470         (Fmake_reverse_direction_charset): Likewise.
4471         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4472         and `GENERATE_96_SET'.
4473
4474         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4475         (ucs_to_latin_jisx0201): Deleted.
4476         (latin_iso8859_2_to_ucs): Deleted.
4477         (ucs_to_latin_iso8859_2): Deleted.
4478         (latin_iso8859_3_to_ucs): Deleted.
4479         (ucs_to_latin_iso8859_3): Deleted.
4480         (latin_iso8859_4_to_ucs): Deleted.
4481         (ucs_to_latin_iso8859_4): Deleted.
4482         (latin_iso8859_9_to_ucs): Deleted.
4483         (ucs_to_latin_iso8859_9): Deleted.
4484         (latin_viscii_lower_to_ucs): Deleted.
4485         (ucs_to_latin_viscii_lower): Deleted.
4486         (latin_viscii_upper_to_ucs): Deleted.
4487         (ucs_to_latin_viscii_upper): Deleted.
4488         (struct Lisp_Charset): Renamed `encoding_table' to
4489         `to_byte1_table'; add `to_byte2_table'.
4490         (CHARSET_DECODING_TABLE): New macro.
4491         (CHARSET_TO_BYTE1_TABLE): New macro.
4492         (CHARSET_TO_BYTE2_TABLE): New macro.
4493         (XCHARSET_DECODING_TABLE): New macro.
4494         (XCHARSET_TO_BYTE1_TABLE): New macro.
4495         (XCHARSET_TO_BYTE2_TABLE): New macro.
4496         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4497         tables.
4498         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4499         don't use `ucs_to_*' tables.
4500
4501 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4502
4503         * text-coding.c (Fmake_coding_system): Don't set up
4504         `codesys->fixed.size'.
4505         (encode_coding_no_conversion): Use `if' instead of `switch'.
4506
4507         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4508
4509 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4510
4511         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4512         (Fmake_charset): Modify for `make_charset'.
4513         (Fmake_reverse_direction_charset): Likewise.
4514         (complex_vars_of_mule_charset): Likewise.
4515
4516 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4517
4518         * text-coding.c (char_encode_shift_jis): Use table
4519         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4520
4521 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4522
4523         * text-coding.c (text_encode_generic): Use `if' instead of
4524         `switch'.
4525         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4526         decode JIS-Latin.
4527
4528 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4529
4530         * text-coding.c (encode_coding_sjis): Deleted.
4531         (char_encode_shift_jis): New function.
4532         (char_finish_shift_jis): New function.
4533         (reset_encoding_stream): Set up `encode_char' and `finish' for
4534         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4535         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4536         (char_encode_utf8): Treat `eol_type'.
4537
4538 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4539
4540         * file-coding.c (decode_coding_iso2022): Use
4541         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4542
4543 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4544
4545         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4546         to 0.7 (Hirano).
4547
4548 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4549
4550         * char-lb.h (CHAR_COLUMNS): New macro.
4551
4552 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4553
4554         * text-coding.c (char_encode_ucs4): New function.
4555         (char_finish_ucs4): New function.
4556         (encode_coding_ucs4): Deleted.
4557         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4558         (text_encode_generic): Delete local variable `charset' and `half'.
4559         (ucs_to_mule_table): Deleted.
4560         (mule_to_ucs_table): Deleted.
4561         (Fset_ucs_char): Deleted.
4562         (ucs_to_char): Deleted.
4563         (Fucs_char): Deleted.
4564         (Fset_char_ucs): Deleted.
4565         (Fchar_ucs): Deleted.
4566         (decode_ucs4): Deleted.
4567         (mule_char_to_ucs4): Deleted.
4568         (encode_ucs4): Deleted.
4569         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4570         (decode_coding_utf8): Likewise.
4571         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4572         (char_encode_iso2022): Fixed.
4573         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4574         `Fset_char_ucs' and `Fchar_ucs'.
4575         (complex_vars_of_file_coding): Don't initialize
4576         `ucs_to_mule_table'.
4577
4578         * objects-tty.c (tty_initialize_font_instance): Don't use
4579         `XCHARSET_COLUMNS'.
4580
4581         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4582         UTF-2000.
4583
4584         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4585         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4586
4587         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4588         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4589         (emchar_string_displayed_columns): Likewise.
4590
4591         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4592         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4593         (string_column_at_point): Likewise.
4594         (Fmove_to_column): Likewise.
4595
4596         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4597         `encoding_table' and `decoding_table'.
4598         (CHARSET_REP_BYTES): Deleted.
4599         (XCHARSET_REP_BYTES): Deleted.
4600         (XCHARSET_COLUMNS): Deleted.
4601         (CHAR_COLUMNS): New macro.
4602         (lookup_composite_char): Deleted unconditionally.
4603         (composite_char_string): Likewise.
4604
4605 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4606
4607         * char-ucs.h (Emchar_to_byte_table): New type.
4608         (get_byte_from_character_table): New function interface.
4609         (Vcharset_latin_jisx0201): New variable.
4610         (latin_jisx0201_to_ucs): New variable.
4611         (ucs_to_latin_jisx0201): New variable.
4612         (Vcharset_latin_iso8859_2): New variable.
4613         (latin_iso8859_2_to_ucs): New variable.
4614         (ucs_to_latin_iso8859_2): New variable.
4615         (Vcharset_latin_iso8859_3): New variable.
4616         (latin_iso8859_3_to_ucs): New variable.
4617         (ucs_to_latin_iso8859_3): New variable.
4618         (Vcharset_latin_iso8859_4): New variable.
4619         (latin_iso8859_4_to_ucs): New variable.
4620         (ucs_to_latin_iso8859_4): New variable.
4621         (Vcharset_latin_iso8859_9): New variable.
4622         (latin_iso8859_9_to_ucs): New variable.
4623         (ucs_to_latin_iso8859_9): New variable.
4624         (Vcharset_latin_viscii_lower): New variable.
4625         (latin_viscii_lower_to_ucs): New variable.
4626         (ucs_to_latin_viscii_lower): New variable.
4627         (Vcharset_latin_viscii_upper): New variable.
4628         (latin_viscii_upper_to_ucs): New variable.
4629         (ucs_to_latin_viscii_upper): New variable.
4630         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4631         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4632         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4633         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4634         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4635         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4636         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4637         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4638         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4639         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4640
4641         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4642         (Vcharset_latin_viscii_upper): New variable.
4643         (make_byte_from_character_table): New function.
4644         (put_byte_from_character_table): New function.
4645         (get_byte_from_character_table): New function.
4646         (CHAR96): New macro.
4647         (ucs_to_latin_jisx0201): New variable.
4648         (latin_jisx0201_to_ucs): New variable.
4649         (ucs_to_latin_iso8859_2): New variable.
4650         (latin_iso8859_2_to_ucs): New variable.
4651         (ucs_to_latin_iso8859_3): New variable.
4652         (latin_iso8859_3_to_ucs): New variable.
4653         (ucs_to_latin_iso8859_4): New variable.
4654         (latin_iso8859_4_to_ucs): New variable.
4655         (ucs_to_latin_iso8859_9): New variable.
4656         (latin_iso8859_9_to_ucs): New variable.
4657         (ucs_to_latin_viscii_lower): New variable.
4658         (latin_viscii_lower_to_ucs): New variable.
4659         (ucs_to_latin_viscii_upper): New variable.
4660         (latin_viscii_upper_to_ucs): New variable.
4661         (ucs_to_latin_tcvn5712): New variable.
4662         (latin_tcvn5712_to_ucs): New variable.
4663         (Qlatin_viscii_lower): New variable.
4664         (Qlatin_viscii_upper): New variable.
4665         (syms_of_mule_charset): Set up new symbol
4666         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4667         (complex_vars_of_mule_charset): Set up new charset
4668         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4669         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4670         `ucs_to_<CHARSET>' tables.
4671
4672 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4673
4674         * text-coding.c: New file.
4675
4676 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4677
4678         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4679
4680         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4681         (MAKE_CHAR): Modify for `ucs-bmp'.
4682         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4683         non-MULE characters of BMP.
4684
4685 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4686
4687         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4688         to 0.6.
4689
4690 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4691
4692         * lstream.h:
4693         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4694         - Include character.h for `CHAR_ASCII_P'.
4695
4696         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4697
4698         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4699         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4700
4701         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4702         (BYTE_C0_P): Likewise.
4703         (BYTE_C1_P): Likewise.
4704         (Lstream_get_emchar_1): Likewise.
4705         (Lstream_fput_emchar): Likewise.
4706         (Lstream_funget_emchar): Likewise.
4707         (copy_internal_to_external): Likewise.
4708         (copy_external_to_internal): Likewise.
4709
4710         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4711         (BYTE_C0_P): Likewise.
4712         (BYTE_C1_P): Likewise.
4713         (Lstream_get_emchar_1): Likewise.
4714         (Lstream_fput_emchar): Likewise.
4715         (Lstream_funget_emchar): Likewise.
4716         (copy_internal_to_external): Likewise.
4717         (copy_external_to_internal): Likewise.
4718
4719         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4720         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4721
4722         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4723         (BYTE_ASCII_P): Moved to mb-1byte.h.
4724
4725 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4726
4727         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4728
4729         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4730         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4731         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4732         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4733         (VALIDATE_CHARPTR_FORWARD): Likewise.
4734         (simple_charptr_emchar): Moved to mb-multibyte.h.
4735         (simple_set_charptr_emchar): Likewise.
4736         (simple_charptr_copy_char): Likewise.
4737         (non_ascii_charptr_emchar): Likewise.
4738         (non_ascii_set_charptr_emchar): Likewise.
4739         (non_ascii_charptr_copy_char): Likewise.
4740         (charptr_emchar): Moved to mb-*byte.h.
4741         (set_charptr_emchar): Likewise.
4742         (charptr_copy_char): Likewise.
4743
4744         * mb-1byte.h, mb-multibyte.h: New files.
4745
4746 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4747
4748         * mb-utf-8.h (MULTIBYTE): New macro.
4749         (MAX_EMCHAR_LEN): Moved from buffer.h.
4750         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4751
4752         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4753
4754         * mb-lb.h, multibyte.h: New files.
4755
4756         * char-1byte.h (Charset_ID): Moved from buffer.h.
4757         (MIN_LEADING_BYTE): Likewise.
4758         (LEADING_BYTE_ASCII): Likewise.
4759         (NUM_LEADING_BYTES): Likewise.
4760         (CHARSETP): Likewise.
4761         (CHARSET_BY_LEADING_BYTE): Likewise.
4762         (XCHARSET_LEADING_BYTE): Likewise.
4763         (XCHARSET_GRAPHIC): Likewise.
4764         (XCHARSET_COLUMNS): Likewise.
4765         (XCHARSET_DIMENSION): Likewise.
4766         (CHAR_CHARSET): Likewise.
4767         (CHAR_LEADING_BYTE): Likewise.
4768         (BREAKUP_CHAR): Likewise.
4769         (Vcharset_ascii): Likewise.
4770
4771         * buffer.h: Include multibyte.h unconditionally.
4772         (VALID_CHARPTR_P): Moved to multibyte.h.
4773         (ASSERT_VALID_CHARPTR): Likewise.
4774         (REAL_INC_CHARPTR): Likewise.
4775         (REAL_INC_CHARBYTIND): Likewise.
4776         (REAL_DEC_CHARPTR): Likewise.
4777         (INC_CHARPTR): Likewise.
4778         (INC_CHARBYTIND): Likewise.
4779         (DEC_CHARPTR): Likewise.
4780         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4781         (VALIDATE_CHARPTR_FORWARD): Likewise.
4782         (charptr_n_addr): Likewise.
4783         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4784         (simple_charptr_emchar): Moved to multibyte.h.
4785         (simple_set_charptr_emchar): Likewise.
4786         (simple_charptr_copy_char): Likewise.
4787         (non_ascii_charptr_emchar): Likewise.
4788         (non_ascii_set_charptr_emchar): Likewise.
4789         (non_ascii_charptr_copy_char): Likewise.
4790         (charptr_emchar): Likewise.
4791         (set_charptr_emchar): Likewise.
4792         (charptr_copy_char): Likewise.
4793         (charptr_emchar_n): Likewise.
4794         (Charset_ID): Moved to char-1byte.h.
4795         (Vcharset_ascii): Likewise.
4796         (CHAR_CHARSET): Likewise.
4797         (CHAR_LEADING_BYTE): Likewise.
4798         (LEADING_BYTE_ASCII): Likewise.
4799         (NUM_LEADING_BYTES): Likewise.
4800         (MIN_LEADING_BYTE): Likewise.
4801         (CHARSETP): Likewise.
4802         (CHARSET_BY_LEADING_BYTE): Likewise.
4803         (XCHARSET_LEADING_BYTE): Likewise.
4804         (XCHARSET_GRAPHIC): Likewise.
4805         (XCHARSET_COLUMNS): Likewise.
4806         (XCHARSET_DIMENSION): Likewise.
4807         (BREAKUP_CHAR): Likewise.
4808
4809 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4810
4811         * character.h: Add document about interface for characters.
4812
4813         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4814         (MAKE_CHAR): Delete comment about
4815         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4816         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4817         (BREAKUP_CHAR): Modify name of arguments.
4818         (CHAR_CHARSET): Modify name of argument.
4819
4820         * buffer.h: Delete document about Emchar accessors.
4821
4822 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4823
4824         * character.h (CHAR_INTP): Moved from buffer.h
4825         (CHAR_OR_CHAR_INTP): Likewise.
4826         (XCHAR_OR_CHAR_INT): Likewise.
4827         (CHECK_CHAR_COERCE_INT): Likewise.
4828
4829         * buffer.h (CHAR_INTP): Moved to character.h
4830         (CHAR_OR_CHAR_INTP): Likewise.
4831         (XCHAR_OR_CHAR_INT): Likewise.
4832         (CHECK_CHAR_COERCE_INT): Likewise.
4833
4834 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4835
4836         * character.h:
4837         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4838         - Include char-1byte.h, char-lb.h or char-ucs.h.
4839
4840         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4841
4842         * buffer.h: Include character unconditionally.
4843         (valid_char_p): Moved to char-*.h.
4844         (non_ascii_valid_char_p): Moved to char-lb.h.
4845
4846         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4847
4848 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4849
4850         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4851         in UTF-2000 because it is not ported yet and not to use
4852         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4853         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4854         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4855
4856         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4857         (CHAR_ASCII_P): Moved from character.h.
4858
4859         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4860         (CHAR_ASCII_P): Likewise.
4861         (CHAR_FIELD1_MASK): Deleted.
4862         (CHAR_FIELD2_MASK): Deleted.
4863         (CHAR_FIELD3_MASK): Deleted.
4864         (MAX_CHAR_BASIC_LATIN): New macro.
4865         (CHAR_FIELD1): Deleted.
4866         (CHAR_FIELD2_INTERNAL): Deleted.
4867         (CHAR_FIELD3_INTERNAL): Deleted.
4868         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4869         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4870         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4871         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4872         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4873         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4874         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4875         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4876         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4877         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4878         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4879         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4880         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4881         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4882         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4883         (MIN_CHAR_COMPOSITION): Deleted.
4884         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4885         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4886
4887 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4888
4889         * buffer.h: Include mb-utf-8.h in UTF-2000.
4890
4891         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4892
4893         * mb-utf-8.h: New file.
4894
4895 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4896
4897         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4898         instead of `int'.
4899
4900         * mule-charset.h, buffer.h (Charset_ID): New type.
4901
4902 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4903
4904         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4905         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4906         instead of `MULE_CHAR_PRIVATE_OFFSET',
4907         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4908         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4909         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4910
4911         * character.h (Vcharset_japanese_jisx0212): New variable
4912         definition.
4913
4914 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4915
4916         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4917         (charset_by_attributes): Delete array about direction.
4918         (latin_a_char_to_charset): New variable in UTF-2000.
4919         (latin_a_char_to_byte1): New variable in UTF-2000.
4920         (latin_a_char_to_byte2): New variable in UTF-2000.
4921         (Qucs_bmp): New variable.
4922         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4923         `Bufbyte'.
4924         (next_allocated_2_byte_leading_byte): Likewise.
4925         (non_ascii_set_charptr_emchar): Likewise.
4926         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4927         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4928         `charset_by_attributes'.
4929         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4930         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4931         and `CHARSET_BY_LEADING_BYTE'.
4932         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4933         `utf-2000-version' to `vars_of_mule_charset'.
4934         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4935         define `leading-code-private-11' in UTF-2000; move setting of
4936         `utf-2000-version' from `syms_of_mule_charset'.
4937         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4938         UTF-2000.
4939
4940         * character.h (Charset_ID): New type.
4941         (LEADING_BYTE_UCS_BMP): New macro.
4942         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4943         (CHARSET_ID_OFFSET_94): New macro.
4944         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4945         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4946         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4947         final-byte.
4948         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4949         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4950         (CHARSET_ID_OFFSET_96): New macro.
4951         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4952         CHARSET_ID_OFFSET_96 and final-byte.
4953         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4954         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4955         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4956         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4957         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4958         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4959         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4960         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4961         (LEADING_BYTE_THAI_TIS620): Likewise.
4962         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4963         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4964         (CHARSET_ID_OFFSET_94x94): New macro.
4965         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4966         CHARSET_ID_OFFSET_94x94 and final-byte.
4967         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4968         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4969         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4970         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4971         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4972         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4973         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4974         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4975         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4976         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4977         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4978         (CHARSET_TYPE_128X128): New macro.
4979         (CHARSET_TYPE_256X256): New macro.
4980         (XCHARSET_PRIVATE_P): Delete unconditionally.
4981         (charset_by_attributes): Delete array about direction.
4982         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4983         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4984         (MIN_CHAR_94): New macro.
4985         (MAX_CHAR_94): New macro.
4986         (MIN_CHAR_96): New macro.
4987         (MAX_CHAR_96): New macro.
4988         (MIN_CHAR_94x94): New macro.
4989         (MAX_CHAR_94x94): New macro.
4990         (MIN_CHAR_96x96): New macro.
4991         (MAX_CHAR_96x96): New macro.
4992         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4993         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4994         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4995         - 32)'.
4996         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4997         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4998         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4999         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5000         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5001         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5002         `XCHARSET_LEADING_BYTE' to make code-point.
5003         (latin_a_char_to_charset): New variable.
5004         (latin_a_char_to_byte1): New variable.
5005         (latin_a_char_to_byte2): New variable.
5006         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5007         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5008         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5009
5010         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5011         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5012         (find_charsets_in_emchar_string): Likewise.
5013         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5014
5015         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5016         `int'.
5017         (decode_coding_iso2022): Likewise.
5018
5019         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5020         of `unsigned char'.
5021
5022         * redisplay.c (redisplay_text_width_emchar_string): Use
5023         `Charset_ID' instead of `unsigned char'.
5024         (redisplay_frame_text_width_string): Likewise.
5025
5026         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5027         `unsigned char'.
5028
5029         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5030         instead of `unsigned char'.
5031         (face_cachel_charset_font_metric_info): Likewise.
5032
5033         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5034         (get_non_ascii_char_table_value): Likewise.
5035         (get_char_table): Likewise.
5036         (put_char_table): Likewise.
5037         (map_over_other_charset): Likewise.
5038         (map_char_table): Likewise.
5039
5040         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5041         instead of `unsigned char'.
5042
5043 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5044
5045         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5046         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5047
5048         * mule-charset.c (leading_code_private_11): Don't define in
5049         UTF-2000.
5050
5051         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5052         in UTF-2000 because it is not ported yet and not to use
5053         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5054
5055 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5056
5057         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5058
5059 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5060
5061         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5062         in UTF-2000.
5063
5064         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5065         of unsigned char to store leading-byte.
5066
5067         * chartab.c (get_non_ascii_char_table_value): Don't use
5068         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5069
5070         * file-coding.c (encode_coding_big5): Delete bogus implementation
5071         in UTF2000.
5072
5073         * character.h (LEADING_BYTE_*): Delete definition for
5074         non-UTF-2000.
5075         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5076         (LEADING_BYTE_PREFIX_P): Deleted.
5077         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5078         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5079         (BUFBYTE_LEADING_BYTE_P): Deleted.
5080         (CHARSET_PRIVATE_P): Deleted unconditionally.
5081         (rep_bytes_by_first_byte): Deleted unconditionally.
5082         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5083         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5084         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5085         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5086         (CHAR_FIELD2): Deleted.
5087         (CHAR_FIELD3): Deleted.
5088         (MAKE_CHAR): Delete definition for non-UTF-2000.
5089         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5090         (breakup_char_1): New implementation.
5091         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5092         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5093
5094 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5095
5096         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5097         condition.
5098
5099 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5100
5101         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5102         (CHARSET_PRIVATE_P): Likewise.
5103         (XCHARSET_PRIVATE_P): Likewise.
5104         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5105
5106         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5107         UTF2000.
5108         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5109
5110 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5111
5112         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5113         (NUM_LEADING_BYTES): Changed from 128 to 256.
5114         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5115         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5116         UTF2000.
5117         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5118
5119         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5120         UTF2000.
5121         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5122         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5123         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5124         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5125         (Qchinese_cns11643_3): New variable in UTF2000.
5126         (Qchinese_cns11643_4): New variable in UTF2000.
5127         (Qchinese_cns11643_5): New variable in UTF2000.
5128         (Qchinese_cns11643_6): New variable in UTF2000.
5129         (Qchinese_cns11643_7): New variable in UTF2000.
5130         (syms_of_mule_charset): Define `chinese-cns11643-3',
5131         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5132         and `chinese-cns11643-7' in UTF2000.
5133         (vars_of_mule_charset): Initialize
5134         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5135         + 1 in UTF2000.
5136         (complex_vars_of_mule_charset): Setup charset
5137         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5138         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5139
5140 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5141
5142         * mule-charset.c: Move setting for `leading-code-private-11' from
5143         `syms_of_mule_charset' to `vars_of_mule_charset'.
5144
5145 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5146
5147         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5148         and `NUM_LEADING_BYTES' in assert.
5149
5150 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5151
5152         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5153         instead of 128.
5154         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5155         `NUM_LEADING_BYTES' instead of 128.
5156
5157 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5158
5159         * mule-charset.h (charset_by_leading_byte): Use
5160         `NUM_LEADING_BYTES' instead of 128.
5161         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5162
5163         * mule-charset.c (charset_by_leading_byte): Use
5164         `NUM_LEADING_BYTES' instead of 128.
5165         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5166
5167         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5168         128.
5169
5170 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5171
5172         * mule-charset.c (syms_of_mule_charset): Update to
5173         0.4 (Shin-Imamiya).
5174
5175 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5176
5177         * file-coding.c (encode_coding_sjis): New implementation for
5178         UTF2000.  (decode_coding_sjis): Ditto.
5179
5180 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5181
5182         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5183         Don't define in UTF2000.
5184
5185         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5186         defined.
5187
5188         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5189         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5190         MULE.
5191
5192 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5193
5194         * config.h.in (CHAR_IS_UCS4): New macro.
5195
5196         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5197         conventional MULE representation.
5198         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5199
5200         * mule-charset.h: Reverted to original.
5201
5202         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5203         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5204         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5205
5206         * character.h: New file.
5207
5208         * file-coding.c (Fmake_coding_system): Set 1 to
5209         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5210         defined.
5211         (encode_coding_no_conversion): New implementation for UTF2000.
5212
5213         * file-coding.h (struct Lisp_Coding_System): Add new member
5214         `fixed.size'.
5215
5216 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5217
5218         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5219         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5220         (encode_coding_iso2022): New implementation for UTF2000.
5221
5222 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5223
5224         * mule-canna.c (c2mu): New implementation for UTF2000.
5225         (m2c): Likewise.
5226
5227 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5228
5229         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5230
5231 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5232
5233         * file-coding.c (reset_encoding_stream): Set 0 to
5234         `str->iso2022.current_char_boundary' in UTF2000.
5235         (encode_utf8): Don't define in UTF2000.
5236         (encode_coding_utf8): New implementation for UTF-8 representation
5237         of UTF2000.
5238         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5239
5240 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5241
5242         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5243
5244         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5245         UTF2000.
5246         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5247
5248         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5249
5250         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5251         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5252         as UTF-8 in UTF2000.
5253         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5254         (non_ascii_valid_char_p): Don't define in UTF2000.
5255         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5256         (Lstream_get_emchar_1): Likewise.
5257         (utf-2000-version): New variable in UTF2000.
5258
5259         * lread.c (read_escape): Add new reader `u'.
5260
5261         * insdel.c (three_to_one_table): Don't define in UTF2000.
5262         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5263         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5264         UTF2000.
5265         (bytind_to_bufpos_func): Likewise.
5266         (buffer_mule_signal_inserted_region): Likewise.
5267         (vars_of_insdel): Don't initialize `three_to_one_table'.
5268         (init_buffer_text): Use `buf->text->mule_size' instead of
5269         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5270         UTF2000.
5271
5272         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5273         UTF-8 representation in UTF2000.
5274         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5275         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5276         (decode_coding_iso2022): Don't define local variable `lb' in
5277         UTF2000; don't use LEADING_BYTE in UTF2000; use
5278         `DECODE_ADD_UCS_CHAR' in UTF2000.
5279         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5280
5281         * config.h.in (UTF2000): New macro.
5282
5283         * buffer.h (struct buffer_text): Add new member `mule_size' and
5284         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5285         (valid_char_p): Return always 1 in UTF2000.
5286         (MAX_EMCHAR_LEN): 6 in UTF2000.
5287         (three_to_one_table): Don't define in UTF2000.
5288         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5289         UTF2000.
5290         (real_bytind_to_bufpos): Likewise.
5291
5292         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5293
5294 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5295
5296         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5297         representation change.
5298         (Vutf_2000_version): New variable.
5299         (leading_code_private_11): New variable.
5300         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5301         `leading-code-private-11'.
5302
5303         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5304         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5305         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5306         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5307         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5308         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5309         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5310         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5311         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5312         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5313         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5314         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5315         (MIN_CHAR_GREEK): New macro.
5316         (MAX_CHAR_GREEK): New macro.
5317         (MIN_CHAR_CYRILLIC): New macro.
5318         (MAX_CHAR_CYRILLIC): New macro.
5319         (MIN_CHAR_HEBREW): New macro.
5320         (MAX_CHAR_HEBREW): New macro.
5321         (MIN_CHAR_THAI): New macro.
5322         (MAX_CHAR_THAI): New macro.
5323         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5324         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5325         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5326         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5327         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5328         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5329         (CHAR_FIELD2): New inline function.
5330         (CHAR_FIELD3): New inline function.
5331         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5332         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5333         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5334         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5335         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5336         (MIN_CHAR_COMPOSITION): Likewise.
5337         (CHAR_LEADING_BYTE): Modified for character representation change.
5338         (MAKE_CHAR): Likewise.
5339
5340         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5341         (Vcharset_greek_iso8859_7): Likewise.
5342         (Vcharset_cyrillic_iso8859_5): Likewise.
5343         (Vcharset_hebrew_iso8859_8): Likewise.
5344         (Vcharset_thai_tis620): Likewise.
5345         (Vcharset_katakana_jisx0201): Likewise.
5346
5347 2003-09-03  Vin Shelton <acs@xemacs.org>
5348
5349         * XEmacs 21.4.14 is released
5350
5351 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5352
5353         * config.h.in (REGEX_MALLOC): Make it configure'able.
5354
5355 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5356
5357         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5358         linking.
5359         * sysdll.c (dll_init):
5360         * sysdll.c (dll_open):
5361         * sysdll.c (dll_close):
5362         * sysdll.c (dll_function):
5363         * sysdll.c (dll_variable):
5364         * sysdll.c (dll_error):
5365         Add support for loading bundles using Darwin/MacOSX
5366         native API.
5367
5368 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5369
5370         * process.c (start-process-internal): Document coding systems.
5371
5372 2003-07-30  Jerry James  <james@xemacs.org>
5373
5374         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5375
5376 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5377
5378         * event-msw.c (mswindows_enqueue_mouse_button_event):
5379         * event-msw.c (mswindows_wnd_proc):
5380           enqueue button event when scrollwheel event isn't handled by 
5381           mswindows_handle_mousewheel_event, such as when the scrollbars
5382           are not showing.
5383
5384 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5385
5386         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5387
5388 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5389
5390         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5391
5392 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5393
5394         * regex.c (re_match_2_internal): Fix matching degenerate word
5395         boundaries.
5396
5397 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5398
5399         * XEmacs 21.4.13 is released
5400
5401 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5402
5403         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5404         * lisp.h (<inttypes.h>):
5405         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5406         the definition.
5407
5408 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5409
5410         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5411         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5412         Result: "temacs can only be run in -batch mode."
5413         Fix: Check xemacs executable candidate for directory-ness.
5414
5415 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5416
5417         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5418           they conflict with <sys/types.h>.
5419
5420 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5421
5422         * database.c: Berkeley DB wants __STDC__ to be defined.
5423
5424 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5425
5426         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5427
5428 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5429
5430         * process-unix.c (unix_send_process): Fix C++ compile error.
5431
5432 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5433
5434         * Added .dylib as an acceptable shared library file extension
5435         * to support MacOSX.
5436
5437 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5438
5439         * EmacsFrameP.h (EmacsFramePart):
5440         Kludge to allow compiling with Motif1, but linking with Motif2.
5441
5442 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5443
5444         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5445
5446
5447 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5448
5449         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5450
5451 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5452
5453         * sysdll.c: Included lisp.h to define needed alloca_array.
5454
5455 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5456
5457         Make XEmacs redisplay 10 times faster.
5458         If, that is, you're using a slow X connection and MoveOpaque.
5459         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5460         Use compress_motion = TRUE.
5461         * EmacsFrame.c (emacsFrameClassRec): 
5462         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5463         * EmacsManager.c (emacsManagerClassRec):
5464         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5465
5466 2003-01-30  Vin Shelton  <acs@xemacs.org>
5467
5468         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5469
5470 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5471
5472         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5473         Patch by Martin Buchholz.
5474
5475 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5476
5477         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5478         Thanks to icc for warning and Martin Buchholz for reporting.
5479
5480 2003-01-29  Vin Shelton <acs@xemacs.org>
5481
5482         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5483
5484         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5485         remember to multiply by the element size.
5486
5487 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5488
5489         * XEmacs 21.4.12 "Portable Code" is released.
5490
5491 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5492
5493         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5494         * s/cygwin.sc: new linker file.
5495
5496 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5497
5498         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5499
5500         * redisplay-x.c (x_output_string): Use X11-specified types.
5501         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5502         * emacs.c (__free_hook): Use typeof with Intel compiler.
5503         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5504
5505 2003-01-08  Andy Piper  <andy@xemacs.org>
5506
5507         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5508         reserve size during unexec().
5509
5510 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5511
5512         * process-unix.c (unix_create_process): Don't let outchannel block.
5513
5514 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5515
5516         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5517         Needed for IsBadReadPtr().
5518
5519 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5522
5523 2002-12-14  Ben Wing  <ben@xemacs.org>
5524
5525         * callint.c: Declaration error.
5526         * dumper.c (pdump):
5527         * dumper.c (pdump_load): Warning fix.
5528         * process.c: GCPRO error.
5529         * glyphs.c (unmap_subwindow):
5530         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5531         * event-stream.c (maybe_kbd_translate): Wrong argument to
5532         character_to_event().
5533
5534         * alloc.c (garbage_collect_1):
5535         * emacs.c:
5536         * emacs.c (debug_can_access_memory):
5537         * emacs.c (fatal_error_signal):
5538         * emacs.c (mswindows_handle_hardware_exceptions):
5539         * emacs.c (main_1):
5540         * emacs.c (main):
5541         * emacs.c (assert_failed):
5542         * emacs.c (syms_of_emacs):
5543         * lisp.h:
5544         * print.c:
5545         * print.c (std_handle_out_va):
5546         * print.c (write_string_to_stdio_stream):
5547         * print.c (write_fmt_string):
5548         * print.c (printing_badness):
5549         * print.c (printing_major_badness):
5550         * print.c (print_internal):
5551         * print.c (debug_print_no_newline):
5552         * print.c (debug_backtrace):
5553         Be more defensive in handling bad values when printing.  Add code
5554         from trunk involving inhibit_non_essential_printing_operations.
5555         When going down or in debug_print(), don't do external conversion
5556         and such and try really, really hard when printing to avoid core
5557         dumping.  Add force-debugging-signal, debug_break().
5558
5559 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5560
5561         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5562         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5563
5564 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5565
5566         * database.c: Fix open_database. Berkeley DB API has changed in
5567         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5568
5569 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5570
5571         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5572
5573 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5574
5575         * event-Xt.c (Xt_timeout):
5576         (Xt_timeout_callback):
5577         (emacs_Xt_add_timeout):
5578         (emacs_Xt_remove_timeout):
5579         (Xt_timeout_to_emacs_event):
5580         Turn completed_timeouts from a stack into a queue.  Fixes
5581         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5582
5583 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5584
5585         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5586         * emacs.c (main): Assert that mmap'd allocation is disabled.
5587
5588 2002-10-14  Andy Piper  <andy@xemacs.org>
5589
5590         * glyphs-widget.c (layout_query_geometry): add in fiddle
5591         factor. Include border text in width layout calculation.
5592         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5593
5594 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5595
5596         * XEmacs 21.4.10 "Military Intelligence" is released.
5597
5598 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5599
5600         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5601         using the NAS private array SoundFileInfo that no longer exists in
5602         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5603         and earlier.  This is broken for some versions between 1.5a and
5604         1.5f.
5605
5606 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5607
5608         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5609
5610         * emacs.c (shut_down_emacs): Improve crash message.
5611
5612 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5613
5614         * file-coding.c (determine_real_coding_system): Check for coding
5615         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5616         shebangs and Python PEP 263.
5617
5618 2002-10-08  Andy Piper  <andy@xemacs.org>
5619
5620         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5621         if static sizes haven't been set.
5622
5623 2002-08-30  Mike Alexander  <mta@arbortext.com>
5624
5625         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5626         to close a socket.
5627
5628 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5629
5630         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5631
5632 2002-09-20  Mike Sperber <mike@xemacs.org>
5633
5634         (This partially gets back my patch from 2002-07-20 without the
5635         bug.)
5636         * callproc.c (child_setup): Remove Ben's comment noting confusion
5637         over the file descriptors >= 3: close_process_descs() doesn't
5638         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5639         * process-unix.c (unix_create_process): Call
5640         begin_dont_check_for_quit to inhibit unwanted interaction (and
5641         thus breaking of X event synchronicity) in the child.
5642
5643 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5644
5645         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5646         widget.
5647
5648 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5649
5650         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5651         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5652         the xemacs process did not exit, but looped infinitely here.  This
5653         fixes that problem.
5654
5655 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5656
5657         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5658         (find_context): Improve comments.
5659
5660         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5661         (re_match_2): An XCHAR_TABLE operation was missing.
5662
5663         Many of the following changes were inspired by Andy Piper's (now
5664         obsolete) patch to make syntax-table text property lookup optional.
5665
5666         [Documentation]
5667
5668         * syntax.h (top level): Document semantics of syntax flags.
5669         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5670         * syntax.c, syntax.h (top level): Document syntax cache better in
5671         comments.
5672
5673         [Instrument syntax caching (temporary change)]
5674
5675         * syntax.h (enum syntax_cache_statistics_functions, struct
5676         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5677         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5678         * syntax.c (scan_words, Fforward_comment, scan_lists,
5679         Fbackward_prefix_characters):
5680         * font-lock.c (find_context):
5681         Use them to instrument syntax caching. 
5682         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5683         syntax_cache_statistics_function_names): New type and variables.
5684         * syntax.c (update_syntax_cache): Update and report statistics.
5685
5686         [Major syntax cache optimizations]
5687
5688         syntax.c (lookup_syntax_properties): Default off.
5689
5690         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5691         * syntax.c (update_syntax_cache):
5692         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5693
5694         [Minor syntax cache optimizations and code clarifications]
5695
5696         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5697         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5698         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5699         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5700         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5701         (Code clarification.)
5702
5703         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5704         scan_lists): Compute code from syncode, use Boolean macros instead
5705         of redundant masking operations.  (Code clarification; any decent
5706         compiler can do this optimization.)
5707
5708         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5709         for clarity.
5710
5711         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5712         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5713         use F*_single_property_change instead of F*_extent_change.
5714         Currently F*_single_property_change is _much_ less efficient.
5715
5716         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5717         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5718         syntax_cache.object properly, don't leave Qt or Qnil.
5719         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5720         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5721         tests for Qt or Qnil.
5722
5723 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5724
5725         * redisplay.c (point_in_line_start_cache): 
5726         * extents.c (print_extent_1):
5727         Fix warnings.
5728
5729         * extents.c (Fset_extent_property): Document `syntax-table' property.
5730
5731         * extents.h (Fnext_single_property_change): EXFUN it.
5732
5733 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5734
5735         * search.c (clear_unused_search_regs): New static function.
5736         (search_buffer): 
5737         (simple_search): 
5738         (boyer_moore):
5739         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5740         Minor clarifications in comments.
5741
5742         * regex.c (re_match_2_internal): Ensure no stale submatches.
5743
5744 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5745
5746         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5747
5748 2002-08-29  Jerry James  <james@xemacs.org>
5749
5750         * lisp.h: structrures -> structures.
5751
5752 2002-06-03  Andy Piper  <andy@xemacs.org>
5753
5754         * frame.c (frame_conversion_internal): add conversion appropriate
5755         for setting frame dimensions in pixels.
5756
5757         * console.h (struct console_methods): add device-specific widget
5758         layout functions.
5759
5760         * emacs.c (main_1): initialize glyph vars.
5761
5762         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5763         (handle_focus_event_2): new function. Allow focus to
5764         be set to a particular window and widget.
5765         (enqueue_focus_event): new function. Create a
5766         synthetic focus event.
5767         (emacs_Xt_handle_magic_event): call
5768         handle_focus_event_2.
5769
5770         * frame.c (Fset_frame_pixel_height): new function. Allow
5771         pixel-based sizing. Does the right thing on character-oriented
5772         displays.
5773         (Fset_frame_pixel_width): ditto.
5774         (Fset_frame_pixel_size): ditto.
5775         (syms_of_frame): declare.
5776
5777         * general-slots.h: add :vertically-justify and
5778         :horizontally-justify.
5779
5780         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5781         (mswindows_widget_border_width): new function.
5782         (mswindows_combo_box_instantiate): set border widths.
5783         (console_type_create_glyphs_mswindows): declare.
5784
5785         * glyphs-widget.c:
5786         (check_valid_justification): allow vertical and horizontal
5787         justification.
5788         (widget_border_width): new function. Call device methods.
5789         (widget_instance_border_width): ditto.
5790         (logical_unit_height): new function. Determine the height of a
5791         logical-unit. Logical units are intended to provide grid-like
5792         layout for subcontrols in a layout. If the layout is
5793         :vertically-justify top then subcontrols will be positioned on
5794         logical-unit boundaries, thus allowing adjacent subcontrols to
5795         line up.
5796         (widget_logical_unit_height): ditto for widgets.
5797         (redisplay_widget): misc cleanup.
5798         (widget_spacing): new function. Call device specific
5799         methods. Intended to be the default gap between adjacent widgets.
5800         (widget_query_geometry): use new spacing functions to determine
5801         appropriate geometry.
5802         (initialize_widget_image_instance): initialize horizontal and
5803         vertical justification.
5804         (widget_instantiate): use logica-units where appropriate for
5805         sizing large widgets.
5806         (button_query_geometry): use widget_instance_border_width.
5807         (tree_view_query_geometry): ditto.
5808         (tab_control_query_geometry): ditto.
5809         (edit_field_query_geometry): new function.
5810         (layout_update): pick up :justify, :horizontally-justify and
5811         :vertically-justify none of which worked previously. :justify is
5812         used as a fallback for both horizontal and vertical justification.
5813         (layout_query_geometry): use logical units to size appropriately.
5814         (layout_layout): ditto.
5815         (Fwidget_logical_to_character_width): new function. Allow users to
5816         convert from logical units to characters so that frame sizes can
5817         be set appropriately.
5818         (Fwidget_logical_to_character_height): ditto.
5819         (syms_of_glyphs_widget): declare.
5820         (image_instantiator_edit_fields): add edit_field_query_geometry.
5821         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5822         :horizontally-justify.
5823         (specifier_vars_of_glyphs_widget): new function. Declare
5824         Vwidget_border_width which is not yet used.
5825
5826         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5827         (x_widget_border_width): new function.
5828         (x_widget_instantiate): create a sensible name for widgets.
5829         (console_type_create_glyphs_x): declare x_widget_border_width.
5830
5831         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5832         (struct Lisp_Image_Instance): add :vertically-justify and
5833         :horizontally-justify.
5834         (LAYOUT_JUSTIFY_TOP): new.
5835         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5836         (ROUND_UP): new macro. Round argument up to next integral
5837         interval.
5838
5839         * redisplay-output.c (redisplay_output_layout): misc formatting.
5840
5841         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5842
5843 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5844
5845         * XEmacs 21.4.9 "Informed Management" is released.
5846
5847 2002-08-19  Andy Piper  <andy@xemacs.org>
5848
5849         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5850         win32 format.
5851
5852         * realpath.c (xrealpath): normalize drive spec also so that dir
5853         sep chars are not mixed on cygwin.
5854
5855 2002-08-06  Jerry James  <james@xemacs.org>
5856
5857         * window.c (Fsplit_window): Count only half of the divider width
5858         against the left window when splitting horizontally. 
5859
5860 2002-06-24  Andy Piper  <andy@xemacs.org>
5861
5862         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5863         toolbar was cleared.
5864
5865         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5866         function. Split out from mswindows_output_frame_toolbars.
5867         (mswindows_output_frame_toolbars): move clear pieces to
5868         mswindows_output_frame_toolbars.
5869
5870         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5871         out from gtk_output_frame_toolbars.
5872         (gtk_output_frame_toolbars): move clear pieces to
5873         gtk_clear_frame_toolbars.
5874
5875         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5876         the frame is cleared. How this ever worked before is a mystery.
5877         (x_output_frame_toolbars): Only output toolbars.
5878         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5879
5880         * gutter.c (update_gutter_geometry):
5881         Mark frame layout changed.
5882         (update_frame_gutter_geometry, update_frame_gutters):
5883         Respect frame_layout_changed.
5884
5885         * console.h (struct console_methods): add
5886         clear_frame_toolbars_method.
5887
5888         * redisplay.c (redisplay_frame): call
5889         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5890
5891         * toolbar.h: declare update_frame_toolbars_geometry.
5892
5893         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5894         out from update_frame_toolbars.  Call clear_frame_toolbars.
5895         (update_frame_toolbars): only output, do not change geometry.
5896
5897         * redisplay.c: add frame_layout_changed.
5898
5899         * redisplay.h: add frame_layout_changed.
5900         (CLASS_RESET_CHANGED_FLAGS): set it.
5901         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5902         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5903         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5904
5905         * device.h (struct device): add frame_layout_changed.
5906         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5907
5908         * frame.h (struct frame): add frame_layout_changed.
5909         (MARK_FRAME_LAYOUT_CHANGED): new.
5910
5911 2002-06-30  Mike Alexander  <mta@arbortext.com>
5912
5913         * event-msw.c (mswindows_need_event): Don't wait for a new message
5914         if the queue is not empty.  Suggested by Paul Moore.
5915
5916 2002-06-12  Andy Piper  <andy@xemacs.org>
5917
5918         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5919         for printing on accurately.
5920
5921 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5922
5923         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5924         WM_ACTIVATE message. Make sure that the frame is visible if the
5925         window is visible. This seemss to fix the problem where XEmacs
5926         appears to freeze after switching desktops with certain virtual
5927         window managers.
5928         (debug_output_mswin_message): Added code to output message
5929         parameters for WM_WINDOWPOSCHANGED, 
5930         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5931
5932 2002-05-25  Andy Piper  <andy@xemacs.org>
5933
5934         * select-x.c (vars_of_select_x): Fix docstring of
5935         x-selection-strict-motif-ownership
5936
5937 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5938
5939         * keymap.c (get_keymap):
5940         Add comment about do_autoload GCPROs own args.
5941
5942 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5943
5944         * bytecode.c (execute_optimized_program): check_opcode ifdef
5945         ERROR_CHECK_BYTE_CODE.
5946
5947 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5948
5949         Thanks to Ben Wing and Michael Sperber.
5950
5951         * eval.c (Fcommand_execute):
5952         (Feval):
5953         (Ffuncall):
5954         (Fmacroexpand_internal):
5955         (function_argcount):
5956         callint.c (Fcall_interactively):
5957         Add comment about do_autoload GCPROs own args.
5958
5959         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5960
5961         * eval.c (Ffuncall): Extra braces to placate GCC.
5962
5963 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5964
5965         * backtrace.h (grow_specpdl):
5966         (SPECPDL_RESERVE):
5967         * EmacsFrame.c (EmacsFrameSetValues):
5968         * eval.c (grow_specpdl):
5969         * ExternalShell.c (hack_event_masks_1):
5970         * glyphs-x.c (convert_EImage_to_XImage): 
5971         (x_finalize_image_instance):
5972         * ralloc.c (page_size):
5973         (r_alloc_sbrk):
5974         * xgccache.c (gc_cache_hash):
5975         Fix unsigned comparison warnings.
5976
5977 2002-07-29  Jerry James  <james@xemacs.org>
5978
5979         * lread.c (locate_file): Any nonnegative return value indicates
5980         success if MODE is nonnegative.
5981
5982 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5983
5984         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5985         argument. 
5986
5987 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5988
5989         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5990
5991         * dumper.c (pdump_get_indirect_count):
5992         (pdump_scan_by_alignment):
5993         (pdump_dump_root_struct_ptrs):
5994         (pdump_dump_rtables):
5995         (pdump_dump_root_objects):
5996         (pdump):
5997         * nas.c (WaveOpenDataForReading):
5998         * fns.c (print_bit_vector):
5999         * font-lock.c (SINGLE_SYNTAX_STYLE):
6000         * glyphs.c (check_for_ignored_expose):
6001         (find_matching_subwindow):
6002         * glyphs-eimage.c:
6003         * imgproc.c (get_histogram):
6004         * redisplay.c (point_in_line_start_cache):
6005         * redisplay-output.c (redisplay_unmap_subwindows):
6006         * symbols.c (defsymbol_massage_name_1):
6007         (defkeyword_massage_name):
6008         (deferror_massage_name_and_message):
6009         * redisplay-x.c (x_output_string): 
6010         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6011         * frame.h (struct frame):
6012         * filelock.c (current_lock_owner):
6013         * doprnt.c (emacs_doprnt_1):
6014         * lisp.h (struct Lisp_Bit_Vector):
6015         (DO_REALLOC):
6016         Fix warnings.
6017
6018 2002-02-13  Ben Wing  <ben@xemacs.org>
6019
6020         * event-stream.c (reset_key_echo):
6021         * event-stream.c (reset_this_command_keys):
6022         * event-stream.c (execute_command_event):
6023         If console is dead as a result of C-x 5 0, then post-command stuff
6024         needs to be careful and do only non-console-specific stuff.
6025
6026 2002-07-01  Mike Sperber <mike@xemacs.org>
6027
6028         * process-unix.c (unix_send_process): Mark coding_outstream as
6029         non-open upon SIGPIPE.
6030
6031         * event-stream.c (Fnext_event): Reorder switch cases to something
6032         that makes sense.
6033
6034 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6035
6036         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6037         Don't bogusly reinitialize ascii_character property.
6038
6039 2002-07-08  Mike Sperber <mike@xemacs.org>
6040
6041         * process.c (Fstart_process_internal): Do error checking before we
6042         fork off the child, so the child can't muck with the state of the
6043         parent.
6044
6045 2002-07-08  Mike Sperber <mike@xemacs.org>
6046
6047         * ralloc.c (init_ralloc): Allocate properly for pdump.
6048
6049 2002-06-12  Andy Piper  <andy@xemacs.org>
6050
6051         * glyphs.c (query_string_geometry): check the string.
6052
6053         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6054         widget names.
6055
6056 2002-06-17  Jerry James  <james@xemacs.org>
6057
6058         * sysdll.c: Remove RTLD_GLOBAL initialization.
6059         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6060
6061 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6062
6063         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6064
6065 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6066
6067         * sysdep.c (sys_rename): Make sys_rename work for the case where
6068         Windows rename sets errno to EACCES if target file exists.
6069
6070 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6071
6072         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6073         Fix detection of metric units to work on Win95
6074
6075 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6076
6077         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6078
6079 2002-04-25  Andy Piper  <andy@xemacs.org>
6080
6081         * redisplay.c (create_text_block): Remove extra comment trailer.
6082
6083 2002-04-24  Andy Piper  <andy@xemacs.org>
6084
6085         * redisplay.c (create_text_block): Don't actually add propagation
6086         data if the line ends after we have added a glyph.
6087
6088 2002-04-22  Andy Piper  <andy@xemacs.org>
6089
6090         * extents.c (extent_fragment_update): check for glyphs we have
6091         previously displayed.
6092         * extents.c (print_extent_1): warning removal.
6093         * extents.h: change prototype.
6094         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6095         widths correctly for wide glyphs.
6096         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6097         * redisplay.c (prop_type): add PROP_GLYPH.
6098         * redisplay.c (struct prop_block): add glyph type
6099         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6100         to the propagation data.
6101         * redisplay.c (create_text_block): if there is a glyph in the
6102         propagation data use it to salt extent_fragment_update.
6103         * redisplay.c (create_string_text_block): ditto.
6104
6105 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6106
6107         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6108         * redisplay-output.c (compare_runes): Compare them.
6109         * redisplay.c: Update copyright date.
6110         * redisplay.c (pos_data): Add need_baseline_computation field.
6111         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6112         need_baseline_computation; zero yoffset. Set max_pixmap_height
6113         for all pixmaps, not just automatically positioned ones.
6114         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6115         * redisplay.c (calculate_baseline): New, compute textual baseline.
6116         * redisplay.c (add_glyph_rune): Call them.
6117         * redisplay.c (create_text_block): Likewise.
6118         * redisplay.c (create_overlay_glyph_block): Likewise.
6119         * redisplay.c (add_margin_runes): Likewise.
6120         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6121
6122         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6123         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6124         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6125         * redisplay-msw.c (mswindows_output_string): Likewise.
6126         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6127         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6128         * redisplay-x.c (x_output_display_block): Likewise.
6129
6130 2002-03-28  Ben Wing  <ben@xemacs.org>
6131
6132         * redisplay.c: Fixed bug in redisplay
6133         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6134         and down of the lines, since they're bigger than the line
6135         size. (It was seen most obviously when there's a horizontal scroll
6136         bar, e.g. do C-h a glyph or something like that.) The problem was
6137         that the glyph-contrib-p setting on glyphs was ignored even if it
6138         was set properly, which it wasn't until now.
6139
6140 2002-04-24  Andy Piper  <andy@xemacs.org>
6141
6142         * lisp.h (Dynarr_end): Fix definition.
6143
6144 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6145
6146         * redisplay.c (mark_redisplay): Remove call to
6147         update_frame_window_mirror.
6148
6149 2001-11-15  Andy Piper  <andy@xemacs.org>
6150
6151         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6152         cygwin (again).
6153
6154 2002-02-13  Andy Piper  <andy@xemacs.org>
6155
6156         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6157         we did in fact enqueue the XM_MAPFRAME event.
6158
6159 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6160
6161         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6162         to fix problem switching between virtual desktops under virtuawin
6163         virtual window manager.
6164
6165 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6166
6167         * event-msw.c: Typo fix.
6168         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6169         magic XM_MAPFRAME event has been sent.
6170
6171 2001-11-23  Andy Piper  <andy@xemacs.org>
6172
6173         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6174
6175 2001-11-21  Andy Piper  <andy@xemacs.org>
6176
6177         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6178         mouse events outside the frame.
6179
6180 2002-03-20  Andy Piper  <andy@xemacs.org>
6181
6182         * menubar-msw.c (mswindows_popup_menu): warning removal.
6183         * dialog-msw.c (dialog_popped_down): ditto.
6184
6185 2001-12-11  Andy Piper  <andy@xemacs.org>
6186
6187         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6188         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6189         popup_up_p.
6190         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6191         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6192         * menubar-msw.c (mswindows_popup_menu): ditto.
6193
6194 2001-10-29  Andy Piper  <andy@xemacs.org>
6195
6196         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6197         cancels.
6198
6199 2002-01-03  Andy Piper  <andy@xemacs.org>
6200
6201         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6202         letters.
6203         (xrealpath): ditto.
6204
6205 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6206
6207         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6208         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6209         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6210         Detect and handle case where machine is set up for metric units
6211
6212 2002-04-02  Andy Piper  <andy@xemacs.org>
6213
6214         * dired-msw.c (mswindows_get_files): 
6215         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6216         completely handled by XEmacs. Suggested by Thomas Vogler
6217         <mail@thomas-vogler.de>.
6218
6219 2001-11-14  Andy Piper  <andy@xemacs.org>
6220
6221         * nt.c (REG_ROOT): change registry key to XEmacs.
6222
6223 2002-04-27  Andy Piper  <andy@xemacs.org>
6224
6225         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6226
6227 2002-04-26  Andy Piper  <andy@xemacs.org>
6228
6229         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6230         behavior.
6231
6232 2002-03-14  Mike Alexander  <mta@arbortext.com>
6233
6234         * event-msw.c (mswindows_unwait_process): New, remove process from
6235         wait list
6236         * process-nt.c (nt_finalize_process_data): Call
6237         mswindows_unwait_process
6238         * console-msw.h: Declare mswindows_unwait_process
6239
6240 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6241
6242         * editfns.c (Fdecode_time):
6243         (Fformat_time_string):
6244         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6245         (make_time): Warning elimination (change arg name).
6246
6247 2001-11-24  Andy Piper  <andy@xemacs.org>
6248
6249         * window.c (Fsplit_window): Doc return type.
6250
6251 2002-04-01  Andy Piper  <andy@xemacs.org>
6252
6253         * emacs.c (Fkill_emacs): Only output message box in interactive
6254         mode.
6255
6256 2002-04-26  Andy Piper  <andy@xemacs.org>
6257  
6258         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6259         cygwin.
6260
6261 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6262
6263         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6264         bit platform.
6265
6266 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6267
6268         * XEmacs 21.4.8 "Honest Recruiter" is released.
6269
6270 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6271
6272         Supersedes 2002-04-17 patch.
6273
6274         * process.h (PROCESS_LIVE_P): Use the process status as
6275         evidence of health, not the state of the input stream.
6276         (PROCESS_READABLE_P): Say if the process is readable
6277         from. (It may be dead nonetheless.)
6278         (CHECK_READABLE_PROCESS): Test for that condition.
6279
6280         * process.c (create_process): Use PROCESS_READABLE_P.
6281         (read_process_output, set_process_filter): Likewise.
6282
6283         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6284         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6285
6286         This code is #if 0'd, this is not the time to add new functions:
6287
6288         * process.c (Fprocess_readable_p): Report readability status.
6289         * process.c (Qprocess_readable_p): New, associated symbol...
6290         * process.c (syms_of_process): ... initialize it.
6291
6292 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6293
6294         * XEmacs 21.4.7 "Economic Science" is released.
6295
6296 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6297
6298         * process.h (PROCESS_LIVE_P): Use the process status as
6299         evidence of health, not the state of the input stream.
6300
6301 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6302
6303         * sysdep.c (sys_siglist): change "signum" to "signal"
6304
6305 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6306
6307         * s/darwin.h: New file.
6308         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6309         
6310 2002-04-23  Andreas Jaeger  <aj@suse.de>
6311
6312         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6313         which use lib64 for 64-bit libs.
6314         (START_FILES): Likewise.
6315
6316 2002-02-11  Mike Sperber  <mike@xemacs.org>
6317
6318         * device-x.c: 
6319         (x_IO_error_handler):
6320         (x_init_device): Temporarily keep device in static variable
6321         `device_being_initialized' so we can recover gracefully from
6322         internal XOpenDevice failure.  (XOpenDevice is documented to
6323         return NULL on failure, but sometimes calls the IO error handler
6324         instead.)
6325
6326 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6327
6328         * dired.c (Ffile_name_all_completions): Change documentation --
6329         remove reference to completion-ignored-extensions.
6330         * dired.c (vars_of_dired): Change documentation for
6331         completion-ignored-extensions -- remove reference to
6332         file-name-all-completions.
6333
6334 2002-03-06  Jerry James  <james@xemacs.org>
6335
6336         * emodules.c (emodules_load): Fix multiple loading of same module.
6337
6338 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6339         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6340         RTLD_LAZY to avoid incorrect symbol binding when using nested
6341         shared libraries on Solaris.
6342
6343 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6344
6345         * fileio.c (Ffind_file_name_handler): Improve docstring.
6346
6347 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6348
6349         * fns.c (Fmapconcat): Improve docstring.
6350
6351 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6352
6353         * device-gtk.c: Add prototype for
6354         emacs_gtk_selection_clear_event_handle.
6355         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6356         selection.  Setup signal handler for "selection_clear_event"
6357         (emacs_gtk_selection_clear_event_handle).
6358
6359         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6360         other applications owning the clipboard (based on
6361         x_handle_selection_clear).
6362
6363 2001-12-23  William M. Perry  <wmperry@gnu.org>
6364
6365         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6366         
6367 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6368
6369         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6370
6371 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6372
6373         * XEmacs 21.4.6 "Common Lisp" is released.
6374
6375 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6376
6377         * search.c (Freplace_match): Add missing sub-expression functionality.
6378
6379         * buffer.c (decode_buffer): Add a check for pointer type to
6380         decode_buffer, before gcc's CSE optimization reorders a
6381         dereference in front of the allow_string test.
6382
6383 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6384
6385         * window.c (window_loop): Fix bug that sometimes prevented
6386         window_loop() from iterating across multiple devices.  Also, at
6387         Ben's request, changed infloop-detecting code to abort() instead
6388         of silently terminating window_loop().
6389
6390 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6391
6392         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6393         * editfns.c (make_time): New function.
6394         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6395         * lisp.h (make_time): Prototype and comment it.
6396         * dired.c (wasteful_word_to_lisp): Deprecate.
6397         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6398
6399 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6400
6401         * fileio.c (auto_save_1): Use current coding system, not
6402         escape-quoted.
6403
6404 2001-11-13  Ben Wing  <ben@xemacs.org>
6405
6406         * window.c:
6407         * window.c (window_truncation_on):
6408         * window.c (syms_of_window):
6409         truncate-partial-width-windows should respect the buffer being
6410         displayed, like other redisplay vars.
6411
6412 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6413
6414         * event-stream.c (Fread_key_sequence): save current buffer.
6415
6416 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6417
6418         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6419
6420 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6421
6422         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6423
6424 2001-10-26  Mike Alexander  <mta@arbortext.com>
6425
6426         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6427
6428 2001-10-25  Andy Piper  <andy@xemacs.org>
6429
6430         * ChangeLog:
6431         * dialog-msw.c (handle_directory_proc): new function.
6432          (handle_directory_dialog_box): new fucntion.
6433          (handle_file_dialog_box): use new directory dialog support.
6434          (mswindows_make_dialog_box_internal): ditto.
6435         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6436         handling.
6437         (mswindows_find_frame): make global.
6438         * fileio.c (Fexpand_file_name): build fix.
6439         * general-slots.h: add Qdirectory.
6440         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6441         handling.
6442         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6443         cygwin not leaving win32 paths unchanged.
6444         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6445         cygwin runtime to do path conversion.
6446         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6447         (syms_of_win32): add new function.
6448         * window.c (window_loop): build fix.
6449
6450 2001-10-15  Andy Piper  <andy@xemacs.org>
6451
6452         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6453
6454 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6455
6456         * XEmacs 21.4.5 "Civil Service" is released.
6457
6458 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6459
6460         * glyphs-x.c: Force buffer-tab highlight update when moving the
6461         buffer, avoiding an ugly black border, used for keyboard focus
6462         indication, on a widget that can never have keyboard focus, the
6463         buffer tab.
6464
6465 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6466
6467         * process-unix.c (unix_open_multicast_group): Remove too much
6468         conversion between host and network byte order.
6469
6470 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6471
6472         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6473         before replacing them.
6474
6475         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6476         operation.
6477
6478         * src/window.c (undedicate_windows): Use it.
6479         * src/window.h: Add prototype.
6480
6481 2001-09-17  Ben Wing  <ben@xemacs.org>
6482
6483         * fileio.c (normalize_filename):
6484         * fileio.c (Fexpand_file_name):
6485         Fix various C++ compile errors in Andy's recent code.
6486         
6487         * callint.c (Fcall_interactively):
6488         * editfns.c (Ftemp_directory):
6489         * editfns.c (Fuser_full_name):
6490         * emacs.c (argmatch):
6491         * lread.c (locate_file_map_suffixes):
6492         * redisplay-x.c (x_ring_bell):
6493         Fix sign-compare warnings.
6494         
6495 2001-09-08  Andy Piper  <andy@xemacs.org>
6496
6497         * fileio.c (normalize_filename): copied from nt.c
6498         * (Ffile_name_directory): enable win32 paths under cygwin.
6499         * (Ffile_name_nondirectory): ditto.
6500         * (directory_file_name): ditto.
6501         * (Fexpand_file_name): ditto.
6502         * (Ffile_truename): ditto.
6503         * (Fsubstitute_in_file_name): ditto.
6504         * (Ffile_name_absolute_p): ditto.
6505         * (Ffile_readable_p): ditto.
6506
6507 2001-09-08  Andy Piper  <andy@xemacs.org>
6508
6509         * device-msw.c (mswindows_finish_init_device): remove dde
6510         initialization.
6511         * device-msw.c (mswindows_init_dde): factor out from
6512         mswindows_finish_init_device()
6513         * device-msw.c (init_mswindows_very_early): new function
6514         initialize but don't enable dde.
6515         * emacs.c (main_1): call init_mswindows_very_early.
6516         * event-msw.c:
6517         * event-msw.c (mswindows_dde_callback): only execute when we are
6518         ready.
6519         * symsinit.h: declare init_mswindows_very_early.
6520
6521 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6522
6523         [sjt: This has been in 21.5 for months with no complaints.]
6524
6525         * console.h (struct console_methods): Added flags member.
6526         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6527         (CONMETH_IMPL_FLAG):
6528         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6529         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6530
6531         * device.c (window_system_pixelated_geometry): Use the above macros.
6532
6533         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6534         implememntation flag.
6535         * device.h (DEVICE_DISPLAY_P): Use it.
6536
6537         * frame.c (delete_frame_internal): Use the above macro.
6538
6539         * redisplay.c (redisplay_device): Use it.
6540         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6541         (redisplay_frame): Ditto.
6542
6543         * device-msw.c (mswindows_device_implementation_flags): Removed.
6544         (msprinter_device_implementation_flags): Removed.
6545         (console_type_create_device_mswindows): Removed references to
6546         implementation_flags methods, set implementation flags here.
6547         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6548
6549         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6550         (console_type_create_device_gtk): Removed method declaration.
6551         Added commented out statement which semantically matches the
6552         commented out statement in the above removed method.
6553
6554 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6555
6556         The attached patch fixes a few warnings. 
6557
6558         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6559         * src/frame-gtk.c: guard against GNOME calls in GTK only
6560         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6561         * src/select-gtk.c: prototype lisp_to_time
6562
6563 2001-06-08  Ben Wing  <ben@xemacs.org>
6564
6565         ------ gc-in-window-procedure fixes ------
6566         
6567         * alloc.c:
6568         * alloc.c (struct post_gc_action):
6569         * alloc.c (register_post_gc_action):
6570         * alloc.c (run_post_gc_actions):
6571         * alloc.c (garbage_collect_1):
6572         Create "post-gc actions", to avoid those dreaded "GC during window
6573         procedure" problems.
6574
6575         * event-msw.c:
6576         Abort, clean and simple, when GC in window procedure.  We want
6577         to flush these puppies out.
6578
6579         * glyphs-msw.c:
6580         * glyphs-msw.c (finalize_destroy_window):
6581         * glyphs-msw.c (mswindows_finalize_image_instance):
6582         Use a post-gc action when destroying subwindows.
6583
6584         * lisp.h:
6585         Declare register_post_gc_action().
6586
6587         * scrollbar-msw.c:
6588         * scrollbar-msw.c (unshow_that_mofo):
6589         Use a post-gc action when unshowing scrollbar windows, if in gc.
6590
6591         * redisplay.c (mark_redisplay):
6592         Add comment about the utter evilness of what's going down here.
6593
6594         ------ cygwin setitimer fixes ------
6595         
6596         * Makefile.in.in (sheap_objs):
6597         * Makefile.in.in (profile_objs):
6598         * Makefile.in.in (objs):
6599         Compile profile.c only when HAVE_SETITIMER.
6600         
6601         * nt.c (mswindows_sigset):
6602         * nt.c (mswindows_sighold):
6603         * nt.c (mswindows_sigrelse):
6604         * nt.c (mswindows_sigpause):
6605         * nt.c (mswindows_raise):
6606         * nt.c (close_file_data):
6607         Style fixes.
6608         
6609         * nt.c:
6610         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6611         
6612         * profile.c:
6613         * profile.c (Fstart_profiling):
6614         * profile.c (Fstop_profiling):
6615         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6616         instead of just plain setitimer().
6617         
6618         * signal.c:
6619         * signal.c (set_one_shot_timer):
6620         * signal.c (alarm):
6621         Define qxe_setitimer() as an encapsulation around setitimer() --
6622         call setitimer() directly unless Cygwin or MS Win, in which case
6623         we use our simulated version in win32.c.
6624         
6625         * systime.h:
6626         * systime.h (struct itimerval):
6627         * systime.h (ITIMER_REAL):
6628         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6629         comment about "qxe" and the policy regarding encapsulation.
6630
6631         * win32.c:
6632         * win32.c (setitimer_helper_proc):
6633         * win32.c (setitimer_helper_period):
6634         * win32.c (setitimer_helper):
6635         * win32.c (mswindows_setitimer):
6636         Move setitimer() emulation here, so Cygwin can use it.
6637         Rename a couple of functions and variables to be longer and more
6638         descriptive.  In setitimer_helper_proc(), send the signal
6639         using either mswindows_raise() or (on Cygwin) kill().  If for
6640         some reason we are still getting lockups, we'll change the kill()
6641         to directly invoke the signal handlers.
6642
6643         ------ windows shell fixes ------
6644         
6645         * callproc.c:
6646         * ntproc.c:
6647         Comments about how these two files must die.
6648
6649         * callproc.c (init_callproc):
6650         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6651         not just COMSPEC. (more correct and closer to FSF.) Don't
6652         force a value for SHELL into the environment. (Comments added
6653         to explain why not.)
6654         
6655         * nt.c (init_user_info):
6656         Don't shove a fabricated SHELL into the environment.  See above.
6657
6658 2001-06-01  Ben Wing  <ben@xemacs.org>
6659
6660         * Makefile.in.in (ldflags):
6661         eliminate that pesky "defaulting to 00401000" warning.
6662         * nt.h:
6663         eliminate warnings.
6664
6665 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6666
6667         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6668         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6669
6670 2001-04-24  Jerry James <james@xemacs.org>
6671
6672         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6673         correct order.
6674
6675 2001-06-01  Ben Wing  <ben@xemacs.org>
6676
6677         * event-msw.c (debug_mswin_messages):
6678         conditionalize the messages that were causing compile errors.
6679         (if only macros could generate #ifdef statements ...)
6680
6681 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6682
6683         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6684
6685 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6686
6687         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6688
6689 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6690
6691         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6692         * process-unix.c (unix_canonicalize_host_name):
6693         sysdep.c (init_system_name):
6694         Use it to conditionally support IPv6 canonicalization.
6695
6696 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6697
6698         * event-msw.c:
6699         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6700
6701 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6702
6703         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6704         attempt is made to scroll when no scroll bar is available.
6705
6706 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6707
6708         * input-method-motif.c (XIM_delete_frame): New callback.
6709         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6710         got deleted from 21.4.3.)
6711
6712 2001-06-01  Ben Wing  <ben@xemacs.org>
6713
6714         * nt.c (mswindows_utime):
6715         * nt.c (close_file_data):
6716         fix off-by-one-indirection error.
6717
6718 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6719
6720         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6721         because set_file_times() now takes Lisp_Object path, instead of
6722         char*.
6723         * nt.c: Include buffer.h.
6724         * nt.c (convert_from_time_t): New.
6725         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6726         not set mtime correctly.
6727         * nt.h: Declare mswindows_utime().
6728         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6729         path, instead of char*.
6730         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6731
6732 2001-05-30  Ben Wing  <ben@xemacs.org>
6733
6734         For 21.4:
6735
6736         (Stephen, just take all event-msw.c patches.  This includes
6737         the "iconify" fix below.)
6738
6739         * event-msw.c:
6740         * event-msw.c (mswindows_dequeue_dispatch_event):
6741         * event-msw.c (assert):
6742         * event-msw.c (emacs_mswindows_quit_p):
6743         * event-msw.c (debug_mswin_messages):
6744         * event-msw.c (debug_output_mswin_message):
6745         * event-msw.c (vars_of_event_mswindows):
6746         Fix yet more problems with C-g handling.
6747         Implement debug-mswindows-events.
6748         
6749 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6750
6751         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6752         
6753 2001-05-23  Ben Wing  <ben@xemacs.org>
6754
6755         * event-msw.c (winsock_writer):
6756         * event-msw.c (winsock_closer):
6757         prior kludgy code was clobbering the buffer, thinking it was
6758         "unused" space to store an unneeded return value; instead, use
6759         the variable we've already got staring us in the face.
6760
6761 2001-05-17  Andy Piper  <andy@xemacs.org>
6762
6763         * sysfile.h: don't assume that file attributes are boolean
6764
6765 2001-05-23  Ben Wing  <ben@xemacs.org>
6766
6767         * device-msw.c (msprinter_init_device):
6768         signal an error rather than crash with an unavailable network
6769         printer (from Mike Alexander).
6770         
6771         * event-msw.c:
6772         * event-msw.c (struct winsock_stream):
6773         * event-msw.c (winsock_writer):
6774         * event-msw.c (winsock_closer):
6775         * event-msw.c (make_winsock_stream_1):
6776         cleanup headers.  fix (hopefully) an error with data corruption
6777         when sending to a network connection.
6778
6779         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6780         to handle the ~user prefix by (a) always assuming we're referencing
6781         ourselves and not even verifying the user -- hence any file with
6782         a tilde as its first char is invalid! (b) if there wasn't a slash
6783         following the filename, the pointer was set *past* the end of
6784         file and we started reading from uninitialized memory.  Now we
6785         simply treat these as files, always.
6786
6787         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6788         
6789 2001-05-19  Ben Wing  <ben@xemacs.org>
6790
6791         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6792
6793         * process-nt.c:
6794         * process-nt.c (vars_of_process_nt):
6795         remove unused mswindows-quote-process-args.  rec for 21.4.
6796         
6797 2001-05-12  Ben Wing  <ben@xemacs.org>
6798
6799         * event-msw.c (mswindows_dde_callback):
6800         * event-msw.c (mswindows_wnd_proc):
6801         eliminate cygwin warnings.
6802
6803 2001-05-06  Ben Wing  <ben@xemacs.org>
6804
6805         * console-msw.h:
6806         * device-msw.c:
6807         * device-msw.c (print_dialog_worker):
6808         * device-msw.c (mswindows_handle_print_dialog_box):
6809         * device-msw.c (syms_of_device_mswindows):
6810         * dialog-msw.c (mswindows_make_dialog_box_internal):
6811         * general-slots.h:
6812         implement printing the selection when it's selected.
6813
6814 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6815
6816         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6817
6818 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6819
6820         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6821         EMACS_INT is signed.
6822
6823 2001-04-15  Michael Lausch  <mla@1012surf.net>
6824
6825         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6826         gtk_widget_request_size() to give scrollbar >0 width for
6827         GTK >1.2.8.
6828
6829 2001-05-30  William M. Perry  <wmperry@gnu.org>
6830
6831         * event-gtk.c: Check for buttons as modifier keys.
6832
6833 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6834
6835         * s\mingw32.h:
6836         Properly find MinGW's <process.h> inside Cygwin's restructured
6837         include directories.  Don't try to include <cygwin/version.h>
6838         since we are dropping support for MinGW in versions of Cygwin
6839         earlier than b21.
6840         * nt.c:
6841         Drop support for MinGW in versions of Cygwin before b21.
6842         * sysdep.c:
6843         Properly find MinGW's <process.h> inside Cygwin's restructured
6844         include directories.
6845         * syswindows.h:
6846         Drop support for MinGW in versions of Cygwin before b21.
6847         * unexcw.c:
6848         Even though a.out.h is no longer detected by configure, allow
6849         MinGW to use it until we figure out how to do the job with Win32.
6850
6851 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6852
6853         * syntax.c (find_start_of_comment):
6854         Fix `unbalanced parentheses' bug when dealing with mixed comment
6855         styles in c++/java/etc. mode
6856
6857 2001-05-29  Mike Alexander  <mta@arbortext.com>
6858
6859         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6860         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6861
6862 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6863
6864         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6865
6866 2001-03-31  Mike Sperber <mike@xemacs.org>
6867
6868         * search.c (Freplace_match): Support FSF-style specification of
6869         match subexpression when applied to a buffer.
6870
6871 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6872
6873         * event-stream.c (is_scrollbar_event): add missing semicolon
6874
6875 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6876
6877         * Makefile.in.in: Use TAR macro instead of hardcoding
6878           tar.  Allows use of GNU tar instead of system tar
6879
6880 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6881
6882         * event-stream.c (is_scrollbar_event): add missing semicolon
6883
6884 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6885
6886         * XEmacs 21.4.3 "Academic Rigor" is released.
6887
6888 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6889
6890         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6891
6892 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6893
6894         * buffer.c (Vcase_fold_search): Remove obsolete
6895           comment about non ASCII case-fold-search.  This
6896           bug has been fixed by case-table changes.
6897
6898 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6899
6900         * event-msw.c: Restore include of events-mod.h.
6901
6902 2001-04-22   zhaoway  <zw@debian.org>
6903
6904         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6905         !HAVE_SCROLLBARS.
6906
6907 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6908
6909         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6910
6911 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6912
6913         * mule-charset.c (Fmake_charset): Add missing else.
6914
6915 2001-04-23  Ben Wing  <ben@xemacs.org>
6916
6917         * event-msw.c (FAKE_MOD_QUIT):
6918         * event-msw.c (mswindows_dequeue_dispatch_event):
6919         * event-msw.c (mswindows_wnd_proc):
6920         * event-msw.c (emacs_mswindows_quit_p):
6921         Get critical quit working.
6922
6923 2001-05-05  Ben Wing  <ben@xemacs.org>
6924
6925         * console-msw.h:
6926         * device-msw.c:
6927         * device-msw.c (mswindows_get_default_margin):
6928         * frame-msw.c (mswindows_size_frame_internal):
6929         * frame-msw.c (msprinter_init_frame_1):
6930         * frame-msw.c (vars_of_frame_mswindows):
6931         Change top/bottom margin defaults to 0.5 inches.
6932
6933 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6934
6935         Fix link error with gcc 3.0 on Linux.
6936         * terminfo.c (UP): Remove.
6937         * terminfo.c (BC): Remove.
6938         * terminfo.c (PC): Remove.
6939         They weren't used, and in any case, these symbols should be
6940         defined in the *library*.
6941
6942 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6943
6944         * s/aix4.h: Fix crash with xlc -O3.
6945         Improve comment explaining how -O3 works.
6946
6947 2001-04-15  Ben Wing  <ben@xemacs.org>
6948
6949         * event-stream.c:
6950         * event-stream.c (Fnext_event):
6951         * event-stream.c (is_scrollbar_event):
6952         * event-stream.c (execute_command_event):
6953         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6954         crash' problem.  His fix introduces other problems.  We filter
6955         out scrollbar events specifically, making them somewhat invisible
6956         to command-building, and not appearing in `this-command-keys'.
6957         More work is still needed (see comments in event-stream.c), but
6958         this fixes all the major problems.
6959
6960 2001-04-20  Ben Wing  <ben@xemacs.org>
6961
6962         * .cvsignore: Added stuff for Windows.
6963
6964 2001-04-28  Ben Wing  <ben@xemacs.org>
6965
6966         * buffer.c (Ferase_buffer):
6967         * editfns.c (buffer_insert1):
6968         * editfns.c (Finsert_before_markers):
6969         * editfns.c (Finsert_string):
6970         * editfns.c (Finsert_char):
6971         * editfns.c (Fdelete_region):
6972         * editfns.c (Fwiden):
6973         * editfns.c (Fnarrow_to_region):
6974         remove bogus lines setting zmacs_region_stays to 0.
6975         
6976 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6977
6978         * process-unix.c (unix_open_network_stream): If connect() fails
6979         invalidate file descriptor after closing it.
6980
6981 2001-03-08  Mike Alexander  <mta@arbortext.com>
6982
6983         * event-msw.c (mswindows_need_event_in_modal_loop):
6984         Don't dispatch a message if we didn't get one.
6985         (mswindows_need_event):
6986         Terminate the correct process when one exits instead of the first
6987         one on Vprocess_list and look for process termination when in
6988         mswindows_protect_modal_loop.
6989
6990 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6991
6992         * XEmacs 21.4.1 "Copyleft" is released.
6993
6994 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6995
6996         * input-method-motif.c (XIM_delete_frame): New callback.
6997         (XIM_init_frame): Register it.
6998
6999 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7000
7001         * XEmacs 21.4.0 "Solid Vapor" is released.
7002
7003 2001-04-15  Ben Wing  <ben@xemacs.org>
7004
7005         * cmdloop.c (call_command_loop):
7006         Fix braino in bit-rotting code.
7007         
7008 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7009
7010         * extents.c (Fset_extent_endpoints): Force creation of extent info
7011         in buffer_or_string.
7012
7013         * extents.c (process_extents_for_insertion_mapper): Correctly
7014         check for open-open zero-length extents.
7015
7016 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7017
7018         * lisp.h: New typedefs Memory_count, Element_count.
7019         * regex.c:
7020         * regex.h:
7021         Sign-compare warning elimination: several unsigned -> signed.
7022         Based on work by Ben Wing <ben@xemacs.org>.
7023
7024 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7025
7026         * XEmacs 21.2.47 "Zephir" is released.
7027
7028 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7029
7030         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7031
7032 2001-04-03  Mike Sperber <mike@xemacs.org>
7033
7034         * search.c: Revert previous patch due because of release.
7035
7036 2001-03-30  Ben Wing  <ben@xemacs.org>
7037
7038         * s\cygwin32.h:
7039         Add missing killpg prototype.
7040
7041         * elhash.c:
7042         Add a comment about fixing problems when a new entry is added
7043         while mapping.
7044
7045         * frame-msw.c (mswindows_init_frame_1):
7046         Fix compile warnings.
7047
7048         * menubar.c (vars_of_menubar):
7049         Provide `menu-accelerator-support' to indicate that we properly
7050         support %_ in menu specifications, so that package code can
7051         conditionalize on this (and remove %_ from menu specifications
7052         on older versions).
7053
7054         * event-msw.c:
7055         * scrollbar-msw.c:
7056         * scrollbar-msw.c (can_scroll):
7057         * scrollbar-msw.h:
7058         Fix handling of mouse wheel under Windows to follow standards --
7059         now scrolls window under pointer, not selected window.
7060
7061 2001-03-31  Mike Sperber <mike@xemacs.org>
7062
7063         * search.c (Freplace_match): Support FSF-style specification of
7064         match subexpression when applied to a buffer.
7065
7066 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7067
7068         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7069         function to modify KEYMAP, so map over a copy of the hash table.
7070
7071 2001-03-21  Martin Buchholz <martin@xemacs.org>
7072
7073         * XEmacs 21.2.46 "Urania" is released.
7074
7075 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7076
7077         * realpath.c (xrealpath): Make file-truename work with symlinks to
7078         /cygdrive paths on cygwin. Always lowercase drive-letters on
7079         native windows.
7080         (cygwin_readlink): Don't try to find canonical filename unless
7081         file exists.
7082
7083 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7084
7085         * ChangeLog: Log GTK merge.
7086
7087         * dumper.c:
7088         * select-x.c:
7089         * specifier.c:
7090         * symeval.h:
7091         Revert gratuitous whitespace changes from GTK merge.
7092
7093         * emacs.c: Document end of complex #ifdef @ l. 1495.
7094
7095
7096 2001-03-12  Andy Piper  <andy@xemacs.org>
7097
7098         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7099         have to do likewise.
7100
7101 2001-03-12  Andy Piper  <andy@xemacs.org>
7102
7103         * sysdep.c: we only support mingw now.
7104
7105 2001-03-09  Andy Piper  <andy@xemacs.org>
7106
7107         * unexcw.c (copy_executable_and_dump_data_section): making approx
7108         overrun a warning only.
7109
7110 2001-03-10  William M. Perry  <wmperry@aventail.com>
7111
7112         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7113         satisfy Stephen's identical-after-cpp plea.
7114
7115 2001-03-02  Ben Wing  <ben@xemacs.org>
7116
7117         * cmds.c:
7118         * cmds.c (Fforward_char):
7119         * syntax.c:
7120         * window.c:
7121
7122         Augment documentation of the most common motion commands to make
7123         note of the shifted-motion support.
7124         
7125 2001-03-02  Ben Wing  <ben@xemacs.org>
7126
7127         * nt.c (mswindows_fstat):
7128         * nt.c (mswindows_stat):
7129         * search.c (boyer_moore):
7130         Fix compile warnings under Windows.
7131         
7132         * sysdep.c (sys_readdir):
7133         Fix buggy filename-conversion code under Mule.
7134
7135 2001-03-09  William M. Perry  <wmperry@aventail.com>
7136
7137         * Makefile.in.in:
7138         * config.h.in:
7139         * console.c:
7140         * console.h:
7141         * device.c:
7142         * device.h:
7143         * dragdrop.c:
7144         * emacs.c:
7145         * event-stream.c:
7146         * events.c:
7147         * events.h:
7148         * faces.c:
7149         * frame.h:
7150         * general-slots.h:
7151         * glyphs.c:
7152         * gutter.c:
7153         * inline.c:
7154         * lisp.h:
7155         * lrecord.h:
7156         * make-src-depend:
7157         * redisplay-output.c:
7158         * redisplay.c:
7159         * symsinit.h:
7160         * sysfile.h:
7161         * toolbar.c:
7162         * window.c:
7163         The Great GTK Merge.
7164
7165         * ChangeLog.GTK:
7166         * console-gtk.c:
7167         * console-gtk.h:
7168         * device-gtk.c:
7169         * emacs-marshals.c:
7170         * emacs-widget-accessors.c:
7171         * event-gtk.c:
7172         * frame-gtk.c:
7173         * gccache-gtk.c:
7174         * gccache-gtk.h:
7175         * glade.c:
7176         * glyphs-gtk.c:
7177         * glyphs-gtk.h:
7178         * gtk-glue.c:
7179         * gtk-xemacs.c:
7180         * gtk-xemacs.h:
7181         * gui-gtk.c:
7182         * gui-gtk.h:
7183         * menubar-gtk.c:
7184         * native-gtk-toolbar.c:
7185         * objects-gtk.c:
7186         * objects-gtk.h:
7187         * redisplay-gtk.c:
7188         * scrollbar-gtk.c:
7189         * scrollbar-gtk.h:
7190         * select-gtk.c:
7191         * toolbar-gtk.c:
7192         * ui-byhand.c:
7193         * ui-gtk.c:
7194         * ui-gtk.h:
7195         The Great GTK Merge: new files.
7196
7197 2001-02-26  Ben Wing  <ben@xemacs.org>
7198
7199         Reapplied Lstream change.
7200
7201 2001-02-26  Ben Wing  <ben@xemacs.org>
7202
7203         Undid the last change, since it is more controversial than I
7204         thought.  It should be back in at some point soon.
7205         
7206 2001-02-25  Ben Wing  <ben@xemacs.org>
7207
7208         * buffer.c:
7209         * callproc.c (Fold_call_process_internal):
7210         * event-msw.c (ntpipe_slurp_reader):
7211         * event-msw.c (ntpipe_shove_writer):
7212         * event-msw.c (winsock_reader):
7213         * event-msw.c (winsock_writer):
7214         * file-coding.c:
7215         * file-coding.c (detect_eol_type):
7216         * file-coding.c (detect_coding_type):
7217         * file-coding.c (determine_real_coding_system):
7218         * file-coding.c (Fdetect_coding_region):
7219         * file-coding.c (decoding_reader):
7220         * file-coding.c (decoding_writer):
7221         * file-coding.c (mule_decode):
7222         * file-coding.c (Fdecode_coding_region):
7223         * file-coding.c (encoding_reader):
7224         * file-coding.c (encoding_writer):
7225         * file-coding.c (mule_encode):
7226         * file-coding.c (Fencode_coding_region):
7227         * file-coding.c (detect_coding_sjis):
7228         * file-coding.c (decode_coding_sjis):
7229         * file-coding.c (encode_coding_sjis):
7230         * file-coding.c (detect_coding_big5):
7231         * file-coding.c (decode_coding_big5):
7232         * file-coding.c (encode_coding_big5):
7233         * file-coding.c (detect_coding_ucs4):
7234         * file-coding.c (decode_coding_ucs4):
7235         * file-coding.c (encode_coding_ucs4):
7236         * file-coding.c (detect_coding_utf8):
7237         * file-coding.c (decode_coding_utf8):
7238         * file-coding.c (encode_coding_utf8):
7239         * file-coding.c (detect_coding_iso2022):
7240         * file-coding.c (decode_coding_iso2022):
7241         * file-coding.c (encode_coding_iso2022):
7242         * file-coding.c (decode_coding_no_conversion):
7243         * file-coding.c (encode_coding_no_conversion):
7244         * glyphs-x.c (write_lisp_string_to_temp_file):
7245         * gpmevent.c (tty_get_foreign_selection):
7246         * lisp.h:
7247         * lstream.c:
7248         * lstream.c (Lstream_flush_out):
7249         * lstream.c (Lstream_adding):
7250         * lstream.c (Lstream_write_1):
7251         * lstream.c (Lstream_write):
7252         * lstream.c (Lstream_raw_read):
7253         * lstream.c (Lstream_read_more):
7254         * lstream.c (Lstream_read):
7255         * lstream.c (Lstream_unread):
7256         * lstream.c (Lstream_fputc):
7257         * lstream.c (stdio_reader):
7258         * lstream.c (stdio_writer):
7259         * lstream.c (filedesc_reader):
7260         * lstream.c (filedesc_writer):
7261         * lstream.c (lisp_string_reader):
7262         * lstream.c (struct fixed_buffer_stream):
7263         * lstream.c (make_fixed_buffer_input_stream):
7264         * lstream.c (make_fixed_buffer_output_stream):
7265         * lstream.c (fixed_buffer_reader):
7266         * lstream.c (fixed_buffer_writer):
7267         * lstream.c (struct resizing_buffer_stream):
7268         * lstream.c (resizing_buffer_writer):
7269         * lstream.c (dynarr_writer):
7270         * lstream.c (lisp_buffer_reader):
7271         * lstream.c (lisp_buffer_writer):
7272         * lstream.h:
7273         * lstream.h (lstream_implementation):
7274         * lstream.h (struct lstream):
7275         * md5.c (Fmd5):
7276         * process-nt.c (nt_send_process):
7277         * process-unix.c (unix_send_process):
7278         
7279         Correct Lstream lossage due to mixing of signed and unsigned
7280         quantities.  All Lstream uses of size_t and ssize_t are now a
7281         single signed data type Lstream_data_count.  This fixes problems
7282         under Windows with sending large quantities of data to a process,
7283         and may well fix other subtle bugs.
7284
7285 2001-02-23  Martin Buchholz <martin@xemacs.org>
7286
7287         * XEmacs 21.2.45 "Thelxepeia" is released.
7288
7289 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7290
7291         * lisp-union.h (XSETINT): 
7292         (XSETCHAR):
7293         (XSETOBJ): 
7294         Reverse previous change of 2001-02-06.
7295
7296 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7297
7298         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7299         buffers.
7300         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7301         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7302         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7303         * regex.c (POS_AS_IN_BUFFER): removed
7304         * regex.c (re_search_2):
7305         * regex.c (re_match_2):
7306         Don't use an offset of 1 when calculating buffer positions, since
7307         `BI_BUF_BEGV' does it already.
7308
7309 2001-02-18  Wim Dumon  <wim@easics.be>
7310
7311         * insdel.c (prepare_to_modify_buffer): Also check for
7312         supersession when clash-detection is enabled. 
7313
7314 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7315
7316         * regex.c (re_match_2_internal):
7317         Convert temp characters from 'const unsigned char' to 're_char'.
7318         Fix crashing bug with extended characters under mule.
7319         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7320         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7321         font-lock, pdump, and new syntax-table code.
7322         * syntax.c (find_start_of_comment):
7323         (find_end_of_comment):
7324         (forward-comment):
7325         Fix crashing bugs involving moving beyond end of buffer.
7326         * syntax.c (find_start_of_comment):
7327         Fixed logic to allow proper detection of cases where the same
7328         character is used to end both a two-char comment start and a
7329         two-char comment end sequence. Fixes `(forward-comment -1)'.
7330         * syntax.c (find_start_of_comment):
7331         Return position just past last comment-end character for all cases
7332         (previously was only done for two-char comment-end sequences).
7333         * syntax.c (forward-comment):
7334         Take value returned from `find_end_of_comment', rather than
7335         incrementing it.
7336         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7337         Properly deal with BUFFERP (syntax_cache.object)
7338
7339 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7340
7341         * alloc.c (Fgarbage_collect): 
7342         * alloc.c (make_bit_vector_from_byte_vector):
7343         -Wsign-compare-correctness.
7344
7345 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7346
7347         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7348         (XSETCHAR): Likewise.
7349         (XSETOBJ): Likewise.
7350
7351 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7352
7353         * mule-canna.c (canna-func-delete_previous): 
7354         Rename to canna-func-delete-previous.
7355
7356 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7357
7358         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7359
7360 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7361
7362         * font-lock.c (find_context): Fix C++ compile errors introduced by
7363         recent patch
7364
7365 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7366
7367         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7368         pragma, but earlier ones barf on the same pragma.
7369
7370 2001-02-06  Mike Sperber <mike@xemacs.org>
7371
7372         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7373         `configure-mule-lisp-directory'.
7374
7375 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7376
7377         Make sure dump-id.c is compiled in the same way as other .c's.
7378         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7379         * dump-id.h: Remove.
7380         * emacs.c: Move dump-id.h into dumper.h.
7381         * dumper.h: Move dump-id.h into dumper.h.
7382         * Makefile.in.in:
7383         Use standard .c.o rule for building dump-id.o.
7384         Remove preprocessor flags from link command.
7385         Add dump-id.o to ${otherobjs} if PDUMP.
7386
7387 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7388
7389         Port FSF 20.7 syntax table improvements.
7390         * syntax.c.
7391         * syntax.h.
7392
7393         Fixups for new syntax table stuff.
7394         * dired.c: Include syntax.c.
7395         (Fdirectory_files): Initialize regex_match_object and
7396         regex_emacs_buffer.
7397         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7398         and Fget_char_property.
7399
7400         Use ported FSF 20.7 syntax table improvements.
7401         * font-lock.c.
7402         * regex.c.
7403         * search.c.
7404         
7405 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7406
7407         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7408         Unixware's enum boolean from sys/types.h.
7409
7410 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7411
7412         Fix support for building with latest Purify.
7413         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7414         (PURIFY_FLAGS): Likewise.
7415
7416 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7417
7418         * fileio.c (lisp_string_set_file_times): New.
7419         * fileio.c (Fcopy_file): Use it.
7420         Fixes bug:
7421         (copy-file filename non-ascii-filename t t)
7422         ==> No such file or directory, non-ascii-filename
7423
7424 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7425
7426         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7427         USHRT_MAX seems clearer than ~0 anyways.
7428
7429 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7430
7431         dumper improvements.  Inspired by Olivier.
7432         * dumper.c (pdump_max_align): New.
7433         * dumper.c (pdump_add_entry): Use pdump_max_align.
7434         * dumper.c (pdump_get_entry_list): Likewise.
7435         * dumper.c (pdump_scan_by_alignment): Likewise.
7436         Don't iterate through unnecessary alignments.
7437         * dumper.c (pdump_file_get): No need to align result of malloc().
7438         * dumper.c (pdump_mallocadr): Remove.  
7439         The result of malloc() is guaranteed to be maximally aligned.
7440         * dumper.c: s/elmt/elt/g;
7441         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7442         * dumper.c (pdump_alert_undump_object): Likewise.
7443         * dumper.c (pdump_align_table): 
7444         Don't support alignments > 64.
7445         Store ALIGNOF's, not shift counts, in table.
7446
7447 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7448
7449         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7450         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7451         * systime.h: Use HAVE_UTIME.
7452         * sysdep.c (struct utimbuf): Remove.
7453         * sysdep.c (set_file_times): Prefer utime() to utimes().
7454         * config.h.in (HAVE_UTIME): New.
7455         * config.h.in (HAVE_UTIME_H): Remove.
7456         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7457
7458 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7459
7460         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7461
7462 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7463
7464         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7465
7466 2001-02-08  Martin Buchholz <martin@xemacs.org>
7467
7468         * XEmacs 21.2.44 "Thalia" is released.
7469
7470 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7471
7472         Fixes crashes in kill-emacs on some systems.
7473         * process-unix.c (unix_kill_child_process):
7474         It's OK for kill() to fail with ESRCH.
7475
7476 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7477
7478         Contortions to make .gdbinit tricks work on most systems.
7479         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7480         * alloc.c (dbg_valmask): Make non-const.
7481         * alloc.c (dbg_typemask): Make non-const.
7482         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7483         * alloc.c (dbg_valbits): Make non-const.
7484         * alloc.c (dbg_gctypebits): Make non-const.
7485         * .gdbinit (decode_object): Make it work with AIX cc.
7486
7487 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7488
7489         * elhash.c (make_general_lisp_hash_table):
7490         Use simpler and more efficient calloc to clear entries.
7491
7492 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7493
7494         * window.c (window_scroll): Work around an AIX C compiler bug.
7495         Fixes 'scroll-up' does nothing problem with xlC.
7496
7497 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7498
7499         * .gdbinit: Remove obsolete comment.
7500
7501 2001-01-31  Mike Alexander  <mta@arbortext.com>
7502
7503         * select.c (Fown_selection_internal): Set owned_p for device
7504         method correctly.
7505
7506 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7507
7508         Port to g++ 2.97.
7509         "not" cannot be used as a macro name as it is an operator in C++
7510         * config.h.in: Stop #defining `not'.
7511         * chartab.c (check_category_char): not ==> not_p
7512         * chartab.h: Likewise.
7513         * regex.c (re_match_2_internal): Likewise.
7514
7515 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7516
7517         * lisp-disunion.h: Fix up comments.
7518
7519 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7520
7521         * keymap.c (define_key_check_and_coerce_keysym):
7522         (syms_of_keymap):
7523         Support mouse-6 and mouse-7 bindings in the obvious way.
7524
7525 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7526
7527         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7528
7529 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7530
7531         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7532         Previous patch missed DEFVAR_INT_MAGIC.
7533         Make sure future DEFVAR_foo use correct types.
7534         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7535         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7536         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7537         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7538         * (DEFVAR_INT): Likewise.
7539         * redisplay.c (vertical_clip): Should be of type Fixnum.
7540         * redisplay.c (horizontal_clip): Likewise.
7541         * lisp.h (dump_add_opaque_int): New.
7542         (dump_add_opaque_fixnum): New.
7543
7544 2001-01-29  Andy Piper  <andy@xemacs.org>
7545
7546         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7547         since they can be eval'ed
7548
7549 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7550
7551         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7552         Oops, XEmacs redefines `class'.  Use `typename' instead.
7553
7554 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7555
7556         * dumper.c: Fix C++ compile errors.
7557
7558 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7559
7560         * tparam.c: Use correct prototypes.
7561
7562 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7563
7564         * sysproc.h: #include util.h for NetBSD's openpty.
7565
7566 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7567
7568         More 64-bit correctness.
7569         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7570         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7571         Fix up comments.
7572         This finally finishes the 64-bit SGI port.
7573         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7574         * symbols.c: Fix up comments and type casts.
7575         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7576         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7577         * symeval.h (Fixnum): New type.
7578         * symeval.h (symbol_value_type): Fix up comment.
7579
7580         * commands.h:
7581         * nt.c:
7582         * emacs.c:
7583         * data.c:
7584         * redisplay.c:
7585         * abbrev.c:
7586         * dired-msw.c:
7587         * event-Xt.c:
7588         * eldap.c:
7589         * window.c:
7590         * sound.c:
7591         * event-stream.c:
7592         * eval.c:
7593         * buffer.c:
7594         * mule-canna.c: A million DEFVAR_INTs here...
7595         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7596         * extents.c:
7597         * cmdloop.c:
7598         * lisp.h:
7599         * select-x.c:
7600         * console-x.h:
7601         * event-msw.c:
7602         * mule-wnnfns.c:
7603         * hpplay.c:
7604         * ralloc.c:
7605         * alloc.c:
7606         * keymap.c:
7607         * profile.c:
7608         s/int/Fixnum/g in DEFVAR_INT declarations.
7609
7610 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7611
7612         Port pdump to SGI alignment-sensitive environment.
7613         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7614         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7615         properly aligned.
7616         Define and use aligned reading and writing macros.
7617         Use buffered stdio instead of posix i/o for faster dumping.
7618         Eliminate kludgy 256 byte space for header.
7619         Read and write from dump file using structs for alignment safety.
7620         * dumper.c (pdump_align_stream): New.
7621         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7622         * dumper.c (PDUMP_READ_ALIGNED): New.
7623         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7624         * dumper.c (pdump_static_Lisp_Object): New struct.
7625         * dumper.c (pdump_static_pointer): New struct.
7626         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7627         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7628         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7629         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7630
7631         * dumper.c (pdump_backtrace):
7632         * dumper.c (pdump_get_indirect_count):
7633         * dumper.c (pdump_register_object):
7634         * dumper.c (pdump_register_struct):
7635         * dumper.c (pdump_reloc_one):
7636         * dumper.c (pdump_scan_by_alignment):
7637         * dumper.c (pdump_dump_from_root_struct_ptrs):
7638         * dumper.c (pdump_dump_opaques):
7639         * dumper.c (pdump_dump_rtables):
7640         * dumper.c (pdump_dump_from_root_objects):
7641         * dumper.c (pdump):
7642         * dumper.c (pdump_load_finish):
7643         Use aligned reading and writing.
7644
7645         * dumper.c (pdump_free): Make static.
7646         * dumper.c (pdump_hFile): Likewise.
7647         * dumper.c (pdump_hMap): Likewise.
7648
7649 2001-01-26  Martin Buchholz <martin@xemacs.org>
7650
7651         * XEmacs 21.2.43 "Terspichore" is released.
7652
7653 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7654
7655         Type fiddling for window_config.saved_windows_count
7656         * window.c (struct window_config): 
7657         Make saved_windows_count member unsigned.
7658         * window.c (sizeof_window_config_for_n_windows): 
7659         Make parameter unsigned.
7660         * window.c (mark_window_config):
7661         * window.c (window_config_equal):
7662         * window.c (free_window_configuration):
7663         * window.c (Fset_window_configuration):
7664         * window.c (count_windows):
7665         * window.c (Fcurrent_window_configuration):
7666         * window.c (reinit_vars_of_window):
7667         Update all callers and users.
7668
7669 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7670
7671         Alignment correctness for flexible arrays.
7672         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7673         Make alignment-correct. Add interesting comments.
7674         * alloc.c (size_vector):
7675         * alloc.c (make_vector_internal):
7676         * alloc.c (make_bit_vector_internal):
7677         * alloc.c (sweep_bit_vectors_1):
7678         * fns.c (size_bit_vector):
7679         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7680         * window.c (sizeof_window_config_for_n_windows): 
7681         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7682
7683 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7684
7685         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7686
7687 2001-01-23  Andy Piper  <andy@xemacs.org>
7688
7689         * select.c (Fown_selection_internal): pass owned_p
7690
7691         * select-msw.c (mswindows_own_selection): New Signature.
7692
7693         * console.h (struct console_methods): add owned_p to
7694         _own_selection.
7695
7696         * select-x.c (x_own_selection): pass owned_p
7697         (hack_motif_clipboard_selection): use owned_p
7698         (vars_of_select_x): new variable -
7699         x_selection_strict_motif_ownership.
7700
7701 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7702
7703         * specifier.h (specifier_data_offset): Remove pointless parens.
7704         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7705
7706 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7707
7708         Make Lisp_Object sizeof methods be alignment-correct.
7709         pdump must restore objects to the same alignment as the C compiler
7710         assumes.  It really matters on SGIs.
7711         * lstream.c (aligned_sizeof_lstream): New.
7712         (sizeof_lstream): Use aligned_sizeof_lstream.
7713         (Lstream_new): Likewise.
7714         * opaque.c (aligned_sizeof_opaque): New.
7715         (sizeof_opaque): Use aligned_sizeof_opaque.
7716         (make_opaque): Likewise.
7717         * specifier.c (aligned_sizeof_specifier): New.
7718         (sizeof_specifier): Use aligned_sizeof_specifier.
7719         (make_specifier_internal): Likewise.
7720
7721 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7722
7723         * lstream.h (struct lstream): Use max_align_t for trailing data.
7724         * specifier.h (struct Lisp_Specifier): Likewise.
7725
7726 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7727
7728         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7729         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7730         (CCL_SUSPEND): Likewise.
7731         (CCL_INVALID_CMD): Likewise.
7732         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7733         (ccl_driver): Likewise.
7734         (CCL_WRITE_CHAR): Macro hygiene.
7735         (CCL_WRITE_STRING): Macro hygiene.
7736
7737 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7738
7739         Port "portable" dumper to SunOS 4 and HP-UX.
7740         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7741         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7742         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7743
7744 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7745
7746         * lisp.h (ALIGNOF): A better definition for C++.
7747
7748 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7749
7750         Macro hygiene.
7751         Fix printf warnings: int format, long int arg.
7752         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7753         (PUSH_FAILURE_POINT): Use correct printf formats.
7754         (POP_FAILURE_POINT): Use correct printf formats.  
7755         Use do {...} while (0)
7756
7757 2001-01-20  Martin Buchholz <martin@xemacs.org>
7758
7759         * XEmacs 21.2.42 "Poseidon" is released.
7760
7761 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7762
7763         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7764
7765 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7766
7767         De-kludgify FIXED_TYPE free list frobbing.
7768         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7769         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7770         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7771         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7772         * alloc.c (LRECORD_FREE_P): New.
7773         * alloc.c (MARK_LRECORD_AS_FREE): New.
7774         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7775         * alloc.c (STRUCT_FREE_P): Deleted.
7776         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7777         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7778         * alloc.c (STRING_CHARS_FREE_P): New.
7779         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7780         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7781         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7782         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7783         * alloc.c (resize_string): Use new definitions.
7784         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7785         * alloc.c (verify_string_chars_integrity): Use new definitions.
7786         * alloc.c (compact_string_chars): Use new definitions.
7787         * alloc.c: Update monster comments.
7788         * lrecord.h (lrecord_type): Add some new lrecord types for
7789         alloc.c's use.
7790
7791 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7792
7793         Improve alignment hackery.
7794         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7795         (max_align_t): Moved from opaque.h - general purpose.
7796         (ALIGN_PTR): Use size_t, not long.
7797         * opaque.h (max_align_t): Move to lisp.h.
7798
7799 2001-01-18  Norbert Koch  <nk@LF.net>
7800
7801         * gui.h: Fix and add prototypes to fix build problems.
7802
7803 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7804
7805         temacs is going away, so `dump-temacs' is now a bad name.
7806         * .dbxrc (dump-temacs): Rename to `dmp'.
7807         * .gdbinit (dump-temacs): Rename to `dmp'.
7808
7809 2001-01-17  Andy Piper  <andy@xemacs.org>
7810
7811         * glyphs.c (print_image_instance): comment to make martin happy.
7812
7813         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7814         change.
7815
7816         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7817         activation.
7818         (mswindows_tab_control_redisplay): warning suppression.
7819
7820         * glyphs-widget.c (widget_update): re-write to cope with updated
7821         items.
7822         (widget_instantiate): use new gui_item functions.
7823         (tab_control_update): deleted.
7824         (progress_gauge_update): deleted.
7825         (image_instantiator_progress_guage): take out update reference.
7826         (image_instantiator_tree_view): ditto.
7827         (image_instantiator_tab_control): ditto.
7828
7829         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7830         Right the new way.
7831         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7832         return whether anything was changed.
7833         (update_gui_item_keywords): as it sounds.
7834
7835         * gui.h: declare widget_gui_parse_item_keywords.
7836
7837         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7838         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7839
7840 2001-01-17  Martin Buchholz <martin@xemacs.org>
7841
7842         * XEmacs 21.2.41 "Polyhymnia" is released.
7843
7844 2001-01-16  Didier Verna  <didier@xemacs.org>
7845
7846         * glyphs.c (image_instantiate): don't use fallbacks when
7847         instantiating a face's background pixmap by inheritance.
7848
7849 2001-01-14  Mike Sperber <mike@xemacs.org>
7850
7851         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7852         Conditionalize accordingly.
7853
7854 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7855
7856         * dumper.c (pdump_file_get): Fix a compiler warning.
7857
7858 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7859
7860         Make Purify happy when pdumping.
7861         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7862         iniitalizing all bits of new lisp object memory.
7863         * symbols.c (Fmake_local_variable): Likewise.
7864         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7865         * symbols.c (Fdefvaralias): Likewise.
7866         * mule-charset.c (vars_of_mule_charset): Likewise.
7867
7868 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7869         Add the `-nd' flag when running pre-dump operations under the debugger.
7870         * .dbxrc (run-temacs): Add `-nd'.
7871         * .dbxrc (update-elc): Likewise.
7872         * .dbxrc (dump-temacs): Likewise.
7873         * .gdbinit (run-temacs): Likewise.
7874         * .gdbinit (check-temacs): Likewise.
7875         * .gdbinit (update-elc): Likewise.
7876         * .gdbinit (dump-temacs): Likewise.
7877
7878 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7879
7880         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7881         export OBJECT_MODE=64
7882         configure --pdump --use-union-type=no
7883         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7884         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7885
7886         * miscplay.c (sndcnv8U_2mono):
7887         Avoid two uses of `++' in the same expression.
7888         Suppresses a GCC warning.
7889
7890 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7891
7892         Make sure future compilers don't miscompile alloc.c.
7893         * alloc.c:
7894         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7895         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7896
7897 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7898
7899         * dumper.c: A little post-pdump-rename comment fixup.
7900
7901 2001-01-09  Jerry James  <james@eecs.ku.edu>
7902
7903         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7904
7905 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7906
7907         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7908         script:
7909         #!/bin/sh
7910         replace_symbol () {
7911           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7912         }
7913
7914         replace_symbol pdump_wire_lists pdump_weak_object_chains
7915         replace_symbol pdump_wire_list dump_add_weak_object_chain
7916
7917         replace_symbol pdump_wires pdump_root_objects
7918         replace_symbol pdump_wire dump_add_root_object
7919
7920         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7921         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7922
7923         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7924         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7925         replace_symbol dumpstructinfo pdump_root_struct_ptr
7926         replace_symbol dumpstruct dump_add_root_struct_ptr
7927
7928         replace_symbol dumpopaque dump_add_opaque
7929         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7930         replace_symbol dumpopaqueinfos pdump_opaques
7931         replace_symbol dumpopaqueinfo pdump_opaque
7932
7933         replace_symbol nb_structdump nb_root_struct_ptrs
7934         replace_symbol nb_opaquedump nb_opaques
7935
7936         replace_symbol align_table pdump_align_table
7937         replace_symbol dump_header pdump_header
7938
7939         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7940         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7941
7942
7943 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7944
7945         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7946         optimizing bytecount_to_charcount().
7947
7948 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7949
7950         * config.h.in:
7951         (HAVE_DLFCN_H): Removed.
7952         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7953
7954 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7955
7956         Portable dumper maintainability improvements.
7957         * alloc.c (staticpro):
7958         * alloc.c (staticpro_nodump):
7959         * alloc.c (garbage_collect_1):
7960         * alloc.c (reinit_alloc_once_early):
7961         * alloc.c (init_alloc_once_early):
7962         * alloc.c: Move dumper functions to alloc.c.
7963         * dumper.c (pdump_backtrace):
7964         * dumper.c (pdump_dump_structs):
7965         * dumper.c (pdump_dump_opaques):
7966         * dumper.c (pdump_dump_rtables):
7967         * dumper.c (pdump_dump_wired):
7968         * dumper.c (pdump):
7969         * dumper.c (pdump_load_check):
7970         * dumper.c (pdump_load_finish):
7971         * dumper.c (pdump_file_unmap):
7972         * dumper.c (pdump_file_get):
7973         * dumper.c (pdump_resource_free):
7974         * dumper.c (pdump_resource_get):
7975         * dumper.c (pdump_file_free):
7976         * dumper.c (pdump_file_try):
7977         * dumper.c (pdump_load):
7978         Remove fixed size limits on staticpro(), staticpro_nodump(),
7979         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7980         Remove custom code for dumping lrecord_implementations_table - use
7981         dumpopaque instead.
7982         Remove (most of the) custom code for dumping staticpros - dump it
7983         like any other dynarr.
7984
7985         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7986         * dumper.c: Moved functions from alloc.c.
7987         * alloc.c (dumpstruct): Moved to dumper.c.
7988         * alloc.c (dumpopaque): Likewise.
7989         * alloc.c (pdump_wire): Likewise.
7990         * alloc.c (pdump_wire_list): Likewise.
7991
7992         * lisp.h (Dynarr_sizeof): New.
7993         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7994         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7995         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7996
7997         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7998         * lisp.h (dumpopaque): ditto.
7999         * lisp.h (pdump_wire): ditto.
8000         * lisp.h (pdump_wire_list): ditto.
8001
8002 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8003
8004         * make-src-depend (PrintPatternDeps):
8005         Use `sort' to make output independent of perl version.
8006
8007 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8008
8009         Port to Netbsd 1.5.
8010         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8011         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8012
8013 2001-01-03  Didier Verna  <didier@xemacs.org>
8014
8015         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8016         that `focus_frame' is alive before thinking of calling
8017         `redisplay_redraw_cursor' on it.
8018
8019 2001-01-08  Martin Buchholz <martin@xemacs.org>
8020
8021         * XEmacs 21.2.40 is released.
8022
8023 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8024
8025         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8026
8027 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8028
8029         * alloc.c (dbg_valmask): Make const.
8030         * alloc.c (dbg_typemask): Make const.
8031         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8032         * alloc.c (dbg_valbits): Make const.
8033         * alloc.c (dbg_gctypebits): Make const.
8034
8035 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8036
8037         * redisplay-x.c (x_bevel_area):
8038         redisplay.h (struct rune):
8039         Typo fixes in comments.
8040
8041 2001-01-05  Andy Piper  <andy@xemacs.org>
8042
8043         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8044         adjustment.
8045
8046         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8047
8048 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8049
8050         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8051
8052         * mule-ccl.c (stack_idx_of_map_multiple):
8053         Non const global data must not be initialized!
8054         Found by MIYASHITA Hisashi.
8055
8056 2001-01-02  Andy Piper  <andy@xemacs.org>
8057
8058         * frame.c (change_frame_size): make sure frame size is always
8059         marked as changed.
8060
8061         * glyphs.c (image_instance_layout): minor code reuse.
8062
8063         * window.c (Fcurrent_window_configuration): revert previous
8064         change.
8065
8066 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8067
8068         * glyphs.h:
8069         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8070
8071 2000-12-31  Andy Piper  <andy@xemacs.org>
8072
8073         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8074         when widget gets unmapped.
8075
8076         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8077         function. Make sure widgets losing focus don't just drop it.
8078         (handle_focus_event_1): record the widget with focus.
8079
8080 2000-12-31  Andy Piper  <andy@xemacs.org>
8081
8082         * window.c (allocate_window): use
8083         make_image_instance_cache_hash_table.
8084         (make_dummy_parent): ditto.
8085         (Fset_window_configuration): ditto.
8086
8087         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8088
8089         * glyphs.c (process_image_string_instantiator): use
8090         INSTANTIATOR_TYPE.
8091         (get_image_instantiator_governing_domain): ditto.
8092         (normalize_image_instantiator): ditto.
8093         (instantiate_image_instantiator): ditto.
8094         (make_image_instance_1): ditto.
8095         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8096         (instantiator_eq_equal): new function for use with instance hash
8097         tables.
8098         (instantiator_eq_hash): ditto.
8099         (make_image_instance_cache_hash_table): create a suitable hash
8100         table for storing image instances.
8101
8102         * elhash.h (hash_table_weakness): new internal weakness type
8103         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8104         declare new functions.
8105
8106         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8107         another weakness type for glyphs.
8108         (make_standard_lisp_hash_table): new function split out from
8109         make_general_lisp_hash_table.
8110         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8111         (hash_table_instantiate): ditto.
8112         (Fmake_hash_table): ditto.
8113
8114 2000-12-31  Martin Buchholz <martin@xemacs.org>
8115
8116         * XEmacs 21.2.39 is released.
8117
8118 2000-12-29  Andy Piper  <andy@xemacs.org>
8119
8120         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8121
8122         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8123         the frame has changed so that we pick up geometry changes such as
8124         menubar visibility.
8125
8126 2000-12-28  Andy Piper  <andy@xemacs.org>
8127
8128         * lastfile.c (my_ebss): make a char array so we can pad the
8129         bss. Fixes cygwin unexec.
8130
8131         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8132
8133 2000-12-26  Andy Piper  <andy@xemacs.org>
8134
8135         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8136         comments and try and be more precise about a non-/SIGIO world.
8137         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8138         SIGIO.
8139
8140         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8141         we don't normalize to zero width or height.
8142
8143 2000-12-24  Andy Piper  <andy@xemacs.org>
8144
8145         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8146
8147 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8148
8149         * s/sco5.h: SCO 5 has pty support.
8150
8151 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8152
8153         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8154         input-method-xlib.c contains whole contents of input-method-xfs.c,
8155         so we can use input-method-xlib.c's code for USE_XFONTSET
8156         using #ifdefs.
8157         * input-method-xfs.c: removed.
8158
8159 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8160
8161         * file-coding.h (enum coding_category_type): reorder enumerators to
8162         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8163         (now one greater than largest real coding_category_type enumerator).
8164         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8165         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8166         Fcoding_category_list, Fset_coding_priority_list,
8167         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8168         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8169
8170 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8171
8172         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8173         * redisplay-output.c (redisplay_output_window): Clear top of window
8174         when face is changed.
8175         * redisplay-x.c (x_redraw_exposed_window): Call
8176         redisplay_clear_top_of_window.
8177         * redisplay.h: Publish redisplay_clear_top_of_window.
8178
8179 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8180
8181         * buffer.c (Fkill_buffer): Map over all devices.
8182         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8183         (list_windows): New function.
8184         (list_all_windows): Ditto.
8185         (Freplace_buffer_in_windows): Use them.
8186
8187 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8188
8189         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8190         (Fopen_database): Use `db_create' instead of `db_open'.
8191         (syms_of_database): Initialize Qqueue.
8192
8193 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8194
8195         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8196         buffer_local_face_property.
8197         * buffer.h (struct buffer): New member buffer_local_face_property.
8198         * window.c (Fset_window_buffer):  Mark window's face as changed
8199         when buffer has buffer local face.
8200         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8201         * objects.c (color_after_change): Set buffer_local_face_property
8202         when locale of face specifier is buffer.
8203         * objects.c (font_after_change): Ditto.
8204         * objects.c (face_boolean_after_change): Ditto.
8205         * glyphs.c (image_after_change): Ditto.
8206
8207 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8208
8209         * nt.c (mswindows_fstat): Report file permissions, volume serial
8210         number, etc. Code adapted from FSF Emacs 20.7.
8211
8212 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8213
8214         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8215         of stat when we don't have symbolic links, to make sure
8216         mswindows_stat is called on mswindows.
8217
8218 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8219
8220         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8221
8222 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8223
8224         * doprnt.c (emacs_doprnt_1): More printing fixes.
8225         Make printing of numbers compatible with libc and FSF Emacs.
8226         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8227         Use the system printf to do most of the hard work of formatting,
8228         instead of doprnt_1().
8229         Calculate memory to allocate for format string.
8230         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8231         (doprnt_1): Cleaner code and documentation.
8232
8233 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8234
8235         * Makefile.in.in: Use the loop variable to install headers.
8236
8237 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8238
8239         * window.c (Fsplit_window): Don't invalidate face cache.
8240
8241 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8242
8243         * minibuf.c (Fall_completions): Undo the previous change
8244         which removed checking elements start with space.
8245
8246 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8247
8248         * mule-canna.c: Didier suppression.
8249
8250 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8251
8252         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8253         (warning suppression).  Add English comment translations.
8254
8255 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8256
8257         * unexelfsgi.c (unexec): Better test for mmap failure.
8258
8259 2000-12-05  Martin Buchholz <martin@xemacs.org>
8260
8261         * XEmacs 21.2.38 is released.
8262
8263 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8264
8265         * redisplay.c (bar-cursor): Make a user variable.
8266
8267         * symsinit.h: Add init_postgresql_from_environment.
8268
8269 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8270
8271         * regex.c: Convert to clean C.
8272
8273 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8274
8275         * realpath.c:
8276         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8277         initialization.
8278         (sys_readlink): renamed to system_readlink to avoid conflict with
8279         the other sys_readlink.
8280
8281 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8282
8283         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8284
8285 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8286
8287         * postgresql.c (init_postgresql_from_environment): new function.
8288         (vars_of_postgresql): Move code initializing Lisp variables out and
8289         into init_postgresql_from_environment.
8290         emacs.c (main_1): Call init_postgresql_from_environment if and only
8291         if running a dumped XEmacs.
8292
8293 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8294
8295         * buffer.c: Make find-file-compare-truenames default to true on
8296         windows.
8297
8298         * realpath.c (win32_abs_start):
8299         (cygwin_readlink):
8300         (win32_readlink): New functions.
8301         (xrealpath): Return really real filenames on windows.
8302
8303         * fileio.c (Ffile_truename): Make file-truename work on windows.
8304
8305 2000-11-29  Didier Verna  <didier@xemacs.org>
8306
8307         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8308         * faces.c (update_face_cachel_data): use it.
8309         * faces.c (add_face_cachel): use it. Complete background pixmap
8310         frobbing in face cache if `update_face_cachel_data' has not done so.
8311
8312 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8313
8314         * search.c (string_match_1): Don't set last_thing_searched
8315         when search failed.
8316
8317 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8318
8319         * buffer.c: Include casetab.h
8320         (common_init_complex_vars_of_buffer): Use new case-table object.
8321         * buffer.h: Include casetab.h
8322         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8323         (DOWNCASE_TABLE_OF): Ditto.
8324         * bufslots.h: Remove char-tables and add case-table.
8325         * casetab.c: Include casetab.h
8326         (CASE_TABLE_P): Removed.
8327         (mark_case_table): New function.
8328         (allocate_case_table): New function.
8329         (Fcase_table_p): Use new case-table.
8330         (case_table_char): New function.
8331         (Fget_case_table): Ditto.
8332         (Fput_case_table): Ditto.
8333         (Fput_case_table_pair): Ditto.
8334         (Fcopy_case_table): Ditto.
8335         (Fcurrent_case_table): Return case-table.
8336         (Fstandard_case_table): Return case-table.
8337         (Fset_case_table): Fix doc-string.
8338         (set_case_table): Use case-table
8339         (syms_of_casetab): DEFSUBR new functions.
8340         (complex_vars_of_casetab): Set up standard case-table.
8341         * casetab.h: New file.
8342         * editfns.c: Include casetab.h
8343         (Fcompare_buffer_substrings): Use case-table.
8344         * inline.c: Include casetab.h
8345         * lisp.h: Remove bogus extern.
8346         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8347         * search.c: Include casetab.h
8348         (TRANSLATE_ASCII): Removed.
8349         (TRANSLATE): Unconditionally translate character.
8350         (looking_at_1): Use case-table.
8351         (string_match_1): Ditto.
8352         (fast_string_match): Ditto.
8353         (search_command): Ditto.
8354         (search_buffer): Separate boyer_moore.  Check whether
8355         boyer_moore is possible.
8356         (simple_search): New function.
8357         (boyer_moore): Separated from search_buffer. Translate char.
8358
8359 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8360
8361         * regex.c (RE_TR_ASCII): Removed.
8362         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8363         (PATFETCH): Call PATFETCH_RAW.
8364         (PATFETCH_RAW): Fetch Emchar.
8365         (PATUNFETCH): Decrement charptr.
8366         (GET_BUFFER_SPACE): Rename b to buf_end.
8367         (BUF_PUSH): Ditto.
8368         (BUF_PUSH_2): Ditto.
8369         (BUF_PUSH_3): Ditto.
8370         (EXTEND_BUFFER): Ditto.
8371         (SET_LIST_BIT): Ditto.
8372         (regex_compile): Ditto.  Translate non ASCII char.
8373         (compile_range): Ditto.
8374         (re_search_2): Ditto.
8375         (re_match_2_internal): Compare Emchar.
8376         (bcmp_translate): Ditto.
8377
8378 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8379
8380         * lisp.h (basic char/int typedefs):  comment improvement.
8381
8382 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8383
8384         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8385         unstomp inhibit_site_lisp.  Improve comments.
8386
8387 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8388
8389         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8390
8391 2000-11-28  Andy Piper  <andy@xemacs.org>
8392
8393         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8394         clipped display for windows in the gutter also.
8395         (redisplay_display_boxes_in_window_p): change semantics of return
8396         codes to be more intuitive.
8397
8398         * gutter.h: declare display_boxes_in_gutter_p.
8399
8400         * gutter.c (display_boxes_in_gutter_p): new function for
8401         redisplay.
8402
8403 2000-11-22  Andy Piper  <andy@xemacs.org>
8404
8405         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8406         autodetect domain.
8407
8408 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8409
8410         * callproc.c (Fold_call_process_internal):
8411         * gpm.c (Freceive_gpm_event):
8412         (tty_get_foreign_selection): Might be just warning supression.
8413         * fileio.c (Fwrite_region_internal):
8414         (Fset_visited_file_modtime):
8415         * keymap.c (event_matches_key_specifier_p):
8416         Initialize GCPROed variable.
8417
8418         * menubar-x.c (command_builder_find_menu_accelerator):
8419         Initialize before use.
8420
8421 2000-11-23  Andy Piper  <andy@xemacs.org>
8422
8423         * unexcw.c (unexec): make the resulting executable executable.
8424
8425 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8426
8427         * doc.c (get_doc_string):
8428         Use size_t, not int, for result of XSTRING_LENGTH.
8429
8430         * cmds.c (Fdelete_char):
8431         * cmds.c (Fpoint_at_eol):
8432         * cmds.c (Fself_insert_command):
8433         Use EMACS_INT, not int, for result of XINT.
8434         Someday, someone will want to insert more than 2**31 identical characters.
8435
8436         * cmds.c (Fdelete_char):
8437         * cmds.c (Fdelete_backward_char):
8438         * syntax.c (Fforward_word):
8439         * syntax.c (Fforward_comment):
8440         Make COUNT argument optional, for consistency with forward-char et al.
8441
8442 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8443
8444         * lisp.h:
8445         * print.c (long_to_string):
8446         Return a useful value: the pointer at end of data written.
8447
8448         * doprnt.c:
8449         Use `static const char * const' for constant strings.
8450         (union printf_arg): Delete `i', `ui' members.
8451         (get_doprnt_args):
8452         (emacs_doprnt_1):
8453         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8454         Do all printf-ing via the `l' specifier.
8455         Use EMACS_INT instead of int.
8456         Optimize.
8457
8458 2000-11-20  Didier Verna  <didier@xemacs.org>
8459
8460         * faces.c (update_face_cachel_data): don't frob the background
8461         pixmap when the window is being created. The face is needed but
8462         does not exist yet.
8463
8464 2000-11-20  Andy Piper  <andy@xemacs.org>
8465
8466         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8467         messing with a debug environment.
8468
8469 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8470
8471         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8472
8473 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8474
8475         * casetab.c (Fcase_table_p): Fix compile error and crash.
8476
8477 2000-11-18  Philip Aston  <philipa@mail.com>
8478
8479         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8480
8481 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8482
8483         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8484         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8485
8486 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8487
8488         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8489         * unexelf.c: Use HAVE_ELF_H.
8490         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8491         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8492         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8493         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8494         for testing.
8495         So this is an unexelfsgi.c from a different line of development.
8496
8497 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8498
8499         * regex.c (RE_TR_ASCII): New function.
8500         (RE_TRANSLATE): Call it.
8501
8502 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8503
8504         * buffer.h (TRT_TABLE_OF): Remove assert.
8505         (IN_TRT_TABLE_DOMAIN): Removed.
8506
8507 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8508
8509         * free-hook.c (log_gcpro):
8510         (show_gcprohist): Add support for GCPRO5.
8511
8512 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8513
8514         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8515
8516 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8517
8518         * symeval.h: Declare flush_all_buffer_local_cache.
8519
8520         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8521         (flush_buffer_local_cache): Added.
8522         (flush_all_buffer_local_cache): Added.
8523
8524         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8525
8526         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8527         (pdump_dump_data): Ditto.
8528         (pdump_reloc_one): Ditto.
8529         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8530         before dumping.
8531
8532
8533 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8534
8535         * buffer.c: Remove if 0'ed entry.
8536         * buffer.h: Rewrite TRT to use char-table.
8537         * bufslots.h: Remove mirror tables.
8538         * casetab.c: Remove mirror tables.
8539         (CASE_TABLE_P): New macro.
8540         (Fcase_table_p): Element of a case table is string or char-table.
8541         (make_mirror_trt_table): Removed.
8542         (set_case_table): Setup char-table from strings for backward
8543         compatibility.
8544         * dired.c (Fdirectory_files):
8545         * dired-msw.c: (mswindows_get_files):
8546         * lisp.h: Change prototype of re_pattern_buffer.
8547         * regex.c: (RE_TRANSLATE): New macro.
8548         (TRANSLATE_P): Ditto.
8549         Change translate to type RE_TRANSLATE_TYPE.
8550         * regex.h: Define RE_TRANSLATE_TYPE
8551         * search.c (TRANSLATE): New macro.
8552         (TRANSLATE_ASCII): New macro.
8553         Translate table is changed to Lisp_Object.
8554         (signal_failure): Inhibit return.
8555
8556 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8557
8558         * device-msw.c:
8559         * eldap.c:
8560         * event-Xt.c:
8561         * event-stream.c:
8562         * print.c:
8563         Do UNGCPRO before return.
8564
8565 2000-11-14  Martin Buchholz <martin@xemacs.org>
8566
8567         * XEmacs 21.2.37 is released.
8568
8569 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8570
8571         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8572         Add comments about discarded return value.
8573
8574 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8575
8576         * callint.c:
8577         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8578
8579 2000-10-27  Andy Piper  <andy@xemacs.org>
8580
8581         * gutter.c (Fset_default_gutter_position): default left and right
8582         gutters to visible.
8583         (calculate_gutter_size): calculate resonable heuristic for left
8584         and right gutter sizes.
8585         (specifier_vars_of_gutter): change left and right gutter sizes to
8586         autodetect.
8587         (calculate_gutter_size_from_display_lines): new function.
8588         (output_gutter): check for resizing on left and right gutters.
8589         (clear_gutter): don't special case top and left gutters.
8590         (specifier_vars_of_gutter): use new signature for
8591         set_specifier_caching.
8592
8593         * glyphs-x.c (x_redisplay_widget): spelling fix.
8594         * glyphs.c (specifier_vars_of_glyphs):
8595         * menubar.c (specifier_vars_of_menubar):
8596         * redisplay.c (specifier_vars_of_redisplay):
8597         * toolbar.c (specifier_vars_of_toolbar):
8598         * window.c (specifier_vars_of_window):
8599         * scrollbar.c (specifier_vars_of_scrollbar):
8600         (complex_vars_of_scrollbar): use new signature for
8601         set_specifier_caching.
8602
8603         * specifier.c (set_specifier_caching): include recompute flag.
8604         (recompute_one_cached_specifier_in_window): always recompute if
8605         flag set.
8606         (recompute_one_cached_specifier_in_frame): ditto.
8607
8608         * specifier.h (struct specifier_caching): add recompute flag.
8609
8610 2000-10-24  Andy Piper  <andy@xemacs.org>
8611
8612         * unexcw.c (copy_executable_and_dump_data_section): add new
8613         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8614         5.0 happy.
8615
8616 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8617
8618         * console-x.h (x_device): New member modifier_release_time.
8619         * event-Xt.c (x_handle_sticky_modifiers):
8620         Bound interval modifier keys are sticky.
8621         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8622         * events.h: extern it.
8623
8624 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8625
8626         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8627
8628 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8629
8630         * event-stream.c (execute_command_event): Preserve current_events
8631         and the like when event is misc-user-event.
8632         Inhibit quit during the call to maybe_echo_keys.
8633
8634 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8635
8636         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8637         symlink when buffer is killed.
8638         (inhibit_clash_detection): New variable.
8639
8640 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8641
8642         * console.c (Fset_input_method): Trigger redisplay on tty.
8643
8644 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8645
8646         * process.c (Fprocess_status): Revert to previous behavior:
8647         (process-status "nosuchprocess") ==> nil
8648
8649 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8650
8651         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8652         Work around another GCC 2.95.2 optimizer bug.
8653
8654 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8655
8656         * process.c (Fget_process): Use LIST_LOOP_2.
8657         (kill_buffer_processes): Use LIST_LOOP_2.
8658
8659         * minibuf.c (Fall_completions):
8660         Delete old non-functional code for FSF fourth argument.
8661
8662         * frame.c (frame_matches_frame_spec):
8663         Renamed from `frame_matches_frametype'.  Update all callers.
8664         (device_matches_device_spec):
8665         Renamed from 'device_matches_console_spec'.  Update all callers.
8666
8667         * doc.c (Fsubstitute_command_keys):
8668         Remove buffer overflow crash.  Small code cleanups.
8669
8670         * casetab.c (check_case_table): Simpler code.
8671
8672         * window.c (Freplace_buffer_in_windows):
8673         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8674         (and similar implementation) as Fdelete_windows_on.
8675         Update all callers.
8676
8677         * alloc.c (Fmake_list):
8678         * alloc.c (make_vector):
8679         * alloc.c (Fmake_vector):
8680         * alloc.c (make_bit_vector):
8681         * alloc.c (Fmake_bit_vector):
8682         * alloc.c (Fbit_vector):
8683         * alloc.c (Fmake_string):
8684         * alloc.c (Fpurecopy):
8685         * alloc.c (Fmemory_limit):
8686         * buffer.c:
8687         * buffer.c (Fget_buffer):
8688         * buffer.c (Fkill_buffer):
8689         * buffer.c (complex_vars_of_buffer):
8690         * bytecode.c (Fcompiled_function_stack_depth):
8691         * callint.c (Fprefix_numeric_value):
8692         * event-stream.c:
8693         * event-stream.c (Fread_key_sequence):
8694         * casetab.c:
8695         * casetab.c (Fcase_table_p):
8696         * casetab.c (check_case_table):
8697         * casetab.c (Fset_case_table):
8698         * casetab.c (Fset_standard_case_table):
8699         * chartab.c:
8700         * chartab.c (Fchar_table_type):
8701         * chartab.c (Freset_char_table):
8702         * chartab.c (Fget_char_table):
8703         * chartab.c (Fget_range_char_table):
8704         * chartab.c (Fput_char_table):
8705         * chartab.c (Fmap_char_table):
8706         * chartab.c (Fcategory_table_p):
8707         * chartab.c (Fcheck_category_at):
8708         * chartab.c (Fchar_in_category_p):
8709         * chartab.c (Fcategory_table):
8710         * chartab.c (Fcopy_category_table):
8711         * chartab.c (Fset_category_table):
8712         * chartab.c (Fcategory_designator_p):
8713         * chartab.c (Fcategory_table_value_p):
8714         * cmds.c (Fdelete_char):
8715         * cmds.c (Fdelete_backward_char):
8716         * cmds.c (Fself_insert_command):
8717         * cmds.c (Fself_insert_internal):
8718         * console.c (Fvalid_console_type_p):
8719         * console.c (Fcdfw_console):
8720         * console.c (Fconsole_type):
8721         * console.c (Fconsole_name):
8722         * console.c (Fconsole_device_list):
8723         * console.c (Fconsole_on_window_system_p):
8724         * data.c:
8725         * data.c (Feq):
8726         * data.c (Fold_eq):
8727         * data.c (Fsubr_interactive):
8728         * data.c (Fchar_to_int):
8729         * data.c (Fint_to_char):
8730         * data.c (Fsetcar):
8731         * data.c (Fsetcdr):
8732         * data.c (Fnumber_to_string):
8733         * data.c (Fstring_to_number):
8734         * data.c (Frem):
8735         * database.c (mark_database):
8736         * database.c (finalize_database):
8737         * database.c (Fdatabase_live_p):
8738         * database.c (Fdatabasep):
8739         * device-x.c (Fx_get_resource):
8740         * device.c (Fdfw_device):
8741         * dired.c:
8742         * dired.c (Ffile_name_completion):
8743         * dired.c (Ffile_name_all_completions):
8744         * dired.c (Fuser_name_completion):
8745         * dired.c (Fuser_name_completion_1):
8746         * dired.c (Fuser_name_all_completions):
8747         * doc.c (Fdocumentation):
8748         * doc.c (Fdocumentation_property):
8749         * doc.c (Fsubstitute_command_keys):
8750         * editfns.c:
8751         * editfns.c (Fchar_to_string):
8752         * editfns.c (Fstring_to_char):
8753         * editfns.c (Ftemp_directory):
8754         * editfns.c (Finsert_char):
8755         * editfns.c (Fbuffer_substring_no_properties):
8756         * editfns.c (Fnarrow_to_region):
8757         * editfns.c (Fchar_equal):
8758         * editfns.c (Fchar_Equal):
8759         * editfns.c (Ftranspose_regions):
8760         * emacs.c (Fdump_emacs):
8761         * eval.c (Fthrow):
8762         * eval.c (Fcommand_execute):
8763         * eval.c (Fautoload):
8764         * eval.c (Fbacktrace):
8765         * eval.c (Fbacktrace_frame):
8766         * events.c:
8767         * events.c (Fcopy_event):
8768         * events.c (Fcharacter_to_event):
8769         * events.c (Fevent_button):
8770         * events.c (Fevent_process):
8771         * extents.c:
8772         * extents.c (Fnext_extent_change):
8773         * extents.c (Fextent_property):
8774         * faces.c (Ffacep):
8775         * faces.c (Fmake_face):
8776         * file-coding.c:
8777         * file-coding.c (Fencode_shift_jis_char):
8778         * file-coding.c (Fencode_big5_char):
8779         * fileio.c (Ffile_name_directory):
8780         * fileio.c (Ffile_name_nondirectory):
8781         * fileio.c (Ffile_name_as_directory):
8782         * fileio.c (Fdirectory_file_name):
8783         * fileio.c (Ffile_truename):
8784         * fileio.c (Fsubstitute_in_file_name):
8785         * fileio.c (Ffile_modes):
8786         * fileio.c (Fset_file_modes):
8787         * fileio.c (Fset_default_file_modes):
8788         * fileio.c (Fverify_visited_file_modtime):
8789         * floatfns.c (Facos):
8790         * floatfns.c (Fasin):
8791         * floatfns.c (Fatan):
8792         * floatfns.c (Fcos):
8793         * floatfns.c (Fsin):
8794         * floatfns.c (Ftan):
8795         * floatfns.c (Fbessel_j0):
8796         * floatfns.c (Fbessel_j1):
8797         * floatfns.c (Fbessel_jn):
8798         * floatfns.c (Fbessel_y0):
8799         * floatfns.c (Fbessel_y1):
8800         * floatfns.c (Fbessel_yn):
8801         * floatfns.c (Ferf):
8802         * floatfns.c (Ferfc):
8803         * floatfns.c (Flog_gamma):
8804         * floatfns.c (Fexp):
8805         * floatfns.c (Fexpt):
8806         * floatfns.c (Flog):
8807         * floatfns.c (Flog10):
8808         * floatfns.c (Fsqrt):
8809         * floatfns.c (Fcube_root):
8810         * floatfns.c (Facosh):
8811         * floatfns.c (Fasinh):
8812         * floatfns.c (Fatanh):
8813         * floatfns.c (Fcosh):
8814         * floatfns.c (Fsinh):
8815         * floatfns.c (Ftanh):
8816         * floatfns.c (Fabs):
8817         * floatfns.c (Ffloat):
8818         * floatfns.c (Flogb):
8819         * floatfns.c (Fceiling):
8820         * floatfns.c (Ffloor):
8821         * floatfns.c (Fround):
8822         * floatfns.c (Ftruncate):
8823         * floatfns.c (Ffceiling):
8824         * floatfns.c (Fffloor):
8825         * floatfns.c (Ffround):
8826         * floatfns.c (Fftruncate):
8827         * fns.c (Fstring_equal):
8828         * fns.c (Fstring_lessp):
8829         * fns.c (concat2):
8830         * fns.c (concat3):
8831         * fns.c (vconcat2):
8832         * fns.c (vconcat3):
8833         * fns.c (Fsubstring):
8834         * fns.c (Fassoc):
8835         * fns.c (Fold_assoc):
8836         * fns.c (assoc_no_quit):
8837         * fns.c (Fassq):
8838         * fns.c (Fold_assq):
8839         * fns.c (assq_no_quit):
8840         * fns.c (Frassoc):
8841         * fns.c (Fold_rassoc):
8842         * fns.c (Frassq):
8843         * fns.c (Fold_rassq):
8844         * fns.c (rassq_no_quit):
8845         * fns.c (Fremassoc):
8846         * fns.c (remassoc_no_quit):
8847         * fns.c (Fremassq):
8848         * fns.c (remassq_no_quit):
8849         * fns.c (Fremrassoc):
8850         * fns.c (Fremrassq):
8851         * fns.c (remrassq_no_quit):
8852         * fns.c (Fsort):
8853         * fns.c (Fplist_get):
8854         * fns.c (Fplist_put):
8855         * fns.c (Fplist_remprop):
8856         * fns.c (Fplist_member):
8857         * fns.c (Flax_plist_get):
8858         * fns.c (Flax_plist_put):
8859         * fns.c (Flax_plist_remprop):
8860         * fns.c (Flax_plist_member):
8861         * fns.c (Fequal):
8862         * fns.c (Fold_equal):
8863         * fns.c (Frequire):
8864         * fns.c (Fbase64_encode_region):
8865         * fns.c (Fbase64_encode_string):
8866         * fns.c (Fbase64_decode_region):
8867         * frame.c:
8868         * frame.c (frame_matches_frame_spec):
8869         * frame.c (device_matches_device_spec):
8870         * frame.c (next_frame):
8871         * frame.c (previous_frame):
8872         * frame.c (Fnext_frame):
8873         * frame.c (Fprevious_frame):
8874         * frame.c (Fframe_property):
8875         * frame.c (Fset_frame_height):
8876         * frame.c (Fset_frame_size):
8877         * frame.h:
8878         * glyphs.c:
8879         * glyphs.c (if):
8880         * glyphs.c (decode_error_behavior_flag):
8881         * glyphs.c (Fmake_image_instance):
8882         * indent.c (Findent_to):
8883         * intl.c (Fignore_defer_gettext):
8884         * keymap.c (Fkeymapp):
8885         * keymap.c (Flookup_key):
8886         * lread.c:
8887         * lread.c (Fload_internal):
8888         * lread.c (Feval_buffer):
8889         * lread.c (Feval_region):
8890         * macros.c (Fexecute_kbd_macro):
8891         * marker.c (set_marker_internal):
8892         * marker.c (Fset_marker):
8893         * marker.c (set_marker_restricted):
8894         * marker.c (Fcopy_marker):
8895         * marker.c (noseeum_copy_marker):
8896         * menubar.c:
8897         * menubar.c (Fpopup_menu):
8898         * minibuf.c:
8899         * mule-charset.c (Fcharset_name):
8900         * mule-charset.c (Fchar_charset):
8901         * mule-charset.c (Fchar_octet):
8902         * mule-charset.c (Fsplit_char):
8903         * mule-wnnfns.c (Fwnn_open):
8904         * mule-wnnfns.c (Fwnn_dict_comment):
8905         * mule-wnnfns.c (Fwnn_quit_henkan):
8906         * mule-wnnfns.c (Fwnn_word_toroku):
8907         * mule-wnnfns.c (Fwnn_word_sakujo):
8908         * mule-wnnfns.c (Fwnn_word_use):
8909         * mule-wnnfns.c (Fwnn_hindo_set):
8910         * objects.c:
8911         * objects.c (Fmake_color_instance):
8912         * objects.c (Fmake_font_instance):
8913         * print.c (Fwrite_char):
8914         * process.c:
8915         * process.c (mark_process):
8916         * process.c (print_process):
8917         * process.c (get_process_from_usid):
8918         * process.c (Fprocessp):
8919         * process.c (Fprocess_live_p):
8920         * process.c (Fget_process):
8921         * process.c (Fget_buffer_process):
8922         * process.c (get_process):
8923         * process.c (Fprocess_id):
8924         * process.c (Fprocess_name):
8925         * process.c (Fprocess_command):
8926         * process.c (init_process_io_handles):
8927         * process.c (start_process_unwind):
8928         * process.c (Fstart_process_internal):
8929         * process.c (Fopen_multicast_group_internal):
8930         * process.c (Fset_process_window_size):
8931         * process.c (read_process_output):
8932         * process.c (send_process):
8933         * process.c (Fprocess_tty_name):
8934         * process.c (Fset_process_buffer):
8935         * process.c (Fprocess_buffer):
8936         * process.c (Fprocess_mark):
8937         * process.c (set_process_filter):
8938         * process.c (Fset_process_filter):
8939         * process.c (Fprocess_filter):
8940         * process.c (Fprocess_send_region):
8941         * process.c (Fprocess_send_string):
8942         * process.c (exec_sentinel):
8943         * process.c (Fset_process_sentinel):
8944         * process.c (Fprocess_sentinel):
8945         * process.c (status_notify):
8946         * process.c (Fprocess_status):
8947         * process.c (Fprocess_exit_status):
8948         * process.c (process_send_signal):
8949         * process.c (Fprocess_send_eof):
8950         * process.c (deactivate_process):
8951         * process.c (remove_process):
8952         * process.c (Fdelete_process):
8953         * process.c (kill_buffer_processes):
8954         * process.c (Fprocess_kill_without_query):
8955         * process.c (Fprocess_kill_without_query_p):
8956         * rangetab.c:
8957         * rangetab.c (Fget_range_table):
8958         * rangetab.c (Fput_range_table):
8959         * rangetab.c (Fremove_range_table):
8960         * rangetab.c (Fclear_range_table):
8961         * search.c:
8962         * search.c (Fskip_chars_forward):
8963         * search.c (Fskip_chars_backward):
8964         * search.c (Fskip_syntax_forward):
8965         * search.c (Fskip_syntax_backward):
8966         * search.c (search_command):
8967         * search.c (Freplace_match):
8968         * search.c (Fregexp_quote):
8969         * select.c (Fown_selection_internal):
8970         * select.c (Fselection_owner_p):
8971         * select.c (Fselection_exists_p):
8972         * select.c (Fget_selection_internal):
8973         * specifier.c:
8974         * symbols.c:
8975         * symbols.c (Fintern):
8976         * symbols.c (Fintern_soft):
8977         * symbols.c (Funintern):
8978         * symbols.c (Fapropos_internal):
8979         * symbols.c (Fset_default):
8980         * syntax.c:
8981         * syntax.c (Fsyntax_table_p):
8982         * syntax.c (Fcopy_syntax_table):
8983         * syntax.c (Fset_syntax_table):
8984         * syntax.c (Fchar_syntax):
8985         * syntax.c (syntax_match):
8986         * syntax.c (Fmatching_paren):
8987         * syntax.c (Fforward_word):
8988         * syntax.c (scan_lists):
8989         * syntax.c (Fscan_lists):
8990         * syntax.c (Fscan_sexps):
8991         * syntax.c (Fparse_partial_sexp):
8992         * toolbar.c (Fcheck_toolbar_button_syntax):
8993         * tooltalk.doc:
8994         * window.c:
8995         * window.c (Fwindowp):
8996         * window.c (Fwindow_live_p):
8997         * window.c (Fwindow_point):
8998         * window.c (Fdelete_window):
8999         * window.c (Fnext_window):
9000         * window.c (Fprevious_window):
9001         * window.c (Fother_window):
9002         * window.c (window_loop):
9003         * window.c (Fget_lru_window):
9004         * window.c (Fsplit_window):
9005         * window.c (Fenlarge_window):
9006         * window.c (Fenlarge_window_pixels):
9007         * window.c (Fshrink_window):
9008         * window.c (Fshrink_window_pixels):
9009         * window.c (change_window_height):
9010         * window.c (Fwindow_configuration_p):
9011         * window.c (Fcurrent_window_configuration):
9012         * window.h:
9013         * casefiddle.c (casify_object):
9014         * casefiddle.c (Fupcase):
9015         * casefiddle.c (Fdowncase):
9016         * casefiddle.c (Fcapitalize):
9017         * casefiddle.c (Fupcase_initials):
9018         * casefiddle.c (casify_region_internal):
9019         * casefiddle.c (casify_region):
9020         * casefiddle.c (Fupcase_region):
9021         * casefiddle.c (Fdowncase_region):
9022         * casefiddle.c (Fcapitalize_region):
9023         * casefiddle.c (Fupcase_initials_region):
9024         * casefiddle.c (Fupcase_word):
9025         * casefiddle.c (Fdowncase_word):
9026         * casefiddle.c (Fcapitalize_word):
9027         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9028         Replace 0 with '\0' when working with bytes.
9029         Replace initial "(" with "\(" in docstrings.
9030
9031 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9032
9033         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9034
9035         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9036
9037 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9038
9039         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9040
9041 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9042
9043         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9044         correctly.
9045
9046 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9047
9048         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9049         (inhibit_auto_save_session): New variable.
9050         (vars_of_fileio): Declare and initialize them.
9051         * fileio.c (Fdo_auto_save): Don't create session file if
9052         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9053
9054 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9055
9056         * sgiplay.c (play_internal): C++ compilability.
9057         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9058         * callproc.c (Fold_call_process_internal):
9059         Remove unused vars `env', `first'.
9060         * scrollbar.c (update_scrollbar_instance):
9061         #### unused var `current_window'.
9062         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9063         etc. within #ifdef NOT_YET.
9064         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9065         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9066         * specifier.c (specifier_instance):
9067         #### unused var `tag'.
9068         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9069
9070 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9071
9072         * fns.c (Fbutlast):
9073         * fns.c (list_sort):
9074         * fns.c (Ffillarray):
9075         * fns.c (bytecode_nconc2):
9076         * fns.c (Fnconc):
9077         * fns.c (mapcar1):
9078         * fns.c (Fmapconcat):
9079         Be pedantically 64-bit correct.  For the time when someone will
9080         want to have a list with length > 2**32.
9081
9082         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9083         Work around MIPSpro compiler bug.
9084
9085         * process-unix.c (unix_kill_child_process): Add snarky comment.
9086         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9087
9088         * config.h.in: Oops, _getpt ==> _getpty
9089
9090 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9091
9092         * config.h.in:
9093         * regex.c:
9094         Use void*, not char*, as return type of alloca().
9095
9096         * alloc.c (free_marker): Side effect inside assert expression!
9097
9098 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9099
9100         * mule-charset.c (Fset_charset_ccl_program): To check
9101         if the given ccl program is valid, use setup_ccl_program()
9102         instead of CHECK_VECTOR().
9103         (Fmake_charset): Likewise.
9104
9105 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9106
9107         * faces.c (get_extent_fragment_face_cache_index):
9108         Fix cachel.merged_faces memory leak.
9109
9110 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9111
9112         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9113         Reset MSB of octets obtained by DECODE_SJIS
9114         because of the incompatibility with Emacs.
9115         (ccl_driver)<CCL_ENCODE_SJIS>:
9116         Set MSB of octets before passing them to
9117         ENCODE_SJIS because of the incompatibility
9118         with Emacs.
9119
9120 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9121
9122         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9123         (DECLARE_LRECORD): Undo the last change.
9124         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9125
9126 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9127
9128         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9129         the implementation to lrecord_implementations_table.
9130
9131 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9132
9133         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9134         initial value of `lrecord_type_##c_name' and
9135         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9136         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9137         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9138         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9139         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9140
9141 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9142
9143         * miscplay.c (sndcnv8S_2mono):
9144         (sndcnv2monounsigned):
9145         (sndcnvULaw_2linear):
9146         (sndcnv16swap):
9147         Remove implementation-defined behavior.
9148
9149 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9150
9151         * input-method-xlib.c: Warning suppression.
9152
9153 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9154
9155         * mule-ccl.c: Sync up with Emacs 21.0.90.
9156         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9157         Do nothing.
9158         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9159         Likewise.
9160         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9161         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9162         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9163         leading char belongs to official 2-dimensional charset.
9164         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9165         write the given character as is.  Otherwise,
9166         if it is a multibyte char, convert it by
9167         non_ascii_set_charptr_emchar, then write it.
9168         (CCL_WRITE_STRING): Likewise.
9169         (ccl_get_compiled_code): New function.
9170         (setup_ccl_program): When ccl_prog is invalid,
9171         return -1.
9172         (Fregister_code_conversion_map): New function.
9173         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9174
9175         * mule-ccl.h: Sync up with Emacs 21.0.90.
9176         (Fregister_ccl_program): export it.
9177
9178         * redisplay-msw.c (separate_textual_runs):
9179         If ccl program is not valid, don't do ccl conversion.
9180
9181         * redisplay-x.c (separate_textual_runs): Ditto.
9182
9183         * file-coding.c (Fmake_coding_system):
9184         When type is ccl and value is vector, register it
9185         with a proper symbol.  And checks whether the
9186         given ccl program is valid.
9187         (mule_decode): When calling ccl_driver, if src indicates
9188         NULL pointer, set an empty string instead.
9189         (mule_encode): Likewise.
9190
9191 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9192
9193         The following large batch of changes gets us back to a state of
9194         C++ compilability.  Extbyte is now a char, which means that
9195         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9196
9197         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9198
9199         * sound.c (Fplay_sound): Type correctness.
9200
9201         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9202         (x_get_window_property): Type correctness.
9203         (receive_incremental_selection): unsigned char ==> Extbyte
9204         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9205         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9206         (Fx_store_cutbuffer_internal): Type correctness.
9207
9208         * process-unix.c (try_to_initialize_subtty): Type correctness.
9209
9210         * objects-x.c (x_print_color_instance): Type correctness.
9211         (x_print_font_instance): Type correctness.
9212         (x_list_fonts): SExtbyte ==> Extbyte.
9213         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9214         (x_find_charset_font): SExtbyte ==> Extbyte.
9215         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9216         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9217         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9218         Use bufbyte_strcmp.
9219
9220         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9221         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9222         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9223         (BYTE_C0_P): Use bit ops for char-signedness safety.
9224         (BYTE_C1_P): Use bit ops for char-signedness safety.
9225         (CHARSET_BY_LEADING_BYTE):
9226         (CHARSET_BY_ATTRIBUTES):
9227         Always use inline function.
9228         Use type_checking_assert.
9229         Hide chlook.
9230
9231         * mule-charset.c (non_ascii_charptr_copy_char):
9232         Modify to work with both ASCII and non-ASCII characters.
9233         Improve docs and variable names.
9234         Replace over-clever fall-through switch with a simple loop.
9235         (Lstream_get_emchar_1):
9236         Replace over-clever fall-through switch with a simple loop.
9237
9238         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9239         Warning suppression.
9240
9241         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9242         the return value of Lstream_getc, which could be EOF as well.
9243
9244         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9245
9246         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9247         APIs can be used on Extbytes without casts.  Risky!
9248         (SExtbyte): Remove.
9249         (UExtbyte): Remove.
9250
9251         * input-method-xlib.c (XIM_init_device):
9252         Use Xlib.h instead of IntrinsicP.h.
9253         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9254         which will break in X11R7.
9255         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9256         to call XRegisterIMInstantiateCallback with correct types.
9257
9258         * gui-x.c (button_item_to_widget_value): Type correctness.
9259
9260         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9261
9262         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9263         (xbm_instantiate_1): Type correctness.
9264         (BUILD_GLYPH_INST):  Type correctness.
9265
9266         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9267
9268         * file-coding.c:
9269         (decode_coding_sjis):
9270         (decode_coding_big5):
9271         (decode_coding_ucs4):
9272         (decode_coding_utf8):
9273         (decode_coding_iso2022):
9274         (decode_coding_no_conversion):
9275         Make all decoding functions take an Extbyte * arg.
9276         (encode_coding_sjis):
9277         (encode_coding_big5):
9278         (encode_coding_ucs4):
9279         (encode_coding_utf8):
9280         (encode_coding_iso2022):
9281         (encode_coding_no_conversion):
9282         Make all encoding functions take a Bufbyte * arg.
9283         Use size_t instead of unsigned int for memory sizes.
9284         Only cast to unsigned char whenever dereferencing Extbyte *.
9285
9286         * doc.c (unparesseuxify_doc_string): Type correctness.
9287
9288         * console-x.c (split_up_display_spec):
9289         Rewrite without using details of internal string representation.
9290         (x_semi_canonicalize_device_connection): Type correctness.
9291
9292         * config.h.in:
9293         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9294         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9295         (HAVE_XFREE386): Removed.
9296
9297         * buffer.h (DEC_CHARPTR): `const' correctness.
9298         (bufbyte_strcmp): New.
9299         (bufbyte_memcmp): New.
9300
9301         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9302
9303         * buffer.h (XCHAR_OR_CHAR_INT):
9304         Always use inline function.
9305         Remove redundant type checking assert() - XINT will abort quite nicely.
9306
9307 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9308
9309         * search.c (Freplace_match): Set newtext to an empty string.
9310
9311 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9312
9313         * s/decosf1-3.h: Remove #include of stropts.h
9314         * s/ptx.h: Remove #include of stropts.h
9315         * s/usg5-4.h: Remove #include of stropts.h
9316         * sysproc.h:
9317         * config.h.in:
9318         Use stropts.h, not sys/stropts.h.
9319         Use strtio.h, not sys/strtio.h.
9320
9321 2000-10-04  Martin Buchholz <martin@xemacs.org>
9322
9323         * XEmacs 21.2.36 is released.
9324
9325 2000-09-21  Andy Piper  <andy@xemacs.org>
9326
9327         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9328         changes still involve copying the widget tree.
9329         (update_widget_face): make sure a change is register in the widget
9330         tree. Call update_tab_widget_face appropriately.
9331         (update_tab_widget_face): ditto.
9332         (x_tab_control_redisplay): make sure non-structural changes still
9333         involve copying the widget tree.
9334
9335 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9336
9337         * lread.c (locate_file): Check the path element is non-nil.
9338
9339 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9340
9341         * lisp.h: Warning suppression for SCO compilers.
9342
9343         * redisplay-tty.c (reset_tty_modes): Fix crash.
9344         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9345
9346 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9347
9348         Big signal/process handling overhaul.  Bugs fixed:
9349         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9350         M-x comint-kill-subjob should work for both values nil and t of
9351         process-connection-type. It was broken on most platforms.
9352         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9353         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9354         * process-unix.c: Signal/Process handling overhaul.
9355         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9356         (allocate_pty): Use all available modern methods of allocating
9357         ptys, falling back to old style BSD allocation as a last resort.
9358         Use allegedly more secure Unix98 pty allocation by default.
9359         (allocate_pty_the_old_fashioned_way): New. the last resort.
9360         (unix_create_process): Push ptem, ldterm, ttcompat where
9361         available.  Autoconfiscate.
9362         (try_to_initialize_subtty): New.
9363         (unix_kill_child_process): Proper signal handling for ptys on most
9364         platforms, using special knowledge of AIX, BSD, etc...
9365         (unix_create_process): Always disconnect_controlling_terminal() for
9366         subprocesses, whether using ptys or not.
9367         * process.h: Remove old getpt-dependent PTY code.
9368         * process.c (Fprocess_send_signal): New, obvious generic function.
9369         (decode_signal): New.
9370         (Finterrupt_process):
9371         (Fkill_process):
9372         (Fquit_process):
9373         (Fstop_process):
9374         (Fcontinue_process):
9375         (Fsignal_process): Use decode_signal.
9376         (process_send_signal):
9377         Many docstring corrections.
9378         Allow any signal to be sent to a process object.
9379         * config.h.in: Add symbols for big signal/process overhaul.
9380         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9381         * sysproc.h: Include process-related headers, where available:
9382         sys/stropts.h sys/strtio.h pty.h libutil.h
9383         * s/irix4-0.h:
9384         * s/irix5-0.h:
9385         * s/cygwin32.h:
9386         * s/gnu.h:
9387         * s/linux.h:
9388         * s/hpux.h:
9389         * s/aix3-1.h:
9390         Remove old S&M pty stuff.
9391         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9392         * systty.h: Simplify cpp hackery, improve comments.
9393         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9394
9395         * editfns.c (Fformat_time_string):
9396         Be a little more paranoid with the return value of ctime.
9397
9398         * fileio.c (check_executable):
9399         (check_writable):
9400         Use symbolic constants X_OK, W_OK.
9401
9402         * console-x.c (split_up_display_spec): Fix a warning.
9403
9404 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9405
9406         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9407         * ntproc.c (sys_spawnve): make_string ==> build_string
9408         Small clarity improvements.
9409
9410 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9411
9412         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9413
9414         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9415
9416         * config.h.in (HAVE_STRCASECMP): Remove.
9417
9418 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9419
9420         * redisplay-output.c (redisplay_output_pixmap):
9421         Cleaner and possibly more 64-bit correct code.
9422
9423 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9424
9425         * dumper.c (pdump_load_finish): move restoration of
9426         `noninteractive1' to emacs.c (main_1).
9427         * emacs.c (main_1): protect LISP-visible command-line flags
9428         from pdump_load().
9429
9430 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9431
9432         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9433         DUMP_TARGET instead of literal program names.
9434
9435 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9436
9437         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9438
9439 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9440
9441         * *: Spelling mega-patch
9442
9443 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9444
9445         * fns.c (bad_bad_turtle):
9446         Delete "Eek!" comment, since we fixed the bug to which it refers.
9447
9448 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9449
9450         * alloca.c: Replace REGISTER with register.
9451
9452 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9453
9454         * file-coding.c (ucs_to_char): Use countof.
9455
9456 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9457
9458         * file-coding.c: (ucs_to_char):
9459         (complex_vars_of_file_coding):
9460         Use countof instead of sizeof.
9461         Use CHECK_NATNUM instead of CHECK_INT.
9462
9463         * sysdep.c (strcasecmp): Remove.
9464         * device-x.c (ascii_strcasecmp): New.
9465         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9466         Avoid using non-standard non-portable strcasecmp.
9467
9468 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9469
9470         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9471         * font-lock.c: remove reference to emacsfns.h.
9472         * search.c: small doc improvement.
9473         * event-Xt.c: correct file names in comments.
9474         * console-x.h Correct file names in comments.
9475         * frame.c: Correct file names in comments.
9476         * event-stream.c: remove Energize from comments.
9477
9478 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9479
9480         * symeval.h (DEFERROR_STANDARD):
9481         (DEFERROR):
9482         (DEFSYMBOL):
9483         (DEFSYMBOL_NO_DUMP):
9484         (DEFSYMBOL_MULTIWORD_PREDICATE):
9485         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9486         (DEFKEYWORD):
9487         The construct &##name is not sensible C.
9488         Fixes compilation errors with Unixware native compiler.
9489
9490 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9491
9492         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9493         (next_frame_internal): Removed.  We now just have next_frame.
9494         (next_frame):
9495         Write a simpler and cleaner one-pass algorithm.
9496         Remove called_from_delete_device arg and #ifdefed-out code.
9497         (previous_frame):
9498         Renamed from prev_frame.  Update callers.
9499         Cleaned up to have an analogous implementation to next_frame.
9500         (other_visible_frames_internal): Remove the
9501         called_from_delete_device bogus arg, and hence, remove this
9502         function.  Just use other_visible_frames().
9503
9504         * window.c (Fnext_window):
9505         Prettify docstring.
9506         Since next_frame() is guaranteed to return a frame, remove check
9507         for nil inserted in previous patch.
9508         (Fprevious_window):
9509         Prettify docstring.
9510         Make code look more like Fnext_window.
9511         (window_loop):
9512         Respect the `console' arg when iterating through windows.
9513         Fixes bug: (get-buffer-window buffer t device) not respecting
9514         the `device' arg.
9515         This function needs more work, as others have pointed out.
9516
9517         * frame.h: Rename prev_frame to previous_frame.
9518         device_matches_console_spec no longer takes a `frame' arg.
9519
9520         * s/gnu.h:
9521         * s/linux.h:
9522         * s/hpux.h:
9523         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9524         From "Golubev I. N." <gin@mo.msk.ru>.
9525
9526         * make-src-depend: Fix typo.
9527
9528 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9529
9530         * window.c (Fnext_window):
9531         next_frame() might return nil, not a frame.
9532         Fixes this crash:
9533         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9534
9535         * frame.c (next_frame_internal):
9536         We've passed a frame if we've passed its device.
9537         Fixes this crash:
9538         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9539 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9540
9541 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9542
9543         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9544         Allow option to suppress accelerators in menu/dialog items.
9545         (populate_or_checksum_helper): Pass dialog title through above.
9546
9547 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9548
9549         * event-msw.c (mswindows_key_to_emacs_keysym):
9550         Add "pause" key, fix "menu" key.
9551
9552 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9553
9554         * eval.c (reinit_vars_of_eval):
9555         Increase max_lisp_eval_depth to 1000,
9556         required for thai-xtis.el to byte-compile under some circumstances.
9557
9558 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9559
9560         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9561         From Kenichi Handa.
9562
9563 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9564
9565         * make-src-depend: Make the generated Makefiles smaller.
9566
9567         * s/hpux.h (SETUP_SLAVE_PTY):
9568         Provide a %d in the format string for the errno argument.
9569
9570         * editfns.c (Ftemp_directory):
9571         Warning fix.
9572         Avoid buffer overrun on very long file name.
9573
9574         * input-method-xlib.c (XIM_init_device):
9575         6th parameter of XRegisterIMInstantiateCallback has different
9576         pointer types on different OSes, so simply cast to (void *).
9577
9578         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9579
9580         * sysdll.c (dll_open):
9581         shl_load will hang hard if passed a NULL filename.
9582         Simply return NULL for compatibility with dlopen.
9583         * sysdll.c: Conform to XEmacs coding standards.
9584
9585         * sysdep.c (get_pty_max_bytes):
9586         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9587
9588 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9589
9590         * tooltalk.c: Add #include <syssignal.h>
9591
9592 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9593
9594         * s/hpux.h: Don't use undefined function sigunblock().
9595
9596 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9597
9598         * config.h.in: Add HAVE_BALLOON_HELP.
9599         * emacs.c: Use HAVE_BALLOON_HELP.
9600         * Makefile.in.in (x_objs):
9601         Make Balloon Help conditional on finding shape.h.
9602
9603 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9604
9605         * syntax.c (regex_emacs_buffer_p): New variable.
9606         * syntax.h (regex_emacs_buffer_p): extern.
9607         * search.c (looking_at_1):
9608         (string_match_1):
9609         (fast_string_match):
9610         (search_buffer): Set regex_emacs_buffer_p.
9611         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9612         when before_dot, at_dot, after_dot.
9613
9614 2000-08-23  Andy Piper  <andy@xemacs.org>
9615
9616         * gui-x.c (popup_selection_callback): Only set action_occurred
9617         when we really have an image instance.
9618         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9619
9620 2000-08-23  Andy Piper  <andy@xemacs.org>
9621
9622         * gui-msw.c (mswindows_handle_gui_wm_command): set
9623         action_occurred.
9624         * gui-x.c (popup_selection_callback): ditto.
9625
9626         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9627         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9628         (struct Lisp_Image_Instance): add action_occurred flag.
9629
9630         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9631         (image_instance_changed): ditto.
9632         (reset_frame_subwindow_instance_cache): only unmap windows - do
9633         not remove them from the cache also.
9634
9635         * glyphs-widget.c (tab_control_update): better debug.
9636         (progress_gauge_update): ditto.
9637         (layout_update): ditto.
9638         (layout_instantiate): ditto.
9639         (tab_control_order_only_changed): cope with null pending items.
9640
9641         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9642         debug. Force selection of an item when an action occurred. Cope
9643         with null pending_items.
9644         (mswindows_progress_gauge_redisplay): better debug.
9645         * glyphs-x.c (x_tab_control_redisplay): ditto.
9646
9647         * redisplay.c (redisplay_frame): reset the frame cache if the
9648         frame is garbaged.
9649
9650         * window.c (Fset_window_configuration): potentially re-enable
9651         frame cache reset.
9652         (window_unmap_subwindows): need to finalize instances here since
9653         it is only used in mark_window_as_deleted.
9654
9655 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9656
9657         * nas.c (SndOpenDataForReading):
9658         nas.c (WaveOpenDataForReading):
9659         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9660         Somehow escaped from the 2000-08-14 patch.
9661
9662 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9663
9664         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9665         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9666
9667 2000-08-21  Andy Piper  <andy@xemacs.org>
9668
9669         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9670         window if it is not already displayed.
9671
9672         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9673         it is not already displayed.
9674
9675         * window.c (Fset_window_configuration): don't reset the frame
9676         cache.
9677
9678         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9679         instances from the frame cache if we are actually finalizing them.
9680         (reset_frame_subwindow_instance_cache): reset frame cache only
9681         after unmapping everything.
9682         (map_subwindow): set displayed flag after mapping.
9683
9684 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9685
9686         * data.c (indirect_function):
9687         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9688
9689         * eval.c (function_argcount):
9690         Use original function when signaling errors.
9691
9692 2000-08-18  Andy Piper  <andy@xemacs.org>
9693
9694         * frame.c (delete_frame_internal): use new
9695         free_frame_subwindow_instances name.
9696
9697         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9698         (add_tab_item): make return type correct.
9699         (mswindows_tab_control_instantiate): assert index of tab.
9700         (mswindows_tab_control_redisplay): Re-code to use
9701         gui_item_equal_sans_selected and gui_item_list_find_selected.
9702
9703         * glyphs-widget.c (tab_control_update): Correct comment.
9704
9705         * window.c (window_unmap_subwindows): use new
9706         unmap_subwindow_instance_cache_mapper.
9707         (window_unmap_subwindows_cache_mapper): deleted.
9708         (Fset_window_configuration): comparisons should now be with
9709         EQ. Preserve the subwindow instance cache across configuration
9710         changes.
9711         (allocate_window): ditto.
9712         (make_dummy_parent): ditto.
9713
9714         * glyphs.c (free_frame_subwindow_instances): rename from
9715         free_frame_subwindow_instance_cache. finalize all instances rather
9716         than just those in the display cache.
9717         (finalize_all_subwindow_instances): walk windows unmapping and
9718         finalizing subwindows.
9719         (unmap_subwindow_instance_cache_mapper): moved from
9720         window.c. Allow finalization as well as unmapping.
9721
9722         * gui.c (gui_item_list_find_selected): new function.
9723
9724         * gui.h (gui_item_list_find_selected): declare.
9725
9726         * glyphs-x.c (x_tab_control_redisplay): pick tab
9727         explicitly. Re-code to use gui_item_equal_sans_selected and
9728         gui_item_list_find_selected.
9729
9730         * glyphs-x.h: add lwlib-utils.h
9731
9732         * buffer.c (Frecord_buffer): undo previous change.
9733
9734 2000-08-09  Vin Shelton  <acs@xemacs.org>
9735
9736         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9737         possible.  Create temporary files more securely.  The patch was
9738         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9739         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9740         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9741         for details.
9742
9743 2000-08-07  Ben Wing  <ben@xemacs.org>
9744
9745         * getloadavg.c: remove duplicate (and windows-breaking)
9746         includes of fcntl.h and sys/file.h.
9747
9748         * nt.c: remove duplicate getloadavg() definition.
9749
9750         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9751         encodings.
9752
9753 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9754
9755         * eval.c (function_argcount): If function needs to be autoloaded
9756         actually use the loaded definition.
9757         GCPRO function.
9758
9759 2000-08-05  Ben Wing  <ben@xemacs.org>
9760
9761         * getloadavg.c: add prototype for getloadavg().  remove
9762         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9763         of the code).  remove duplicate header includes.
9764
9765         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9766
9767         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9768         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9769         useful load average.
9770
9771         * alloc.c (reinit_alloc_once_early): removed references to
9772         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9773         the lisp vars are the only things referencing the malloc_sbrk_*
9774         vars, and they were already if 0'd out.  these vars only exist
9775         in the older malloc.c, which is basically unused, and they're
9776         only for informational purposes.
9777
9778         * m\*.h: removed useless VIRT_ADDR_VARIES.
9779
9780         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9781
9782 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9783
9784         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9785         color if the image is a mono pixmap.
9786
9787 2000-07-30  Ben Wing  <ben@xemacs.org>
9788
9789         * Makefile.in.in (release):
9790         Remove stray @.
9791
9792         * buffer.c (directory_is_current_directory):
9793         * dired-msw.c (mswindows_get_files):
9794         * dired.c:
9795         * dired.c (Fdirectory_files):
9796         * dired.c (file_name_completion_stat):
9797         * dired.c (Ffile_attributes):
9798         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9799         preprocessor tricks, to avoid problems on some machines
9800         (e.g. SCO).
9801
9802         * callproc.c (egetenv): GC docs.
9803
9804         * console-msw.h:
9805         * console-msw.h (struct mswindows_dialog_id):
9806         * lrecord.h (lrecord_type):
9807         New object for use with MSW dialogs.
9808
9809         * console.h (struct console_methods):
9810         New enable/disable frame methods, for proper modal dialogs.
9811
9812         * device-msw.c (msprinter_default_printer): Fix to follow
9813         proper Mule conventions.
9814
9815         * device-msw.c:
9816         * device-msw.c (signal_open_printer_error):
9817         * device-msw.c (msprinter_init_device):
9818         * device-msw.c (ensure_not_printing):
9819         * device-msw.c (plist_get_margin):
9820         * device-msw.c (Fmsprinter_select_settings):
9821         * device-msw.c (finalize_devmode):
9822         * device-msw.c (Fmsprinter_settings_despecialize):
9823         * device-msw.c (signal_enum_priner_error):
9824         * extents.c (decode_extent):
9825         * extents.c (decode_map_extents_flags):
9826         * extents.c (decode_extent_at_flag):
9827         * extents.c (Fextent_at):
9828         * extents.c (Fextents_at):
9829         * extents.c (symbol_to_glyph_layout):
9830         [[[[2]]]] Use structured errors.
9831
9832         * dialog-msw.c:
9833         * dialog-msw.c (mswindows_is_dialog_msg):
9834         * dialog-msw.c (mark_mswindows_dialog_id):
9835         * dialog-msw.c (dialog_proc):
9836         * dialog-msw.c (handle_question_dialog_box):
9837         * dialog-msw.c (syms_of_dialog_mswindows):
9838         Define new object to clean up marking; use it as a dialog identifier.
9839         Call new delete-dialog-box-hook.
9840
9841         * dialog-x.c (dbox_selection_callback):
9842         * dialog-x.c (dbox_descriptor_to_widget_value):
9843         * dialog-x.c (x_make_dialog_box_internal):
9844         Call new delete-dialog-box-hook.
9845         Return an id.
9846
9847         * dialog.c:
9848         * dialog.c (syms_of_dialog):
9849         * dialog.c (vars_of_dialog):
9850         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9851
9852         * eval.c:
9853         * eval.c (signal_call_debugger):
9854         when noninteractive, output stack traces on the console instead
9855         of in a (never-seen) buffer.
9856
9857         * eval.c (signal_type_error):
9858         * eval.c (invalid_argument_2):
9859         * lisp.h:
9860         new funs for use w/structured errors.
9861
9862         * event-Xt.c:
9863         * event-Xt.c (x_to_emacs_keysym):
9864         * event-Xt.c (describe_event):
9865         * event-Xt.c (emacs_Xt_event_handler):
9866         * event-Xt.c (vars_of_event_Xt):
9867         * event-msw.c:
9868         * event-msw.c (mswindows_wnd_proc):
9869         * event-msw.c (vars_of_event_mswindows):
9870         rename {x,mswindows}-debug-events to debug-{}-events for
9871         consistency with other debug-foo variables.
9872
9873         * event-stream.c:
9874         document next-event more clearly.
9875
9876         * fileio.c (Ffile_name_directory):
9877         * fileio.c (Ffile_name_nondirectory):
9878         * fileio.c (Funhandled_file_name_directory):
9879         * fileio.c (file_name_as_directory):
9880         * fileio.c (Ffile_name_as_directory):
9881         * fileio.c (directory_file_name):
9882         * fileio.c (Fdirectory_file_name):
9883         * fileio.c (Fmake_temp_name):
9884         * fileio.c (Ffile_truename):
9885         * fileio.c (Fsubstitute_in_file_name):
9886         * fileio.c (expand_and_dir_to_file):
9887         * fileio.c (barf_or_query_if_file_exists):
9888         * fileio.c (check_executable):
9889         * fileio.c (Ffile_exists_p):
9890         * fileio.c (Ffile_writable_p):
9891         * fileio.c (Ffile_directory_p):
9892         * fileio.c (Ffile_regular_p):
9893         * fileio.c (Ffile_modes):
9894         * fileio.c (Ffile_newer_than_file_p):
9895         * fileio.c (Fverify_visited_file_modtime):
9896         * fileio.c (Fset_visited_file_modtime):
9897         * fileio.c (auto_save_1):
9898         (1). (2).
9899         fix up gcpro's.
9900
9901         * frame-msw.c:
9902         * frame-msw.c (mswindows_init_frame_1):
9903         * frame-msw.c (mswindows_enable_frame):
9904         * frame-msw.c (error_frame_unsizable):
9905         * frame-msw.c (msprinter_init_frame_1):
9906         * frame-msw.c (msprinter_init_frame_3):
9907         * frame-msw.c (console_type_create_frame_mswindows):
9908         (2).
9909         implement new enable/disable frame methods.
9910
9911         * frame-x.c:
9912         * frame-x.c (x_enable_frame):
9913         * frame-x.c (console_type_create_frame_x):
9914         implement new enable/disable frame methods.
9915
9916         * frame.c:
9917         * frame.c (Fdisable_frame):
9918         * frame.c (syms_of_frame):
9919         * frame.h (struct frame):
9920         implement new enable/disable frame methods/functions.
9921
9922         * general-slots.h:
9923         add initial-focus.
9924
9925         * glyphs-msw.c (mswindows_widget_instantiate):
9926         comment that initial-focus should be implemented.
9927
9928         * glyphs-widget.c:
9929         * glyphs-widget.c (check_valid_instantiator):
9930         * glyphs-widget.c (check_valid_orientation):
9931         * glyphs-widget.c (check_valid_tab_orientation):
9932         * glyphs-widget.c (check_valid_justification):
9933         * glyphs-widget.c (check_valid_border):
9934         * glyphs-widget.c (check_valid_callback):
9935         * glyphs-widget.c (check_valid_int_or_function):
9936         * glyphs-widget.c (check_valid_string_or_vector):
9937         * glyphs-widget.c (check_valid_item_list_1):
9938         * glyphs-widget.c (widget_validate):
9939         * glyphs-widget.c (combo_box_validate):
9940         * glyphs-widget.c (widget_instantiate):
9941         * glyphs-widget.c (syms_of_glyphs_widget):
9942         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9943         * glyphs-widget.c (image_instantiator_combo_box):
9944         * glyphs-widget.c (image_instantiator_scrollbar):
9945         * glyphs-widget.c (image_instantiator_tab_control):
9946         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9947         (2).
9948         support (unimplemented) keyword initial-focus.
9949         reindent long macros.
9950
9951         * glyphs-x.c (x_redisplay_widget):
9952         * glyphs-x.c (x_button_instantiate):
9953         * glyphs-x.c (x_button_redisplay):
9954         * glyphs-x.c (x_progress_gauge_instantiate):
9955         * glyphs-x.c (x_edit_field_instantiate):
9956         * glyphs-x.c (x_combo_box_instantiate):
9957         * glyphs-x.c (x_tab_control_instantiate):
9958         * glyphs-x.c (x_label_instantiate):
9959         * gui-x.c:
9960         * gui-x.c (button_item_to_widget_value):
9961         * gui-x.c (gui_items_to_widget_values_1):
9962         * gui-x.c (gui_item_children_to_widget_values):
9963         * gui-x.c (gui_items_to_widget_values):
9964         * gui-x.h:
9965         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9966         add new flag to gui-parsing routines to indicate whether
9967         accelerator specs should be supported.
9968
9969         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9970
9971         * glyphs.h (struct Lisp_Image_Instance):
9972         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9973         add initial-focus flag.
9974
9975         * gui.c:
9976         * gui.c (syms_of_gui):
9977         * gui.c (vars_of_gui):
9978         clean up menu-no-selection-hook.
9979
9980         * gui.h:
9981         support delete-dialog-box-hook.
9982
9983         * lread.c (Fload_internal):
9984         * lread.c (locate_file_in_directory_mapper):
9985         (1).
9986
9987         * lrecord.h:
9988         * lrecord.h (struct toolbar_button):
9989         * lrecord.h (syms_of_toolbar):
9990         document how to create a new object.
9991
9992         * menubar-msw.c (mswindows_char_is_accelerator):
9993         may be called on frames w/o menus.
9994
9995         * menubar.c (vars_of_menubar):
9996         clean up :filter docs.
9997
9998         * nt.c (readdir):
9999         * ntproc.c:
10000         (1).
10001
10002         * process-nt.c:
10003         * process-nt.c (validate_signal_number):
10004         * process-nt.c (signal_cannot_launch):
10005         * process-nt.c (nt_create_process):
10006         * process-nt.c (nt_send_process):
10007         * process-nt.c (nt_kill_child_process):
10008         * process-nt.c (nt_open_network_stream):
10009         * process-nt.c (syms_of_process_nt):
10010         (2).
10011         delete quote-handling.  call new lisp code that does it better.
10012
10013         * process-unix.c (connect_to_file_descriptor):
10014         * process-unix.c (allocate_pty):
10015         * process-unix.c (unix_send_process):
10016         * process-unix.c (unix_kill_child_process):
10017         * process-unix.c (unix_open_network_stream):
10018         * process-unix.c (unix_open_multicast_group):
10019         (1). (2).
10020
10021         * process.c:
10022         * process.c (Fstart_process_internal):
10023         (2).  need to canonicalize process path even if absolute.
10024
10025         * select-msw.c (symbol_to_ms_cf):
10026         * select-msw.c (ms_cf_to_symbol):
10027         * select-msw.c (cf_is_autofreed):
10028         * select-msw.c (mswindows_destroy_selection):
10029         * select.c:
10030         * select.c (syms_of_select):
10031         * select.h:
10032         support dibv5, fix bugs. (from Mike Alexander)
10033
10034         * select.c (Fget_selection_internal):
10035         * select.c (select_convert_out):
10036
10037         * sysdep.c:
10038         * sysdep.c (xemacs_stat):
10039         renamed.
10040
10041         * sysdep.c (mkdir):
10042         * sysdep.c (rmdir):
10043         but keep original stat() here because we provide encapsulation
10044         around these funs.
10045
10046         * sysfile.h:
10047         * sysfile.h (fstat):
10048         remove stat garbage.
10049
10050         * syswindows.h:
10051         fix X/MSW conflict.
10052         don't include tchar.h.  it's inappropriate because it makes
10053         compile-time distinctions when we want runtime distinctions.
10054         (we provide our own tchar replacements)
10055
10056         * toolbar.c:
10057         use default object printer for toolbar-button.
10058
10059         * unexcw.c:
10060         make sure we don't encapsulate.
10061
10062         * window.c (vars_of_window):
10063         emphasize that temp-buffer-show-hook is obsolete.
10064
10065 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10066
10067         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10068         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10069
10070         * events.c (Fevent_timestamp_lessp):
10071         Not 64-bit clean.  Use EMACS_INT, not int.
10072
10073 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10074
10075         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10076         unsigned int and changed the last enum to
10077         lrecord_type_last_built_in_type.
10078         (lrecord_implementations_table): changed prototype to know how
10079         long the array is supposed to be.
10080         (lrecord_type_count): new unsigned int to keep track of the
10081         current number of lisp lrecord types.
10082         (DEFINE_EXTERNAL_LRECORD):
10083         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10084         dynamic-modules to declare new lisp types. They are the same
10085         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10086         int for each new type, and increment lrecord_type_count by 1.
10087
10088         * alloc.c (lrecord_implementations_table): Changed to reference
10089         lrecord_type_last_built_in_type for the size of the array.
10090         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10091
10092 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10093
10094         * glyphs.h (check_valid_item_list): Renamed from
10095         check_valid_item_list_1.
10096
10097 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10098
10099         * select.c (Qselect_coerce): New.
10100         * select.c (Vselection_coercion_alist): New.
10101         * select.c (syms_of_select): Declare.
10102         * select.c (get-selection-internal): Use it.
10103         Use the new select-coerce functionality.
10104
10105         * select.c (select_coerce): New.
10106         * select.h (select_coerce): Declare.
10107         New function to coerce one type of data into another.
10108
10109 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10110
10111         * callproc.c (Fcall_process_internal):
10112         (Fcall_process_internal):
10113         * process-unix.c (unix_create_process):
10114         Save and restore the value of errno, so that error messages are accurate.
10115
10116 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10117
10118         * elhash.c (print_hash_table):
10119         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10120         Prettify docstrings and indentation.
10121
10122 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10123
10124         * window.c (Fwindow_pixel_edges): Subtract frame border and
10125         gutter size.
10126
10127 2000-07-31  Andy Piper  <andy@xemacs.org>
10128
10129         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10130         will acknowledge the change.
10131
10132         * glyphs.h: declare tab_control_order_only_changed.
10133
10134         * glyphs-x.c (x_tab_control_redisplay): use
10135         tab_control_order_only_changed.
10136
10137         * glyphs-widget.c (tab_control_order_only_changed): new function.
10138
10139         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10140         tab_control_order_only_changed.
10141
10142         * gui.c (gui_item_equal_sans_selected): new function.
10143         (gui_item_equal): use it.
10144
10145         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10146         :properties in favor of :items..
10147
10148         * glyphs-widget.c (check_valid_item_list): rename from
10149         check_valid_item_list_1.
10150         (check_valid_item_list_1): renamed.
10151         (combo_box_validate): deprecate :properties in favor of :items.
10152         (widget_instantiate): ditto.
10153         (tab_control_update): ditto.
10154         (image_instantiator_combo_box): ditto.
10155         (image_instantiator_tree_view): ditto.
10156         (image_instantiator_tab_control): ditto.
10157         (layout_post_instantiate): remove dead code.
10158
10159         * print.c (debug_print_no_newline): only write to debugger if in
10160         WIN32_NATIVE.
10161
10162         * elhash.c (Fmake_hash_table): update doc string.
10163
10164         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10165         messages whilst in GC. This at least stops XEmacs crashing but has
10166         the potential for wierd behaviour.
10167
10168 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10169
10170         * config.h.in:
10171         Make existence of s&m files optional.
10172
10173         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10174         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10175         * s/gnu.h: Remove HAVE_GETLOADAVG.
10176         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10177         * s/sol2.h: Remove HAVE_GETLOADAVG.
10178         * lisp.h: Remove getloadavg() declaration.
10179         * fns.c:
10180         Include <sys/loadavg.h> if available.
10181         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10182         * config.h.in:  Group together getloadavg()-related macros.
10183         Use only configure-time tests to detect getloadavg().
10184
10185 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10186
10187         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10188
10189 2000-07-25  Andy Piper  <andy@xemacs.org>
10190
10191         * syswindows.h: add tchar.h for native builds.
10192
10193         * frame.c (syms_of_frame): remove set-glyph-image.
10194
10195         * general-slots.h: add Qset_glyph_image.
10196
10197         * glyphs-widget.c (layout_update): add domain arg to
10198         set-glyph-image.
10199         (syms_of_glyphs_widget): remove set-glyph-image.
10200
10201 2000-07-23  Ben Wing  <ben@xemacs.org>
10202
10203         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10204         Vpopup_frame_list.
10205
10206 2000-07-22  Andy Piper  <andy@xemacs.org>
10207
10208         * symsinit.h: add syms_of_win32().
10209
10210         * gui-msw.c (syms_of_gui_mswindows): remove
10211         Fmswindows_shell_execute.
10212         (Fmswindows_shell_execute): moved to win32.c.
10213
10214         * emacs.c (main_1): add syms_of_win32 ().
10215
10216         * win32.c (init_potentially_nonexistent_functions): rewrite in
10217         compiler-friendly terms.
10218         (Fmswindows_shell_execute): move here from gui-msw.c.
10219         (syms_of_win32): new.
10220
10221         * device-msw.c (Fmswindows_printer_list): clean up args to
10222         EnumPrinters.
10223         Don't include tchar under cygwin or mingw.
10224         (msprinter_default_printer): make cygwin-friendly.
10225
10226 2000-07-21  Andy Piper  <andy@xemacs.org>
10227
10228         * glyphs-widget.c (image_instantiator_tree_view): use tab
10229         control's update function.
10230         (layout_property): new function. Retrieve items.
10231
10232         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10233         function. Re-populate the tree view from the pending items.
10234
10235         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10236         is designated the parent if the domain is an image instance. This
10237         is needed so that dirtiness can be cascade up the hierarchy and
10238         thus for layout children to be redisplayed correctly.
10239         (allocate_image_instance): rename glyph -> parent.
10240
10241         * redisplay.h: change redisplay_output_layout signature.
10242
10243         * redisplay-msw.c (mswindows_output_display_block): use domain
10244         arg.
10245
10246         * redisplay-x.c (x_output_display_block): use domain arg.
10247
10248 2000-07-10  Andy Piper  <andy@xemacs.org>
10249
10250         * window.c (Fset_window_configuration): add comment.
10251
10252         * redisplay-output.c (compare_runes):
10253         (redisplay_output_subwindow): redisplay rather than update subwindow.
10254         (redisplay_output_layout): ditto.
10255
10256         * redisplay-msw.c (mswindows_frame_output_end):
10257         (mswindows_frame_output_end): make defer window pos optional.
10258
10259         * lisp.h: add Flast.
10260
10261         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10262         normalize method. Change update method to be for changed
10263         instantiators. Add redisplay method. Change signature of layout
10264         method.
10265         (struct Lisp_Image_Instance): add instantiator.
10266         (IMAGE_INSTANCE_INSTANTIATOR): new.
10267         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10268         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10269         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10270
10271         * glyphs.c:
10272         (find_instantiator_differences): new function.
10273         (Fset_instantiator_property): new convenience function.
10274         (check_image_instance_structure): strictly check for vector
10275         instantiators.
10276         (normalize_image_instantiator): make non-static.
10277         (instantiate_image_instantiator): pass on dest_mask and use new
10278         signatures for image_instance_layout and friends.
10279         (mark_image_instance): mark the instantiator. Mark the subwindow
10280         face not the widget face.
10281         (image_instance_equal): add instantiator.
10282         (image_instance_hash): ditto.
10283         (allocate_image_instance): ditto.
10284         (Fset_image_instance_property): removed.
10285         (Fimage_instance_file_name): ditto.
10286         (Fcolorize_image_instance): ditto.
10287         (image_instance_layout): add offsets to be set.
10288         (update_image_instance): new function. update an image instance
10289         from its changed instantiator.
10290         (inherit_normalize): add dest_mask.
10291         (xbm_normalize): ditto.
10292         (xface_normalize): ditto.
10293         (xpm_normalize): ditto.
10294         (text_update): set_property -> update.
10295         (image_instantiate): use the glyph identity as a hash key, not the
10296         instantiator.
10297         (glyph_width): use new image_instance_layout signature.
10298         (glyph_ascent): ditto.
10299         (glyph_descent): ditto.
10300         (glyph_height): ditto.
10301         (glyph_query_geometry): ressurrect.
10302         (glyph_layout): ditto.
10303         (redisplay_subwindow): update -> redisplay.
10304         (syms_of_glyphs): add Fset_instantiator_property.
10305         (image_instantiator_format_create): set_property -> update.
10306
10307         * glyphs-x.c:
10308         (autodetect_normalize): add dest_maks to signature.
10309         (x_redisplay_subwindow): update -> redisplay.
10310         (x_redisplay_widget): ditto.
10311         (x_button_redisplay): ditto.
10312         (x_progress_gauge_redisplay): ditto.
10313         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10314         stacking order.
10315         (console_type_create_glyphs_x): update -> redisplay.
10316         (image_instantiator_format_create_glyphs_x): ditto.
10317
10318         * glyphs-widget.c:
10319         (check_valid_instantiator): disallow glyphs in the instantiator,
10320         they must now be vectors.
10321         (check_valid_instantiator_list): ditto.
10322         (glyph_instantiator_to_glyph): use internal symbol rather than
10323         intern.
10324         (widget_update): renamed from widget_set_property. Call cascaded
10325         update methods.
10326         (redisplay_widget): renamed from update_widget.
10327         (widget_layout): image_instance_layout now takes position as well
10328         as size.
10329         (widget_normalize): ditto.
10330         (widget_instantiate): ditto.
10331         (tab_control_query_geometry) ditto.:
10332         (tab_control_update): renamed from tab_control_set_property.
10333         (progress_gauge_update): set_property -> update.
10334         (layout_normalize): rewrite so that child instantiators are
10335         normalized also.
10336         (layout_update): new function. Create glyphs from the normalized
10337         children and cope with any other layout keywords. We do not
10338         instantiate children here that will be take care of by
10339         redisplay_output_layout.
10340         (layout_instantiate): call layout_update and not much else.
10341         (layout_post_instantiate): not sure whether this is needed
10342         anymore.
10343         (layout_query_geometry): query glyph geometry rather than
10344         image_instance geometry.
10345         (layout_layout): set offsets from pass in parameters. Use glyph
10346         geometry and layout functions rather than image instance ones.
10347         (native_layout_layout): ditto.
10348         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10349         (image_instantiator_widget): set_property -> update.
10350         (image_instantiator_buttons): ditto.
10351         (image_instantiator_progress_guage): ditto.
10352         (image_instantiator_tab_control): ditto.
10353         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10354         (image_instantiator_layout): add update method.
10355
10356         * glyphs-msw.c (bmp_normalize):
10357         (mswindows_resource_normalize): add dest_mask so that it can be
10358         proprogated by layout_normalize.
10359         (begin_defer_window_pos): make optional because it may not be the
10360         right thing to do and it introduces differences with X.
10361         (mswindows_unmap_subwindow): ditto.
10362         (mswindows_map_subwindow): ditto.
10363         (mswindows_redisplay_subwindow): renamed from
10364         mswindows_update_subwindow.
10365         (mswindows_redisplay_widget): ditto.
10366         (mswindows_button_redisplay): renamed from
10367         mswindows_button_update. Update is now what the instantiation
10368         function does for a changed instantiator.
10369         (mswindows_progress_gauge_instantiate): set the progress value
10370         here if appropriate.
10371         (mswindows_tab_control_redisplay): cope with re-ordering of the
10372         members of the tab widget by simply selecting the new top
10373         widget. This makes things appear ok if you click on a tab.
10374         (mswindows_combo_box_instantiate): image_instance_layout now takes
10375         position as well as size.
10376         (mswindows_progress_gauge_redisplay): renamed from
10377         mswindows_progress_gauge_update.
10378         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10379         (image_instantiator_format_create_glyphs_mswindows): ditto.
10380
10381         * glyphs-eimage.c (jpeg_normalize):
10382         (gif_normalize):
10383         (png_normalize):
10384         (tiff_normalize): add dest_mask so that it can be proprogated by
10385         layout_normalize.
10386
10387         * elhash.c:
10388         (print_hash_table):
10389         (hash_table_weakness_validate):
10390         (decode_hash_table_weakness):
10391         (Fhash_table_weakness):
10392         (Fhash_table_type):
10393         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10394
10395         * console.h (struct console_methods): move update_* to
10396         redisplay_*.
10397
10398 2000-07-20  Ben Wing  <ben@xemacs.org>
10399
10400         * *.[ch] (XSETOBJ): remove unused middle argument.
10401         lisp-disunion.h: correct wrap_object() to one argument.
10402
10403 2000-07-15  Ben Wing  <ben@xemacs.org>
10404
10405         * s/cygwin32.h:
10406         * s/cygwin32.h (CYGWIN_CONV_PATH):
10407         Add missing logb prototype for v1.1.
10408         Use post-b20 names and alias to pre-b20 names when pre-b20.
10409
10410         * s/windowsnt.h: [5].
10411
10412 2000-07-15  Ben Wing  <ben@xemacs.org>
10413
10414         * Makefile.in.in (x_objs):
10415         * Makefile.in.in (sheap_objs):
10416         * Makefile.in.in (objs):
10417         added win32.o, cosmetic cleanups.
10418
10419         * alloc.c (Fmake_byte_code):
10420         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10421         etc. macros which declare their own args now.
10422
10423         * alloc.c (syms_of_alloc):
10424         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10425
10426         * buffer.c:
10427         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10428
10429         * buffer.c (Fget_file_buffer):
10430         Fixed GCPRO problem.
10431
10432         * buffer.c (get_truename_buffer):
10433         Fixed comment about GC checking.
10434
10435         * buffer.c (syms_of_buffer):
10436         Undeclared those dedicated frame funs.
10437         [2].
10438
10439         * buffer.h:
10440         Define convenience macros for internal/external conversions.
10441         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10442         and Qenvironment_variable_encoding for cleaner code.
10443
10444         * bufslots.h:
10445         Remove dedicated-frame; in lisp.
10446
10447         * bytecode.c (funcall_compiled_function):
10448         [1].
10449
10450         * bytecode.c (syms_of_bytecode):
10451         [2].
10452
10453         * console-msw.c:
10454         * console-msw.c (mswindows_show_console): Rewrote.
10455
10456         * console-msw.c (Fmswindows_debugging_output): New.
10457         Sends to OutputDebugString (special MSWin debugger interface).
10458
10459         * console-msw.c (Fmswindows_message_box):
10460         Fixed stupid bugs so it works when called from kill-emacs.
10461
10462         * console-msw.c (syms_of_console_mswindows):
10463         Declare Fmswindows_debugging_output.
10464
10465         * console-msw.h:
10466         New MSWin prototypes.
10467
10468         * console-msw.h (struct mswindows_frame):
10469         New entry last-click-mods for improved button-modifier support.
10470
10471         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10472         New struct entry `popup' with corresponding accessor.
10473
10474         * console-x.c:
10475         * console-x.c (split_up_display_spec):
10476         * console-x.c (get_display_arg_connection):
10477         * console-x.c (x_semi_canonicalize_console_connection):
10478         * console-x.c (x_canonicalize_device_connection):
10479         [[[6]]]: Change char to more specific type.
10480         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10481
10482         * console-x.c (x_semi_canonicalize_console_connection):
10483         * console-x.c (x_canonicalize_device_connection):
10484         [[[9]]]: Fix up error signalling to use new structured error system.
10485
10486         * console-x.h:
10487         [[[4]]]: Define codesys aliases:
10488         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10489         Qx_color_name_encoding, Qx_display_name_encoding.
10490
10491         * console.h (struct console_methods):
10492         New method make_dialog_box_internal supersedes older
10493         popup_dialog_box method.
10494
10495         * data.c:
10496         Define many new errors, part of new structured errors.
10497
10498         * data.c (init_errors_once_early):
10499         * data.c (syms_of_data):
10500         [2].
10501
10502         * device-msw.c (mswindows_init_device):
10503         [[[5]]]: Cleanup to support NT 3.51.
10504
10505         * device-msw.c (decode_devmode): Cleanup.
10506
10507         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10508         * device-msw.c (mswindows_handle_print_dialog_box):
10509         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10510         * device-msw.c (syms_of_device_mswindows):
10511         Delete the dialog box primitives recently introduced by Kirill and
10512         instead interface to general dialog box interface.
10513
10514         * device-x.c:
10515         * device-x.c (compute_x_app_name):
10516         * device-x.c (x_init_device):
10517         * device-x.c (Fx_valid_keysym_name_p):
10518         * device-x.c (Fx_set_font_path):
10519         [6].
10520         [7].
10521
10522         * device.h (wrap_device): New.
10523         First of its kind; meant to replace XSETDEVICE.
10524
10525         * dialog-msw.c: Many file-dialog symbols.
10526
10527         * dialog-msw.c (mswindows_register_popup_frame): New.
10528         * dialog-msw.c (mswindows_is_dialog_msg): New.
10529         For supporting kbd traversal in dialog boxes.
10530
10531         * dialog-msw.c (dialog_proc):
10532         Support hitting ESC in dialogs.
10533
10534         * dialog-msw.c (struct):
10535         Common dialog box errors.
10536
10537         * dialog-msw.c (handle_file_dialog_box): New.
10538         Add file dialog code.
10539
10540         * dialog-msw.c (handle_question_dialog_box):
10541         Redo existing code to support new question dialog syntax.
10542
10543         * dialog-msw.c (console_type_create_dialog_mswindows):
10544         We support new dialog console method.
10545
10546         * dialog-msw.c (syms_of_dialog_mswindows):
10547         * dialog-msw.c (vars_of_dialog_mswindows):
10548         New file dialog symbols, vars.
10549
10550         * dialog-x.c:
10551         * dialog-x.c (maybe_run_dbox_text_callback):
10552         * dialog-x.c (dbox_descriptor_to_widget_value):
10553         * dialog-x.c (x_make_dialog_box_internal):
10554         * dialog-x.c (console_type_create_dialog_x):
10555         Mule-ize entire file.
10556         Redo to support question dialog syntax.
10557         [6].
10558
10559         * dialog.c:
10560         * dialog.c (Fmake_dialog_box_internal):
10561         * dialog.c (syms_of_dialog):
10562         Kill old popup-dialog-box, replace with new primitive.
10563         Just call device method or signal error.
10564
10565         * eldap.c (Fldap_open):
10566         * eldap.c (Fldap_search_basic):
10567         * eldap.c (Fldap_add):
10568         * eldap.c (Fldap_modify):
10569         [1].
10570         [7].
10571
10572         * emacs.c:
10573         * emacs.c (make_arg_list_1):
10574         * emacs.c (make_arg_list):
10575         Mule-ize call to dll_init().
10576         [6].
10577         [8].
10578
10579         * emacs.c (make_argc_argv):
10580         * emacs.c (free_argc_argv):
10581         * emacs.c (init_cmdargs):
10582         * emacs.c (main_1):
10583         * emacs.c (Fkill_emacs):
10584         * emacs.c (Fdump_emacs):
10585         Update comments about what can be used in syms_* etc.
10586         Call init_win32() when necessary.
10587         Fix up MS Win dialog box in kill-buffer to actually work right.
10588         [7].
10589
10590         * eval.c:
10591         * eval.c (For):
10592         * eval.c (Fand):
10593         * eval.c (Fprogn):
10594         * eval.c (Fprog1):
10595         * eval.c (Fprog2):
10596         * eval.c (FletX):
10597         * eval.c (Flet):
10598         * eval.c (condition_case_3):
10599         * eval.c (Feval):
10600         * eval.c (function_argcount):
10601         * eval.c (funcall_lambda):
10602         [1].
10603
10604         * eval.c (type_error): New.
10605         * eval.c (maybe_type_error): New.
10606         * eval.c (continuable_type_error): New.
10607         * eval.c (maybe_continuable_type_error): New.
10608         * eval.c (type_error_with_frob): New.
10609         * eval.c (maybe_type_error_with_frob): New.
10610         * eval.c (continuable_type_error_with_frob): New.
10611         * eval.c (maybe_continuable_type_error_with_frob): New.
10612         New functions for use with structured errors.
10613
10614         * event-Xt.c:
10615         * event-Xt.c (x_event_to_emacs_event):
10616         Buttons are now modifiers too.
10617
10618         * event-Xt.c (emacs_Xt_current_event_timestamp):
10619         Implement new event method.
10620         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10621
10622         * event-msw.c:
10623         * event-msw.c (ntpipe_shove_writer): [5].
10624         * event-msw.c (mswindows_enqueue_mouse_button_event):
10625         * event-msw.c (mswindows_drain_windows_queue):
10626         * event-msw.c (mswindows_wnd_proc): [7].
10627         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10628         * event-msw.c (mswindows_modifier_state):
10629         Throughout: support new button modifiers.
10630
10631         * event-msw.c (emacs_mswindows_current_event_timestamp):
10632         Implement new event method.
10633         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10634
10635         * event-stream.c:
10636         * event-stream.c (event_stream_current_event_timestamp): New.
10637         * event-stream.c (maybe_kbd_translate): New functionality.
10638         * event-stream.c (vars_of_event_stream):
10639         Document new kbd-translate-table functionality.
10640
10641         * event-stream.c (Fcurrent_event_timestamp): New.
10642         New primitive for use in fabricated events.
10643         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10644
10645         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10646
10647         * events.c:
10648         * events.c (Fmake_event):
10649         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10650         [1].
10651         [9].
10652
10653         * events.c (format_event_object): fix gcc warnings.
10654
10655         * events.c (Fevent_timestamp): Document new primitives.
10656
10657         * events.c (TIMESTAMP_HALFSPACE): New.
10658
10659         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10660         comparing timestamps correctly (half-space algorithm).
10661
10662         * events.c (Fevent_modifier_bits): Doc fix.
10663
10664         * events.c (Fevent_modifiers): Major doc addition.
10665         * events.c (event_x_y_pixel_internal): Typo fix.
10666         * events.c (syms_of_events): Declare new primitives.
10667
10668         * events.h:
10669         Update long comment for button modifiers, timestamps.
10670
10671         * events.h (struct event_stream):
10672         New current_event_timestamp method.
10673
10674         * extents.c:
10675         * extents.c (extent_in_region_p):
10676         * extents.c (decode_extent):
10677         * extents.c (Fset_extent_parent):
10678         * extents.c (decode_map_extents_flags):
10679         Fix gcc warnings.
10680         [9].
10681
10682         * extents.c (struct extent_at_arg):
10683         * extents.c (decode_extent_at_flag):
10684         * extents.c (extent_at_mapper):
10685         * extents.c (extent_at_bytind):
10686         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10687         * extents.c (Fextents_at): New primitive. [9].
10688         * extents.c (symbol_to_glyph_layout): [9].
10689         Support new primitive `extents-at'.
10690
10691
10692         * extents.c (get_text_property_bytind):
10693         extent_at_bytind has another arg.
10694         [9].
10695
10696         * extents.c (syms_of_extents): New primitive.
10697
10698         * file-coding.c (Fmake_coding_system): [1].
10699         * file-coding.c (subsidiary_coding_system): fix gcc warning
10700         * file-coding.c (syms_of_file_coding): [2].
10701
10702         * fileio.c (Fexpand_file_name):
10703         * fileio.c (Fsysnetunam):
10704         * fileio.c (Ffile_exists_p):
10705         * fileio.c (Ffile_executable_p):
10706         * fileio.c (Fverify_visited_file_modtime):
10707         Clean up GCPROing.
10708
10709         * fileio.c (syms_of_fileio): [2].
10710
10711         * filelock.c (lock_file_1):
10712         * filelock.c (current_lock_owner):
10713         * filelock.c (lock_if_free):
10714         * filelock.c (lock_file):
10715         * filelock.c (unlock_file):
10716         Clean up GCPROing.
10717
10718         * fns.c (concat): Fix gcc warning.
10719
10720         * fns.c (Fmember):
10721         * fns.c (Fold_member):
10722         * fns.c (Fmemq):
10723         * fns.c (Fold_memq):
10724         * fns.c (memq_no_quit):
10725         * fns.c (Fassoc):
10726         * fns.c (Fold_assoc):
10727         * fns.c (Fassq):
10728         * fns.c (Fold_assq):
10729         * fns.c (assq_no_quit):
10730         * fns.c (Frassoc):
10731         * fns.c (Fold_rassoc):
10732         * fns.c (Frassq):
10733         * fns.c (Fold_rassq):
10734         * fns.c (rassq_no_quit):
10735         * fns.c (Fdelete):
10736         * fns.c (Fold_delete):
10737         * fns.c (Fdelq):
10738         * fns.c (Fold_delq):
10739         * fns.c (delq_no_quit):
10740         * fns.c (Fremassoc):
10741         * fns.c (Fremassq):
10742         * fns.c (remassq_no_quit):
10743         * fns.c (Fremrassoc):
10744         * fns.c (Fremrassq):
10745         * fns.c (remrassq_no_quit):
10746         * fns.c (Freverse):
10747         * fns.c (mapcar1):
10748         [1].
10749
10750         * frame-msw.c (mswindows_init_frame_1):
10751         * frame-msw.c (mswindows_delete_frame):
10752         Register popups with dialog code so keyboard traversing works.
10753
10754         * frame-tty.c (tty_raise_frame_no_select): [1].
10755
10756         * frame-x.c:
10757         * frame-x.c (x_set_frame_text_value):
10758         * frame-x.c (x_set_frame_properties):
10759         * frame-x.c (x_create_widgets):
10760         [7].
10761
10762         * frame.c:
10763         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10764
10765         * frame.h (wrap_frame): New.
10766         Macro like wrap_device.
10767
10768         * general.c:
10769         * general.c (SYMBOL):
10770         * general.c (syms_of_general):
10771         Major reorg.  This is now just a wrapper and symbols themselves
10772         are listed in general-slots.h.
10773
10774         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10775         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10776
10777         * glyphs-msw.c (mswindows_native_layout_instantiate):
10778         Add DS_CONTROL so keyboard traversal will work.
10779
10780         * glyphs-widget.c:
10781         * glyphs-widget.c (syms_of_glyphs_widget):
10782         Move some symbols to general-slots.h.
10783
10784         * glyphs-x.c:
10785         * glyphs-x.c (xbm_instantiate_1):
10786         * glyphs-x.c (x_xbm_instantiate):
10787         * glyphs-x.c (x_xface_instantiate):
10788         * glyphs-x.c (autodetect_instantiate):
10789         * glyphs-x.c (cursor_font_instantiate):
10790         * glyphs-x.c (x_update_widget):
10791         * glyphs-x.c (x_widget_instantiate):
10792         * glyphs.c (bitmap_to_lisp_data):
10793         * glyphs.c (pixmap_to_lisp_data):
10794         [7].
10795
10796         * glyphs.c (syms_of_glyphs):
10797         [2].
10798
10799         * gui-x.c:
10800         * gui-x.c (print_widget_value):
10801         * gui-x.c (menu_separator_style_and_to_external):
10802         * gui-x.c (add_accel_and_to_external):
10803         * gui-x.c (button_item_to_widget_value):
10804         * gui-x.c (gui_items_to_widget_values_1):
10805         * gui-x.c (gui_items_to_widget_values):
10806         * gui-x.c (syms_of_gui_x):
10807         * gui-x.c (vars_of_gui_x):
10808         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10809         [9].
10810
10811         * gui-x.h:
10812         Muleize, prototype changes matching gui-x.c.
10813
10814         * gui.c:
10815         * gui.c (separator_string_p):
10816         * gui.c (gui_item_add_keyval_pair):
10817         * gui.c (make_gui_item_from_keywords_internal):
10818         * gui.c (signal_too_long_error):
10819         * gui.c (parse_gui_item_tree_item):
10820         * gui.c (syms_of_gui):
10821         * gui.c (vars_of_gui):
10822         * gui.h:
10823         menu-no-selection-hook moved here (used by MSWin).
10824         Move some symbols to general-slots.h.
10825         [6].
10826         [9].
10827
10828         * insdel.c (get_buffer_pos_char):
10829         * insdel.c (get_buffer_range_char):
10830         Add GC comments.
10831
10832         * keymap.c (keymap_lookup_directly):
10833         * keymap.c (keymap_store):
10834         * keymap.c (ensure_meta_prefix_char_keymapp):
10835         * keymap.c (describe_map):
10836         * keymap.h:
10837         Support new button modifiers.
10838
10839         * lisp-disunion.h (wrap_object):
10840         * lisp-disunion.h (XSETOBJ):
10841         Rename make_obj to wrap_object.
10842
10843         * lisp-union.h:
10844         * lisp-union.h (make_int):
10845         * lisp-union.h (make_char):
10846         Support wrap_object.
10847
10848         * lisp.h:
10849         * lisp.h (LIST_LOOP):
10850         * lisp.h (EXTERNAL_LIST_LOOP):
10851         * lisp.h (LIST_LOOP_2):
10852         * lisp.h (EXTERNAL_LIST_LOOP_1):
10853         * lisp.h (EXTERNAL_LIST_LOOP_2):
10854         * lisp.h (EXTERNAL_LIST_LOOP_3):
10855         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10856         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10857         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10858         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10859         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10860         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10861         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10862         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10863         * lisp.h (struct Lisp_Symbol):
10864         * lisp.h (maybe_continuable_error_with_frob):
10865         Fix up section comments.
10866         Add new types for char to indicate usage.
10867         Delete symbols auto-generated from general-slots.h.
10868         Add prototypes for structured error functions.
10869         Add long comments describing looping macros and change interface
10870         so that lvalues are automatically declared.
10871         Add NO_DECLARE macro in case callers want to declare lvalues
10872         themselves.
10873
10874         * lread.c (read_syntax_error):
10875         * lread.c (continuable_read_syntax_error):
10876         * lread.c (read_structure):
10877         * lread.c (sequence_reader):
10878         * lread.c (read_list_conser):
10879         * lread.c (read_compiled_function):
10880         Rename syntax_error and continuable_syntax_error to avoid clash
10881         with same-named structured error functions.
10882
10883         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10884         * menubar-msw.c (populate_menu_add_item):
10885         * menubar-msw.c (populate_or_checksum_helper):
10886         [5].
10887         [9].
10888
10889         * menubar-x.c:
10890         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10891         Mule-ize whole file.
10892
10893         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10894
10895         * mule-charset.c (Fmake_charset):
10896         * mule-wnnfns.c (Fwnn_set_param):
10897         [1].
10898
10899         * ntproc.c (create_child):
10900         * ntproc.c (Fwin32_set_current_locale):
10901         Add comments portending doom.
10902
10903         * objects-msw.c:
10904         * objects-msw.c (old_font_enum_callback_2):
10905         * objects-msw.c (font_enum_callback_1):
10906         * objects-msw.c (mswindows_enumerate_fonts):
10907         [5].
10908
10909         * objects-x.c:
10910         * objects-x.c (allocate_nearest_color):
10911         * objects-x.c (x_parse_nearest_color):
10912         * objects-x.c (x_initialize_color_instance):
10913         * objects-x.c (x_print_color_instance):
10914         * objects-x.c (x_finalize_color_instance):
10915         * objects-x.c (x_valid_color_name_p):
10916         * objects-x.c (x_initialize_font_instance):
10917         * objects-x.c (x_print_font_instance):
10918         * objects-x.c (valid_x_font_name_p):
10919         * objects-x.c (truename_via_FONT_prop):
10920         * objects-x.c (truename_via_random_props):
10921         * objects-x.c (truename_via_XListFonts):
10922         * objects-x.c (x_font_truename):
10923         * objects-x.c (x_font_instance_truename):
10924         * objects-x.c (x_font_instance_properties):
10925         * objects-x.c (x_list_fonts):
10926         * objects-x.c (x_find_charset_font):
10927         Mule-ize entire file.
10928         [7].
10929
10930         * objects-x.h:
10931         Mule-verify.
10932
10933         * print.c:
10934         * print.c (std_handle_out_external):
10935         * print.c (debug_print_no_newline):
10936         * print.c (syms_of_print):
10937         Output to all debugger kinds in debug-print.
10938         Fix console-output code under MSWin to actually work.
10939
10940         * process-nt.c (send_signal):
10941         * process-nt.c (nt_create_process):
10942         Use newer Unicode macros.
10943
10944         * process-unix.c (unix_create_process):
10945         * process-unix.c (unix_canonicalize_host_name):
10946         * process-unix.c (unix_open_network_stream):
10947         [7].
10948
10949         * scrollbar-x.c:
10950         Mule-verify.
10951
10952         * search.c (syms_of_search):
10953         [2].
10954
10955         * select-msw.c (mswindows_destroy_selection):
10956         Use LIST_LOOP_2.
10957
10958         * select-x.c (symbol_to_x_atom):
10959         [7].
10960
10961         * select.c (syms_of_select):
10962         [2].
10963
10964         * sound.c (Fplay_sound_file):
10965         [7].
10966
10967         * specifier.c:
10968         * specifier.c (decode_specifier_type):
10969         * specifier.c (Fvalid_specifier_locale_type_p):
10970         * specifier.c (check_valid_locale_or_locale_type):
10971         * specifier.c (decode_locale):
10972         * specifier.c (decode_locale_type):
10973         * specifier.c (decode_locale_list):
10974         * specifier.c (check_valid_domain):
10975         * specifier.c (decode_specifier_tag_set):
10976         * specifier.c (Fcanonicalize_tag_set):
10977         * specifier.c (Fdefine_specifier_tag):
10978         * specifier.c (Fspecifier_tag_predicate):
10979         * specifier.c (check_valid_inst_list):
10980         * specifier.c (check_valid_spec_list):
10981         * specifier.c (decode_how_to_add_specification):
10982         * specifier.c (check_modifiable_specifier):
10983         * specifier.c (specifier_add_spec):
10984         * specifier.c (boolean_validate):
10985         * specifier.c (display_table_validate):
10986         [9].
10987
10988         * specifier.c (syms_of_specifier):
10989         Move some symbols to general-slots.h.
10990         [2].
10991
10992         * symbols.c:
10993         * symbols.c (Fmapatoms):
10994         * symbols.c (Fapropos_internal):
10995         Add GCPROs.
10996
10997         * symbols.c (set_default_buffer_slot_variable):
10998         * symbols.c (set_default_console_slot_variable):
10999         [1].
11000
11001         * symbols.c (defsymbol_massage_name_1):
11002         * symbols.c (defkeyword_massage_name):
11003         * symbols.c (deferror_1):
11004         * symbols.c (deferror):
11005         * symbols.c (deferror_massage_name_and_message):
11006         * symeval.h:
11007         * symeval.h (DEFSYMBOL):
11008         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11009
11010         * symbols.c (syms_of_symbols):
11011         [2].
11012
11013         * symsinit.h:
11014         * symsinit.h (init_win32): New.
11015         Also new is syms_of_dialog_mswindows.
11016
11017         * syswindows.h:
11018         Add new Unicode macros, missing Cygwin wide-char functions,
11019         convenience conversion macros for Qmswindows_tstr, macros for
11020         encapsulating required MSWin <-> Cygwin filename conversions,
11021         prototype for dynamically-extracted (not in NT 3.51) functions.
11022
11023         * toolbar-x.c:
11024         Mule-verify.
11025
11026         * tooltalk.c (Fadd_tooltalk_message_arg):
11027         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11028         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11029         [7].
11030
11031         * tooltalk.c (syms_of_tooltalk):
11032         [2].
11033
11034         * unexnt.c:
11035         * unexnt.c (unexec):
11036         Fix up headers, declaration of unexec() to be more standard.
11037
11038 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11039
11040         * offix.h: Revert change to guard macros - they're used in offix.c!
11041
11042 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11043
11044         * lisp.h: Defsubred Fdelete.
11045
11046         * console-msw.h:  (msprinter_default_printer): Added.
11047
11048         * console-msw.c (msprinter_canonicalize_console_connection):
11049         (msprinter_canonicalize_device_connection): Added.
11050
11051         * device-msw.c (msprinter_default_printer):
11052         (Fmswingows_get_default_printer):
11053         (signal_enum_priner_error):
11054         (Fmswingows_printer_list): Added.
11055
11056 2000-07-19  Martin Buchholz <martin@xemacs.org>
11057
11058         * XEmacs 21.2.35 is released.
11059
11060 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11061
11062         * select-x.c (x_handle_selection_request):
11063         Text selected in xemacs and pasted into xterm failed to appear.
11064         Spelling fixes and cosmetic changes.
11065
11066 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11067
11068         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11069         XEmacs frame (fix for doubling chars in dialog boxes).
11070
11071 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11072
11073         * select.c (select_convert_in, select_convert_out):
11074         Don't call intern() every time.
11075
11076         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11077         * select.c (vars_of_select): Initialise them.
11078
11079 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11080
11081         * select.c (selection-coercible-types): New.
11082
11083         * select.c (own-selection-internal):
11084         * select.c (get-selection-internal):
11085         MULE bug fix - these should default to COMPOUND_TEXT and not
11086         STRING for MULE. I think.
11087
11088         * select.c (select_convert_out): Use selection-coercible-types
11089         to find types that we can attempt to perform coercions on.
11090
11091 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11092
11093         * mule-wnnfns.c:
11094         * mule-canna.c:
11095         Add coding: cookie to identify encoding.
11096
11097         * mule-canna.c (CANNA_mode_keys): make static.
11098         Use proper prototypes, even for functions of no arguments.
11099         Remove external prototype for Fding().
11100
11101         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11102
11103         * select.c (syms_of_select): Add missing DEFSUBR.
11104
11105 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11106
11107         * select.c (get_selection_internal, own_selection_internal):
11108         Make the type default to STRING, rather than placing a nil type
11109         into Vselection_alist.
11110
11111 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11112
11113         * gpmevent.c (tty_selection_exists_p):
11114         * gpmevent.c (tty_own_selection):
11115         Updated parameter lists.
11116
11117 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11118
11119         * select.h (selection-alist): Removed declaration.
11120
11121         * select.h (get_local_selection):
11122         * select.c (get_local_selection):
11123         Made static.
11124
11125         * select.h (convert_selection): Removed declaration.
11126         * select.c (convert_selection): Removed.
11127         This function belongs in Lisp.
11128
11129         * select.h (select_convert_in): Declare.
11130         * select.h (select_convert_out): Declare.
11131         * select.c (select_convert_in): New.
11132         * select.c (select_convert_out): New.
11133         New conversion functions for other files to call.
11134
11135         * select.h (select_notify_buffer_kill): Declare.
11136         * select.c (select_notify_buffer_kill): New.
11137         New functions that get called from kill-buffer.
11138
11139         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11140         X-specific lisp code.
11141
11142         * select.h: Declare some of the lisp-visible functions for
11143         external use.
11144
11145         * select.c (clean_local_selection_data): Removed. This was
11146         a disgusting function, and previously should have been in
11147         select-x.c in any case. The functionality is now provided
11148         in select-convert-from-integer (select.el).
11149
11150         * select.c (available-selection-types): Fixed stupidity where
11151         INTEGER and ATOM got added twice. Also add STRING when we see an
11152         extent.
11153
11154         * select.c (get-selection-internal): Removed symbol stripping. No
11155         longer causes conversion when data comes from the internal cache.
11156
11157         * select.c (syms_of_select): Added new functions.
11158
11159         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11160         error checking - previously this called abort!
11161
11162         * select-x.c (x_own_selection): Changed comment.
11163
11164         * select-x.c (x_handle_selection_request): Use select_convert_out.
11165         Don't mess with selection-alist; it's an internal variable of select.c.
11166
11167         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11168
11169         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11170         rather than messing with selection-alist.
11171
11172         * select-msw.c (mswindows_get_foreign_selection):
11173         Use TO_INTERNAL_FORMAT rather than hacking.
11174
11175 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11176
11177         * process-unix.c (unix_open_multicast_group):
11178         (unix_open_multicast_group): Remove useless casts.
11179
11180 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11181
11182         * sound.c (Fplay_sound): Fix `unused variable' warning.
11183
11184         * emacs.c (main): Use correct type for _environ on SCO5.
11185
11186 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11187
11188         * console.h (own_selection_method):
11189         * console.h (selection_exists_p_method):
11190         * console.h (available_selection_types_method): New.
11191         * console.h (register_selection_data_type_method): New.
11192         * console.h (selection_data_type_name): New.
11193
11194         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11195         function & alist to track GlobalAlloc()'d handles that need
11196         releasing when the clipboard data gets replaced or emptied.
11197
11198         * event-msw.c (mswindows_wnd_proc): Call it.
11199
11200         * lisp.h, general.c (Qappend): New symbol representing a
11201         `how-to-add' mode.
11202
11203         * select.c (own-selection-internal):
11204         * select.c (selection-exists-p):
11205         * select.c (available-selection-types): New.
11206         * select.c (register-selection-data-type): New.
11207         * select.c (selection-data-type-name): New.  New functions to deal
11208         with device-specific selection data formats.
11209         * select.c (selection-converter-out-alist): Renamed.
11210         * select.c (selection-converter-in-alist): New.
11211         * select.c (selection-appender-alist): New.  Added new alists.
11212         * select.c (syms_of_select, vars_of_select): Added new symbols &
11213         variables.
11214         * select.c (get_local_selection): Split.
11215         * select.c: Removed spurious type checking - selections may now be
11216         of any type, not just strings.
11217         * select.c (own-selection-internal):
11218
11219         * select.h, select.c (convert_selection): New. Created
11220         convert_selection() function based on get_local_selection().
11221         * select.h, select.c (QCF_*): New symbols representing mswindows
11222         clipboard formats.
11223         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11224         symbols representing `how-to-add' modes.
11225
11226         * select-msw.c (x_sym_p): New.
11227         * select-msw.c (symbol_to_ms_cf): New.
11228         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11229         symbols & clipboard formats. Can also handle string names.
11230         * select-msw.c (mswindows_own_selection):
11231         * select-msw.c (mswindows_selection_exists_p):
11232         Added `data-type' parameter. Use it.
11233         * select-msw.c (mswindows_available_selection_types): New.
11234         * select-msw.c (mswindows_register_selection_data_type): New.
11235         * select-msw.c (mswindows_selection_data_type_name): New.
11236         * select-msw.c (mswindows_own_selection):
11237         * select-msw.c (mswindows_get_foreign_selection):
11238         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11239         * select-msw.c (console_create_select_mswindows): Added new methods.
11240         * select-msw.c (mswindows_destroy_selection): New.
11241         * select-msw.c (Vhandle_alist): New list.
11242         * select-msw.c (mswindows_own_selection):
11243
11244         * select-x.c (x_own_selection):
11245         * select-x.c (x_selection_exists_p):
11246         * select-x.c: Added some comments about maybe using new
11247         functionality.
11248         * select-x.c (x_own_selection):
11249
11250         * specifier.c: Remove definition of Qappend (now in general.c)
11251         * specifier.c (syms_of_specifier): Remove Qappend.
11252
11253 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11254
11255         * config.h.in: Add socklen_t.
11256
11257         * s/decosf4-0.h: No special compiler flags needed or desired.
11258         In particular, undefine _BSD for DEC OSF 4.0.
11259
11260 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11261
11262         * redisplay-msw.c (msprinter_frame_output_end): Added.
11263         (console_type_create_redisplay_mswindows): Referred the above.
11264
11265         * frame.c (setup_frame_without_minibuffer): Do not create a
11266         default minibuffer frame on a printer device.
11267
11268         * frame-msw.c (apply_dc_geometry): Added.
11269         (msprinter_start_page):
11270         (msprinter_init_frame_3):
11271         (msprinter_eject_page): Use it.
11272
11273         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11274         and removed residual duplex and orientation properties.
11275
11276 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11277
11278         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11279
11280         * unexalpha.c: Remove system prototypes from C sources!
11281
11282 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11283
11284         * eval.c: Remove references to M-x edit-options in DEFUNs for
11285         `defvar' and `defconst'.
11286
11287 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11288
11289         * config.h.in: Remove SMART_INCLUDE hackery.
11290
11291         PostgreSQL hacking:
11292         * config.h.in: Don't use SMART_INCLUDE.
11293
11294         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11295         * inline.c: Simply #include "postgresql.h"
11296         * postgresql.c:
11297         - Don't use SMART_INCLUDE
11298         - Use simply "const".
11299         - Use standard doc string conventions.
11300         - Use correct type for result of PQstatus.
11301
11302 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11303
11304         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11305
11306         C++ compilation changes.
11307         * config.h.in (EXTERN_C): Define.
11308         * config.h.in (not): This is also a C++ keyword.
11309         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11310         * cm.c: Use EXTERN_C.
11311         * redisplay-tty.c: Use EXTERN_C.
11312         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11313
11314 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11315
11316         * general.c: Remove duplicate definition for Qfunction.
11317
11318 2000-07-08  Ben Wing  <ben@xemacs.org>
11319
11320         * device-msw.c (msprinter_init_device):
11321         * device-msw.c (sync_printer_with_devmode):
11322         * device-msw.c (handle_devmode_changes):
11323         * device-msw.c (print_dialog_worker):
11324         * device-msw.c (Fmsprinter_apply_settings):
11325         * device-msw.c (hash_devmode):
11326         * device-msw.c (Fmsprinter_settings_despecialize):
11327         use Qmswindows_tstr, not Qctext.
11328
11329         * vm-limit.c (check_memory_limits):
11330         avoid infinite loop printing warning messages.
11331
11332 2000-07-05  Craig Lanning  <lanning@scra.org>
11333
11334         * Makefile.in.in: Add support for including the Windows resources
11335         when building with the cygwin and mingw targets.
11336
11337         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11338         not set or not correct.
11339         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11340         (init_initial_directory): Don't try to use $PWD on the
11341         WIN32_NATIVE target.
11342
11343         * s\cygwin32.h:
11344         [[Add -mwindows to eliminate console window.]] not required --ben
11345         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11346         (MAIL_USE_POP): removed; now handled by configure.
11347
11348         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11349         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11350         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11351         (MAIL_USE_POP): removed; now handled by configure.
11352         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11353         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11354         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11355         constant string.
11356         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11357         up from <winsock.h> via systime.h.
11358         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11359         (getpagesize): from Dan Holmsand, added.
11360         Added #endif which was left dangling by Ben's mega patch; added
11361         comment to help prevent this in the future.
11362
11363         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11364
11365 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11366
11367         * console-msw.h (struct mswindows_device): Removed unnecessary
11368         cached device geometry values.
11369         Added update_tick and an accessor macro.
11370         (Lisp_Devmode): Added lrecord declaration.
11371         (struct msprinter_device): Contain devmode as a Lisp object.
11372         Added mswindows_get_selected_frame_hwnd();
11373
11374         * console.h (struct console_methods): Indentation nitpicking.
11375
11376         * device-msw.c (mswindows_init_device): Do not initialize geometry
11377         cache. Initialize update tick.
11378         (mswindows_device_system_metrics): Ask the device for its geometry.
11379         (global_free_2_maybe):
11380         (devmode_to_hglobal):
11381         (handle_printer_changes):
11382         (ensure_not_printing):
11383         (print_dialog_worker):
11384         (Fmsprinter_print_setup_dialog):
11385         (Fmsprinter_print_dialog):
11386         (plist_get_margin):
11387         (plist_set_margin):
11388         (Fmsprinter_page_setup_dialog): Added functions.
11389         (sync_printer_with_devmode):
11390         (handle_devmode_changes):
11391         (Fmsprinter_get_settings):
11392         (Fmsprinter_select_settings):
11393         (Fmsprinter_apply_settings):
11394         (allocate_devmode):
11395         (Fmsprinter_settings_copy):
11396         (Fmsprinter_settings_despecialize):
11397         (print_devmode):
11398         (finalize_devmode):
11399         (equal_devmode):
11400         (hash_devmode): Added functions
11401         (syms_of_device_mswindows): Init devmode lrecord class.
11402
11403         * device.h: Added an exfun for find-device.
11404
11405         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11406         geometry; although, recreate the device compatible DC.
11407
11408         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11409         (msprinter_init_frame_3):
11410         (msprinter_frame_property):
11411         (msprinter_internal_frame_property_p):
11412         (msprinter_frame_properties):
11413         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11414         print job properties (will move to device settings).
11415
11416         * lisp.h: Added symbols.
11417
11418         * general.c (syms_of_general): Declared them.
11419
11420         * hash.c (string_hash): Added.
11421
11422         * lrecord.h (lrecord_type): Added devmode lrecord type.
11423
11424 2000-07-02  Mike Sperber <mike@xemacs.org>
11425
11426         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11427         FreeBSD 4.0.
11428
11429 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11430
11431         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11432         integer.
11433
11434 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11435
11436         * data.c (Fstring_to_number): Don't recognize floating point if
11437         base is not 10.
11438
11439 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11440
11441         * glyphs-widget.c (tab_control_query_geometry):
11442         (widget_query_geometry):
11443         (button_query_geometry):
11444         * glyphs.c (text_query_geometry):
11445         Enforce type correctness.
11446
11447 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11448
11449         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11450         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11451
11452 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11453
11454         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11455         conflicts with gcc's fixincluded version of FOO.h.
11456
11457         * glyphs.h (image_instance_geometry): Remove trailing `,'
11458
11459 2000-06-08  Mike Alexander  <mta@arbortext.com>
11460
11461         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11462         (shove_thread): Don't write the same output twice
11463         (make_ntpipe_output_stream): Increase priority of shove thread
11464         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11465         chance to run
11466         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11467         it.
11468
11469 2000-06-12  Ben Wing  <ben@xemacs.org>
11470
11471         * s\mingw32.h (sigset):
11472         * s\windowsnt.h (sigset):
11473         rename msw_ to mswindows_ for consistency with general convention.
11474
11475 2000-06-12  Ben Wing  <ben@xemacs.org>
11476
11477         * console-msw.c:
11478         * console-msw.c (mswindows_get_console_hwnd):
11479         * console-msw.c (mswindows_ensure_console_allocated):
11480         * console-msw.c (mswindows_hide_console):
11481         * console-msw.c (mswindows_show_console):
11482         * console-msw.c (mswindows_ensure_console_buffered):
11483         * console-msw.c (mswindows_output_console_string):
11484         * console-msw.c (mswindows_windows9x_p):
11485         * console-msw.h:
11486         * device-msw.c (mswindows_get_workspace_coords):
11487         * device-msw.c (mswindows_device_system_metrics):
11488         * dialog-msw.c (mswindows_popup_dialog_box):
11489         * event-msw.c (mswindows_wnd_proc):
11490         * frame-msw.c (mswindows_size_frame_internal):
11491         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11492         * menubar-msw.c (displayable_menu_item):
11493         * menubar-msw.c (mswindows_char_is_accelerator):
11494         * nt.c:
11495         * nt.c (mswindows_sigset):
11496         * nt.c (mswindows_sigrelse):
11497         * nt.c (mswindows_sigpause):
11498         * nt.c (mswindows_raise):
11499         * nt.c (timer_proc):
11500         * ntproc.c:
11501         * ntproc.c (find_child_console):
11502         * ntproc.c (sys_kill):
11503         * print.c:
11504         * print.c (std_handle_out_external):
11505         * process-nt.c (find_child_console):
11506         * process-nt.c (send_signal_the_95_way):
11507         * process-nt.c (ensure_console_window_exists):
11508         * process-nt.c (nt_create_process):
11509         * syssignal.h:
11510         rename msw_ to mswindows_ for consistency with general convention.
11511
11512         * emacs.c:
11513         * dumper.c:
11514         include nt.h, not syswindows.h.
11515
11516         * nt.c (mswindows_fstat):
11517         * nt.c (mswindows_stat):
11518         prefix mswindows_ instead of attempting to directly override the
11519         library functions.  fix declarations.
11520
11521         * nt.h:
11522         include syswindows.h.  move some sysdep.h stuff here.
11523
11524         * ntheap.h:
11525         include syswindows.h, not <windows.h>.
11526
11527         * ntplay.c:
11528         clean up headers.
11529
11530         * sysdep.c:
11531         clean up headers.
11532
11533         * sysdep.c (sys_fstat):
11534         * sysdep.c (sys_stat):
11535         call mswindows versions when appropriate.
11536
11537         * sysdep.h:
11538         move mswin decls to nt.h.
11539
11540         * syswindows.h:
11541         add long comment describing appropriate use of the various windows
11542         headers.
11543
11544 2000-06-11  Ben Wing  <ben@xemacs.org>
11545
11546         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11547
11548 2000-06-10  Ben Wing  <ben@xemacs.org>
11549
11550         * Makefile.in.in (release):
11551         Correction to make sure xemacs.exe always dumped when correct.
11552
11553         * alloca.c:
11554         * balloon_help.c:
11555         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11556
11557         * buffer.c (set_buffer_internal):
11558         [[[[2]]]]: Remove HAVE_FEP code.
11559
11560         * buffer.c (init_initial_directory):
11561         [3].
11562
11563         * bytecode.c:
11564         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11565         individual files.
11566
11567         * callproc.c:
11568         * callproc.c (call_process_cleanup):
11569         * callproc.c (Fold_call_process_internal):
11570         * callproc.c (child_setup):
11571         * callproc.c (getenv_internal):
11572         * callproc.c (init_callproc):
11573         * callproc.c (vars_of_callproc):
11574         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11575         __CYGWIN32__ -> CYGWIN.
11576         DOS_NT -> WIN32_NATIVE.
11577         Remove MSDOS support/references, converting to WIN32_NATIVE
11578           where correct.
11579         __MINGW32__ -> MINGW.
11580         Fix windows.h includes.
11581         Remove bogus HAVE_NTGUI.
11582
11583         * config.h.in:
11584         [2].
11585
11586         * console-msw.c:
11587         mswindows_message_outputted added for use in allowing startup
11588         errors on the console to be seen.
11589
11590         * console-msw.c (msw_ensure_console_allocated):
11591         * console-msw.c (msw_output_console_string):
11592         * console-msw.c (DHEADER):
11593         * console-msw.c (DOPAQUE_DATA):
11594         * console-msw.c (DEVENT):
11595         * console-msw.c (DCONS):
11596         * console-msw.c (DCONSCDR):
11597         * console-msw.c (DSTRING):
11598         * console-msw.c (DVECTOR):
11599         * console-msw.c (DSYMBOL):
11600         * console-msw.c (DSYMNAME):
11601         Fix warnings.
11602
11603         * console-stream.c (stream_init_console):
11604         Fix text/binary problems.
11605
11606         * device-msw.c:
11607         * device-msw.c (mswindows_finish_init_device):
11608         * device-msw.c (mswindows_delete_device):
11609         [1].
11610
11611         * device.c (handle_asynch_device_change):
11612         [3].
11613
11614         * dgif_lib.c:
11615         * dgif_lib.c (DGifOpenFileName):
11616         * dgif_lib.c (DGifOpenFileHandle):
11617         * dgif_lib.c (DGifGetLine):
11618         * dgif_lib.c (DGifGetPixel):
11619         Added config.h/lisp.h, fix up includes.
11620         [1].
11621
11622         * dired-msw.c:
11623         [4].
11624
11625         * dired.c:
11626         * dired.c (file_name_completion):
11627         * dired.c (Ffile_attributes):
11628         * dired.c (syms_of_dired):
11629         [1].
11630
11631         * dumper.c:
11632         * dumper.c (pdump_file_unmap):
11633         * dumper.c (pdump_load):
11634         [1].
11635
11636         * editfns.c:
11637         * editfns.c (Ftemp_directory):
11638         * editfns.c (user_login_name):
11639         * editfns.c (Fuser_real_login_name):
11640         * editfns.c (get_home_directory):
11641         [1].
11642
11643         * elhash.c (finish_marking_weak_hash_tables):
11644         [[[[5]]]]: Fix GCC warnings.
11645
11646         * emacs.c:
11647         * emacs.c (mswindows_handle_hardware_exceptions):
11648         * emacs.c (make_arg_list_1):
11649         * emacs.c (main_1):
11650         * emacs.c (Fkill_emacs):
11651         * emacs.c (Fdump_emacs):
11652         [1].
11653         Fix problems with nested crashes, add long comment.
11654
11655         * event-Xt.c (init_event_Xt_late):
11656         [1].
11657
11658         * event-msw.c:
11659         * event-msw.c (mswindows_dde_callback):
11660         * event-msw.c (mswindows_handle_sticky_modifiers):
11661         * event-msw.c (mswindows_wnd_proc):
11662         [1].
11663         [5].
11664
11665         * events.c (character_to_event):
11666         [1].
11667
11668         * fileio.c:
11669         * fileio.c (Ffile_name_directory):
11670         * fileio.c (Ffile_name_nondirectory):
11671         * fileio.c (directory_file_name):
11672         * fileio.c (Fexpand_file_name):
11673         * fileio.c (Fsubstitute_in_file_name):
11674         * fileio.c (Ffile_name_absolute_p):
11675         * fileio.c (check_executable):
11676         * fileio.c (Ffile_readable_p):
11677         * fileio.c (Ffile_accessible_directory_p):
11678         * fileio.c (Ffile_modes):
11679         * fileio.c (Funix_sync):
11680         * fileio.c (vars_of_fileio):
11681         [1]. [4].
11682
11683         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11684
11685         Expand getdefdir defn.
11686         Fix bogus rename() comment.
11687
11688         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11689         to use standard XEmacs include files, e.g. sysfile.h, rather
11690         than system-specific includes.
11691
11692         * fns.c:
11693         * fns.c (Fsubseq):
11694         [5]. [6].
11695
11696         * frame.c (vars_of_frame):
11697         [1].
11698
11699         * getloadavg.c:
11700         * getloadavg.c (getloadavg):
11701         [1]. [6].
11702         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11703         (We don't use it elsewhere in the code; just add a comment.)
11704
11705         * gif_io.c:
11706         [6].
11707         Add config.h.
11708
11709         * glyphs-msw.c:
11710         * glyphs-msw.c (mswindows_resource_instantiate):
11711         [1].
11712
11713         * glyphs-x.c (x_native_layout_instantiate):
11714         [5].
11715
11716         * gui-msw.c (Fmswindows_shell_execute):
11717         [1].
11718
11719         * insdel.c:
11720         [4].
11721
11722         * lisp.h:
11723         [4]. [5].
11724
11725         * lread.c (locate_file_in_directory_mapper):
11726         [1].
11727
11728         * lstream.c:
11729         [4].
11730
11731         * mem-limits.h:
11732         * mem-limits.h (get_lim_data):
11733         [1].
11734
11735         * menubar-msw.c:
11736         [4].
11737
11738         * ndir.h:
11739         [1].
11740
11741         * nt.c:
11742         * nt.c (getwd):
11743         * nt.c (closedir):
11744         * nt.c (rva_to_section):
11745         * nt.c (mswindows_executable_type):
11746         [1]. [6].
11747         Fix closedir() defn.
11748
11749         * nt.h:
11750         [[[[8]]]]: *_OK defs moved to sysfile.h.
11751
11752         * ntproc.c:
11753         [6]. [7].
11754
11755         * objects-x.c:
11756         [4].
11757
11758         * print.c:
11759         * print.c (std_handle_out_external):
11760         [1]. [4].
11761
11762         * process-nt.c:
11763         * process-nt.c (nt_create_process):
11764         [6].
11765         try to fix process quoting somewhat.
11766
11767         * process-unix.c (unix_create_process):
11768         [1].
11769
11770         * process.c:
11771         * process.c (vars_of_process):
11772         Add Vnull_device.
11773
11774         * process.h:
11775         [1].
11776
11777         * realpath.c:
11778         * realpath.c (xrealpath):
11779         [1].
11780
11781         * redisplay-tty.c (init_tty_for_redisplay):
11782         [3].
11783
11784         * redisplay.c:
11785         [4]. [6].
11786
11787         * scrollbar-msw.c:
11788         [4].
11789
11790         * sheap.c:
11791         * sheap.c (more_static_core):
11792         * sheap.c (report_sheap_usage):
11793         [5]. [6].
11794
11795         * signal.c:
11796         * signal.c (alarm_signal):
11797         [1]. [6].
11798
11799         * sound.c:
11800         [6].
11801
11802         * strftime.c:
11803         * strftime.c (zone_name):
11804         [1]. [5].
11805
11806         * symsinit.h (init_sunpro):
11807         [1].
11808
11809         * syscommctrl.h:
11810         commctrl.h not in Cygwin b20.1.
11811
11812         * sysdep.c:
11813         * sysdep.c (endif):
11814         * sysdep.c (sys_subshell):
11815         * sysdep.c (init_baud_rate):
11816         * sysdep.c (emacs_get_tty):
11817         * sysdep.c (emacs_set_tty):
11818         * sysdep.c (tty_init_sys_modes_on_device):
11819         * sysdep.c (init_system_name):
11820         * sysdep.c (sys_open):
11821         * sysdep.c (interruptible_open):
11822         * sysdep.c (sys_fopen):
11823         * sysdep.c (sys_mkdir):
11824         * sysdep.c (sys_rename):
11825         * sysdep.c (get_process_times_1):
11826         [1]. [6].
11827
11828         * sysdep.h:
11829         [1].
11830
11831         * sysdir.h:
11832         * sysdir.h (DIRENTRY_NONEMPTY):
11833         [1]. [6].
11834
11835         * sysdll.c (dll_init):
11836         * sysdll.h:
11837         [1].
11838
11839         * sysfile.h:
11840         [1]. [6]. [8].
11841         added text/binary defs.
11842
11843         * sysfloat.h:
11844         [1].
11845
11846         * sysproc.h:
11847         * sysproc.h (EDESTADDRREQ):
11848         * sysproc.h (poll_fds_for_input):
11849         [1]. [6].
11850
11851         * syspwd.h:
11852         [6].
11853
11854         * syssignal.h:
11855         [1].
11856
11857         * systime.h:
11858         [1]. [6].
11859
11860         * systty.h:
11861         [1].
11862
11863         * syswindows.h:
11864         [1].
11865         Always define WIN32_LEAN_AND_MEAN.
11866
11867         * unexcw.c (unexec):
11868         [5].
11869
11870         * unexec.c:
11871         * unexec.c (copy_text_and_data):
11872         * unexec.c (adjust_lnnoptrs):
11873         [1].
11874
11875         * unexnt.c:
11876         * unexnt.c (_start):
11877         [1].
11878
11879 2000-06-07  Ben Wing  <ben@xemacs.org>
11880
11881         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11882         was used only as a model.  We've long since extracted any useful
11883         logic or code out of this. (I just did an exhaustive search.)
11884
11885         * s\msdos.h: Removed.
11886
11887         * s\windows95.h: Removed.
11888
11889 2000-06-10  Ben Wing  <ben@xemacs.org>
11890
11891         * s\cygwin32.h:
11892         [1]. [5].
11893         Don't use extern with fun defs.
11894
11895         * s\mingw32.h:
11896         [1]. [7].
11897         Remove nt\inc include.
11898         Remove getdisk, getdefdir. (The former is unused, the latter
11899         expanded in fileio.h.)
11900
11901         * s\windowsnt.h:
11902         * s\windowsnt.h (WIN32_NATIVE):
11903         * s\windowsnt.h (HAVE_STRCASECMP):
11904         [1]. [7].
11905         Add long comment about preprocessor changes.
11906         Remove getdisk, getdefdir. (The former is unused, the latter
11907         expanded in fileio.h.)
11908
11909 2000-06-10  Ben Wing  <ben@xemacs.org>
11910
11911         * m\arm.h:
11912         * m\delta.h:
11913         * m\intel386.h:
11914         * m\sequent.h:
11915         * m\template.h:
11916         * m\windowsnt.h:
11917         [1].
11918         Remove bogus/unused NO_SOCK_SIGIO.
11919
11920 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11921
11922         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11923         not an Emchar.
11924
11925 2000-06-04  Mike Sperber <mike@xemacs.org>
11926
11927         * casetab.c (set_case_table): For `set-standard-case-table',
11928         actually deposit the new case tables where the rest of XEmacs can
11929         see them.
11930
11931 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11932
11933         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11934
11935 2000-06-05  Ben Wing  <ben@xemacs.org>
11936
11937         * callproc.c (child_setup): Don't do close_load_descs() under
11938         MS Windows.  Put in a comment explaining why.
11939
11940 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11941
11942         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11943         Toolkit shell" which breaks `kill-compilation' on Windows NT
11944         native, retaining STDERR handling improvements.
11945
11946 2000-06-01  Andreas Jaeger  <aj@suse.de>
11947
11948         * s/s390.h: Support for S390, based on a patch by Martin
11949         Schwidefsky <schwidefsky@de.ibm.com>.
11950
11951 2000-05-30  Andy Piper  <andy@xemacs.org>
11952
11953         * window.c (allocate_window):
11954         (make_dummy_parent):
11955         (Fset_window_configuration): use new hashtable type.
11956
11957         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11958         (struct image_instantiator_methods):
11959         (struct Lisp_Image_Instance): make instance geometry signed.
11960
11961         * glyphs.c (instantiate_image_instantiator):
11962         (image_instance_query_geometry):
11963         (image_instance_layout):
11964         (image_instance_layout):
11965         (query_string_geometry):
11966         (text_query_geometry):
11967         (image_instantiate):
11968         (image_instantiate):
11969         (cache_subwindow_instance_in_frame_maybe):
11970         (subwindow_query_geometry): make instance geometry signed.
11971
11972         * glyphs-widget.c (widget_query_geometry):
11973         (widget_layout):
11974         (button_query_geometry):
11975         (tree_view_query_geometry):
11976         (tab_control_query_geometry):
11977         (layout_query_geometry):
11978         (layout_layout):
11979         (native_layout_layout): make instance geometry signed.
11980
11981 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11982
11983         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11984         constant.
11985
11986         * general.c (syms_of_general): Add Qfull_assoc symbol.
11987
11988         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11989         correctly.
11990         (decode_weak_list_type): Decode full-assoc type.
11991         (encode_weak_list_type): Encode full-assoc type.
11992         (Fmake_weak_list): Update doc string.
11993
11994 2000-05-30  Andy Piper  <andy@xemacs.org>
11995
11996         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11997
11998         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11999         (decode_hash_table_weakness): ditto.
12000         (Fhash_table_weakness): ditto.
12001         (Fhash_table_type): ditto.
12002         (finish_marking_weak_hash_tables): ditto.
12003         (hash_table_weakness_validate): ditto.
12004         (syms_of_elhash): ditto.
12005
12006 2000-05-28  Martin Buchholz <martin@xemacs.org>
12007
12008         * XEmacs 21.2.34 is released.
12009
12010 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12011
12012         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12013         start cache.
12014         (updating_line_start_cache): Gone.
12015         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12016         generic code to force a minimum of 1 line laid out in the
12017         CMOTION_DISP case.
12018
12019 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12020
12021         * glyphs.c (instantiate_image_instantiator): Check for initialized
12022         height & width no longer special cases IMAGE_NOTHING.
12023         (nothing_instantiate): Set height and width of instance.
12024
12025 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12026
12027         * unexelf.c (unexec): Search for ".data" section.
12028         Initialize new_data2_offset from old_data_index.
12029         Remove redundant check for ElfW.
12030
12031 2000-05-23  Andy Piper  <andy@xemacs.org>
12032
12033         * glyphs.c (get_image_instantiator_governing_domain): allow more
12034         specific domains as the governing domain rather than expecting an
12035         exact match. This fixes problems with layouts.
12036
12037 2000-05-22  Andy Piper  <andy@xemacs.org>
12038
12039         * redisplay-output.c (compare_runes): check for non-images
12040
12041         * glyphs.c (set_glyph_dirty_p): ditto.
12042         (update_glyph_cachel_data): ditto.
12043
12044         * glyphs-widget.c (layout_post_instantiate): ditto.
12045         (layout_post_instantiate): ditto.
12046
12047         * event-msw.c (mswindows_wnd_proc): warning removal.
12048
12049 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12050
12051         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12052
12053         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12054
12055         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12056
12057         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12058         (mswindows_executable_type): mingw32 now has enough headers for
12059         this to work.
12060
12061 2000-05-20  Andy Piper  <andy@xemacs.org>
12062
12063         * console-msw.c (mswindows_output_last_error): ; -> ,
12064
12065 2000-05-12  Andy Piper  <andy@xemacs.org>
12066
12067         * console-msw.c (FROB): compare ints with ints.
12068
12069 2000-05-11  Andy Piper  <andy@xemacs.org>
12070
12071         * glyphs-x.c (x_finalize_image_instance): make minimal build
12072         happy.
12073
12074 2000-05-20  Ben Wing  <ben@xemacs.org>
12075
12076         * event-Xt.c:
12077         * event-Xt.c (vars_of_event_Xt):
12078         move modifier-keys-are-sticky to event-stream.c.
12079
12080         * event-msw.c:
12081         * event-msw.c (mswindows_enqueue_mouse_button_event):
12082         * event-msw.c (key_needs_default_processing_p):
12083         * event-msw.c (XEMSW_LCONTROL):
12084         * event-msw.c (mswindows_handle_sticky_modifiers):
12085         * event-msw.c (FROB):
12086         * event-msw.c (clear_sticky_modifiers):
12087         * event-msw.c (output_modifier_keyboard_state):
12088         * event-msw.c (output_alt_keyboard_state):
12089         * event-msw.c (mswindows_wnd_proc):
12090         * event-msw.c (mswindows_modifier_state):
12091         * event-msw.c (emacs_mswindows_handle_magic_event):
12092         implement sticky modifiers.
12093
12094         * event-stream.c:
12095         * event-stream.c (vars_of_event_stream):
12096         move modifier-keys-are-sticky here.
12097
12098         * lisp.h:
12099         add CHECK_FUNCTION.
12100
12101         * rangetab.c:
12102         implement map-range-table.
12103
12104
12105 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12106
12107         * redisplay-tty.c (reset_tty_modes):
12108         (tty_redisplay_shutdown): Adjust argument type to
12109         tty_frame_output_end.
12110
12111 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12112
12113         * eval.c (Fbacktrace): Don't output a line with only right
12114         parenthesis.
12115
12116 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12117
12118         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12119         (Fpq_reset_poll): Ditto.
12120
12121 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12122
12123         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12124
12125 2000-05-16  Ben Wing  <ben@xemacs.org>
12126
12127         * buffer.c:
12128         * buffer.c (dfc_convert_to/from_internal_format):
12129         * buffer.c (reinit_vars_of_buffer):
12130         Fix conversion functions to allow reentrancy.
12131
12132         * console-msw.c:
12133         * console-msw.c (mswindows_output_last_error):
12134         New fun, generally useful -- output a human-readable
12135         version of GetLastError() on the console.
12136
12137         * console-msw.h:
12138         * console-msw.h (struct mswindows_frame):
12139         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12140
12141         * console-stream.c (stream_output_begin):
12142         * console-stream.c (stream_output_end):
12143         * console-stream.c (stream_output_vertical_divider):
12144         * console-stream.c (stream_clear_region):
12145         * console-stream.c (stream_flash):
12146         * console-stream.c (console_type_create_stream):
12147         Delete blank stream methods, not needed.
12148
12149         * console.h (struct console_methods):
12150         Split begin/end methods into window and frame.
12151
12152         * event-msw.c:
12153         * event-msw.c (mswindows_handle_paint):
12154         * event-msw.c (output_alt_keyboard_state):
12155         * event-msw.c (mswindows_wnd_proc):
12156         * event-msw.c (vars_of_event_mswindows):
12157         Comment about problems with ignored-expose.
12158         Define mswindows-debug-events; not really implemented.
12159
12160         * frame-msw.c (mswindows_init_frame_1):
12161         random cleanups.
12162
12163         * glyphs-msw.c:
12164         * glyphs-msw.c (begin_defer_window_pos):
12165         * glyphs-msw.c (mswindows_unmap_subwindow):
12166         * glyphs-msw.c (mswindows_map_subwindow):
12167         * glyphs-msw.c (mswindows_resize_subwindow):
12168         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12169
12170         * glyphs.c (make_image_instance_1):
12171         Fix crash.
12172
12173         * gutter.c (Fredisplay_gutter_area):
12174         Use new begin/end methods.
12175
12176         * lisp.h (Dynarr_new2):
12177         New creation fun.
12178
12179         * redisplay-msw.c:
12180         * redisplay-msw.c (mswindows_frame_output_begin):
12181         * redisplay-msw.c (mswindows_frame_output_end):
12182         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12183         New begin/end methods -- handle DeferWindowPos.
12184
12185         * redisplay-output.c (redisplay_move_cursor):
12186         * redisplay-output.c (redraw_cursor_in_window):
12187         * redisplay-output.c (redisplay_update_line):
12188         * redisplay-output.c (redisplay_output_window):
12189         New begin/end methods.
12190
12191         * redisplay-tty.c:
12192         * redisplay-tty.c (tty_frame_output_begin):
12193         * redisplay-tty.c (tty_frame_output_end):
12194         * redisplay-tty.c (console_type_create_redisplay_tty):
12195         New begin/end methods.
12196
12197         * redisplay-x.c:
12198         * redisplay-x.c (x_window_output_begin):
12199         * redisplay-x.c (x_window_output_end):
12200         * redisplay-x.c (console_type_create_redisplay_x):
12201         New begin/end methods.
12202
12203         * redisplay.c (redisplay_frame):
12204         * redisplay.c (Fredisplay_echo_area):
12205         New begin/end methods.
12206         use MAYBE_DEVMETH for clear_frame; it may not exist.
12207
12208         * window.h (WINDOW_XFRAME):
12209         WINDOW_XFOO macros -- get locale and decode struct pointer.
12210
12211
12212 2000-05-12  Ben Wing  <ben@xemacs.org>
12213
12214         * emacs.c:
12215         * emacs.c (ensure_no_quitting_from_now_on):
12216         * emacs.c (fatal_error_signal):
12217         * emacs.c (mswindows_handle_hardware_exceptions):
12218         * emacs.c (main):
12219         * emacs.c (Fkill_emacs):
12220         * emacs.c (shut_down_emacs):
12221         * emacs.c (assert_failed):
12222         various improvements in fatal error handling.
12223
12224         * eval.c:
12225         move preparing_for_armageddon to emacs.c.
12226
12227         * lisp.h:
12228         declare fatal_error_in_progress.
12229
12230         * print.c:
12231         * print.c (std_handle_out_external):
12232         * print.c (std_handle_out_va):
12233         * print.c (stderr_out):
12234         * print.c (stdout_out):
12235         use console under mswin when no standard output.
12236         don't do code conversion during fatal error.
12237
12238         * scrollbar.c (Fscrollbar_page_up):
12239         * scrollbar.c (Fscrollbar_page_down):
12240         fix missing else.  reindent.
12241
12242 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12243
12244         Emergency fix.
12245
12246         * glyphs.h (GLYPH_CACHEL_DESCENT):
12247         (GLYPH_CACHEL_DESCENT):
12248         (GLYPH_CACHEL_DESCENT):
12249         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12250         used in case these are inline functions.
12251         Use more absurd values to error check.
12252
12253         include window.h for error check functions.
12254
12255 2000-05-11  Ben Wing  <ben@xemacs.org>
12256
12257         * cmdloop.c (Freally_early_error_handler):
12258         Display message box under windows; otherwise, message will disappear
12259         before it can be viewed.
12260
12261         * console-msw.c:
12262         * console-msw.c (Fmswindows_message_box):
12263         * console-msw.c (FROB):
12264         * console-msw.c (syms_of_console_mswindows):
12265         Define new fun `mswindows-message-box'.
12266         #### I will merge this into `popup-dialog-box'; just give me
12267         a bit of time.
12268
12269         * general.c:
12270         * general.c (syms_of_general):
12271         Some new symbols used in `mswindows-message-box'.
12272
12273         * glyphs.c:
12274         * glyphs.c (Fset_image_instance_property):
12275         put warning in this fun.
12276
12277         * glyphs.h:
12278         * glyphs.h (GLYPH_CACHEL_WIDTH):
12279         * glyphs.h (GLYPH_CACHEL_ASCENT):
12280         * glyphs.h (GLYPH_CACHEL):
12281         * glyphs.h (GLYPH_CACHEL_GLYPH):
12282         define error-checking versions to try to catch a bug i've seen --
12283         redisplay gets in an infinite loop because the glyph width of the
12284         continuation glyph is 65535.
12285
12286         * lisp.h:
12287         Extern message-box stuff.
12288
12289         * window.c (allocate_window):
12290         * window.c (make_dummy_parent):
12291         * window.c (Fset_window_configuration):
12292         Use EQUAL not EQ for subwindow caches to make them work a bit
12293         better. (Something is still very broken.)
12294
12295
12296 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12297
12298         * glyphs.c (image_instantiate): Suppress gcc warnings.
12299         (Fmake_image_instance): Fix doc string.
12300         * specifier.c (Fmake_specifier): Ditto.
12301
12302 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12303
12304         * paths.h.in (PATH_LOCK): Removed.
12305         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12306         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12307
12308 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12309
12310         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12311         Document (featurep '(and xemacs 21.02)).
12312
12313 2000-05-09  Ben Wing  <ben@xemacs.org>
12314
12315         * buffer.c (complex_vars_of_buffer):
12316         update modeline-format doc.
12317
12318         * device.h:
12319         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12320
12321         * emacs.c:
12322         timeline of all released versions of Emacs, for use in creating
12323         authorship comments and in synching up.
12324
12325         * glyphs-widget.c (image_instantiator_buttons):
12326         * glyphs-widget.c (image_instantiator_edit_fields):
12327         * glyphs-widget.c (image_instantiator_combo_box):
12328         * glyphs-widget.c (image_instantiator_scrollbar):
12329         * glyphs-widget.c (image_instantiator_progress_guage):
12330         * glyphs-widget.c (image_instantiator_tree_view):
12331         * glyphs-widget.c (image_instantiator_tab_control):
12332         * glyphs-widget.c (image_instantiator_labels):
12333         * glyphs-widget.c (image_instantiator_layout):
12334         * glyphs-widget.c (image_instantiator_native_layout):
12335         rename decode_domain method to governing_domain.
12336
12337         * glyphs.c:
12338         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12339         * glyphs.c (add_entry_to_device_ii_format_list):
12340         make sure we don't put an entry more than once into the list.
12341         * glyphs.c (check_instance_cache_mapper):
12342         *************************************************************
12343         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12344         HAVE BEEN GETTING.
12345         *************************************************************
12346         * glyphs.c (get_image_instantiator_governing_domain):
12347         clean up, expand on new concept of governing domain.
12348         * glyphs.c (instantiate_image_instantiator):
12349         * glyphs.c (allocate_image_instance):
12350         use governing_domain instead of cache_domain in naming.
12351         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12352         * glyphs.c (make_image_instance_1):
12353         * glyphs.c (Fmake_image_instance):
12354         allow for any domain (not just device), and process the
12355         governing domain correctly.  very big doc fix.
12356         * glyphs.c (Fimage_instance_domain):
12357         new primitive, to retrieve the governing domain of an image instance.
12358         * glyphs.c (image_instantiate):
12359         use new governing_domain stuff.  this fixes a crash you could get
12360         by instantiating certain widget glyphs in frame locales. (should
12361         signal an error instead of crashing.)
12362         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12363         * glyphs.c (Fglyphp): clean up doc.
12364         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12365         * glyphs.c (syms_of_glyphs):
12366         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12367         * glyphs.c (image_instantiator_format_create): add some comments about
12368         bogus code.
12369         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12370         for current-display-table. (Apparently Hrjove implemented in 1998 a
12371         design I wrote up in 1996, but didn't update the doc string.)
12372
12373         * glyphs.h: clean up a doc string.
12374         * glyphs.h (governing_domain):
12375         * glyphs.h (struct image_instantiator_methods):
12376         changes for governing_domain stuff.
12377
12378         * gutter.c:
12379         * gutter.c (Fgutter_specifier_p):
12380         * gutter.c (Fgutter_size_specifier_p):
12381         * gutter.c (Fgutter_visible_specifier_p):
12382         * objects.c:
12383         * objects.c (Fcolor_specifier_p):
12384         * objects.c (Ffont_specifier_p):
12385         * objects.c (Fface_boolean_specifier_p):
12386         doc strings moved to make-*-specifier.
12387
12388         * redisplay.c (add_disp_table_entry_runes_1):
12389         * redisplay.c (generate_fstring_runes):
12390         * redisplay.c (screen):
12391         add random comments and doc strings.
12392
12393         * specifier.c:
12394         * specifier.c (Fmake_specifier):
12395         major overhaul of this doc string.
12396
12397         * specifier.c (Fvalid_specifier_domain_p):
12398         comment about the bogosity of image instances being domains.
12399         * specifier.c (decode_domain):
12400         now non-static, used in glyphs.c.
12401         * specifier.c (specifier_instance):
12402         comment about the bogosity of image instances being domains.
12403         * specifier.c (Fgeneric_specifier_p):
12404         move doc string to make-generic-specifier.
12405         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12406         rebackslashify.
12407
12408         * specifier.h:
12409         * specifier.h (DOMAIN_FRAME):
12410         * specifier.h (DOMAIN_LIVE_P):
12411         * specifier.h (DOMAIN_XDEVICE):
12412         rebackslashify.
12413         add comments about problems with these macros.
12414         prototype for decode_domain.
12415
12416         * toolbar.c:
12417         * toolbar.c (Ftoolbar_specifier_p):
12418         move doc string to `make-toolbar-specifier'.
12419
12420         * window.c (window_unmap_subwindows_cache_mapper):
12421         *************************************************************
12422         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12423         HAVE BEEN GETTING.
12424         *************************************************************
12425
12426 2000-05-09  Andy Piper  <andy@xemacs.org>
12427
12428         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12429
12430         * window.c (Fset_window_configuration): reset the frame subwindow
12431         cache and re-initialize the window subwindow caches.
12432
12433         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12434
12435 2000-05-09  Ben Wing  <ben@xemacs.org>
12436
12437         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12438         DWORD.
12439
12440 2000-04-26  Mike Woolley  <mike@bulsara.com>
12441
12442         * ntheap.c: Changed recreate_heap to limit the amount reserved
12443         for the heap to that which is actually available. Also now
12444         displays a message box (with some dignostics) in the event that
12445         it still can't start.
12446
12447 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12448
12449         * callproc.c (Fold_call_process_internal): GCPRO path
12450
12451 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12452
12453         Patch by Bill Perry.
12454
12455         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12456         back data instead of #ifdef.
12457         (Fscrollbar_page_down): ditto.
12458
12459 2000-05-07  Ben Wing  <ben@xemacs.org>
12460
12461         * buffer.h:
12462         Kludge for defining Qmswindows_tstr.
12463
12464         * nt.c:
12465         * nt.c (open_input_file):
12466         * nt.c (open_output_file):
12467         * nt.c (rva_to_section):
12468         * nt.c (mswindows_executable_type):
12469         Move all memory-mapped-file routines here (some were in unexnt.c,
12470         which is bad because they are used by process-nt.c, and unexnt
12471         won't be around when portable dumping).  Synched the above routines
12472         with FSF 20.6.
12473
12474         * nt.h:
12475         Removed ifdef'd out bogus code.
12476         Fixed some prototypes.
12477
12478         * nt.h (file_data):
12479         * nt.h (OFFSET_TO_RVA):
12480         * nt.h (RVA_TO_OFFSET):
12481         * nt.h (RVA_TO_PTR):
12482         Moved the memory-mapped-file structures, macros and prototypes
12483         here, to parallel nt.c.  ntheap.h should really be removed
12484         entirely, and it's a non-portable-dumper specific file.
12485
12486         * ntheap.h (round_to_next):
12487         Moved the memory-mapped-file structures, macros and prototypes
12488         to nt.h.
12489
12490         * ntproc.c (compare_env):
12491         Moved rva_to_section and mswindows_executable_type to nt.c.
12492         Moved compare_env to process-nt.c.
12493         ntproc.c will die, one day.
12494
12495         * ntproc.c (sys_spawnve):
12496         Account for win32_ -> mswindows_.
12497
12498         * process-nt.c:
12499         * process-nt.c (struct nt_process_data):
12500         * process-nt.c (ensure_console_window_exists):
12501         * process-nt.c (compare_env):
12502         * process-nt.c (nt_create_process):
12503         * process-nt.c (nt_kill_process_by_pid):
12504         * process-nt.c (syms_of_process_nt):
12505         * process-nt.c (vars_of_process_nt):
12506         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12507         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12508         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12509         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12510         Move compare_env here from ntproc.c.
12511
12512         * process.c (Fprocess_send_region):
12513         Takes an optional fourth argument, BUFFER, which should fix some
12514         problems with call-process.
12515
12516         * syscommctrl.h:
12517         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12518
12519         * syswindows.h:
12520         Move ICC_BAR_CLASSES to syscommctrl.h.
12521         Add preliminary macros for MSWindows/Mule.  More to come.
12522
12523         * unexnt.c:
12524         * unexnt.c (unexec):
12525         open_output_file moved to nt.c.
12526
12527
12528 2000-05-05  Andy Piper  <andy@xemacs.org>
12529
12530         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12531         instance from the frame cache also since GC may catch up too late
12532         to make frame deletion sane.
12533
12534 2000-05-04  Andy Piper  <andy@xemacs.org>
12535
12536         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12537         (x_finalize_image_instance): ungcpro on deletion.
12538
12539         * glyphs.c (image_instantiator_format_create): give pointers a
12540         query geometry method so that the geometry is at least set.
12541
12542         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12543         initialize layouts if using widgets.
12544
12545 2000-05-03  Andy Piper  <andy@xemacs.org>
12546
12547         * nt.c: remove bogus reference to sysmmsystem.h
12548
12549         * gui-x.c (popup_selection_callback): fix no selection abort.
12550
12551 2000-05-02  Andy Piper  <andy@xemacs.org>
12552
12553         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12554         (mswindows_widget_instantiate): ditto.
12555
12556         * glyphs-widget.c (initialize_widget_image_instance): initialize
12557         children correctly.
12558         (widget_instantiate): cope with children and items in the same
12559         instance.
12560
12561         * glyphs.c (mark_image_instance): cope with children as a first
12562         class member.
12563         (image_instance_equal): ditto.
12564         (image_instance_hash): ditto.
12565         (image_instance_changed): ditto.
12566
12567 2000-04-30  Andy Piper  <andy@xemacs.org>
12568
12569         * glyphs.c (subwindow_query_geometry): new function. Return some
12570         defaults.
12571         (subwindow_instantiate): don't assign dimensions if none have been
12572         given.
12573         (image_instantiator_format_create): add subwindow_query_geometry.
12574         (print_image_instance): cope with layouts as widgets.
12575
12576 2000-04-29  Andy Piper  <andy@xemacs.org>
12577
12578         * frame.c (delete_frame_internal): call
12579         free_frame_subwindow_instance_cache so that all subwindows are
12580         finalized before their parent.
12581         (mark_frame): remove subwindow_cachels.
12582         (Fmake_frame): remove subwindow_cachel manipulation.
12583         (allocate_frame_core): subwindow_instance_cache is a weak list.
12584         (delete_frame_internal): set subwindow_instance_cache to nil.
12585
12586         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12587         finalization safe.
12588         (mswindows_finalize_image_instance): use the device
12589         not the domain as the domain may have died already.
12590
12591         * glyphs-x.c (x_finalize_image_instance): ditto.
12592         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12593         HEIGHT.
12594
12595         * redisplay-output.c (redisplay_unmap_subwindows): update for
12596         subwindow instance cache as a weak list.
12597         (redisplay_unmap_subwindows_maybe): ditto.
12598         (redisplay_unmap_subwindows_except_us): ditto.
12599
12600         * glyphs.c (unmap_subwindow): error checking will check the domain
12601         so don't deal with it here. Don't use cachels anymore.
12602         (map_subwindow): ditto.
12603         (update_subwindow_cachel_data): remove old accessor names.
12604         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12605         (Fresize_subwindow): don't update cachel.
12606         (mark_subwindow_cachels):
12607         (update_subwindow_cachel_data):
12608         (add_subwindow_cachel):
12609         (get_subwindow_cachel_index):
12610         (update_subwindow_cachel):
12611         (reset_subwindow_cachels):
12612         (mark_subwindow_cachels_as_not_updated): deleted.
12613         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12614         subwindow instance to the frame cache.
12615         (find_matching_subwindow): update for subwindow instance cache as
12616         a weak list.
12617         (update_widget_instances): ditto.
12618         (image_instance_type_to_mask):inlined.
12619         (free_frame_subwindow_instance_cache): new function. finalize all
12620         subwindows that are instantiated.
12621
12622         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12623         of cachel information.
12624         (IMAGE_INSTANCE_DISPLAY_X):
12625         (IMAGE_INSTANCE_DISPLAY_Y):
12626         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12627         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12628         (XIMAGE_INSTANCE_DISPLAY_X):
12629         (XIMAGE_INSTANCE_DISPLAY_Y):
12630         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12631         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12632         remove subwindow_cachel structure and function references.
12633         (image_instance_type_to_mask): inline from glyphs.c
12634
12635         * redisplay.c (redisplay_frame): remove subwindow_cachel
12636         references.
12637
12638         * frame.h (struct frame): remove subwindow_cachels.
12639         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12640
12641         * frameslots.h: add subwindow_instance_cache.
12642
12643         * window.c (replace_window): check subwindow cache of replacement.
12644         (window_unmap_subwindows_cache_mapper):
12645         (window_unmap_subwindows): new functions. Unmap all subwindows
12646         cached on this window.
12647         (mark_window_as_deleted): unmap all subwindows.
12648
12649 2000-04-27  Andy Piper  <andy@xemacs.org>
12650
12651         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12652
12653         * glyphs-widget.c (widget_layout): return something.
12654         (layout_layout): return something. Fail if not initialized.
12655         (layout_query_geometry): ditto.
12656         (image_instantiator_native_layout): new function. Initialized the
12657         native layout type.
12658         (widget_instantiate): don't do layout stuff here.
12659
12660         * glyphs.c (instantiate_image_instantiator): reorded calling or
12661         instantiate and post_instantiate with layout in between.
12662         (image_instance_layout): be more selective about deciding whether
12663         the layout has been done or not.
12664
12665         * glyphs.h (struct image_instantiator_methods): return a value
12666         from layout_method.
12667
12668 2000-04-26  Andy Piper  <andy@xemacs.org>
12669
12670         * glyphs.c (allocate_image_instance): make initial width and
12671         height unspecified. Set initialized to 0.
12672
12673         * syscommctrl.h new file. Encapsulates commctrl.h.
12674
12675         * syswindows.h new file. Encapsulates windows.h.
12676
12677         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12678         * nt.c: ditto.
12679         * console-msw.h: ditto.
12680
12681         * redisplay-tty.c (tty_output_display_block): remove layout references.
12682
12683         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12684         window handle rather than just the frame.
12685
12686         * glyphs.c (mark_image_instance): remove layout references.
12687         (print_image_instance): ditto.
12688         (image_instance_equal): ditto.
12689         (image_instance_hash): ditto.
12690         (decode_image_instance_type): ditto.
12691         (encode_image_instance_type): ditto.
12692         (image_instantiate): ditto.
12693         (allocate_glyph): ditto.
12694         (Fimage_instance_height): ditto.
12695         (Fimage_instance_width): ditto.
12696         (update_subwindow): ditto.
12697
12698         * redisplay-x.c (x_output_display_block): recode for layouts as
12699         widgets.
12700
12701         * redisplay-output.c (redisplay_output_layout): recode for layouts
12702         as widgets.
12703         (compare_runes): remove layout references.
12704
12705         * redisplay-msw.c (mswindows_output_display_block): recode for
12706         layouts as widgets.
12707
12708         * glyphs-widget.c (image_instantiator_layout): remove
12709         layout_possible_dest_types.
12710         (layout_possible_dest_types): deleted.
12711
12712         * glyphs.h (image_instance_type): remove layout references.
12713         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12714         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12715         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12716
12717 2000-04-25  Andy Piper  <andy@xemacs.org>
12718
12719         * glyphs-widget.c (image_instantiator_buttons):
12720         (image_instantiator_edit_fields):
12721         (image_instantiator_combo_box):
12722         (image_instantiator_scrollbar):
12723         (image_instantiator_progress_guage):
12724         (image_instantiator_tree_view):
12725         (image_instantiator_tab_control):
12726         (image_instantiator_labels):
12727         (image_instantiator_layout): call default post_instantiate method.
12728         (widget_post_instantiate): new function. Simply lays out the
12729         widgets.
12730
12731         * glyphs.h (struct image_instantiator_methods): add
12732         post_instantiate method.
12733
12734         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12735         method calls.
12736
12737 2000-04-23  Andy Piper  <andy@xemacs.org>
12738
12739         * glyphs.h (struct image_instantiator_methods): add
12740         decode_domain_method.
12741         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12742         derived from the domain.
12743         (IMAGE_INSTANCE_FRAME): new accessor.
12744         (XIMAGE_INSTANCE_FRAME): ditto.
12745
12746         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12747         instead of _SUBWINDOW_FRAME.
12748         (finalize_image_instance): ditto.
12749         (Fimage_instance_foreground): ditto.
12750         (Fimage_instance_background): ditto.
12751         (image_instantiate): ditto.
12752         (update_subwindow_cachel): ditto.
12753         (update_subwindow): ditto.
12754         (unmap_subwindow): ditto.
12755         (map_subwindow): ditto
12756         (subwindow_instantiate): ditto.
12757         * glyphs-msw.c (mswindows_update_widget): ditto.
12758         (mswindows_progress_gauge_instantiate): ditto.
12759         (mswindows_tab_control_update): ditto.
12760         * glyphs-x.c (x_update_widget): ditto.
12761         (x_widget_instantiate): ditto.
12762         (x_tab_control_instantiate): ditto.
12763         (x_tab_control_update): ditto.
12764         * event-msw.c (mswindows_wnd_proc): ditto
12765
12766         * glyphs-widget.c (image_instantiator_layout): use
12767         subwindow_decode_domain.
12768         (image_instantiator_buttons): ditto.
12769         (image_instantiator_edit_fields): ditto.
12770         (image_instantiator_combo_box): ditto.
12771         (image_instantiator_scrollbar): ditto.
12772         (image_instantiator_progress_guage): ditto.
12773         (image_instantiator_tree_view): ditto.
12774         (image_instantiator_tab_control): ditto.
12775         (image_instantiator_labels): ditto.
12776         (image_instantiator_layout): ditto.
12777
12778         * glyphs.c: add instance error checking to many functions.
12779         (instantiate_image_instantiator): decode device from cache_domain.
12780         (image_instantiate): partially rewrite by using
12781         decode_image_instantiator_domain to determine what domain the
12782         instance needs to be cached in.
12783         (decode_image_instantiator_domain): new function. Determine what
12784         domain the image needs to be cached in.
12785         (check_window_subwindow_cache): new error checking function.
12786         (check_instance_cache_mapper): ditto.
12787         (check_image_instance_structure): ditto.
12788         (subwindow_decode_domain): new function. Encodes a window as a
12789         subwindow's cache domain.
12790         (image_instantiator_format_create): use it for text and
12791         subwindows.
12792
12793 2000-04-21  Andy Piper  <andy@xemacs.org>
12794
12795         * glyphs.c (image_instance_device): new function.
12796         (image_instance_frame): new function.
12797         (image_instance_window): new function.
12798         (image_instance_live_p): new function.
12799
12800         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12801         cache to nil.
12802
12803         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12804         (IMAGE_INSTANCE_DOMAIN): new accessor.
12805         (XIMAGE_INSTANCE_DOMAIN): ditto.
12806
12807         * glyphs-x.c (x_finalize_image_instance): device->domain.
12808
12809         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12810         (mswindows_finalize_image_instance): ditto.
12811
12812         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12813         (gif_instantiate): ditto.
12814         (png_instantiate): ditto.
12815         (tiff_instantiate): ditto.
12816
12817         * glyphs.c (instantiate_image_instantiator): use domain rather
12818         than device.
12819         (mark_image_instance): device -> domain.
12820         (print_image_instance): ditto.
12821         (finalize_image_instance): ditto.
12822         (image_instance_equal): ditto.
12823         (allocate_image_instance): ditto.
12824         (Fcolorize_image_instance): ditto.
12825         (query_string_geometry): ditto.
12826         (image_instantiate): ditto
12827         (query_string_font): ditto.
12828         (image_instantiate): ditto.
12829         (update_subwindow): ditto.
12830         (unmap_subwindow): ditto.
12831         (map_subwindow): ditto.
12832         (subwindow_instantiate): ditto.
12833
12834         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12835         (DOMAIN_FRAME): ditto.
12836         (DOMAIN_WINDOW): ditto.
12837         (DOMAIN_LIVE_P): ditto.
12838         (XDOMAIN_DEVICE): ditto.
12839         (XDOMAIN_FRAME): ditto.
12840         (XDOMAIN_WINDOW): ditto.
12841
12842         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12843         a valid specifier domain.
12844
12845 2000-04-19  Andy Piper  <andy@xemacs.org>
12846
12847         * glyphs-widget.c (syms_of_glyphs_widget): remove
12848         widget-callback-current-channel.
12849         (vars_of_glyphs_widget): ditto.
12850         * glyphs.h: ditto
12851
12852         * gui.c (get_gui_callback): revert to previous behaviour.
12853
12854 2000-04-18  Andy Piper  <andy@xemacs.org>
12855
12856         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12857         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12858         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12859
12860         * glyphs.c (image_instance_equal): add margin_width.
12861         (image_instance_hash): ditto.
12862
12863         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12864         (layout_query_geometry): ditto.
12865         (layout_layout): ditto.
12866         (syms_of_glyphs_widget): add margin-width.
12867         (image_instantiator_layout): allow margin-width.
12868
12869         * glyphs.c (update_widget_instances): make a normal function.
12870         (syms_of_glyphs): remove Qupdate_widget_instances.
12871         * glyphs.h: ditto.
12872
12873         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12874         so that we don't corrupt ideas about the last event or
12875         command. Remove widget-callback-current-channel fiddling.
12876         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12877
12878 2000-05-01  Martin Buchholz <martin@xemacs.org>
12879
12880         * XEmacs 21.2.33 is released.
12881
12882 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12883
12884         * make-src-depend: Allow dots in header file name.
12885
12886 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12887
12888         * mule-charset.h (struct charset_lookup): Add
12889         next_allocated_1_byte_leading_byte and
12890         next_allocated_2_byte_leading_byte.
12891         * mule-charset.c: Move above two variables so that those values
12892         will be dumped.
12893
12894 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12895
12896         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12897         when string length is zero.
12898         (find_charsets_in_emchar_string): Ditto.
12899
12900 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12901
12902         * lisp.h: extern Qdialog and Qmenubar.
12903
12904         * gui-x.c: added events.h.
12905                 also fixed typo which made the file uncompilable.
12906
12907         * general.c: Added Qmenubar and Qdialog
12908
12909 2000-04-28  Ben Wing  <ben@xemacs.org>
12910
12911         * frame-msw.c (mswindows_init_frame_1):
12912         * frame-msw.c (mswindows_mark_frame):
12913         * event-msw.c (mswindows_enqueue_dispatch_event):
12914         * console-msw.h:
12915         * console-msw.h (struct mswindows_frame):
12916         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12917         there are now three hash tables for callbacks.
12918         mswindows_enqueue_dispatch_event is no longer static.
12919
12920         * dialog-x.c (maybe_run_dbox_text_callback):
12921         * dialog-x.c (dbox_descriptor_to_widget_value):
12922         switch to new cons3 form for callbacks.
12923
12924         * glyphs-msw.c (mswindows_register_gui_item):
12925         * glyphs-msw.c (mswindows_widget_instantiate):
12926         * glyphs-msw.c (add_tree_item):
12927         * glyphs-msw.c (add_tab_item):
12928         new image instance parameter, so it can be passed to callback-ex.
12929         respect :callback-ex as well as :callback.
12930
12931         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12932         add :callback-ex.
12933
12934         * glyphs.c (print_image_instance):
12935         prettify, e.g. now prints widget type.
12936
12937         * gui-x.h:
12938         certain funs have new image instance parameter.
12939
12940         * gui.c:
12941         * gui.c (get_gui_callback):
12942         * gui.c (gui_item_add_keyval_pair):
12943         * gui.c (gui_item_init):
12944         * gui.c (gui_add_item_keywords_to_plist):
12945         * gui.c (mark_gui_item):
12946         * gui.c (gui_item_hash):
12947         * gui.c (gui_item_equal):
12948         * gui.c (copy_gui_item):
12949         * gui.c (syms_of_gui):
12950         recognize callback-ex in a number of places.
12951         also, fix the annoying "can't get out of yes-no dialog" bug.
12952
12953         * gui.h:
12954         * gui.h (struct Lisp_Gui_Item):
12955         recognize callback-ex in a number of places.
12956
12957         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12958         new parameter in button_item_to_widget_value.
12959
12960         * glyphs-x.c (x_update_widget):
12961         * glyphs-x.c (x_button_instantiate):
12962         * glyphs-x.c (x_button_update):
12963         * glyphs-x.c (x_progress_gauge_instantiate):
12964         * glyphs-x.c (x_edit_field_instantiate):
12965         * glyphs-x.c (x_combo_box_instantiate):
12966         * glyphs-x.c (x_tab_control_instantiate):
12967         * glyphs-x.c (x_label_instantiate):
12968         new image instance parameter in various places.
12969
12970         * event-Xt.c:
12971         * event-Xt.c (enqueue_Xt_dispatch_event):
12972         this fun gets exported.
12973
12974         * gui-msw.c:
12975         * gui-msw.c (mswindows_handle_gui_wm_command):
12976         handle both :callback and :callback-ex, and generate our own
12977         event because it's one of the callback-ex arguments.
12978
12979         * gui-x.c:
12980         * gui-x.c (popup_selection_callback):
12981         handle both :callback and :callback-ex, and generate our own
12982         event because it's one of the callback-ex arguments.
12983         * gui-x.c (button_item_to_widget_value):
12984         * gui-x.c (gui_items_to_widget_values_1):
12985         * gui-x.c (gui_item_children_to_widget_values):
12986         * gui-x.c (gui_items_to_widget_values):
12987         new image instance parameter in various places.
12988
12989         * fns.c (Freplace_list):
12990         fix small typo in doc string.
12991
12992         * lisp.h:
12993         declare enqueue_Xt_dispatch_event.
12994
12995 2000-04-28  Ben Wing  <ben@xemacs.org>
12996
12997         * buffer.c:
12998         * buffer.c (Frecord_buffer):
12999         * buffer.c (syms_of_buffer):
13000         delete record-buffer-hook.
13001
13002         * fns.c:
13003         * fns.c (Freplace_list):
13004         * fns.c (syms_of_fns):
13005         new primitive replace-list.
13006
13007         * frameslots.h:
13008         slot for old buffer-alist.
13009
13010         * lisp.h:
13011         exfun replace-list.
13012
13013         * redisplay.c:
13014         * redisplay.c (redisplay_frame):
13015         * redisplay.c (syms_of_redisplay):
13016         * redisplay.c (vars_of_redisplay):
13017         new hook buffer-list-changed-hook.
13018         call it.
13019
13020 2000-04-27  Ben Wing  <ben@xemacs.org>
13021
13022         * extents.h: extern in_modeline_generation.
13023
13024         * redisplay.c (generate_formatted_string_db): set
13025         in_modeline_generation.
13026
13027         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13028         flags if in modeline generation.  otherwise frame-modified-tick
13029         is ticked far too often.
13030         Declare in_modeline_generation.
13031
13032 2000-04-26  Ben Wing  <ben@xemacs.org>
13033
13034         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13035         option.
13036         (vars_of_emacs): add quick-build as an error-checking option.
13037         A bit kludgy, but there doesn't seem much point in creating
13038         a real var for this.
13039
13040         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13041
13042 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13043
13044         * redisplay.h (struct display_line): Add a new variable,
13045         line_continuation.
13046
13047         * redisplay.c (create_text_block): Set dl->line_continuation if
13048         the line continues.
13049         (create_string_text_block): Ditto.
13050         (regenerate_window_incrementally): Use line_continuation instead
13051         of searching continuation glyph.
13052         (add_margin_runes): Call add_glyph_rune.
13053         (add_glyph_rune): Handle margin glyph.
13054
13055 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13056
13057         * filelock.c (fill_in_lock_file_name):
13058         ANSIfy.
13059         Check for IS_ANY_SEP instead of '/'.
13060         (lock_file_1):
13061         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13062         Never check errno without first seeing that system call failed.
13063         (unlock_file): Add GCPRO.
13064         (Flock_buffer): Fix docstring.
13065         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13066
13067 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13068
13069         * sysdep.c (get_pty_max_bytes):
13070         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13071         strings longer than 252 bytes.
13072
13073         * md5.c: Unconditionally include ANSI header <limits.h>
13074
13075         * glyphs-x.c (convert_EImage_to_XImage):
13076         * lisp-union.h (union Lisp_Object):
13077         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13078
13079 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13080
13081         * filelock.c (current_lock_owner): Remove unused variable o, p.
13082
13083 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13084
13085         * callint.c: Remove multiply defined symbol Qlet
13086         (syms_of_callint): ditto.
13087
13088 2000-04-14  Andy Piper  <andy@xemacs.org>
13089
13090         * general.c (syms_of_general): add last-command, this-command, let
13091         and funcall.
13092
13093         * lisp.h: declare various symbols.
13094
13095         * glyphs.h: declare Qwidget_callback_current_channel;
13096
13097         * glyphs-widget.c (syms_of_glyphs_widget): add
13098         Qgui_callback_current_channel.
13099         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13100
13101         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13102         widget-callback-current-channel when invoking the interactive
13103         arg. Also bind last-command and next-command when invoking the
13104         widget updates.
13105         * gui-x.c (popup_selection_callback): ditto.
13106
13107         * gui.c (get_gui_callback): massage args so that we are always
13108         calling eval. This allows us to add our own variable bindings
13109         outside.
13110
13111         * glyphs-x.c (x_button_instantiate): use
13112         gui_items_to_widget_values since this is GC safe.
13113         (x_progress_gauge_instantiate): ditto.
13114         (x_edit_field_instantiate): ditto.
13115         (x_label_instantiate): ditto.
13116
13117         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13118         (emacs_Xt_event_widget_focus_out): new function
13119         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13120         focus.
13121         (emacs_Xt_event_add_widget_actions): new function. add focus
13122         functions as actions.
13123         (init_event_Xt_late): use it.
13124
13125 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13126
13127         * event-stream.c (Fdispatch_event): Doc fix.
13128
13129 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13130
13131         * postgresql.c: Remove all references to PQsetenv*.
13132
13133         * postgresql.h: Remove references to PGsetenvHandler object.
13134         * lrecord.h (lrecord_type): Ditto.
13135
13136 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13137
13138         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13139         real_heigh and real_width members, and accessor macros for these.
13140
13141         * glyphs-msw.c (init_image_instance_geometry): New function.
13142         (init_image_instance_from_dibitmap): Use it.
13143         (mswindows_resource_instantiate): Use it.
13144         (init_image_instance_from_xbm_inline): Use it.
13145         (mswindows_initialize_image_instance_mask): Use real bitmap
13146         geometry.
13147         (mswindows_create_resized_bitmap): Ditto.
13148         (mswindows_create_resized_mask): Ditto.
13149
13150         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13151         and bitmap to their surface size.
13152
13153 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13154
13155         * process-unix.c (unix_send_process): Guard against process MIA
13156         after Faccept_process_output.
13157
13158 2000-04-11  Ben Wing  <ben@xemacs.org>
13159
13160         * eval.c (unbind_to_hairy): fix brokenness introduced by
13161         nanosecond speed improvements.
13162
13163 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13164
13165         * sunplay.c (init_device): To play sounds correctly, the device
13166         apparently needs to be initialized at least once by XEmacs.  Make
13167         it so.
13168
13169 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13170
13171         * redisplay.c (add_margin_runes): Add text image glyph
13172           handling.
13173
13174 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13175
13176         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13177         gcc is newer than 2.5.
13178
13179 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13180
13181         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13182
13183         * fns.c (size_bit_vector):
13184         * alloc.c (size_vector):
13185         (make_vector_internal):
13186         (make_bit_vector_internal):
13187         (sweep_bit_vectors_1):
13188         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13189
13190 2000-04-06  Andy Piper  <andy@xemacs.org>
13191
13192         * gmalloc.c (malloc): undo previous change.
13193         (malloc): ditto.
13194         (free): ditto.
13195         (realloc): ditto.
13196
13197 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13198
13199         * line-number.c (buffer_line_number): Revert to former version.
13200
13201 2000-04-06  Andy Piper  <andy@xemacs.org>
13202
13203         * gmalloc.c (malloc): add error checking.
13204         (malloc): ditto.
13205         (free): ditto.
13206         (realloc): ditto.
13207
13208         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13209         button_item_to_widget_value arg.
13210
13211         * glyphs-x.c (x_button_instantiate): add extra
13212         button_item_to_widget_value arg.
13213         (x_progress_gauge_instantiate): ditto.
13214         (x_edit_field_instantiate): ditto.
13215         (x_label_instantiate): ditto.
13216
13217         * gui-x.c (gui_items_to_widget_values_1): add extra
13218         button_item_to_widget_value arg.
13219         (button_item_to_widget_value): add extra menu_item_p arg.
13220
13221         * gui-x.h: change signature of button_item_to_widget_value.
13222
13223         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13224         button_item_to_widget_value arg.
13225
13226 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13227
13228         * buffer.h (struct buffer): auto_save_modified should be long.
13229
13230 2000-04-05  Andy Piper  <andy@xemacs.org>
13231
13232         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13233         type.
13234         (button_query_geometry): give a little more room so that athena
13235         buttons fit.
13236
13237 2000-04-05  Andy Piper  <andy@xemacs.org>
13238
13239         * faces.c (complex_vars_of_faces): The widget face should inherit
13240         the font of the gui-element face.
13241
13242 2000-04-04  Andy Piper  <andy@xemacs.org>
13243
13244         * glyphs-x.c (x_button_update): new function. unconditionally
13245         update a button's state when the instance is dirty.
13246         (image_instantiator_format_create_glyphs_x): add x_button_update.
13247         (x_widget_instantiate): remove old resize cruft.
13248
13249 2000-04-02  Andy Piper  <andy@xemacs.org>
13250
13251         * frame.c (change_frame_size_1): The introduction of gutters means
13252         that we need to allow 0 as a potential frame dimension.
13253
13254 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13255
13256         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13257         image glyph if allow_cursor.
13258         (add_hscroll_rune): Don't allow cursor to border glyph.
13259         (create_text_block): Ditto.
13260
13261         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13262         text not in buffer.
13263         (redisplay_output_layout): Call ensure_face_cachel_complete for
13264         text image glyph.
13265
13266
13267 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13268
13269         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13270
13271         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13272         not in buffer
13273
13274         * redisplay-tty.c (tty_output_display_block): Delete the routine
13275         for text image glyph
13276         * redisplay-x.c (x_output_display_block): ditto
13277         * redisplay-msw.c (mswindows_output_display_block): ditto
13278
13279 2000-02-02  Mike Alexander  <mta@arbortext.com>
13280
13281         Note: Some of these were committed by accident as part of other
13282         patches.
13283
13284         * regex.c (regex_compile): Avoid compiler warnings.
13285
13286         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13287
13288         * nt.h: Declare term_ntproc correctly.
13289
13290         * nt.c: Remove incorrect declaration of get_home_directory which
13291         is declared correctly in lisp.h.
13292
13293         * keymap.c (get_keyelt): Avoid compiler warnings.
13294         (raw_lookup_key_mapper): Avoid compiler warnings.
13295
13296         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13297
13298         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13299
13300         * filemode.c (mode_string): Avoid compiler warnings.
13301
13302         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13303         avoid warning.
13304
13305         * events-mod.h: Undef some things that winuser.h defines differently.
13306
13307         * data.c (Faset): Avoid compiler warnings.
13308
13309         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13310
13311 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13312
13313         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13314         Fall through to simple beep on error.
13315         Replace "extern" by real header file.
13316
13317         * linuxplay.c: Use nativesound.h
13318         (play_sound_data): Return error code. Be less verbose on error.
13319
13320         * sunplay.c: Use nativesound.h
13321         (play_sound_data): Return error code. Be less verbose on error.
13322
13323         * ntplay.c: Use nativesound.h
13324         (play_sound_data): Return fake error code
13325
13326         * sgiplay.c: Use nativesound.h
13327         (play_sound_data): Return error code
13328
13329         * hpplay.c: Use nativesound.h, partially implement
13330         new error code. Break compilation until finished.
13331         (play_sound_data): error code.
13332
13333         * nativesound.h (play_sound_file):
13334           (play_sound_data): Prototype in new header.
13335
13336 2000-03-31  Andy Piper  <andy@xemacs.org>
13337
13338         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13339         for toggle and radio buttons.
13340         (image_instantiator_buttons): use it.
13341
13342 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13343
13344         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13345         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13346         found. Scrollbar event probably belonged to some old config.
13347
13348 2000-03-31  Andy Piper  <andy@xemacs.org>
13349
13350         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13351         than 1.
13352         (initialize_widget_image_instance): default layout to
13353         LAYOUT_HORIZONTAL rather than 0.
13354         (widget_instantiate): reverse the item list at the end rather than
13355         every iteration.
13356         (layout_layout): re-code for the border text at the front of the
13357         item list rather than at the end.
13358         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13359         provided by the user.
13360         (widget_query_geometry): comment.
13361
13362 2000-03-30  Andy Piper  <andy@xemacs.org>
13363
13364         * glyphs-widget.c (image_instantiator_layout): allow standard
13365         widget keywords in layouts.
13366
13367         * gutter.c (output_gutter): cope with nil gutter contents.
13368
13369         * frame.c (Fset_frame_properties): add gutter docs.
13370
13371 2000-03-29  Andy Piper  <andy@xemacs.org>
13372
13373         * toolbar-msw.c (TBSTYLE_FLAT): add.
13374         (mswindows_output_toolbar): minor fiddling.
13375
13376 2000-03-29  Andy Piper  <andy@xemacs.org>
13377
13378         * gutter.c (output_gutter): force gutter size recalculation if
13379         what we are trying to display won't fit.
13380         (update_gutter_geometry): new function. A per-gutter version of
13381         update_frame_gutter_geometry.
13382         (update_frame_gutter_geometry): use it.
13383         (redraw_exposed_gutter): add extra debugging output.
13384
13385 2000-03-28  Mike Alexander  <mta@arbortext.com>
13386
13387         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13388         (pdump_file_unmap): Implement it on Windows
13389         (pdump_file_get): Save alocated handles for pdump_file_unmap
13390
13391 2000-03-28  Andy Piper  <andy@xemacs.org>
13392
13393         * gui.c (get_gui_callback): treat Quit specially.
13394
13395 2000-03-27  Andy Piper  <andy@xemacs.org>
13396
13397         * glyphs.c (image_instantiate): be careful to check in the same
13398         way we assigned.
13399
13400 2000-03-27  Didier Verna  <didier@xemacs.org>
13401
13402         * config.h.in: define the proper SMART_INCLUDE macro.
13403         handle renaming of `foo_h_path' to `foo_h_file'.
13404
13405         * database.c: ditto.
13406
13407         * emacs.c: ditto.
13408
13409         * linuxplay.c: ditto.
13410
13411         * terminfo.c: ditto.
13412
13413         * tooltalk.h: ditto.
13414
13415 2000-03-27  Andy Piper  <andy@xemacs.org>
13416
13417         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13418         gets updated whenever the face might have changed.
13419
13420 2000-03-26  Mike Alexander  <mta@arbortext.com>
13421
13422         * dumper.c (pdump_resource_free): Fix the comment.
13423
13424 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13425
13426         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13427
13428 2000-03-22  Mike Alexander  <mta@arbortext.com>
13429
13430         * dumper.c: Include Windows headers on Windows
13431         (pdump_resource_free): Add a body to the function
13432         (pdump_load): exe_name -> exe_path and add some comments.
13433
13434 2000-03-25  Mike Alexander  <mta@arbortext.com>
13435
13436         * gui.c (copy_gui_item_tree): Return a value in all cases
13437
13438 2000-03-21  Didier Verna  <didier@xemacs.org>
13439
13440         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13441         lwlib/config.h.in.
13442         (SMART_INCLUDE): new macro.
13443         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13444         the proper location.
13445
13446         * postgresql.c: use it.
13447
13448         * inline.c: ditto.
13449
13450 2000-03-24  Andy Piper  <andy@xemacs.org>
13451
13452         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13453         do this.
13454
13455 2000-03-24  Andy Piper  <andy@xemacs.org>
13456
13457         * redisplay-output.c (compare_runes): use image_instance_changed
13458         to detect changes. Do not depend on glyphs_changed, only depend on
13459         dirtiness.
13460          (redisplay_output_layout): add debug messages.
13461         (compare_runes): ditto.
13462
13463         * glyphs.h: declare new functions.
13464         (struct Lisp_Image_Instance): remove percent and associated
13465         accessors.
13466
13467         * gui.h: declare new copying functions.
13468
13469         * gui.c (copy_gui_item_tree): new function.
13470         (copy_gui_item): new function.
13471         (gui_item_id_hash): revert to standard hash.
13472         (gui_item_hash): ditto.
13473         (gui_item_hash_internal): deleted.
13474         (mark_gui_item): mark value.
13475         (gui_item_add_keyval_pair): add value.
13476         (gui_item_init): ditto.
13477         (gui_add_item_keywords_to_plist): ditto.
13478         (gui_item_equal): ditto.
13479         (syms_of_gui): add Q_value.
13480
13481         * glyphs-x.c (x_progress_gauge_update): use pending items and
13482         value for setting the state.
13483         (x_update_widget): don't set items from pending here.
13484
13485         * glyphs-widget.c (update_widget): update items here.
13486         (progress_gauge_set_property): use items for storing value. Put
13487         new value in pending items.
13488
13489         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13490         items for new value. Convert percent -> value.
13491         (mswindows_tab_control_update): don't update items here.
13492
13493         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13494         (update_subwindow): ditto.
13495         (image_instance_changed): new function. Compare hash values and
13496         past and present widget items.
13497         (image_instantiate): We more careful about where we instantiate
13498         things.
13499         (image_instantiate): add error checking.
13500
13501         * gutter.c (syms_of_gutter): use -hook.
13502
13503 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13504
13505         * console-tty.c (Fset_console_tty_input_coding_system): Use
13506         Qkeyboard.
13507         (Fset_console_tty_output_coding_system): Use Qterminal.
13508         (tty_init_console): Use Qkeyboard and Qterminal.
13509
13510 2000-03-21  Ben Wing  <ben@xemacs.org>
13511
13512         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13513         From Mike Alexander <mta@arbortext.com>.
13514
13515 2000-03-21  Ben Wing  <ben@xemacs.org>
13516
13517         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13518         process brokenness.  Proper implementation to come.
13519         * callproc.c:
13520         Rename call-process-internal to old-call-process-internal.
13521         New impl. in process.el.
13522
13523 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13524
13525         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13526
13527 2000-03-20  Andy Piper  <andy@xemacs.org>
13528
13529         * glyphs.c (full_list_hash): make hashes of the same elements in
13530         different orders return different values.
13531
13532 2000-03-20  Martin Buchholz <martin@xemacs.org>
13533
13534         * XEmacs 21.2.32 is released.
13535
13536 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13537
13538         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13539         (DFC_MALLOC_USE_CONVERTED_DATA):
13540         Add aliasing-safe casts to allow use with char* or unsigned char*
13541         lvalues.
13542
13543         * eldap.c (Fldap_open):
13544         (Fldap_search_basic):
13545         (Fldap_add):
13546         (Fldap_modify):
13547         Make C++-compilable.
13548         Make sure GCPRO'ed variables are initialized.
13549         Use temp variables to avoid repeated calls to Flength.
13550
13551 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13552
13553         * sysfile.h:
13554         Make sure PATH_MAX is always defined.
13555         Include limits.h for PATH_MAX.
13556         Deprecate use of MAXPATHLEN.
13557
13558 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13559
13560         * emacs.c: Add reinit_vars_of_fileio.
13561         * symsinit.h: Add reinit_vars_of_fileio.
13562         * fileio.c (reinit_vars_of_fileio): New.
13563         * fileio.c (Fmake_temp_name):
13564         Initialize temp_name random number from microseconds to make
13565         collisions even less likely.  Initialize always at process startup
13566         time.  (make-temp-name) used to return the same file name twice in
13567         a row when PDUMP.
13568         Random stylistic fiddling.
13569         Comment fixes.
13570
13571 2000-03-20  Andy Piper  <andy@xemacs.org>
13572
13573         * glyphs.c (image_instantiate): allow text glyphs to be
13574         instantiated in the minibuffer window.
13575
13576 2000-03-19  Andy Piper  <andy@xemacs.org>
13577
13578         * glyphs.c (image_instance_hash): be careful about which items we
13579         hash on.
13580
13581         * glyphs-widget.c (tab_control_set_property): record into pending
13582         items rather than the actual items.
13583
13584         * glyphs-x.c (x_update_widget): use pending items to update with.
13585
13586         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13587         to update with.
13588
13589         * glyphs.c (mark_image_instance): mark pending items.
13590
13591         * window.c (Fset_window_configuration): record the buffer.
13592         (Fselect_window): totally revert previous change which breaks many
13593         things.
13594
13595 2000-03-18  Andy Piper  <andy@xemacs.org>
13596
13597         * glyphs-msw.c (mswindows_tab_control_update): force selected
13598         item.
13599
13600         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13601         window domain cache, otherwise we get inconsistencies at
13602         startup. There is something fishy at startup which can lead to the
13603         minibuffer being the selected window when the gutter content is
13604         instantiated.
13605
13606         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13607         gcpros.
13608         (parse_gui_item_tree_children): ditto.
13609         (parse_gui_item_tree_item): ditto.
13610
13611         * glyphs.c (Fupdate_widget_instances): return something.
13612
13613 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13614
13615         * window.c (Fselect_window): Undo 2000-03-17 change.
13616
13617 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13618
13619         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13620         against v7.0 libraries.  Insta-coredump city until the postgres
13621         folks fix it.
13622
13623 2000-03-17  Andy Piper  <andy@xemacs.org>
13624
13625         * faces.c (complex_vars_of_faces): don't give the widget face an
13626         inherited background pixmap.
13627
13628         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13629         selected item.
13630
13631         * event-stream.c (Fdispatch_non_command_events): return something.
13632
13633         * gutter.c (output_gutter): use widget face.
13634         (clear_gutter): ditto.
13635
13636         * NEWS: adjust again.
13637
13638         * window.c (Fselect_window): make sure this runs to completion to
13639         avoid oddities with Fset_window_configuration.
13640         (Fcurrent_window_configuration): in general do not save the
13641         minibuffer as the selected window.
13642
13643         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13644
13645 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13646
13647         * emacs.c (Frunning_temacs_p): Revert previous patch.
13648         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13649
13650 2000-03-16  Andy Piper  <andy@xemacs.org>
13651
13652         * glyphs-x.c (x_tab_control_update): if no widget values then
13653         return.
13654
13655         * NEWS: update for new features.
13656
13657         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13658         synthetic event to the native system.
13659         (reinit_vars_of_event_Xt): set force_event_pending to
13660         emacs_Xt_force_event_pending.
13661
13662         * events.h (struct event_stream): add force_event_pending.
13663
13664         * specifier.c (recompute_one_cached_specifier_in_window): add
13665         comment.
13666
13667         * redisplay.c (redisplay_frame): don't call
13668         update_frame_subwindows. Reset subwindow cachels when
13669         subwindows_changed, removing this was an optimization too far.
13670
13671         * redisplay-output.c (compare_runes): reorganize so that we catch
13672         glyph changes when we want them. Set optimize_output when this
13673         would help layouts.
13674         (redisplay_output_layout): remove frame_really_changed, use
13675         optimize_output instead.
13676
13677         * redisplay-msw.c (mswindows_output_display_block): reset
13678         optimize_output after outputting a glyph.
13679         * redisplay-x.c (x_output_display_block): ditto.
13680         * redisplay-tty.c (tty_output_display_block): ditto.
13681
13682         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13683         functions.
13684         (gutter_specs_changed): do specific gutter positions.
13685         (top_gutter_specs_changed): new function. Only update the
13686         specified gutter specs.
13687         (bottom_gutter_specs_changed): ditto.
13688         (left_gutter_specs_changed): ditto.
13689         (right_gutter_specs_changed): ditto.
13690
13691         * gui.c (gui_item_hash_internal): new function, does a real hash.
13692         (gui_item_id_hash): use it.
13693         (gui_item_hash): hash the eval'ed gui_item.
13694
13695         * gui-x.c (popup_selection_callback): send an eval event to call
13696         Fupdate_widget_instances.
13697
13698         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13699         to call Fupdate_widget_instances.
13700
13701         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13702         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13703
13704         * glyphs.c: (update_frame_subwindows): deleted.
13705         (Fupdate_widget_instances): new function for updating the dirty
13706         state of widgets that might have changed.
13707         (syms_of_glyphs): add Qupdate_widget_instances.
13708         (full_list_hash): hash a list completely.
13709         (image_instance_hash): use it for items and properties.
13710
13711         * frame-msw.c (mswindows_size_frame_internal): remove unused
13712         variable.
13713
13714         * faces.h (struct face_cachel): fix comment.
13715
13716         * event-stream.c (Fdispatch_non_command_events): new
13717         function. Process non-command events, forcing an event cycle
13718         beforehand.
13719         (syms_of_event_stream): declare.
13720         (event_stream_force_event_pending): new function. Force an event
13721         on the native event queue so that an event cycle will occur next
13722         time we check.
13723
13724         * event-msw.c:
13725         (struct ntpipe_shove_stream):
13726         (mswindows_enqueue_dispatch_event):
13727         (mswindows_dequeue_dispatch_event):
13728         (mswindows_cancel_dispatch_event):
13729         (mswindows_pump_outstanding_events):
13730         (mswindows_drain_windows_queue):
13731         (mswindows_handle_paint):
13732         (mswindows_wnd_proc):
13733         (mswindows_key_to_emacs_keysym):
13734         (get_process_input_waitable):
13735         (emacs_mswindows_delete_stream_pair): re-indent file.
13736         (mswindows_need_event): do not process further fds if the windows
13737         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13738         fixes the 100% cpu problem.
13739         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13740
13741 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13742
13743         * alloc.h: New.
13744         * dumper.h: New.
13745         * dumper.c: New.
13746
13747         * emacs.c: Moved dump file searching to dumper.c.
13748         (Frunning_temacs_p): Fixed.
13749
13750         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13751         last_lrecord_type_index_assigned.
13752
13753 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13754
13755         * symsinit.h: Added reinit parameter to init_console_stream
13756         declaration.
13757
13758         * lisp.h: Added file parameter to pdump_load declaration.
13759
13760         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13761         support.  Added dump file searching.
13762
13763         * config.h.in: Added EMACS_PROGNAME.
13764
13765         * console-stream.c (init_console_stream): Fix reinitialisation
13766         when running from temacs.
13767
13768         * alloc.c (pdump): Add id support.
13769         (pdump_load): Add file parameter and signature/id support.
13770
13771         * Makefile.in.in: Add full pdump support.
13772
13773 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13774
13775         * postgresql.c: Update documentation to reflect latest code
13776         status.
13777         (print_result): Show tuple counts in printed representation when
13778         appropriate.
13779         (Fpq_put_nbytes): MULE-ize.
13780         (Fpq_get_line_async): Ditto.
13781
13782 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13783
13784         * postgresql.c (Fpq_lo_import): Fix return value.
13785         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13786
13787 2000-03-13  Ben Wing  <ben@xemacs.org>
13788
13789         * alloc.c (pdump_load):
13790         Fix compile warning under mswin.
13791
13792 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13793
13794         * postgresql.c: Mule-ization, bug fixes.
13795         Use PG_CODING to encapsulate coding system name changes.
13796         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13797         (pg-coding-system): Create.
13798
13799         (Fpq_conn_defaults): Mule-ize.
13800         (Fpq_connectdb): Mule-ize & bug fix.
13801         (Fpq_connect_start): Mule-ize.
13802         (Fpq_set_client_encoding): Mule-ize.
13803         (Fpq_finish): Document `DEAD' connection status.
13804         (Fpq_clear): Ditto.
13805         (Fpq_pgconn): Mule-ize.
13806         (Fpq_exec): Mule-ize & bug fix.
13807         (Fpq_send_query): Ditto.
13808         (Fpq_get_result): Ditto.
13809         (Fpq_res_status): Mule-ize.
13810         (Fpq_result_error_message): Mule-ize.
13811         (Fpq_ntuples): fix comments.
13812         (Fpq_fname): Mule-ize.
13813         (Fpq_fnumber): Mule-ize.
13814         (Fpq_ftype): fix comments.
13815         (Fpq_get_value): Mule-ize.
13816         (Fpq_cmd_status): Ditto.
13817         (Fpq_cmd_tuples): Ditto.
13818         (Fpq_oid_value): Ditto.
13819         (Fpq_notifies): Ditto.
13820         (Fpq_lo_import): Ditto.
13821         (Fpq_lo_export): Ditto.
13822         (Fpq_get_line): Ditto.
13823         (Fpq_put_line): Mule-ize and bug fix.
13824         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13825
13826 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13827
13828         * postgresql.c (vars_of_postgresql): Mule-ize.
13829         (Fpq_conn_defaults): Ditto.
13830
13831 2000-03-12  Ben Wing  <ben@xemacs.org>
13832
13833         * alloc.c (Fmake_byte_code):
13834         * alloc.c (debug_string_purity_print):
13835         * alloc.c (pdump_backtrace):
13836         * alloc.c (pdump_get_indirect_count):
13837         * alloc.c (pdump_register_sub):
13838         * alloc.c (pdump_register_object):
13839         * alloc.c (pdump_register_struct):
13840         * alloc.c (pdump_dump_data):
13841         * alloc.c (pdump_reloc_one):
13842         Minor cleanups.
13843
13844         * console-msw.c:
13845         * console-msw.c (GetConsoleHwnd):
13846         * console-msw.c (msw_hide_console):
13847         * console-msw.c (msw_show_console):
13848         * console-msw.c (msw_ensure_console_buffered):
13849         * console-msw.c (msw_output_console_string):
13850         * console-msw.c (console_type_create_mswindows):
13851
13852         a) Added functions to manipulate the console window for use with
13853         shell support.
13854
13855         b) Added support for writing text to the console, which is now
13856         used under Windows when xemacs is not being run non-interactively,
13857         to write text that would otherwise be destined for stdout because
13858         under these circumstances, text written to stdout tends to
13859         disappear and not be seen.
13860
13861         * console-msw.h:
13862         * event-Xt.c:
13863         * event-Xt.c (x_event_to_emacs_event):
13864         * event-Xt.c (describe_event_window):
13865         * events-mod.h (XEMACS_MOD_CONTROL):
13866         * events.c:
13867         * events.c (Fmake_event):
13868         * events.c (character_to_event):
13869         * events.c (event_to_character):
13870         * events.c (format_event_object):
13871         * events.c (Fevent_modifiers):
13872         * events.h:
13873         * events.h (struct key_data):
13874         * events.h (struct button_data):
13875         * events.h (struct misc_user_data):
13876         * frame-x.c (Fcde_start_drag_internal):
13877         * frame-x.c (Foffix_start_drag_internal):
13878         * gpmevent.c (Freceive_gpm_event):
13879         * keymap.c:
13880         * keymap.c (bucky_sym_to_bucky_bit):
13881         * keymap.c (control_meta_superify):
13882         * keymap.c (make_key_description):
13883         * keymap.c (keymap_lookup_directly):
13884         * keymap.c (create_bucky_submap):
13885         * keymap.c (keymap_store):
13886         * keymap.c (define_key_check_and_coerce_keysym):
13887         * keymap.c (define_key_parser):
13888         * keymap.c (define_key_alternate_name):
13889         * keymap.c (Fdefine_key):
13890         * keymap.c (raw_lookup_key_mapper):
13891         * keymap.c (struct map_keymap_unsorted_closure):
13892         * keymap.c (map_keymap_unsorted_mapper):
13893         * keymap.c (map_keymap_sort_predicate):
13894         * keymap.c (map_keymap_sorted):
13895         * keymap.c (accessible_keymaps_mapper_1):
13896         * keymap.c (where_is_recursive_mapper):
13897         * keymap.c (describe_map_mapper):
13898         * keymap.c (describe_map_sort_predicate):
13899         * keymap.c (describe_map):
13900         * keymap.c (complex_vars_of_keymap):
13901         And a number of other files, the key modifier preprocessor
13902         constants that xemacs uses have names that conflict with constants
13903         defined under MS Windows for other purposes, so they were renamed
13904         to begin with the prefix XEMACS_. The variables that hold such
13905         modifiers were changed to consistently be of type int to fix
13906         various compile warnings.
13907
13908         * console.c (complex_vars_of_console):
13909         * device.c:
13910         * device-msw.c:
13911         * device-msw.c (mswindows_finish_init_device):
13912         * device-msw.c (msw_get_workspace_coords):
13913         * device-msw.c (mswindows_device_system_metrics):
13914         and various other files, added support for a new
13915         device property called offset-workspace which returns the position
13916         of the upper left corner of the workspace area and goes along with
13917         the existing size-workspace property.
13918
13919         * dialog-msw.c:
13920         * dialog-msw.c (push_bufbyte_string_as_unicode):
13921         * dialog-msw.c (mswindows_popup_dialog_box):
13922         Added support for XEmacs-style accelerator specifications in
13923         button text.  Note: I didn't add support for this under X Windows,
13924         and somebody needs to do this.
13925
13926         * dialog.c:
13927         * dialog.c (Fpopup_dialog_box):
13928         Documented the support for accelerators that was just mentioned.
13929
13930         editfns.c (get_home_directory): Changed behavior under Windows
13931         when HOME not defined; former behavior was irretrievably broken.
13932
13933         * emacs.c:
13934         * emacs.c (main_1):
13935         * emacs.c (main):
13936         * minibuf.c (clear_echo_area_internal):
13937         * minibuf.c (echo_area_append):
13938         * print.c:
13939         * print.c (std_handle_out_external):
13940         * print.c (std_handle_out_va):
13941         * print.c (fatal):
13942         * print.c (write_string_to_stdio_stream):
13943         * print.c (output_string):
13944         * print.c (debug_print):
13945         * print.c (debug_backtrace):
13946         * print.c (debug_short_backtrace):
13947         Cleaned up the code that prints text to stdout so that this can be
13948         changed to output into a console window instead under MS Windows,
13949         as described above.
13950
13951         * eval.c:
13952         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13953         * eval.c (internal_catch):
13954         * eval.c (unwind_to_catch):
13955         * eval.c (throw_or_bomb_out):
13956         * eval.c (condition_case_1):
13957         * eval.c (signal_1):
13958         * eval.c (check_error_state_sanity):
13959         * eval.c (call_with_suspended_errors_1):
13960         * eval.c (call_with_suspended_errors):
13961         * eval.c (reinit_vars_of_eval):
13962         Added code to catch throw loops and check for a pesky bug that may
13963         be gone now.
13964
13965         * event-msw.c:
13966         * event-msw.c (key_needs_default_processing_p):
13967         * event-msw.c (mswindows_wnd_proc):
13968         * event-msw.c (mswindows_modifier_state):
13969         * event-msw.c (emacs_mswindows_quit_p):
13970         * event-msw.c (vars_of_event_mswindows):
13971         a) Added support for using the alt key to select menu items as is
13972         standard under MS Windows.  This is controlled using the variable
13973         menu-accelerator-enabled, just like under X Windows.  There is an
13974         option on the options menu to turn this support on.  I really
13975         think that it should be on by default under Windows, but I'm not
13976         going to make this change yet.
13977
13978         b)  Added support for dynamic display size changes under Windows.
13979
13980         * event-stream.c:
13981         * event-stream.c (maybe_echo_keys):
13982         * event-stream.c (Fnext_event):
13983         * event-stream.c (command_builder_find_leaf):
13984         * event-stream.c (lookup_command_event):
13985         * event-stream.c (execute_command_event):
13986         * event-stream.c (pre_command_hook):
13987         * event-stream.c (post_command_hook):
13988         * event-stream.c (syms_of_event_stream):
13989         * event-stream.c (vars_of_event_stream):
13990         * event-stream.c (complex_vars_of_event_stream):
13991         * events.h (struct command_builder):
13992
13993         a) Tried to clean up a little bit the horribly written x-specific
13994         accelerator code that crept into this file.  I moved this code
13995         into menubar-x.c where it belongs. I also needed to move the
13996         command builder structure into the file events.h because it is
13997         accessed directly by this accelerator code.  What I didn't do, but
13998         which should be done at some point, is to properly abstract this
13999         code using device methods instead of the kludgy way that it
14000         currently hooks into the event code.
14001
14002         b) Added the lisp variables this-command-properties and
14003         last-command- properties, which should be used to synchronize two
14004         adjacent commands in preference to playing games with the variable
14005         this-command, which is typically what happens.
14006
14007         c) Added some slightly nasty code to hook into the lisp support
14008         for shifted- motion-key selection.  This is actually necessary for
14009         somewhat complicated reasons, which are described in
14010         simple.el. (NB: I think the proper thing would be to have the code
14011         that calls the pre and post command hooks also call out to generic
14012         lisp functions in simple.el, where all built-in stuff could be
14013         added.  I will think about this more.)
14014
14015         * event-unixoid.c (poll_fds_for_input):
14016         * lread.c (readchar):
14017         * redisplay-tty.c (tty_clear_frame):
14018         * redisplay-x.c (x_get_gc):
14019         * signal.c (interrupt_signal):
14020         And a whole bunch of other files: fixed up places that printed
14021         directly to stderr to instead call the function stderr_out so that
14022         the changes I made under Windows work correctly.
14023
14024         * filemode.c (mode_string):
14025         Warning fixes.
14026
14027         * frame-msw.c:
14028         * frame-msw.c (mswindows_size_frame_internal):
14029         Fixed the computation of frame size and position to keep the frame
14030         within the workspace area, rather than within the physical
14031         dimensions of the screen, so that the frame doesn't overlap window
14032         manager decorations, such as the start menu and toolbar, typically
14033         at the bottom of the screen.
14034
14035         * frame.c (vars_of_frame):
14036         Changed the default frame title format under MS Windows to consist
14037         of buffername-XEmacs, which is standard under MS Windows.  I think
14038         it might be a good idea to change this everywhere because I think
14039         it is superior to the current frame title format, but this is the
14040         kind of change that is likely to cause some people to get annoyed,
14041         so I'm not making it.
14042
14043         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14044
14045         * gui-msw.c (mswindows_handle_gui_wm_command):
14046         Fixed compile warnings.
14047
14048         * gui-x.c:
14049         * gui-x.c (strdup_and_add_accel):
14050         * gui-x.c (button_item_to_widget_value):
14051         * gui-x.h:
14052         Added code to automatically put an accelerator onto the beginning
14053         of menu items that don't have one as is now the standard, and is
14054         described more later.  Also fixed things so that the menu item
14055         name can be an evaluated expression, again a new standard.
14056
14057         * gui.c:
14058         * gui.c (gui_item_add_keyval_pair):
14059         * gui.c (make_gui_item_from_keywords_internal):
14060         * gui.c (gui_add_item_keywords_to_plist):
14061         * gui.c (gui_item_accelerator):
14062         * gui.c (gui_name_accelerator):
14063         * gui.c (gui_item_included_p):
14064         * gui.c (gui_item_display_flush_left):
14065         * gui.c (gui_item_display_flush_right):
14066         * gui.c (parse_gui_item_tree_item):
14067         * gui.c (parse_gui_item_tree_children):
14068         * gui.c (parse_gui_item_tree_list):
14069         Mule-ized.  Cleanup.  GCPRO addition.
14070
14071         * line-number.c (buffer_line_number):
14072         * lisp.h:
14073         * lisp.h (EMACS_INT_MAX):
14074         Added the manifest constant EMACS_INT_MIN corresponding to the
14075         existing constant EMACS_INT_MAX.  This is partially to fix compile
14076         warnings under Windows, and partly for cleanliness.
14077
14078         * menubar-msw.c:
14079         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14080         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14081         * menubar-msw.c (displayable_menu_item):
14082         * menubar-msw.c (populate_menu_add_item):
14083         * menubar-msw.c (populate_or_checksum_helper):
14084         * menubar-msw.c (populate_menu):
14085         * menubar-msw.c (update_frame_menubar_maybe):
14086         * menubar-msw.c (prune_menubar):
14087         * menubar-msw.c (msw_char_is_accelerator):
14088         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14089         * menubar-msw.c (mswindows_handle_wm_command):
14090         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14091         * menubar-msw.c (mswindows_handle_wm_initmenu):
14092         * menubar-msw.c (mswindows_update_frame_menubars):
14093         * menubar-msw.c (mswindows_free_frame_menubars):
14094         * menubar-msw.c (mswindows_popup_menu):
14095         Fixed a bug in handling accelerators where an extra character
14096         would be displayed in the menu item.  Also generalized the
14097         function displayable_menu_item because it is now used by the
14098         dialog box code as well.  And finally, added code in the functions
14099         that create the menubar to extract a list of accelerators for the
14100         top level menubar, which is used in the event code to determine
14101         whether a particular alt-key combination should be used to invoke
14102         a menu item, or should be passed through to access the standard
14103         XEmacs keymap binding for this key combination.
14104
14105         Much needed GCPROing.
14106
14107         * menubar-x.c:
14108         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14109         * menubar-x.c (menu_item_descriptor_to_widget_value):
14110         * menubar-x.c (restore_in_menu_callback):
14111         * menubar-x.c (x_popup_menu):
14112         * menubar-x.c (menu_move_up):
14113         * menubar-x.c (menu_move_down):
14114         * menubar-x.c (menu_move_left):
14115         * menubar-x.c (menu_move_right):
14116         * menubar-x.c (menu_select_item):
14117         * menubar-x.c (command_builder_operate_menu_accelerator):
14118         * menubar-x.c (menu_accelerator_junk_on_error):
14119         * menubar-x.c (command_builder_find_menu_accelerator):
14120         * menubar-x.c (Faccelerate_menu):
14121         * menubar.h:
14122         Moved a whole bunch of code here that was previously in
14123         event-stream.c as described above.  There is also code connected
14124         to the new standard of adding an accelerator to the beginning of
14125         menu items that don't have one as described above and below.
14126
14127         * menubar.c:
14128         * menubar.c (menu_parse_submenu_keywords):
14129         * menubar.c (Fmenu_find_real_submenu):
14130         * menubar.c (Fnormalize_menu_item_name):
14131         * menubar.c (syms_of_menubar):
14132         * menubar.c (vars_of_menubar):
14133         * menubar.c (complex_vars_of_menubar):
14134
14135         a) Cleaned up a bunch of documentation and improved it.
14136
14137         b) XEmacs now automatically adds an accelerator onto the beginning
14138         of any menu items that don't have one.  I did this because there
14139         will inevitably be some menu items on the main menubar that don't
14140         have accelerators on them because the package that adds that
14141         particular menu item hasn't yet been fixed up to have accelerators
14142         in them and it looked rather strange to have some items with and
14143         some items without accelerators, especially since even in items
14144         without accelerators, you can, at least under windows, still
14145         access the item through an accelerator corresponding to the first
14146         character in the item's name.  If people don't like this behavior,
14147         I can add a variable to turn it off optionally, but I'm not sure
14148         this is a good idea because we really do need to have accelerators
14149         on all of the menu items, and if a package doesn't like the
14150         accelerators being put on the first character, then it should put
14151         the accelerators where they belong.
14152
14153         c) I made a behavior change, which is that the descriptor that
14154         specifies the text of the menu item, which formerly was just a
14155         string, can now also be an evaluated expression.  This makes this
14156         descriptor parallel with all of the others, which could also be
14157         evaluated expressions.  This also obviates the need for the
14158         keyword :label, which was previously listed in the documentation
14159         as unimplemented, and which was for the same purpose.
14160
14161         d) GCPROing.
14162
14163         * ntproc.c:
14164         * ntproc.c (new_child):
14165         * ntproc.c (sys_spawnve):
14166         * ntproc.c (find_child_console):
14167         * ntproc.c (sys_kill):
14168         Fixed compile warnings.  By the way, this file should really go
14169         away entirely, and this will happen as soon as Kirill makes his
14170         final round of process cleanups, which affect the function
14171         call-process.
14172
14173         * process-nt.c:
14174         * process-nt.c (struct nt_process_data):
14175         * process-nt.c (find_process_from_pid):
14176         * process-nt.c (send_signal_the_nt_way):
14177         * process-nt.c (enable_child_signals):
14178         * process-nt.c (find_child_console):
14179         * process-nt.c (send_signal_the_95_way):
14180         * process-nt.c (nt_finalize_process_data):
14181         * process-nt.c (ensure_console_window_exists):
14182         * process-nt.c (nt_create_process):
14183         * process-nt.c (nt_kill_child_process):
14184         * process-nt.c (nt_kill_process_by_pid):
14185         * process-nt.c (nt_open_network_stream):
14186         * process-nt.c (vars_of_process_nt):
14187         Copied over code from Emacs 20.5 to correctly send signals to sub-
14188         processes under Windows 95.  Also added code to automatically
14189         create and hide console window when a sub-process is created under
14190         Windows 95, which obviates the need for the separate runemacs.exe
14191         executable, and finally implemented some variables that were
14192         implemented in Emacs 20.5, but previously not in XEmacs.  These
14193         include mswindows- start-process-share-console and
14194         mswindows-start-process-inherit-error-mode. (Both of these only
14195         apply to Windows 95.)
14196
14197         * regex.c (regex_compile): Fixed a compile warning.
14198
14199         * select-msw.c:
14200         * select-msw.c (mswindows_own_selection):
14201         * select-msw.c (mswindows_get_foreign_selection):
14202         * select-msw.c (mswindows_disown_selection):
14203         * select-msw.c (console_type_create_select_mswindows):
14204         * select-msw.c (syms_of_select_mswindows):
14205         Cleaned up the file and implemented the device method
14206         selection_exists_p, which had accidentally been left out.  Also
14207         removed four lisp functions that were remnants from before the
14208         time when the selection code was properly device abstracted.
14209         These functions are no longer needed because there are generic
14210         equivalents, and because they were added recently and don't exist
14211         in FSF Emacs, I don't think there's any problem with just deleting
14212         them.
14213
14214         * sysdep.c:
14215         * sysdep.c (sys_subshell):
14216         Fixed a compile warning, although in this case there's probably
14217         something wrong with this code, and it ought to be looked into
14218         more thoroughly by somebody who understands it.
14219
14220         * window.c:
14221         * window.c (Fwindow_text_area_height):
14222         * window.c (Fwindow_width):
14223         * window.c (Fwindow_full_width):
14224         * window.c (Fwindow_pixel_width):
14225         * window.c (debug_print_window):
14226         * window.c (syms_of_window):
14227         Added functions window-text-area-height and window-full-width,
14228         which are functions for returning various width and height
14229         characteristics of a window. (One of these functions is necessary
14230         for making the file dialog box work correctly, and the other one
14231         was added for completeness.)  Also added a table to the
14232         documentation for window-height which describes the entire scheme
14233         for accessing width and height characteristics of a window.
14234
14235 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14236
14237         * nt.c (fstat): Added a comment for another problem with
14238         non-encapsulated [f]stat(), reported by Adrian Aichner
14239         <aichner@ecf.teradyne.com>.
14240
14241 2000-03-11  Andy Piper  <andy@xemacs.org>
14242
14243         * window.c (make_dummy_parent): initialize subwindow instance
14244         cache.
14245         (Fset_window_configuration): zero extent_modiff.
14246
14247 2000-03-10  Andy Piper  <andy@xemacs.org>
14248
14249         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14250         more changes can be triggered.
14251         (Fredisplay_frame): ditto.
14252         (Fredraw_device): ditto.
14253         (Fredisplay_device): ditto.
14254         (redisplay_frame): make non-static.
14255         (redisplay_frame): call update_frame_gutter_geometry outside of
14256         display proper.
14257
14258         * gutter.h: declare update_frame_gutter_geometry.
14259
14260         * redisplay.h: declare redisplay_frame.
14261
14262         * gutter.c (update_frame_gutter_geometry): move geometry changes
14263         in update_frame_gutters here. Geometry changes can only occur
14264         outside of redisplay.
14265         (update_frame_gutters): remove geometry change code.
14266         (Fredisplay_gutter_area): make sure that we are in display when we
14267         update and that we have flushed any size changes.
14268
14269 2000-03-11  Andy Piper  <andy@xemacs.org>
14270
14271         * alloc.c (pdump_dump_data): remove i & count shadows.
14272
14273 2000-02-27  Mike Alexander  <mta@arbortext.com>
14274
14275         * sysdep.h: Declare pdump_read_file
14276
14277         * sysdep.c (pdump_read_file): New function
14278
14279         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14280         dump data
14281
14282 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14283
14284         * lrecord.h: add `lrecord_type_pgsetenv'.
14285
14286 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14287
14288         * symsinit.h: declare (vars|syms)_of* functions.
14289         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14290
14291 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14292
14293         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14294
14295         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14296         GCCs.
14297
14298         * emacs.c (main_1): Call postgres initialization code.
14299
14300         * postgresql.h: New file.  PostgreSQL RDBMS support.
14301         * postgresql.c: New file.
14302
14303 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14304
14305         * redisplay-output.c (redisplay_output_display_block): Disable
14306         redundant code.
14307
14308 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14309
14310         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14311         (Fcanna_henkan_next): Ditto.
14312         (Fcanna_bunsetu_henkou): Ditto.
14313         (Fcanna_henkan_kakutei): Ditto.
14314         (Fcanna_henkan_end): Ditto.
14315         (Fcanna_henkan_quit): Ditto.
14316         (Fcanna_henkan_next): Set retun value correctly.
14317         (c2mu): Use unsigned char instead of signed char.
14318
14319 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14320
14321         * emacs.c (main_1): Always call syms_of_gui.
14322         * inline.c: include gui.h
14323
14324 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14325
14326         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14327         converted to Lisp_Object.
14328         (Qtop_bottom): New variable.
14329         (syms_of_redisplay): Initialize it.
14330         * redisplay.h (Vvisible_bell): Ditto.
14331         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14332         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14333         only flash top and bottom.
14334
14335 2000-03-08  Andy Piper  <andy@xemacs.org>
14336
14337         * buffer.c (Frename_buffer): record new buffer name the right way.
14338
14339 2000-03-08  Andy Piper  <andy@xemacs.org>
14340
14341         * glyphs.c (update_subwindow): increase hash depth so that widget
14342         items get picked up properly.
14343
14344         * redisplay-output.c (compare_runes): increase hash depth so that
14345         widget items get picked up properly.
14346
14347 2000-03-08  Andy Piper  <andy@xemacs.org>
14348
14349         * gutter.c (output_gutter): add some debug.
14350
14351         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14352         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14353         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14354
14355         * redisplay-output.c (compare_runes): use display_hash to
14356         determine if glyphs really are not the same.
14357
14358         * glyphs.c (update_subwindow): check display_hash to see if
14359         anything really needs to be updated. If not then do
14360         nothing. Record the display_hash after updating.
14361         (image_instance_equal): compare the image_instance face also.
14362
14363 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14364
14365         * redisplay.h: Fix comment style.
14366
14367 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14368
14369         * consle-msw.h (struct mswindows_frame):
14370         Added new member paint_pending to indicate whether a WM_PAINT
14371         magic event has been queued for this frame.
14372
14373         * event-msw.c (mswindows_drain_windows_queue):
14374         Don't queue a WM_PAINT magic event if one is already queued.
14375         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14376
14377         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14378
14379 2000-03-07  Didier Verna  <didier@xemacs.org>
14380
14381         * dired.c: #include `regex.h' after `sysfile.h'.
14382
14383 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14384
14385         * sound.c (init_nas_sound): Fix compiler warning.
14386
14387         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14388         (FREE_STRUCT_P):
14389         (MARK_STRUCT_AS_FREE):
14390         (MARK_STRUCT_AS_NOT_FREE):
14391         Make `gcc -fstrict-aliasing' work properly.
14392
14393 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14394
14395         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14396         (mswindows_delete_device): Call CoUnnitialize().
14397
14398         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14399
14400 2000-02-25    <CraigL@DyCon.com>
14401
14402         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14403         <errno.h>.
14404
14405         * sysdep.c: This extern declaration for environ prevents MinGW
14406         from finding the variable in CRTDLL.DLL.
14407
14408         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14409         windows headers.
14410         (SHGFI_EXETYPE): ..
14411         (WM_MOUSEWHEEL): ..
14412         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14413         definitions.
14414         (MMRESULT): Removed, now defined in cygwin's windows headers.
14415         (TIMECAPS): ..
14416         (uid_t,gid_t,pid_t,ssize_t): ..
14417         (_timeb): Removed, MinGW defines both _timeb and timeb.
14418         (HAVE_H_ERRNO): Added.
14419         (HAVE_TZNAME): Added, configure is not detecting this.
14420
14421 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14422
14423         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14424         * syntax.c (syntax_match): Use it.
14425
14426         * cmds.c: Import auto-fill-chars from FSF Emacs.
14427         (Vauto_fill_chars): New variables.
14428         (internal_self_insert): Check Vauto_fill_chars.
14429         (vars_of_cmds):
14430         Declare auto-fill-chars as a Lisp variable and initialize it.
14431
14432 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14433
14434         * fileio.c (Fmake_symbolic_link):
14435         (Ffile_symlink_p):
14436         Run handlers even if local machine doesn't have symlinks.
14437
14438 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14439
14440         * event-msw.c (mswindows_drain_windows_queue):
14441         Don't generate paint magic events for non-XEmacs frames.
14442
14443 2000-03-05  Andy Piper  <andy@xemacs.org>
14444
14445         * redisplay.c (redisplay_frame): generate_displayable_area and
14446         friends assumes that we are not in GC, we therefore have to make
14447         sure that this doesn't happen.
14448
14449         * gutter.c (calculate_gutter_size): generate_displayable_area
14450         assumes that we are not in GC, we therefore have to make sure that
14451         this doesn't happen.
14452
14453 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14454
14455         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14456
14457 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14458
14459         * redisplay.c (regenerate_window): Make sure we set a sane value
14460         for end_pos even if we jump out of the loop.
14461         (regenerate_window): Answer Ben's question :-).
14462         (start_end_of_last_line): Add may_error argument.
14463         (start_of_last_line):
14464         (end_of_last_line): Pass may_error = 0.
14465         (end_of_last_line_may_error): New function.
14466         (pixel_to_glyph_translation): Use it, so we don't crash in
14467         event_to_glyph.
14468
14469 2000-03-04  Andy Piper  <andy@xemacs.org>
14470
14471         * window.h (struct window): add gutter_extent_modiff.
14472
14473         * window.c (allocate_window): zero out gutter_extent_modiff.
14474
14475         * redisplay.h: declare sync_display_line_structs.
14476
14477         * redisplay.c (add_glyph_rune): add a better comment.
14478
14479         * redisplay-output.c (sync_display_line_structs): made non-static.
14480         (compare_runes): remove unneccesary glyph cachel access.
14481
14482         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14483
14484         * gutter.c (output_gutter): don't output the gutter if extent
14485         changes only involve extents in buffers. use 4 sets of display
14486         lines.
14487         (gutter_extent_signal_changed_region_maybe): new function. Mark
14488         extents in gutters as changed.
14489         (update_frame_gutters): use 4 sets of display lines.
14490         (reset_gutter_display_lines): ditto.
14491         (free_frame_gutters): ditto.
14492         (redraw_exposed_gutter): force output of gutters.
14493
14494         * frame.h (struct frame): add 4 sets of gutter display lines.
14495
14496         * extents.c: (extent_changed_for_redisplay): signal changes to
14497         extents in strings in the gutter as well as extents in buffers.
14498
14499 2000-03-02  Andy Piper  <andy@xemacs.org>
14500
14501         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14502
14503         * frame.c (Fmake_frame): make sure the gutters get initialized
14504         after the frame is visible.
14505         (set_frame_selected_window): re-arrange compilation macros a
14506         little.
14507         (change_frame_size_1): mark gutters changed.
14508
14509         * device.c (Fset_device_class): mark gutters changed.
14510
14511 2000-03-01  Andy Piper  <andy@xemacs.org>
14512
14513         * window.c (window_top_frame_gutter_height): deleted.
14514         (window_bottom_frame_gutter_height): ditto.
14515         (window_left_frame_gutter_height): ditto.
14516         (window_right_frame_gutter_height): ditto.
14517         (window_top_gutter_height): don't use them.
14518         (window_bottom_gutter_height): ditto.
14519         (window_left_gutter_width): ditto.
14520         (window_right_gutter_width): ditto.
14521         (Fsplit_window): ditto.
14522         (Fwindow_pixel_edges): don't use border dimensions here.
14523
14524         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14525         (update_scrollbar_instance): ditto.
14526
14527         * redisplay.c (generate_modeline): don't take gutters into account.
14528         (generate_modeline): ditto.
14529         (redisplay_frame): small gutter display optimization.
14530
14531         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14532
14533         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14534         gutters into account.
14535
14536         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14537         for window position and type.
14538
14539         * gutter.c (get_gutter_coords): fix for frame gutters.
14540         (update_frame_gutters): update frame geometry if the gutters have
14541         changed.
14542         (init_frame_gutters): record current gutter geometries.
14543
14544         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14545         var.
14546         (mswindows_widget_instantiate): ditto.
14547
14548         * frame.h (struct frame): add current_gutter_bounds.
14549
14550         * frame.c (change_frame_size_1): position window and minibuffer
14551         appropriately taking into account the frame gutters.
14552
14553         * frame-x.c: (x_initialize_frame_size): take into account the
14554         frame gutters.
14555
14556 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14557
14558         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14559
14560 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14561
14562         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14563
14564 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14565
14566         * file-coding.c (reset_decoding_stream): Clear previous
14567         detection state when autodetect.
14568
14569 2000-02-29  Didier Verna  <didier@xemacs.org>
14570
14571         * extents.c (set_extent_glyph_1): don't require extents to be
14572         attached.
14573
14574 2000-02-27  Andy Piper  <andy@xemacs.org>
14575
14576         * gutter.c (Fset_default_gutter_position): don't default left and
14577         right gutter visibility to t.
14578         (Fset_default_gutter_position): run
14579         default-gutter-position-changed-hook.
14580         (syms_of_gutter): add default-gutter-position-changed-hook.
14581
14582 2000-02-26  Andy Piper  <andy@xemacs.org>
14583
14584         * specifier.c (Fmake_specifier): add gutter references.
14585
14586         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14587
14588         * lisp.h: declare Fvalid_plist_p.
14589
14590         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14591         as changed.
14592         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14593         well as its visibility so that it gets reconstructed.
14594         (construct_window_gutter_spec): new function. Construct a string
14595         to be displayed in the gutter from a plist of strings. Take care
14596         to only use elements that are declared as visible.
14597         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14598         WINDOW_GUTTER.
14599         (gutter_validate): allow plists of strings in the specifier.
14600         (gutter_specs_changed): construct the real_gutter from the gutter
14601         specs using construct_window_gutter_spec.
14602         (gutter_visible_validate): gutter-visible is a new specifier type.
14603         (Fgutter_visible_specifier_p): new function for the new specifier.
14604         (syms_of_gutter): declare gutter-visible and
14605         Fgutter_visible_specifier_p.
14606         (specifier_type_create_gutter): intitalize new gutter-visible
14607         specifier.
14608         (reinit_specifier_type_create_gutter): ditto.
14609         (specifier_vars_of_gutter): use new specifier type for gutter
14610         visibility.
14611         (init_frame_gutters): construct real_gutter correctly.
14612         (Fgutter_specifier_p): beef up documentation.
14613         (Fgutter_size_specifier_p): ditto.
14614
14615         * winslots.h: add real_gutter slots.
14616
14617 2000-02-25  Andy Piper  <andy@xemacs.org>
14618
14619         * device-msw.c: Be kind to older cygwin versions. From Raymond
14620         Toy <toy@rtp.ericsson.se>.
14621
14622         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14623         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14624
14625 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14626
14627         * elhash.c (MARK_OBJ): Practice macro hygiene.
14628
14629 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14630
14631         * miscplay.c: s/__inline__/inline/g;
14632         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14633         (get_device_compdc): INLINE ==> static inline
14634         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14635         find -name '*.h' | \
14636         xargs global-replace \
14637         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14638
14639 2000-02-25  Andy Piper  <andy@xemacs.org>
14640
14641         * window.c (window_top_frame_gutter_height): new function.
14642         (window_top_window_gutter_height): ditto.
14643         (window_top_gutter_height): use them.
14644         (window_bottom_frame_gutter_height): new function.
14645         (window_bottom_window_gutter_height): ditto.
14646         (window_bottom_gutter_height): use them.
14647         (window_left_window_gutter_width): new function.
14648         (window_left_frame_gutter_width): ditto.
14649         (window_left_gutter_width): use them.
14650         (window_right_window_gutter_width): new function.
14651         (window_right_frame_gutter_width): ditto.
14652         (window_right_gutter_width): use them.
14653         (window_pixel_height): new function. calulate window pixel height
14654         with frame gutter involvement.
14655         (Fsplit_window): calculate new sizes taking frame gutters into
14656         account.
14657         (window_char_height_to_pixel_height): don't include frame gutters.
14658         (window_char_height): use window_pixel_height.
14659         (window_pixheight): rename from window_pixel_height.
14660         (change_window_height): use it.
14661         (window_pixel_height_to_char_height): don't include frame gutters.
14662         (window_char_width_to_pixel_width): ditto.
14663
14664 2000-02-25  Andy Piper  <andy@xemacs.org>
14665
14666         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14667         if it is.
14668
14669 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14670
14671         * alloc.c (staticpro):
14672         (staticpro_nodump):
14673         (dumpstruct):
14674         (dumpopaque):
14675         (pdump_wire):
14676         (pdump_wire_list):
14677         (compact_string_chars):
14678         (pdump_dump_wired):
14679         Convert:  if (foo) abort();  ==>  assert (! foo);
14680
14681         * eldap.c (Fldap_search_basic):
14682         (Fldap_add):
14683         (Fldap_modify):
14684         (Fldap_delete):
14685         Fix compiler warnings, and possible crashes if (random) return
14686         value were to be used.
14687
14688 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14689
14690         * device-msw.c: Workaround ResetDC failure.
14691
14692         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14693         applying a devmode.
14694
14695         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14696         (mswindows_text_width): Do not start printer page.
14697
14698         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14699
14700         * glyphs-msw.c: Added image methods to msprinter console and
14701         msprinter-specific image instantiation.
14702
14703 2000-02-20  Mike Alexander  <mta@arbortext.com>
14704
14705         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14706         to avoid crashes when selection-sets-clipboard is on
14707         (mswindows_own_selection): ditto
14708
14709 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14710
14711         * glyphs-msw.c:
14712         * redisplay-msw.c (get_frame_dc):
14713         (get_frame_compdc):
14714         * console-msw.h:
14715         * device-msw.c (mswindows_init_device):
14716         (mswindows_delete_device):
14717         (msprinter_init_device):
14718         (msprinter_delete_device):
14719         * frame-msw.c (mswindows_init_frame_1):
14720         (mswindows_delete_frame):
14721         (msprinter_init_frame_3):
14722         (msprinter_delete_frame): Move compatible DC to device object from
14723         frame object, for both mswindows and msprinter. Only one at a time
14724         is needed, it is a real waste to have one per frame!
14725
14726 2000-02-23  Andy Piper  <andy@xemacs.org>
14727
14728         * glyphs.c: add dynamic width and height elements.
14729         (image_instance_equal): ditto.
14730
14731         * glyphs-widget.c (widget_query_geometry): calculate width and
14732         height dynamically if required.
14733         (initialize_widget_image_instance): initialize dynamic dimensions.
14734         (widget_instantiate): pick-up dynamic dimensions.
14735
14736         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14737         dynamic determination. Add appropriate macros.
14738
14739         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14740         dimensions safe.
14741         (WINDOW_GUTTER_SIZE): ditto.
14742         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14743
14744         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14745         inline.
14746         (get_frame_dc): ditto.
14747
14748         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14749         here.
14750
14751 2000-02-23  Martin Buchholz <martin@xemacs.org>
14752
14753         * XEmacs 21.2.31 is released.
14754
14755 2000-02-22  Ben Wing <ben@xemacs.org>
14756
14757         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14758
14759 2000-02-22  Andy Piper  <andy@xemacs.org>
14760
14761         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14762
14763 2000-02-21  Mike Sperber <mike@xemacs.org>
14764
14765         * .dbxrc:
14766         * .gdbinit:
14767         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14768         variables.
14769
14770 2000-02-21  Mike Sperber <mike@xemacs.org>
14771
14772         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14773
14774 2000-02-21  Martin Buchholz <martin@xemacs.org>
14775
14776         * XEmacs 21.2.30 is released.
14777
14778 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14779
14780         Performance hacking.
14781         * *.c (syms_of_*):
14782         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14783         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14784         * emacs.c (main_1):
14785         * lisp.h (DEFUN):
14786         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14787         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14788         * symeval.h (DEFVAR_SYMVAL_FWD):
14789         * symbols.c (guts_of_unbound_marker):
14790         Make all c_readonly objects also lisp_readonly and marked for life.
14791         * lrecord.h (struct lrecord_implementation):
14792         Document flags better.
14793         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14794         * lrecord.h (DECLARE_LRECORD):
14795         * lrecord.h (XSETRECORD):
14796         * lrecord.h (RECORDP):
14797         * lrecord.h (RECORD_TYPEP):
14798         * lrecord.h (RECORD_MARKER): New.
14799         * lrecord.h (error_check_*):
14800         * lrecord.h (CONCHECK_NONRECORD):
14801         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14802         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14803         * lrecord.h (set_lheader_implementation):
14804         * lrecord.h (enum lrecord_type): New.
14805         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14806         * alloc.c (disksave_object_finalization_1):
14807         * alloc.c (mark_object):
14808         * alloc.c (lrecord_type_index):
14809         * alloc.c (tick_lcrecord_stats):
14810         * alloc.c (Fgarbage_collect):
14811         * alloc.c (init_alloc_once_early):
14812         * alloc.c (pdump_load):
14813         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14814         * alloc.c (lrecord_type_index): Delete.
14815         Make lisp object type indexes be constant.
14816           Makes (byte-compile) 5% faster.
14817         Put all marker functions into their own array.
14818           Makes (garbage-collect) 5% faster.
14819         Optimize SYMBOL_VALUE_MAGIC_P.
14820           Makes (byte-compile) 2-3% faster.
14821         * config.h.in (gc_checking_assert): New.
14822         * alloc.c: Use gc_checking_assert().
14823         * .dbxrc: Make compatible with new object type implementation.
14824         * .gdbinit: Make compatible with new object type implementation.
14825         * alloc.c: Delete all symbols defined only for debugging, such as
14826         Lisp_Type_Vector and lrecord_charset.
14827
14828 2000-02-21  Andy Piper  <andy@xemacs.org>
14829
14830         * gui-msw.c (Fmswindows_shell_execute): fix file location
14831         problems.
14832
14833         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14834         unshowing so that set_window_buffer doesn't undo
14835         kill_buffer_hook's hard work.
14836
14837         * glyphs-widget.c (tab_control_query_geometry): don't count the
14838         first item when calculating geometry.
14839
14840         * glyphs.c (map_subwindow): remove redundant code.
14841         (update_frame_subwindows): be more circumspect about when to
14842         update subwindows.
14843
14844         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14845         when items haven't changed. Update faces if faces have changed as
14846         well as just the widget face.
14847         (x_tab_control_update): Update faces if faces have changed as well
14848         as just the widget face.
14849
14850 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14851
14852         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14853         registration.
14854         (build_syscolor_string): Use mswindows_color_to_string to try to
14855         get a named color.
14856         (mswindows_device_system_metrics): Reverse the foreground and
14857         background colors so that they match the documentation.
14858
14859         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14860         they match the default Windows palette.
14861         (mswindows_color_to_string): New function.
14862
14863 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14864
14865         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14866
14867 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14868
14869         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14870         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14871
14872         * symbols.c (init_symbols_once_early): Removed obsolete
14873         DATA_SEG_BITS related kludge.
14874         (defvar_magic): Ditto.
14875
14876         * malloc.c: Removed obsolete DATA_SEG_BITS
14877         * ralloc.c: Ditto.
14878         * mem-limits.h: Ditto.
14879
14880         * Makefile.in.in: Removed obsolete HAVE_SHM
14881         * emacs.c: Ditto.
14882
14883 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14884
14885         *  device-msw.c (mswindows_delete_device): Free DDE string
14886         handles.
14887
14888 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14889
14890         * keymap.c (get_keyelt):
14891         * unexnt.c (unexec):
14892         * vm-limit.c (memory_warnings):
14893         * ntheap.c (recreate_heap):
14894         * ntheap.h (UNINIT_PTR):
14895         * select-msw.c (Fmswindows_get_clipboard):
14896         (Fmswindows_set_clipboard):
14897         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14898         * objects-msw.c:
14899         * menubar-msw.c (displayable_menu_item):
14900         * glyphs-msw.c:
14901         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14902         * sysdep.c (sys_subshell):
14903         * process-nt.c (nt_create_process):
14904         * nt.c (normalize_filename):
14905         (dostounix_filename):
14906         (unixtodos_filename):
14907         * ntproc.c (win32_executable_type):
14908         * ntplay.c (play_sound_data_1):
14909         (play_sound_file):
14910         * editfns.c (get_home_directory):
14911         * event-msw.c (struct winsock_stream):
14912         (mswindows_dde_callback):
14913         * device-msw.c (msprinter_init_device):
14914         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14915
14916         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14917         mswindows_clear_toolbar were swapped!
14918
14919         * objects-msw.c:(colormap_t):
14920         (fontmap_t):
14921         * emacs.c (struct standard_args): Fixed const jumble.
14922
14923         * glyphs-widget.c (update_widget): Fixed comparison notation.
14924
14925         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14926
14927         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14928         __declspec(noreturn) syntax.
14929
14930 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14931
14932         * eldap.c (Fldap_open):
14933         (Fldap_search_basic):
14934         (Fldap_add):
14935         (Fldap_modify):
14936         Use new coding system conversion macros.
14937
14938 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14939
14940         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14941
14942 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14943
14944         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14945         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14946
14947         * eldap.c (Qadd, Qreplace): New constant symbols
14948         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14949         interruptions by XEmacs signals
14950         Remove unnecessary calls to slow_down_interrupts and
14951         speed_up_interrupts
14952         (Fldap_search_basic): Renamed from Fldap_search_internal
14953         Added new optional parameter VERBOSE that triggers the
14954         display of progress messages
14955         Remove unnecessary calls to slow_down_interrupts and
14956         speed_up_interrupts
14957         LDAP result code analysis rewritten
14958         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14959         (syms_of_eldap): Define the new symbols and functions
14960
14961
14962 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14963
14964         * realpath.c: Determine PATH_MAX maximally portably.
14965
14966         * insdel.c (bytecount_to_charcount): Optimize.
14967         The function used to be optimized for entirely ASCII sequences.
14968         Now it is optimized for successive characters from the same
14969         charset.  This also wins big for _mostly_ ASCII sequences.
14970
14971         * fileio.c (Ffile_truename): convert return from realpath() using
14972         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14973         - Rewrite GCPROing slightly.
14974
14975         * sysdep.c (sys_open): Do filename conversion, like all other
14976         sys_* functions.  Fixes bug:
14977         (let ((file-name-coding-system 'iso-8859-2))
14978            (write-region x y latin2-name))
14979         ==> writes filename using internal encoding.
14980
14981 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14982
14983         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14984         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14985         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14986         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14987         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14988         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14989         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14990         (CONST_IF_NOT_DEBUG): Delete.
14991         * alloc.c (this_one_is_unmarkable): Delete.
14992         (mark_object): Don't check for this_one_is_unmarkable. Use the
14993         c_readonly flag instead.
14994         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14995
14996 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14997
14998         * event-msw.c (mswindows_drain_windows_queue):
14999         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15000         away redundant repaint events.
15001
15002 2000-02-17  Andy Piper  <andy@xemacs.org>
15003
15004         * redisplay.h: declare mark_redisplay_structs.
15005
15006         * redisplay.c (redisplay_window):
15007         (redisplay_frame): don't check subwindows_state_changed.
15008         (mark_redisplay): mark gutters here.
15009
15010         * glyphs.c: (instantiate_image_instantiator): always layout if we
15011         haven't done so already.
15012         (allocate_image_instance): don't mark as dirty.
15013         (update_subwindow): bind inhibit_quit.
15014
15015         * gutter.c (mark_gutters): new function.
15016
15017         * glyphs-x.c (x_update_widget): Always resize to get round a
15018         widget bug.
15019
15020         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15021         breaking absolutely everything.
15022
15023         * gutter.h: declare mark_gutters.
15024
15025 2000-02-16  Martin Buchholz <martin@xemacs.org>
15026
15027         * XEmacs 21.2.29 is released.
15028
15029 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15030
15031         * fns.c (size_bit_vector): Fix computation of the size.
15032
15033 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15034
15035         * *.[ch]: Change CONST to const globally.
15036         find -name '*.[ch]' | \
15037         xargs global-replace \
15038         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15039         - Remove vestigial references to CONST_IS_LOSING
15040
15041 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15042
15043         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15044         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15045         events instead of dispatching them directly.
15046         (mswindows_handle_paint): New function to do repainting.
15047         (mswindows_wnd_proc):
15048         (emacs_mswindows_handle_magic_event): Call above function.
15049
15050 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15051
15052         * objects-msw.c (mswindows_create_font_variant): Return the new
15053         font handle.
15054         (initialize_font_instance): Get font metrics from the underlined
15055         variant of the font to cope with the case where the underlined
15056         font has a bigger descent.
15057
15058 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15059
15060         * gui.c (gui_item_accelerator): Return the first underlined
15061         character in item name.
15062
15063 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15064
15065         * lisp.h: Added Qprinter.
15066
15067         * general.c (syms_of_general): Initialized it.
15068
15069         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15070         (get_frame_dc):
15071         (get_frame_compdc): Made inline.
15072
15073         * console.h (struct console_methods): Added eject_page method.
15074
15075         * frame.h: Added FRAME_DISPLAY_P and friends.
15076         Aligned backslahes in many macros in more readable fashion.
15077         Added page_number to struct frame, and an accessor macro
15078         for it.
15079
15080         * defice.h: Added DEVICE_DISPLAY_P and friends.
15081
15082         * device.c (Fdevice_printer_p): Used these.
15083
15084         * frame.c (allocate_frame_core): Initialize page number.
15085         (Fprint_job_page_number):
15086         (Fprint_job_eject_page): Implemented.
15087
15088         * frame-msw.c (msprinter_eject_page): Added method.
15089         (msprinter_start_page): Added.
15090
15091         * window.c (Fwindow_truncated_p): Fixed docstring.
15092         (Fwindow_last_line_visible_height): Implemented.
15093
15094 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15095
15096         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15097
15098 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15099
15100         * syntax.c (scan_words): Always advance at least one character.
15101
15102 2000-02-13  Andy Piper  <andy@xemacs.org>
15103
15104         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15105         to make sure the glyph is in the cachels.
15106
15107         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15108         global image instance flag.
15109         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15110         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15111
15112         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15113         (Fset_image_instance_property): mark layout as changed.
15114         (invalidate_glyph_geometry_maybe): mark layout as changed.
15115         (glyph_width): use new NEEDS_LAYOUT macro.
15116         (glyph_ascent): ditto.
15117         (glyph_descent): ditto.
15118         (glyph_height): ditto.
15119         (image_instance_layout): mark layout as clean after laying out.
15120         (update_subwindow): don't mark layout as clean here.
15121
15122         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15123         should no longer be needed.
15124
15125         * glyphs-x.c (x_update_widget): sanitize asserts.
15126         (x_finalize_image_instance): sanitize assignment to widgets.
15127
15128         * glyphs-widget.c (widget_instantiate): don't need to clear the
15129         layout flag here.
15130
15131 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15132
15133         * sysdep.c (getcwd): Use standard prototype.
15134         * sysdep.h (getcwd): Use standard prototype.
15135
15136         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15137         (sequence, start, end).
15138         Remove redundant type checking.
15139         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15140         view of `caller-protects') to avoid a crash where the real fix was
15141         found elsewhere.
15142
15143 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15144
15145         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15146
15147         * s/sol2.h: Remove feature macro initialization.
15148
15149         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15150         (vector_hash): New.  Code from internal_hash.
15151         * lrecord.h:
15152         Fix up allocation subsystem comments.
15153
15154         * config.h.in: Add __EXTENSIONS__ for Solaris.
15155
15156         * systime.h (EMACS_GETTIMEOFDAY): New.
15157         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15158         Remove Solaris-specific code.
15159         Use void* for the (ignored) second arg for gettimeofday().
15160
15161         * elhash.c (hash_table_hash): Implement it, finally.
15162         * elhash.c:  Use hashcode_t.
15163
15164         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15165         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15166
15167         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15168         * fns.c (size_bit_vector):
15169         * alloc.c (size_vector):
15170         (make_vector_internal):
15171         (make_bit_vector_internal):
15172         (sweep_bit_vectors_1):
15173         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15174
15175 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15176
15177         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15178         Include strings.h to avoid warnings for bzero and strcasecmp.
15179
15180 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15181
15182         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15183         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15184
15185         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15186         sequence.
15187
15188 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15189
15190         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15191         use a value field instead.
15192         (symbol_value_forward_forward): Use value field.
15193         (DEFVAR_SYMVAL_FWD): Use value field.
15194         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15195         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15196         (DEFVAR_CONST_INT): Ditto.
15197         (DEFVAR_BOOL): Ditto.
15198         (DEFVAR_CONST_BOOL): Ditto.
15199         (DEFVAR_INT_MAGIC): Ditto.
15200         (DEFVAR_BOOL_MAGIC): Ditto.
15201
15202         * symbols.c (guts_of_unbound_marker): Use value field.
15203         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15204         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15205
15206         * lisp.h: Declare dumpopaque and noninteractive1.
15207
15208         * alloc.c (dumpopaque): Added.
15209         (pdump_dump_opaquevec): Added.
15210         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15211         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15212         noninteractive.
15213
15214 2000-02-10  Andy Piper  <andy@xemacs.org>
15215
15216         * glyphs.c (image_instance_layout): if the size changes, mark it
15217         as such.
15218
15219         * redisplay-output.c (redisplay_output_layout): Update the
15220         subwindow here.
15221         (redisplay_output_subwindow): ditto.
15222
15223         * glyphs.c (update_subwindow): make sure we reset flags for
15224         layouts as well as everything else.
15225
15226         * glyphs-widget.c (layout_layout): don't need to set the instances
15227         dimensions here.
15228
15229 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15230
15231         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15232         not HAVE_DLOPEN, which is a lower-level thing.
15233
15234         * .cvsignore: Ignore gmon.out
15235
15236 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15237
15238         * .cvsignore: Ignore portable dumper xemacs.dmp file
15239
15240 2000-02-09  Andy Piper  <andy@xemacs.org>
15241
15242         * redisplay-output.c (redisplay_output_layout): be more clever
15243         about when we output based on the changed flags.
15244
15245         * glyphs.h (struct image_instantiator_methods): add update_method.
15246         (struct Lisp_Image_Instance): add changed flags. Declare new
15247         macros for manipulating them.
15248
15249         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15250         (image_instance_parent_glyph): find an image_instance's parent
15251         glyph or image_instance.
15252         (image_instance_layout): mark the size as changed.
15253         (set_image_instance_dirty_p): new function. mark an image
15254         instance, plus all of its parents, as dirty.
15255         (Fset_image_instance_property): use it.
15256         (Fglyph_animated_timeout_handler): use it.
15257         (update_subwindow): call update_widget and device methods for
15258         update_subwindow. Mark all changed flags as clean.
15259         (Fresize_subwindow): mark size as changed.
15260
15261         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15262         failures.
15263         (x_update_subwindow): only resize subwindows here.
15264         (x_update_widget): new function. Update all changed properties of
15265         a widget.
15266         (x_resize_subwindow): deleted.
15267         (x_widget_set_property): deleted.
15268         (x_progress_gauge_set_property): deleted.
15269         (x_progress_gauge_update): new function. Implement recorded
15270         changes.
15271         (x_tab_control_update): ditto.
15272         (x_tab_control_set_property): deleted.
15273         (console_type_create_glyphs_x): declare new functions.
15274         (image_instantiator_format_create_glyphs_x): ditto.
15275
15276         * glyphs-widget.c (widget_set_property): mark text changed.
15277         (update_widget): new function. Update properties of a widget.
15278         (widget_instantiate): for layouts make sure we set their
15279         children's parent correctly.
15280         (tab_control_set_property): new function. Record changes that will
15281         take place under redisplay's control.
15282         (progress_gauge_set_property): ditto.
15283         (image_instantiator_progress_guage): declare new functions.
15284         (image_instantiator_tab_control): ditto.
15285
15286         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15287         now.
15288         (mswindows_update_widget): new function. Update all properties on
15289         a widget that have changed.
15290         (mswindows_button_update): new function. Update a button's set
15291         state.
15292         (mswindows_tab_control_update): new function. Update the items in
15293         a tab.
15294         (mswindows_tab_control_set_property): deleted.
15295         (mswindows_progress_gauge_update): new function. Update the
15296         progress gauge's progress.
15297         (mswindows_widget_set_property): deleted. This is all done
15298         asynchronously now.
15299         (mswindows_progress_gauge_set_property): ditto.
15300         (console_type_create_glyphs_mswindows): declare new methods.
15301         (image_instantiator_format_create_glyphs_mswindows): ditto.
15302
15303         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15304         (msprinter_set_frame_properties): ditto.
15305
15306         * console.h (struct console_methods): Add update_widget_method.
15307
15308 2000-02-09  Andy Piper  <andy@xemacs.org>
15309
15310         * gui-msw.c (Fmswindows_shell_execute): Make
15311         mswindows-shell-execute industrial strength.
15312
15313 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15314
15315         * lrecord.h: Make macro argument `props' match member function `plist'.
15316         * fns.c (Fget):
15317         * fns.c (Fput):
15318         * fns.c (Fremprop):
15319         * fns.c (Fobject_plist):
15320         * alloc.c:
15321         * symbols.c:
15322         Object property list frobbing cleanup.
15323         - Allow any lisp object (compared with `eq'), not just symbols, as
15324           keys in object plists.
15325         - Move symbol plist frobbing into symbols.c, where it belongs.
15326         - Move string plist frobbing into alloc.c, where it belongs.
15327         - Everything's an lrecord now, so no need to test for symbolp, etc.
15328         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15329
15330         * extents.c: Reorder code to remove declarations.
15331
15332         * frame.h (store_in_alist): Remove useless declaration.
15333
15334 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15335
15336         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15337         * config.h.in: Add HAVE_XCONVERTCASE.
15338
15339 2000-02-07  Andy Piper  <andy@xemacs.org>
15340
15341         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15342         it breaks many things.
15343
15344 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15345
15346         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15347         actually can start a common comment type.
15348         * src/syntax.h (SYNTAX_END_P): ditto for end.
15349
15350 2000-02-07  Martin Buchholz <martin@xemacs.org>
15351
15352         * XEmacs 21.2.28 is released.
15353
15354 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15355
15356         * event-Xt.c (x_keysym_to_character): New.
15357         (maybe_define_x_key_as_self_inserting_character): New.
15358         (x_has_keysym): New.
15359         Auto-define all keys on the keyboard as self-insert-key.
15360
15361 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15362
15363         * menubar.c (vars_of_menubar): A small code simplification.
15364
15365         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15366
15367         * ExternalShell.c:
15368         * ExternalClient.c:
15369         * EmacsShell-sub.c:
15370         * EmacsManager.c:
15371         * EmacsFrame.c:
15372         Use consistent style for specifying X resources.
15373
15374         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15375         This makes (dontusethis-set-symbol-value-handler) actually usable.
15376
15377         * lrecord.h (lrecord_decription_type):
15378         * alloc.c (pdump_register_sub):
15379         (pdump_dump_data):
15380         (pdump_reloc_one):
15381         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15382         Comply with XEmacs coding style.
15383         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15384         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15385
15386         * keymap.c (Faccessible_keymaps):
15387         Make (accessible-keymaps map "\C-h") do the Right Thing.
15388         Make (accessible-keymaps map []) do the Right Thing.
15389         Make (accessible-keymaps map "") do the Right Thing.
15390         (check_keymap_definition_loop): New function.
15391         (keymap_store_internal): Keep luser from shooting self in foot,
15392           via (define-key ctl-x-4-map "p" global-map).
15393         Remove fullness slot from struct Lisp_Keymap, since hash tables
15394         are now reliable.
15395         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15396
15397 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15398
15399         * redisplay.c (init_redisplay): Fix small memory leak.
15400         * elhash.h:
15401         * elhash.c (pdump_reorganize_hash_table):
15402         Rename from reorganize_hash_table. Change prototype.
15403         Reuse the original memory for hentries.  Save 100k.
15404         * alloc.c (PDUMP_READ): new macro.
15405         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15406         * alloc.c: No need to #ifndef before #undef.
15407
15408         * print.c: Allow debug_print() to print readably by modifying
15409         debug_print_readably.  Use consistent variable names.
15410
15411         * .dbxrc: Try to get things to work even if stopped in a function
15412         without source available by explicitly specifying source files.
15413 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15414
15415         * unexnt.c (_start): Removed bogus code which caused loading heap
15416         from differrent executable file.
15417         Removed bogus assignment to _fmode, which caused inconsistencies.
15418
15419 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15420
15421         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15422         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15423         Do not preliminary `#define signal sigset'.
15424
15425         * systime.h: Do not prototype environ on windows nt and cygwin,
15426         this conflicts with system header.
15427
15428         * syssignal.h: Use correct define for WINDOWSNT
15429
15430         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15431         with system header.
15432
15433         * sysdep.c (near start of file): Fixed commentary and rearranged
15434         ifdefs in readable order.
15435         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15436         (start_of_text):
15437         (end_of_text):
15438         (end_of_data): Do not compile in if using PDUMP.
15439
15440         * symsinit.h: Prototyped vars_of_nt().
15441
15442         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15443         (find_child_console): Use it.
15444         (sys_kill): Use it.
15445
15446         * ntheap.h: Do not extern os_subtype.
15447
15448         * ntheap.c (cache_system_info): Do not cache unneeded:
15449         nt_major_version, nt_minor_version and os_subtype.
15450         (recreate_heap): Do not compile in when PDUMPing.
15451
15452         * nt.c (geteuid and friends): Use the new varibale
15453         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15454         (init_user_info): Removed the above mentioned hackery.
15455         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15456         stat has been fixed in the C runtime.
15457         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15458
15459         * file-coding.c (struct file_coding_dump): Do not define
15460         ucs_to_mule_table in the struct if not MULE.
15461         (struct struct lrecord_description fcd_description_1): Do not dump
15462         the above.
15463
15464         * emacs.c (main_1): Call vars_of_nt().
15465         (right before Fdump_emacs_data): Don't need lastfile if using both
15466         portabe dumper and system malloc.
15467
15468         * alloc.c (Fmemory_limit): Conditionalized out.
15469         (pdump): Use OPEN_BINARY for the portable dump file.
15470         (pdump_load): Ditto.
15471
15472 2000-02-02  Mike Alexander  <mta@arbortext.com>
15473
15474         * nt.c (convert_time): Set tm_isdst before calling mktime and
15475         avoid calling it at all if the compiler supports 64 bit integers.
15476         Also initialize utc_base_ft before using it.
15477
15478 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15479
15480         * frame.c (change_frame_size_1): Take f->internal_border_width
15481         into consideration when calculating the width of the frame.
15482
15483 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15484
15485         * window.c (frame_min_height):
15486         (frame_size_valid_p):
15487         (frame_pixsize_valid_p): Added.
15488         (check_frame_size): Generalized.
15489
15490         * window.h: Prototyped the above.
15491
15492         * lisp.h:
15493         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15494         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15495         Deleted Vwin32_* and Vbinary_process_* unused variables.
15496
15497         * device-msw.c (msprinter_init_device): Do not get printer font
15498         list; Added DEVMODE functions.
15499
15500         * frame-msw.c: Added lots of printer code.
15501
15502         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15503         general.c.
15504
15505         * console-msw.h: Added more msprinter device private slots.
15506
15507 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15508
15509         * event-msw.c (key_needs_default_processing_p): Added.
15510         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15511
15512 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15513
15514         * glyphs.c (image_instance_layout): Mark image instance as clean
15515         after layout.
15516         (glyph_dirty_p): Removed redundant function.
15517         (invalidate_glyph_geometry_maybe): Added.
15518         (update_glyph_cachel_data): Call it.
15519
15520         * glyphs.h: Prototyped it.
15521
15522         * redisplay.c (add_glyph_rune): Call it.
15523         (redisplay_window): Reset glyphs cachels when frame faces have
15524         changed, thus forcing recomputation of built-in border glyphs.
15525
15526 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15527
15528         * Makefile.in.in: Make portable dumper and purify play well together.
15529         Add imperfect, but better than nothing, support for pdump.
15530         Remove xemacs.dmp when temacs is re-generated.
15531         Don't ignore errors when dumping xemacs.
15532
15533         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15534
15535 2000-01-28  Andy Piper  <andy@xemacs.org>
15536
15537         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15538         (setup_normal_frame): ditto.
15539         (setup_frame_without_minibuffer): ditto.
15540         (setup_minibuffer_frame): ditto.
15541         (delete_frame_internal): ditto.
15542         (Fmake_frame_invisible): ditto.
15543         (Ficonify_frame): ditto.
15544
15545         * window.h: change Fset_window_buffer signature.
15546
15547         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15548         (Fset_window_buffer): allow recording of buffer if the window is
15549         the selected window.
15550         (window_loop): Use new Fset_window signature.
15551
15552 2000-01-23  Daniel Pittman  <daniel@danann.net>
15553
15554         * config.h.in: Added template for `HAVE_ATHENA_3D'
15555
15556 2000-01-29  Andy Piper  <andy@xemacs.org>
15557
15558         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15559
15560         * gutter.c (output_gutter): Don't output if the window isn't live.
15561
15562 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15563
15564         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15565         of 01/12/00: Moved SetFocus back here where it belongs.
15566
15567 2000-01-23  Andy Piper  <andy@xemacs.org>
15568
15569         * s/cygwin32.h: declare printer things.
15570
15571 2000-01-26  Andy Piper  <andy@xemacs.org>
15572
15573         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15574         Alexander.
15575
15576 2000-01-24  Andy Piper  <andy@xemacs.org>
15577
15578         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15579         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15580
15581         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15582
15583         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15584
15585         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15586
15587         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15588         (mswindows_output_display_block): Avoid local shadows.
15589
15590         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15591         (mswindows_enqueue_mouse_button_event): ditto.
15592         (mswindows_handle_gui_wm_command): remove declaration.
15593
15594         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15595         warnings.
15596
15597         * console-msw.h: Avoid shadows.
15598         (mswindows_get_toolbar_button_text):
15599         (emacs_mswindows_create_stream_pair):
15600         (emacs_mswindows_delete_stream_pair):
15601         (mswindows_handle_toolbar_wm_command): declare.
15602
15603         * device-msw.c (build_syscolor_string): Avoid shadows.
15604
15605 2000-01-23  Andy Piper  <andy@xemacs.org>
15606
15607         * glyphs-widget.c (widget_instantiate): reverse the items for
15608         layouts so that children are in the expected order.
15609
15610 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15611
15612         * ralloc.c: safe_bcopy ==> memmove
15613         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15614         * s/msdos.h: Remove BCOPY macros.
15615         * insdel.c (gap_right): Remove BCOPY conditional code.
15616         * insdel.c (gap_left): Remove BCOPY conditional code.
15617         XEmacs demands a working ANSI C compiler - hence memmove.
15618
15619         * regex.c (regex_compile): Remove accidental use of trigraphs.
15620
15621 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15622
15623         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15624         event timestamp.
15625
15626 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15627
15628         * event-msw.c (mswindows_drain_windows_queue): Added the
15629         parameter.
15630         (mswindows_need_event): Commented the call to
15631         mswindows_drain_windows_queue().
15632         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15633         only.
15634
15635         * console-msw.h: Moved a few function prototypes here from
15636         event-msw.c.
15637
15638         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15639         parameter from unsigned short to unsigned long.
15640         (Fmswindows_shell_execute): Added return value.
15641
15642 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15643
15644         * sysdep.c (init_system_name):
15645           process-unix.c (unix_canonicalized_host_name):
15646         Don't call freeaddrinfo() if getaddrinfo() fails.
15647
15648         * process-unix.c (unix_open_unix_network_stream):
15649         Moved the code to get a port # into address loop.
15650
15651 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15652
15653         * buffer.c (reinit_vars_of_buffer):
15654         The right place to initialize conversion_in_dynarr and
15655         conversion_out_dynarr.
15656
15657         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15658
15659         * process-unix.c (unix_canonicalize_host_name): Muleize.
15660         (unix_open_network_stream): Muleize.
15661
15662         * buffer.h: Fix up prototypes for ralloc.c functions.
15663
15664 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15665         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15666         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15667                 instead of gethostbyname()
15668         * process-unix.c: In unix_canonicalize_host_name() and
15669                 unix_open_network_stream(), add code to use getaddrinfo()
15670                 instead of gethostbyname().
15671
15672 2000-01-27  Daniel Pittman <daniel@danann.net>
15673
15674         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15675         libs when built with flat Athena.
15676
15677 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15678
15679         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15680         Use coding standards for function prototypes.
15681
15682 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15683
15684         * dialog-msw.c (push_lisp_string_as_unicode):
15685         * doc.c (unparesseuxify_doc_string):
15686         * dired.c (Fuser_name_completion_1):
15687         * dired.c (Fuser_name_all_completions):
15688         * dired.c (free_user_cache):
15689         * dired.c (user_name_completion):
15690         * console-x.c (get_display_arg_connection):
15691         * minibuf.c (clear_echo_area_internal):
15692         * minibuf.c (echo_area_append):
15693         * eldap.c (Fldap_open):
15694         * eldap.c (Fldap_search_internal):
15695         * frame-x.c (x_set_frame_text_value):
15696         * frame-x.c (x_set_frame_properties):
15697         * frame-x.c (x_create_widgets):
15698         * redisplay-tty.c (term_get_fkeys_1):
15699         * objects-x.c (x_parse_nearest_color):
15700         * objects-x.c (x_valid_color_name_p):
15701         * objects-x.c (x_initialize_font_instance):
15702         * objects-x.c (x_list_fonts):
15703         * objects-x.c (x_find_charset_font):
15704         * tooltalk.c (Fadd_tooltalk_message_arg):
15705         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15706         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15707         * process-unix.c (unix_create_process):
15708         * ntproc.c (sys_spawnve):
15709         * sound.c (Fplay_sound_file):
15710         * sound.c (Fplay_sound):
15711         * buffer.c (init_initial_directory):
15712         * buffer.c (init_buffer):
15713         * editfns.c (init_editfns):
15714         * editfns.c (Ftemp_directory):
15715         * editfns.c (Fuser_full_name):
15716         * editfns.c (uncache_home_directory):
15717         * editfns.c (get_home_directory):
15718         * editfns.c (Fuser_home_directory):
15719         * editfns.c (Fformat_time_string):
15720         * editfns.c (Fcurrent_time_string):
15721         * gui-x.c (button_item_to_widget_value):
15722         * database.c (Fopen_database):
15723         * event-Xt.c (x_to_emacs_keysym):
15724         * event-Xt.c (x_event_to_emacs_event):
15725         * event-Xt.c (describe_event_window):
15726         * event-msw.c (mswindows_wnd_proc):
15727         * glyphs-eimage.c (jpeg_instantiate):
15728         * glyphs-eimage.c (gif_instantiate):
15729         * glyphs-eimage.c (png_instantiate):
15730         * glyphs-eimage.c (tiff_instantiate):
15731         * glyphs-x.c (xbm_instantiate_1):
15732         * glyphs-x.c (x_xbm_instantiate):
15733         * glyphs-x.c (x_xface_instantiate):
15734         * glyphs-x.c (autodetect_instantiate):
15735         * glyphs-x.c (cursor_font_instantiate):
15736         * glyphs-x.c (x_widget_instantiate):
15737         * glyphs-x.c (x_widget_set_property):
15738         * glyphs-x.c (x_widget_property):
15739         * glyphs-x.c (BUILD_GLYPH_INST):
15740         * print.c (write_string_to_stdio_stream):
15741         * print.c (output_string):
15742         * print.c (Falternate_debugging_output):
15743         * print.c (Fexternal_debugging_output):
15744         * glyphs-msw.c (extract_xpm_color_names):
15745         * glyphs-msw.c (mswindows_xpm_instantiate):
15746         * glyphs-msw.c (bmp_instantiate):
15747         * glyphs-msw.c (resource_name_to_resource):
15748         * glyphs-msw.c (mswindows_resource_instantiate):
15749         * glyphs-msw.c (xbm_instantiate_1):
15750         * glyphs-msw.c (mswindows_xbm_instantiate):
15751         * glyphs-msw.c (mswindows_xface_instantiate):
15752         * glyphs-msw.c (mswindows_widget_instantiate):
15753         * glyphs-msw.c (add_tree_item):
15754         * glyphs-msw.c (add_tab_item):
15755         * glyphs-msw.c (mswindows_combo_box_instantiate):
15756         * glyphs-msw.c (mswindows_widget_property):
15757         * glyphs-msw.c (mswindows_combo_box_property):
15758         * glyphs-msw.c (mswindows_widget_set_property):
15759         * console.c (stuff_buffered_input):
15760         * objects-msw.c (mswindows_initialize_color_instance):
15761         * objects-msw.c (mswindows_valid_color_name_p):
15762         * objects-msw.c (mswindows_list_fonts):
15763         * objects-msw.c (mswindows_font_instance_truename):
15764         * bytecode.c (optimize_compiled_function):
15765         * select-x.c (symbol_to_x_atom):
15766         * select-x.c (x_atom_to_symbol):
15767         * select-x.c (hack_motif_clipboard_selection):
15768         * select-x.c (selection_data_to_lisp_data):
15769         * select-x.c (lisp_data_to_selection_data):
15770         * select-x.c (Fx_get_cutbuffer_internal):
15771         * select-x.c (Fx_store_cutbuffer_internal):
15772         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15773         * buffer.h (TO_INTERNAL_FORMAT): New function.
15774         * emacs.c (make_arg_list_1):
15775         * emacs.c (make_argc_argv):
15776         * emacs.c (main_1):
15777         * emacs.c (Fdump_emacs):
15778         * emacs.c (split_string_by_emchar_1):
15779         * file-coding.h:
15780         * lisp.h:
15781         * lstream.h:
15782         * symsinit.h:
15783         * device-x.c (x_init_device):
15784         * device-x.c (Fx_valid_keysym_name_p):
15785         * device-x.c (Fx_get_font_path):
15786         * device-x.c (Fx_set_font_path):
15787         * glyphs.c (bitmap_to_lisp_data):
15788         * glyphs.c (pixmap_to_lisp_data):
15789         * alloc.c (make_ext_string): Use coding system arguments.  Update
15790         all callers.
15791         * alloc.c (build_string):
15792         * callproc.c (child_setup):
15793         * callproc.c (init_callproc):
15794         * fileio.c (lisp_strerror):
15795         * fileio.c (directory_file_name):
15796         * fileio.c (Fexpand_file_name):
15797         * fileio.c (Ffile_truename):
15798         * fileio.c (Fsysnetunam):
15799         * fileio.c (Fdo_auto_save):
15800         * sysdep.c (sys_readdir):
15801         * tests.c: New file.  Allow adding C tests.
15802         Replace GET_* macros with a more comprehensible and flexible
15803         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15804         Modify all calls.
15805         Any coding system can be used to do format conversion.
15806         Eliminate enum external_data_format.
15807         Eliminate convert_to_external_format.
15808         Eliminate convert_to_internal_format.
15809         Make sure file-name, keyboard, terminal, and ctext are always
15810         defined as coding systems or aliases.  Make
15811         file-name-coding-system, terminal-coding-system, and
15812         keyboard-coding-system magical variables that are equivalent to
15813         defining the corresponding coding system aliases.
15814
15815         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15816         * file-coding.c (Fcoding_system_alias_p): New function.
15817         * file-coding.c (Fcoding_system_aliasee): New function.
15818         * file-coding.c (append_suffix_to_symbol): New function.
15819         * file-coding.c (dangling_coding_system_alias_p): New function.
15820         * file-coding.c (Ffind_coding_system):
15821         * file-coding.c (Fcopy_coding_system):
15822         * file-coding.c (encode_coding_no_conversion):
15823         * file-coding.c (syms_of_file_coding):
15824         * file-coding.c (vars_of_file_coding):
15825         Rewrite coding system alias code.
15826         Allow nested aliases, like symbolic links.
15827         Allow redefinition of coding system aliases.
15828         Prevent existence of dangling coding system aliases.
15829
15830         * dired.c (Fuser_name_completion_1):
15831         * dired.c (Fuser_name_all_completions):
15832         A crash would happen if user did QUIT in the middle of building
15833         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15834
15835         * lisp.h:
15836         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15837
15838         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15839         an unsigned char *.  Update all callers.
15840
15841 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15842
15843         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15844
15845 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15846
15847         * elhash.c (hentry_description): Use more portable definition.
15848         (resize_hash_table): Initialize new hentries using
15849         xnew_array_and_zero, thereby simplifying the code.
15850
15851         * mule-charset.c (make_charset): Make sure entire object is
15852         initialized, to avoid Purify warnings.
15853
15854         * alloc.c (resize_string): Fix unlikely crash with big strings.
15855
15856 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15857
15858         * realpath.c (xrealpath):
15859         Don't call getwd().
15860
15861 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15862
15863         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15864
15865 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15866
15867         * unexelfsgi.c (unexec): Change the way we decide which segment
15868         should be extended.
15869
15870         Assumption that .bss section should be outside the PT_LOADable
15871         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15872         it's present) is inside the 'data' segment. This would fail the
15873         test which was used to find a segment to grow and cover new
15874         heap. Instead of this assumption, I created another one - on IRIX
15875         the segment to grow should start below .bss and it's address
15876         should extent above the end of .bss. Once this segment is
15877         identified, it's grown to accommodate the new heap and new
15878         zero-length .bss section is added at the end of .data2.
15879
15880 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15881
15882         * eval.c (Feval): Wrong number of arguments should use original
15883         function, not the indirect_function version of it.
15884
15885 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15886
15887         * glyphs-x.c (x_button_instantiate): Don't add image if
15888         it is not a pixmap.
15889         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15890         is relative.
15891
15892 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15893
15894         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15895         declaration.
15896         (DEFVAR_INT_MAGIC): Ditto.
15897         (DEFVAR_BOOL_MAGIC): Ditto.
15898         * glyphs.h: Reindent backslash.
15899
15900 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15901
15902         * glyphs-widget.c (layout_query_geometry):
15903         (layout_layout): Use correct types for gheight, gwidth.
15904
15905 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15906
15907         * EmacsManager.c (QueryGeometry): Purified.
15908
15909 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15910
15911         * alloc.c (make_float): Make sure entire object is initialized, to
15912         avoid Purify warnings.
15913         (pdump_register_sub): Remove useless assignment.
15914         (pdump): Use xmalloc, not malloc.
15915         (pdump_load): Use xmalloc, not malloc.
15916
15917 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15918
15919         * callproc.c:
15920         * dired-msw.c:
15921         * fileio.c:
15922         * process-nt.c:
15923         * redisplay-msw.c:
15924         * sysdep.c: Removed redundant #include <windows.h>
15925
15926 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15927
15928         * frame.c (delete_frame_internal): Do not delete device when its
15929         implementation so declares.
15930         (delete_frame_internal): Set device selected frame to nil when
15931         last frame goes away.
15932
15933         * device-msw.c (msprinter_device_system_metrics): Implemented.
15934         (mswindows_device_system_metrics): Added 'device-dpi property.
15935
15936         * device.c: (Fdevice_printer_p): Added.
15937         Added 'offset-workspace device metric.
15938
15939         * console.h (device_metrics): Declared DM_offset_workspace.
15940
15941 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15942
15943         * fileio.c (Ffile_truename): Remove pointless and confusing
15944         initialization of elen.
15945
15946         * glyphs-widget.c: Compiler warning fixes.
15947
15948 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15949
15950         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15951         instead of a Lisp_Object as argument to make it consistent with
15952         the other LIVE_P macros.
15953         (CHECK_LIVE_PROCESS): New macro.
15954
15955         * process.c: Declare Qprocess_live_p.
15956         (Fprocess_live_p): New function.
15957         (create_process): Use PROCESS_LIVE_P.
15958         (read_process_output): Ditto.
15959         (set_process_filter): Ditto.
15960         (Fdelete_process): Ditto.
15961         (kill_buffer_processes): Ditto
15962         (process_send_signal): Use CHECK_LIVE_PROCESS.
15963         (Fprocess_input_coding_system): Check whether process is still
15964         alive (fix PR#1061).
15965         (Fprocess_output_coding_system): Ditto.
15966         (Fprocess_coding_system): Ditto.
15967         (Fset_process_input_coding_system): Ditto.
15968         (Fset_process_output_coding_system): Ditto.
15969
15970 2000-01-23  Andy Piper  <andy@xemacs.org>
15971
15972         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15973         layout and widget.
15974
15975         * glyphs.c (mark_image_instance): take into account changed
15976         image_instance format.
15977         (image_instance_equal): ditto.
15978         (image_instance_hash): ditto.
15979
15980         * glyphs-widget.c (widget_instantiate): Incorporate layout
15981         instantiation here. Delay layout of the layout until later.
15982         (layout_instantiate): deleted.
15983         (layout_query_geometry): new function. get the geometry of a
15984         layout.
15985         (layout_layout): layout a layout dynamically.
15986         (image_instantiator_widget): New function - splitting up
15987         image_instantiator_format_create_glyphs_widget for netwinder
15988         compilation.
15989         (image_instantiator_buttons):
15990         (image_instantiator_edit_fields):
15991         (image_instantiator_combo_box):
15992         (image_instantiator_scrollbar):
15993         (image_instantiator_progress_guage):
15994         (image_instantiator_tree_view):
15995         (image_instantiator_tab_control):
15996         (image_instantiator_labels):
15997         (image_instantiator_layout): ditto.
15998         (image_instantiator_format_create_glyphs_widget): Call preceding
15999         functions.
16000
16001 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16002
16003         * process.c (Fset_process_coding_system):
16004         * device-x.c (Fx_keysym_hash_table):
16005         Docstring fixes.
16006
16007         * lstream.c (Lstream_write): Return documented value, not 0.
16008
16009         * fileio.c (directory_file_name):
16010         (Fsubstitute_in_file_name):
16011         (Fsubstitute_insert_file_contents_internal):
16012         (Fwrite_region_internal):
16013         * emacs.c:
16014         * sysdep.c:
16015         * getloadavg.c:
16016         * systty.h:
16017         Remove vestigial APOLLO-conditional code.
16018
16019 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16020
16021         * getpagesize.h: Add guard macros.
16022         * libsst.h: Add guard macros.
16023         * libst.h: Add guard macros.
16024         * line-number.h: Add guard macros.
16025         * ndir.h: Add guard macros.
16026         * sysfloat.h: Add guard macros.
16027         * sysfile.h: Add guard macros.
16028         * sysproc.h: Add guard macros.
16029         * syswait.h: Add guard macros.
16030         * xintrinsic.h: Add guard macros.
16031         * xintrinsicp.h: Add guard macros.
16032         * xmmanager.h: Add guard macros.
16033         * xmmanagerp.h: Add guard macros.
16034         * xmprimitive.h: Add guard macros.
16035         * xmu.h: Add guard macros.
16036         * gpmevent.h: Add copyright statement. Add guard macros.
16037         * miscplay.h: Add guard macros.
16038         * *.h: Use consistent C-standards-approved guard macro names.
16039
16040         * opaque.c (make_opaque): Switch parameter order.
16041         * opaque.h (make_opaque): Switch parameter order.
16042         Update all callers.
16043         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16044
16045         * config.h.in (type_checking_assert): Added.
16046         (bufpos_checking_assert): Added.
16047
16048 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16049
16050         * alloc.c: Harmless pdump changes.
16051         - Use countof().
16052         - spell alignment correctly.
16053         * sysdep.c: Use countof()
16054
16055 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16056
16057         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16058         initially_selected_for_input() console method, default to 0.
16059         (semi_canonicalize_console_connection): Try to delegate to
16060         canonicalize_console_connection if no such console method.
16061         (canonicalize_console_connection): Vice versa.
16062         (print_console): Do not print nil connection.
16063
16064         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16065         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16066         (XDEVIMPF_FRAMELESS_OK): Added.
16067         (CONSOLE_INHERITS_METHOD): Added.
16068
16069         * console-msw.c (mswindows_canonicalize_console_connection):
16070         Added.
16071         (mswindows_canonicalize_device_connection): Added.
16072
16073         * console-msw.h (struct msprinter_device): Added this struct and
16074         accessor macros.
16075         (mswindows_device): Made fontlist a lisp object.
16076
16077         * device.c (semi_canonicalize_device_connection):  Try to delegate
16078         to canonicalize_device_connection if no such console method.
16079         (canonicalize_device_connection): Vice versa.
16080         (print_device): Do not print nil connection.
16081
16082         * device-msw.c (mswindows_init_device): Call InitCommonControls
16083         when have widgets.
16084         (mswindows_delete_device): Removed fontlist deallocation.
16085         (mswindows_mark_device): Added.
16086
16087         * events.c (event_equal): Added abort() at unreached code.
16088         (event_hash): Ditto.
16089
16090         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16091         fallback tags of Windows devices.
16092
16093         * general.c (syms_of_general): Initialized Qmsprinter.
16094
16095         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16096         of fallback tags of Windows devices.
16097
16098         * lisp.h: Declared Qmsprinter.
16099
16100         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16101         of strings.
16102         (mswindows_list_fonts): Ditto.
16103         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16104         that it can be used by both mswindows and msprinter devices.
16105         (initialize_font_instance): Added.
16106         (mswindows_initialize_font_instance): Use it.
16107         (msprinter_initialize_font_instance): Added.
16108
16109         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16110         and implementation flags check.
16111         (redisplay_without_hooks): Changed the call to the above.
16112         (Fredraw_device): Ditto.
16113         (Fredisplay_device): Ditto.
16114
16115         * redisplay-msw.c (get_frame_dc): Implemented.
16116         (get_frame_compdc): Implemented.
16117         (many functions): Use the two functions above to get device
16118         contexts, ether for a window or a printer.
16119
16120 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16121
16122         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16123         initialization here.
16124         (init_symbols_once_early): Call it.
16125         * emacs.c (main_1): Call it.
16126         * symsinit.h: Declare it.
16127
16128 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16129
16130         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16131         Lisp_Object.
16132         (pdump_backtrace): Ditto.
16133         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16134         (pdump_get_entry): Abort if trying to register a null pointer.
16135         (pdump_dump_data): Cleanup types when relocating.
16136         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16137         (pdump_dump_rtables): Remove bad casts.
16138         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16139         Lisp_Object instead of a EMACS_INT for the hashtable
16140         reorganization.
16141
16142 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16143
16144         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16145
16146         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16147
16148         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16149
16150         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16151
16152 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16153
16154         * faces.h (FACE_STRIKETHRU_P): Added.
16155
16156         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16157         of font variants.
16158
16159         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16160         (mswindows_set_dc_font): New function, aware of font variants,
16161         separated from mswindows_update_dc.
16162
16163         * objects-msw.h (struct mswindows_font_instance_data): Added
16164         definition.
16165
16166         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16167         cached fonts and the data structure.
16168         (mswindows_initialize_font_instance): Added creation of font data
16169         structure.
16170         (mswindows_print_font_instance): Print at least something.
16171         (mswindows_create_font_variant): Implemented.
16172         (mswindows_get_hfont): Implemented.
16173
16174 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16175
16176         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16177         prototyping problem with msvc.
16178
16179         * emacs.c (main_1): added syms_of_gui_mswindows() call
16180
16181         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16182         syms_of_gui_mswindows() function
16183
16184         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16185
16186 2000-01-18  Martin Buchholz <martin@xemacs.org>
16187
16188         * XEmacs 21.2.27 is released.
16189
16190 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16191
16192         * glyphs-eimage.c (struct tiff_error_struct):
16193         (tiff_error_func):
16194         (tiff_warning_func):
16195         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16196
16197         * unexmips.c:
16198         * unexhp9k3.c:
16199         * unexfreebsd.c:
16200         * unexec.c: Remove vestigial Lucid C code.
16201         * unexalpha.c:
16202         * unexaix.c:
16203         * termcap.c:
16204         * libsst.c: Ansify.
16205         Remove declarations of errno and strerror().
16206
16207         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16208
16209         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16210
16211 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16212
16213         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16214         Optimize.
16215
16216 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16217
16218         * md5.c:
16219         * file-coding.c:
16220         * file-coding.h:
16221         Change enum eol_type to eol_type_t.
16222
16223 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16224
16225         * gui.c (get_gui_callback): Check cons before accessing car.
16226
16227 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16228
16229         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16230         (XSETSPECIFIER_TYPE): Ditto.
16231
16232 2000-01-17  Didier Verna  <didier@xemacs.org>
16233
16234         * redisplay.c (generate_fstring_runes): compute string size in
16235         characters, not bytes.
16236
16237 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16238
16239         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16240
16241 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16242
16243         * print.c (print_error_message): Call print_prepare().
16244
16245 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16246
16247         * .dbxrc: Renamed from dbxrc.
16248
16249         * events.c (event_to_character):
16250         Use `assert (foo)' instead of `if (!foo) abort()'
16251
16252         * .gdbinit (xtype): Add documentation.
16253         * .gdbinit (check-temacs): New function.
16254         * .gdbinit (check-xemacs): New function.
16255         * dbxrc (check-xemacs): New function.
16256         * dbxrc (check-xemacs): New function.
16257
16258 2000-01-14  Andy Piper  <andy@xemacs.org>
16259
16260         * glyphs-widget.c (widget_query_geometry): Make sure that we
16261         calculate default dimensions correctly.
16262
16263 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16264
16265         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16266
16267         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16268         pdump_wire'd variable.
16269
16270         * emacs.c: (main_1): Conditionalized calls to
16271         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16272
16273 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16274
16275         * window.c (Fset_window_configuration):
16276         * sysdep.c (_start):
16277         * input-method-motif.c (res):
16278         * event-Xt.c (Xt_process_to_emacs_event):
16279         Simple compiler warning fixes.
16280
16281         * bytecode.c (funcall_compiled_function): Use the original
16282         function symbol on the backtrace list in preference to the
16283         compiled_function object in error messages.
16284
16285 2000-01-13  Andy Piper  <andy@xemacs.org>
16286
16287         * glyphs-x.c (update_widget_face): Make sure we update the widget
16288         background as well as foreground.
16289
16290 2000-01-13  Andy Piper  <andy@xemacs.org>
16291
16292         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16293         fields to subwindow.
16294         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16295         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16296         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16297         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16298
16299         * glyphs-widget.c (check_valid_tab_orientation): new function.
16300         (initialize_widget_image_instance): zero orientation and
16301         justification.
16302         (widget_instantiate): pick up orientation.
16303         (tab_control_query_geometry): return appropriate values for
16304         vertical tabs.
16305
16306         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16307         appropriate creation flags for left, right and bottom tabs.
16308
16309         * s/cygwin32.h: add tab definitions.
16310
16311 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16312
16313         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16314         frame upon hiding a subwindow.
16315         (mswindows_button_instantiate): Changed the push button style to
16316         BS_PUSHBUTTON.
16317         (mswindows_button_instantiate): Removed button BS_NOTIFY
16318         style.
16319         (mswindows_button_instantiate): Removed redundant check for
16320         a disabled gui item.
16321         (mswindows_button_instantiate): Made use of WS_TABSTOP
16322         consistent: "operable" controls (edit, button, tree, scroll) have
16323         this style, "display-only" ones (static, progress gauge) do
16324         not. This style is currently ignored by XEmacs though. Also,
16325         removed the WS_EX_CONTROLPARENT style - it is not for children,
16326         it is for their parents!
16327         (mswindows_edit_field_instantiate): Ditto.
16328         (mswindows_progress_gauge_instantiate): Ditto.
16329         (mswindows_tree_view_instantiate): Ditto.
16330         (mswindows_tab_control_instantiate): Ditto.
16331         (mswindows_scrollbar_instantiate): Ditto.
16332         (mswindows_combo_box_instantiate): Ditto.
16333         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16334         style to the "clip" window.
16335         (mswindows_button_instantiate): Removed compilation warning by
16336         equally typing terms of the ?: operator.
16337
16338 2000-01-12  Didier Verna  <didier@xemacs.org>
16339
16340         * redisplay.c (generate_fstring_runes): new parameter holding the
16341         last modeline-format extent.
16342         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16343         extent, fill the glyph block with it.
16344         (generate_fstring_runes): handle these parameters.
16345         (generate_formatted_string_db): ditto.
16346
16347         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16348         glyphs'extents in the modeline.
16349
16350 1999-01-11  Mike Woolley  <mike@bulsara.com>
16351
16352         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16353         256Mb, as a workaround for the non-starting problem many people
16354         have experienced.
16355
16356 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16357
16358         * console-tty.c (Fset_console_tty_output_coding_system):
16359         Force redrawing tty frame.
16360
16361 2000-01-10  Didier Verna  <didier@xemacs.org>
16362
16363         * redisplay.c (generate_fstring_runes): fix size computation bug.
16364
16365 2000-01-09  William M. Perry <wmperry@aventail.com>
16366
16367         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16368
16369 2000-01-09  Andy Piper  <andy@xemacs.org>
16370
16371         * glyphs-msw.c: index -> i to avoid shadows.
16372         (xbm_create_bitmap_from_data): make static.
16373         (check_valid_string_or_int): deleted.
16374         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16375
16376         * glyphs-x.c (x_update_subwindow): remove unused args.
16377
16378         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16379         back pointer - this is done in allocate_image_instance.
16380         (query_string_font): return Qnil to make the compiler happy.
16381         (unmap_subwindow): set to ~0 to make the compiler happy.
16382         (glyph_query_geometry): comment out until used.
16383         (glyph_layout): ditto.
16384
16385 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16386
16387         * insdel.c (signal_after_change): Remove extraneous unbind_to().