update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fput_char_attribute): Convert char-specs in value of
4         `{<-|->}ancient[^*]*' to characters and put reverse links.
5         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
6         for `{<-|->}ancient[^*]*'.
7
8 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * chartab.c (Fput_char_attribute): Convert char-specs in value of
11         `{<-|->}original[^*]*' to characters and put reverse links.
12         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
13         for `{<-|->}original[^*]*'.
14
15 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
18
19 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * mule-charset.c (Qsystem_char_id): New variable.
22
23         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
24         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
25
26 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * chartab.c (Fput_char_attribute): When processing a reference of
29         a character, put into the end of the reversed reference of each
30         target character.
31
32 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * chartab.c (Q_same): Deleted.
35         (Q_same_of): Deleted.
36         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
37         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
38         for `{<-|->}same'.
39         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
40
41 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
42
43         * chartab.c (Q_vulgar): Deleted.
44         (Q_vulgar_of): Deleted.
45         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
46         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
47         for `{<-|->}vulgar'.
48         (syms_of_chartab): Don't define `{<-|->}vulgar'.
49
50 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * chartab.c (Fput_char_attribute): Convert char-specs in value of
53         `{<-|->}wrong[^*]*' to characters and put reverse links.
54         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
55         for `{<-|->}wrong[^*]*'.
56
57 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * chartab.c (Q_vulgar): New variable.
60         (Q_vulgar_of): New variable.
61         (Fput_char_attribute): Convert char-specs in value of
62         `{->|<-}vulgar' to characters and put reverse links.
63         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
64         for `{->|<-}vulgar'.
65         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
66
67 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * text-coding.c (decode_add_er_char): Must to quote prefix string
70         as regexp.
71
72 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
73
74         * mule-charset.c (put_char_ccs_code_point): Store characters of
75         =ucs whose code_points >= 0xF0000.
76
77 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
80         CHISE.
81         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
82         CHISE.
83         (complex_vars_of_mule_charset): Add new coded-charset
84         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
85         builtin characters over 0xEFFFF.
86
87         * chartab.c (syms_of_chartab): Don't define symbol
88         `system-char-id' in every case.
89
90         * char-ucs.h (Qsystem_char_id): New extern variable.
91         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
92
93 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * text-coding.c (char_encode_utf8): Try to use entity-references
96         for U-000F0000 ...  U-0010FFFF.
97
98 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * text-coding.c (ER_BUF_SIZE): New macro.
101         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
102         `er_buf'.
103         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
104         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
105
106 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * chartab.c (find_char_feature_in_family): New function.
109         (Fchar_feature): Use `find_char_feature_in_family' with
110         `->identical', `<-subsumptive' and `<-denotational'.
111
112 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * text-coding.c (char_encode_as_entity_reference): Allow prefix
115         within 8 characters; fix infinite loop.
116
117 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * chartab.c (Q_same): New variable.
120         (Q_same_of): New variable.
121         (Fput_char_attribute): Convert char-specs in value of
122         `{->|<-}same' to characters and put reverse links.
123         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
124         for `{->|<-}same'.
125         (syms_of_chartab): Add new symbols `{->|<-}same'.
126
127 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * chartab.c (Q_component): New variable.
130         (Q_component_of): Likewise.
131         (Fput_char_attribute): Convert char-specs in value of
132         `{->|<-}ideographic-component-forms' to characters and put reverse
133         links.
134         (syms_of_chartab): Add new symbols
135         `{->|<-}ideographic-component-forms'.
136
137 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
138
139         * chartab.c (Q_identical): New variable.
140         (Q_identical_from): New variable.
141         (Fchar_feature): Regard `->identical' as a feature to find
142         ancestors.
143         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
144         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
145         for `{->|<-}identical'.
146         (syms_of_chartab): Add new symbols `{->|<-}identical'.
147
148 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * char-ucs.h (encode_char_2): New inline function.
151         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
152
153 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
154
155         * chartab.c (Fput_char_attribute): Convert char-specs to
156         characters in value of `ideographic-structure'.
157         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
158         for `{<-|->}simplified(@...)'.
159         (Fdefine_char): bTry to use predefined character's id.
160
161 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * fns.c (simplify_char_spec): Try to convert builtin chars to
164         defined chars.
165
166 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (Fput_char_attribute): Convert char-specs in value of
169         `<-simplified[^*]*' to characters and put reverse links.
170
171 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * chartab.c (Q_subsumptive): Renamed from Q_unified.
174         (Q_subsumptive_from): Renamed from Q_unified_from.
175         (Fchar_feature): Use `Q_subsumptive_from' instead of
176         `Q_unified_from'.
177         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
178         `Q_unified'.
179         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
180         `<-unified' to `<-subsumptive'.
181
182 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
185         inheritance itself; fix typo; stop recursive search if cyclic
186         inheritance is found.
187
188 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * chartab.c (Q_denotational): New variable.
191         (Q_denotational_from): New variable.
192         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
193         (put_char_attribute): New function.
194         (Fput_char_attribute): Use `put_char_attribute'; regard
195         `->denotational' and `<-denotational' as same as `->unified' and
196         `<-unified'.
197         (syms_of_chartab): Add new symbols `->denotational' and
198         `<-denotational'.
199
200 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
203         `Fget_char_attribute'.
204         (Fchar_variants): Likewise.
205         (get_char_table): Likewise.
206         (Fchar_feature): New function.
207         (put_char_composition): Use `Fchar_feature' instead of
208         `Fget_char_attribute'.
209         (Fput_char_attribute): Likewise; don't put the target character
210         into its `->unified' value.
211         (syms_of_chartab): Add new builtin function `char-feature'.
212
213 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
216         `Fget_char_attribute'.
217         (char_encode_utf8): Likewise.
218
219         * chartab.h: Add an EXFUN for `Fchar_feature'.
220
221 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
222
223         * chartab.c (Vnext_defined_char_id): New variable.
224         (Fput_char_attribute): Accept characters in `->unified'.
225         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
226         new characters which are not related with builtin char-id ranges.
227         (vars_of_chartab): Add new variable `next-defined-char-id'.
228
229 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * chartab.c (Q_unified): New variable.
232         (Q_unified_from): New variable.
233         (Fput_char_attribute): Add code for `->unified'.
234         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
235         XEmacs CHISE.
236
237 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
238
239         * mule-charset.c (decode_ccs_conversion): New function.
240         (decode_defined_char): Use `decode_ccs_conversion'.
241         (decode_builtin_char): Likewise.
242
243 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * char-ucs.h: Change some charset-ids of private coded-charsets.
246
247 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
250         (char_encode_as_entity_reference): Likewise.
251         (decode_coding_big5): Modify for `decode_defined_char' and
252         `DECODE_CHAR'.
253         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
254         avoid compiler warning.
255         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
256
257         * mule-charset.c (decode_defined_char): Add new argument
258         `without_inheritance'.
259         (Fdecode_char): Add new optional argument `without_inheritance'.
260         (Fdecode_builtin_char): Modify for `Fdecode_char'.
261
262         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
263         (simplify_char_spec): Likewise.
264
265         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
266         setting.
267
268         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
269         (map_char_table): Likewise.
270         (Fdefine_char): Use `Fdecode_char' without inheritance.
271         (Ffind_char): Modify for `Fdecode_char'.
272
273         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
274
275         * char-ucs.h (decode_defined_char): Add new argument
276         `without_inheritance'.
277         (DECODE_CHAR): Likewise.
278         (MAKE_CHAR): Modify for `DECODE_CHAR'.
279
280 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * chartab.c (Vchise_system_db_directory): New variable.
283         (vars_of_chartab): Add new variable `chise-system-db-directory'.
284
285 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c: EXFUN `Fmount_char_attribute_table'.
288         (print_chartab_range): Don't define when `UTF2000' is defined.
289         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
290         `CHISE_DS_open'.
291
292 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
295         and optional argument `rehash' is specified, call
296         `open_chise_data_source_maybe' before
297         `chise_ds_foreach_char_feature_name' is called.
298
299 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (char_attribute_list_reset_map_func): New function
302         when HAVE_LIBCHISE is defined.
303         (Fchar_attribute_list): Add new optional argument `rehash' when
304         HAVE_LIBCHISE is defined.
305         (open_chise_data_source_maybe): Use "chise-db" instead of
306         "char-db".
307         (char_attribute_system_db_file): Likewise.
308         (Fload_char_attribute_table): Use
309         `chise_feature_foreach_char_with_value' instead of
310         `chise_char_feature_value_iterate'.
311
312 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * chartab.c (Vchise_db_directory): New variable.
315         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
316
317 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
320         instead of HAVE_CHISE to specify using with libchise.
321
322         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
323
324         * chartab.h: Don't use HAVE_CHISE_CLIENT.
325
326         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
327         defined or HAVE_LIBCHISE_LIBCHISE is defined.
328         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
329         is defined.
330         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
331         HAVE_CHISE to specify using with libchise.
332         (syms_of_chartab): Don't define symbol `system-char-id' when
333         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
334
335 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
338         specify CHISE DB support.
339         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
340         of `char_attribute_system_db_file' to check feature DB file.
341
342         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
343         HAVE_CHISE_CLIENT to specify CHISE DB support.
344
345         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
346         specify CHISE DB support.
347         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
348         not defined.
349         (Freset_char_attribute_table): Use `chise_feature_setup_db'
350         instead of `char_attribute_system_db_file' to check feature DB
351         file.
352
353 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
356         `HAVE_CHISE_CLIENT'.
357
358 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
361         (Fsave_charset_mapping_table): Don't use
362         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
363
364         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
365         (HAVE_LIBCHISE): New macro.
366
367         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
368
369         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
370         (Fsave_char_attribute_table): Don't use
371         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
372
373 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
376         defined.
377         (save_uint16_byte_table): Likewise.
378         (save_byte_table): Likewise.
379         (char_table_get_db): Use `chise_ds_load_char_feature_value'
380         instead of `chise_char_load_feature_value'.
381         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
382
383 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * chartab.h (struct Lisp_Char_Table): Delete member
386         `feature_table' if CHISE is defined.
387
388         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
389         (Fcopy_char_table): Likewise.
390         (char_table_open_db_maybe): Likewise.
391         (char_table_close_db_maybe): Likewise.
392         (char_table_get_db): Likewise.
393         (Fmount_char_attribute_table): Likewise.
394         (Fload_char_attribute_table): Likewise.
395
396 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * mule-charset.c (load_char_decoding_entry_maybe): Use
399         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
400         `chise_ccs_decode'.
401
402 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
403
404         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
405         instead of `chise_open_data_source'.
406         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
407         `chise_ds_close'.
408
409 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
410
411         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
412         instead of `chise_ds_open_feature_table'.
413         (char_table_close_db_maybe): Don't use `chise_ft_close'.
414
415 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
416
417         * mule-charset.c (Fsave_charset_mapping_table): Use
418         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
419         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
420         `chise_ccs_sync' instead of `chise_ccst_close'.
421         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
422
423         * chartab.c (open_chise_data_source_maybe): Modify for
424         `chise_open_data_source'.
425         (char_table_open_db_maybe): Modify for
426         `chise_ds_open_feature_table'.
427
428 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
429
430         * mule-charset.c (load_char_decoding_entry_maybe): Use
431         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
432         `chise_ccst_close'.
433
434 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
435
436         * mule-charset.c (Fsave_charset_mapping_table): Use
437         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
438         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
439         `chise_dt_put_char' and `chise_dt_close'.
440         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
441         `chise_ccs_decode' and `chise_ccst_close' instead of
442         `chise_ds_open_decoding_table', `chise_dt_get_char' and
443         `chise_dt_close'.
444
445         * chartab.c (char_table_get_db): Use
446         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
447         (load_char_attribute_table_map_func): Modify for
448         `chise_char_feature_value_iterate'.
449         (Fload_char_attribute_table): Use
450         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
451
452 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
455
456 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
457
458         * chartab.c (put_char_table): Modify for inherited coded-charsets
459         in XEmacs CHISE.
460
461 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
462
463         * chartab.c (Fput_char_table_map_function): Fixed.
464         (word_boundary_p): Don't check charset in XEmacs CHISE.
465
466 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
467
468         * mule-charset.c (Fsave_charset_mapping_table): Use
469         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
470         instead of `chise_open_decoding_table'; refer
471         `default_chise_data_source'; use `chise_dt_close' instead of
472         `chise_close_decoding_table'.
473         (load_char_decoding_entry_maybe): Likewise.
474
475         * chartab.c (default_chise_data_source): New variable when `CHISE'
476         is defined.
477         (Fcopy_char_table): `ct->ds' is deleted.
478         (open_chise_data_source_maybe): New function.
479         (Fclose_char_data_source): New function.
480         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
481         use `chise_ds_open_feature_table' instead of
482         `chise_open_feature_table'.
483         (char_table_close_db_maybe): Use `chise_ft_close' instead of
484         `chise_close_feature_table'; `cit->ds' is deleted.
485         (syms_of_chartab): Add new builtin function
486         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
487
488         * chartab.h (default_chise_data_source): New extern variable.
489         (open_chise_data_source_maybe): New prototype.
490         (struct Lisp_Char_Table): Delete `ds'.
491
492 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
493
494         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
495         `CHISE' is defined.
496
497 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
498
499         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
500         not defined; add code for non-libchise setting.
501         (char_table_close_db_maybe): Likewise.
502         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
503         defined.
504         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
505         even if `CHISE' is not defined.
506         (Freset_char_attribute_table): Likewise.
507         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
508         `char_table_close_db_maybe' even if `CHISE' is not defined; use
509         `char_table_get_db'.
510         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
511         `char_table_close_db_maybe' even if `CHISE' is not defined.
512
513 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
514
515         * chartab.c (char_table_open_db_maybe): New function.
516         (char_table_close_db_maybe): New function.
517         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
518         (Freset_char_attribute_table): Likewise.
519         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
520         `char_table_close_db_maybe'.
521         (Fload_char_attribute_table): Likewise.
522
523 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
524
525         * chartab.c: Don't include <chise.h> because it is included in
526         chartab.h.
527         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
528         defined.
529         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
530         `CHISE' is defined.
531         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
532         `CHISE' is defined.
533         (Fclose_char_attribute_table): Close `ct->feature_table' and
534         `ct->ds' when `CHISE' is defined.
535         (Freset_char_attribute_table): Likewise.
536         (load_char_attribute_maybe): Use `cit->ds' and
537         `cit->feature_table' when `CHISE' is defined.
538         (Fload_char_attribute_table): Likewise.
539
540         * chartab.h: Include <chise.h> when `CHISE' is defined.
541         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
542         when `CHISE' is defined.
543
544 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
545
546         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
547         is defined.
548         (char_table_description): Likewise.
549         (Fmake_char_table): Likewise.
550         (Fcopy_char_table): Likewise.
551         (Fmount_char_attribute_table): Likewise.
552         (Fclose_char_attribute_table): Likewise.
553         (Freset_char_attribute_table): Likewise.
554         (load_char_attribute_maybe): Likewise.
555         (Fload_char_attribute_table): Likewise.
556
557         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
558         defined.
559
560 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
561
562         * chartab.c (load_char_attribute_table_map_func): New function
563         when CHISE is defined.
564         (Qload_char_attribute_table_map_function): Don't define when CHISE
565         is defined.
566         (Fload_char_attribute_table_map_function): Likewise.
567         (Fload_char_attribute_table): Use libchise when `CHISE' is
568         defined.
569         (syms_of_chartab): Don't define
570         `load-char-attribute-table-map-function' when CHISE is defined.
571
572 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
573
574         * chartab.c: Include <chise.h> when `CHISE' is defined.
575         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
576
577 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * mule-charset.c (charset_code_point): Fix problem when searching
580         in mother CCS fails with `defined_only' mode.
581
582 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
585         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
586         (put_char_composition): Likewise.
587         (Fput_char_attribute): Likewise.
588         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
589
590 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
591
592         * chartab.c (Q_ucs): Deleted.
593         (Fput_char_attribute): Don't refer `->ucs'.
594         (Fdefine_char): Likewise.
595         (Ffind_char): Likewise.
596         (syms_of_chartab): Delete `->ucs'.
597
598 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
599
600         * mule-charset.c (Qmap_cns11643_2): Renamed from
601         `Qchinese_cns11643_2'.
602         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
603         `chinese-cns11643-2'.
604         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
605         `=cns11643-2'.
606
607 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * mule-charset.c (Qmap_cns11643_1): Renamed from
610         `Qchinese_cns11643_1'.
611         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
612         `chinese-cns11643-1'.
613         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
614         `=cns11643-1'.
615
616 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
617
618         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
619         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
620         `chinese-gb12345'.
621         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
622         `=gb12345'.
623
624 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
625
626         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
627         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
628         `chinese-gb2312'.
629         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
630         `=gb2312'.
631
632 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
633
634         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
635         (syms_of_mule_charset): Add new symbol `=big5' instead of
636         `chinese-big5'.
637         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
638
639 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
640
641         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
642         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
643         `korean-ksc5601'.
644         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
645         `=ks-x1001'.
646
647 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
648
649         * mule-charset.c (Qmap_jis_x0212): Renamed from
650         `Qjapanese_jisx0212'.
651         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
652         `japanese-jisx0212'.
653         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
654         `=jis-x0212'.
655
656 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
659         `Qjapanese_jisx0208'.
660         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
661         of `japanese-jisx0208'.
662         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
663         `=jis-x0208-1983'.
664
665 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
666
667         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
668         `Qjapanese_jisx0208_1978'.
669         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
670         of `japanese-jisx0208-1978'.
671         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
672         `=jis-x0208-1978'.
673
674 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
675
676         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
677         only for XEmacs CHISE.
678
679 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
680
681         * char-ucs.h: Compact non-ISO-IR charset-ids.
682         (LEADING_BYTE_UCS): Changed to -177.
683         (LEADING_BYTE_CONTROL_1): Changed to -77.
684         (LEADING_BYTE_UCS_BMP): Changed to -176.
685         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
686
687 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule-charset.c (Qiso_ir): New variable.
690         (Fmake_charset): Recognise new property `iso-ir'.
691         (syms_of_mule_charset): Add new symbol `iso-ir'.
692
693 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
696         n to -n; charset-id of non ISO-IR sets are changed to positive
697         numbers.
698
699 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
700
701         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
702         for &MCS-XXXXXXXX; values.
703
704 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
705
706         * mule.c (Vxemacs_chise_version): Renamed from
707         `Vutf_2000_version'.
708         (vars_of_mule): Add new variable `xemacs-chise-version'; define
709         `utf-2000-version' as an alias for `xemacs-chise-version'.
710
711 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
712
713         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
714         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
715         defined.
716
717         * config.h.in (CHISE): New macro.
718
719 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
720
721         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
722         of `ucs'.
723         (Qmap_ucs): New variable.
724         (syms_of_mule_charset): Add new symbol `=ucs'.
725         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
726
727         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
728         (simplify_char_spec): Likewise.
729
730         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
731
732         * char-ucs.h (Qmap_ucs): New extern variable.
733
734 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
737         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
738         don't define it when UTF2000 is not defined.
739         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
740         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
741         when UTF2000 is not defined.
742         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
743         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
744
745 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
748
749         * mule-charset.c (Vcharset_ucs_gb): Deleted.
750         (Qucs_gb): Deleted.
751         (syms_of_mule_charset): Delete `ucs-gb'.
752         (complex_vars_of_mule_charset): Likewise.
753
754 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
757
758         * mule-charset.c (Vcharset_ucs_cns): Deleted.
759         (Qucs_cns): Deleted.
760         (syms_of_mule_charset): Delete `ucs-cns'.
761         (complex_vars_of_mule_charset): Likewise.
762
763 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
764
765         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
766
767         * mule-charset.c (Vcharset_ucs_jis): Deleted.
768         (Qucs_jis): Deleted.
769         (syms_of_mule_charset): Delete `ucs-jis'.
770         (complex_vars_of_mule_charset): Likewise.
771
772 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
775
776         * mule-charset.c (Vcharset_ucs_ks): Deleted.
777         (Qucs_ks): Deleted.
778         (syms_of_mule_charset): Delete `ucs-ks'.
779         (complex_vars_of_mule_charset): Likewise.
780
781 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
782
783         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
784         (Qideograph_daikanwa_2): Deleted.
785         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
786         (complex_vars_of_mule_charset): Likewise.
787
788         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
789         (LEADING_BYTE_DAIKANWA_1): Deleted.
790         (LEADING_BYTE_DAIKANWA_2): Deleted.
791         (MIN_CHAR_DAIKANWA): Deleted.
792         (MAX_CHAR_DAIKANWA): Deleted.
793
794 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
795
796         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
797         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
798         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
799
800         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
801         (Vcharset_ideograph_daikanwa): Deleted.
802         (Qideograph_hanziku_{1..12}): Deleted.
803         (Qideograph_daikanwa): Deleted.
804         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
805         Vcharset_ideograph_daikanwa.
806         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
807         `ideograph-hanziku-{1..12}'.
808         (complex_vars_of_mule_charset): Likewise.
809
810 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
811
812         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
813
814         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
815         (Qideograph_gt_pj_{1..11}): Deleted.
816         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
817         (complex_vars_of_mule_charset): Likewise.
818
819 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
820
821         * mule-charset.c (Vcharset_ucs_big5): Deleted.
822         (Vcharset_ideograph_gt): Deleted.
823         (Qucs_big5): Deleted.
824         (Qideograph_gt): Deleted.
825         (syms_of_mule_charset): Delete symbol `ucs-big5' and
826         `ideograph-gt'.
827         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
828         and `ideograph-gt'.
829
830         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
831         (LEADING_BYTE_GT): Deleted.
832         (MIN_CHAR_GT): Deleted.
833         (MAX_CHAR_GT): Deleted.
834
835 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
838
839 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
840
841         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
842         (save_uint16_byte_table): Likewise.
843         (save_byte_table): Likewise; convert values by it.
844         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
845         for `ideographic-structure'.
846         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
847         as the filter for `ideographic-structure'.
848
849 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
850
851         * chartab.c (put_char_composition): New function.
852         (Fput_char_attribute): Use `put_char_composition'; use
853         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
854
855         * fns.c (simplify_char_spec): New function.
856         (char_ref_simplify_spec): New function.
857         (Fchar_refs_simplify_char_specs): New function.
858         (syms_of_fns): Add new builtin function
859         `char-refs-simplify-char-specs'.
860
861 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
862
863         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
864         (Qideograph_cbeta): Deleted.
865         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
866         (complex_vars_of_mule_charset): Likewise.
867
868         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
869         (MIN_CHAR_CBETA): Comment out.
870         (MAX_CHAR_CBETA): Likewise.
871
872 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
873
874         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
875         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
876         CHISE client feature.
877
878 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
879
880         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
881
882 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
883
884         * mule-charset.c (charset_lookup_description_1): Use
885         `NUM_LEADING_BYTES' in UTF-2000.
886
887 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
888
889         * char-ucs.h (GC_CHARSETP): Deleted.
890
891 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * char-ucs.h (MAX_CHAR_GT): Updated.
894
895 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
896
897         * text-coding.c: Sync with XEmacs 21.4.10.
898
899 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * mule-charset.c (Vcharset_china3_jef): Deleted.
902         (Qchina3_jef): Deleted.
903         (syms_of_mule_charset): Don't define `china3-jef'.
904         (complex_vars_of_mule_charset): Likewise.
905
906         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
907         (MIN_CHAR_CHINA3_JEF): Comment out.
908         (MAX_CHAR_CHINA3_JEF): Comment out.
909
910 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * mule-charset.c (Vcharset_ucs_gb): New variable.
913         (Qucs_gb): New variable.
914         (syms_of_mule_charset): Add new symbol `ucs-gb'.
915         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
916
917         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
918
919 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * mule-charset.c (charset_code_point): if a coded-charset has a
922         final-byte, don't inherit the builtin range of the mother CCS.
923
924 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
925
926         * mule-charset.c (charset_code_point): Fix problem about
927         inheritance.
928
929 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
930
931         * mule-charset.c (decode_builtin_char): Reorganized.
932
933 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * text-coding.c (char_encode_as_entity_reference): Modify for
936         `charset_code_point'.
937         (char_encode_shift_jis): Likewise.
938         (char_encode_big5): Likewise.
939         (char_encode_utf8): Likewise.
940         (char_encode_iso2022): Likewise.
941
942         * mule-charset.c (charset_code_point): Add new argument
943         `defined_only'.
944         (Fencode_char): Add new optional argument `defined_only'.
945
946         * chartab.c (put_char_table): Modify for `charset_code_point'.
947
948         * char-ucs.h (charset_code_point): Add new argument
949         `defined_only'.
950         (encode_char_1): Modify for `charset_code_point'.
951
952 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
953
954         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
955         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
956
957 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
960         (Qjis_x0208): Likewise.
961         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
962         XCHARSET_FINAL(charset).
963         (charset_code_point): Modify condition for final-byte based
964         builtin-chars.
965         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
966         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
967         in UTF-2000; specify `=jis-x0208' as the mother of
968         `japanese-jisx0208-1978', `japanese-jisx0208' and
969         `japanese-jisx0208-1990' in UTF-2000.
970
971 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
972
973         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
974
975 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * text-coding.c (decode_coding_utf16): Support UTF-16.
978         (char_encode_utf16): Fixed.
979
980 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
981
982         * text-coding.c (Qutf16): New variable in MULE.
983         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
984         (Fcoding_system_type): Add `utf-16' in MULE.
985         (struct detection_state): Add a structure for utf16 in MULE.
986         (detect_coding_type): Setup st->utf16.mask in MULE.
987         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
988         MULE.
989         (reset_encoding_stream): Use `char_encode_utf16' and
990         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
991         (detect_coding_utf16): New function [incomplete].
992         (decode_coding_utf16): New function [support only UCS-2].
993         (char_encode_utf16): New function.
994         (char_finish_utf16): New function.
995         (syms_of_file_coding): Add new symbol `utf-16'; setup
996         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
997
998         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
999         UTF-2000.
1000         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1001         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1002
1003 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1004
1005         * chartab.c (put_char_table): When a charset is specified as a
1006         range in UTF-2000, don't support builtin characters.
1007
1008 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1009
1010         * mule-charset.c (decode_defined_char): Don't refer external
1011         database if Qunbound or Qnil are found.
1012         (Fsave_charset_mapping_table): Don't define it if
1013         HAVE_CHISE_CLIENT is not defined.
1014         (Freset_charset_mapping_table): New function.
1015         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1016         found in external database.
1017         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1018         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1019         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1020
1021 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1022
1023         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1024         not.
1025
1026 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1029         Q_lowercase, Q_uppercase in UTF-2000.
1030
1031         * chartab.c (get_char_table): Add special code for the standard
1032         case table to use character attribute `->downcase' and
1033         `->uppercase' for case operations in UTF-2000.
1034
1035         * casetab.c (Qflippedcase): New variable in UTF-2000.
1036         (Q_lowercase): Likewise.
1037         (Q_uppercase): Likewise.
1038         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1039         and `->uppercase' in UTF-2000.
1040         (complex_vars_of_casetab): Assign attribute name `downcase' to
1041         downcase and CANON table of Vstandard_case_table in UTF-2000;
1042         assign attribute name `flippedcase' to upcase and EQV table of
1043         Vstandard_case_table in UTF-2000.
1044
1045 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046
1047         * text-coding.c (decode_add_er_char): Support isolated-chars.
1048         (char_encode_as_entity_reference): Likewise.
1049
1050 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1051
1052         * emacs.c (Vutf_2000_lisp_directory): New variable.
1053         (Vconfigure_utf_2000_lisp_directory): Likewise.
1054         (complex_vars_of_emacs): Add new variable
1055         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1056
1057 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * char-ucs.h (DECODE_CHAR): Delete special code for
1060         `chinese-big5-1' and `chinese-big5-2'.
1061
1062         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1063         (Qbig5_2): Likewise.
1064         (decode_defined_char): Support CONVERSION_BIG5_1 and
1065         CONVERSION_BIG5_2.
1066         (decode_builtin_char): Likewise.
1067         (charset_code_point): Likewise.
1068         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1069         'conversion in UTF-2000.
1070         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1071         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1072         `chinese-big5-2' as children of `chinese-big5'.
1073
1074         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1075         (CONVERSION_BIG5_2): New macro.
1076
1077 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1078
1079         * text-coding.c (char_encode_big5): Support entity-reference.
1080
1081 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1082
1083         * text-coding.c (char_encode_as_entity_reference): New function.
1084         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1085
1086 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1087
1088         * text-coding.c (decode_coding_big5): Support entity-reference
1089         decoding feature.
1090
1091 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * text-coding.c (allocate_coding_system): Initialize initial
1094         charsets for CODESYS_UTF8.
1095         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1096         charset-g2 for CODESYS_UTF8.
1097         (decode_coding_utf8): Use charset-g0.
1098         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1099         to force variants to map to UCS.
1100
1101 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * text-coding.c (Qutf_8_mcs): New variable.
1104         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1105         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1106         instead of `utf-8' in UTF-2000.
1107
1108 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1109
1110         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1111         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1112         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1113         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1114         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1115         CONVERSION_96x96x96x96 are introduced.
1116         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1117         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1118         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1119
1120         * char-ucs.h (CONVERSION_94): New macro.
1121         (CONVERSION_96): New macro.
1122         (CONVERSION_94x94): New macro.
1123         (CONVERSION_96x96): New macro.
1124         (CONVERSION_94x94x94): New macro.
1125         (CONVERSION_96x96x96): New macro.
1126         (CONVERSION_94x94x94x60): New macro.
1127         (CONVERSION_94x94x94x94): New macro.
1128         (CONVERSION_96x96x96x96): New macro.
1129
1130 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1131
1132         * chartab.c (Vcharacter_variant_table): Deleted.
1133         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1134         of `Vcharacter_variant_table'.
1135         (Fput_char_attribute): Likewise.
1136         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1137         (complex_vars_of_chartab): Likewise.
1138
1139 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1140
1141         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1142
1143         * fns.c (Qideographic_structure): New variable.
1144         (Qkeyword_char): New variable.
1145         (ids_format_unit): New function.
1146         (Fideographic_structure_to_ids): New function.
1147         (syms_of_fns): Add new symbols `ideographic-structure' and
1148         `:char'; add new builtin function `ideographic-structure-to-ids'.
1149
1150         * data.c (Fchar_ref_p): New function.
1151         (syms_of_data): Add new builtin function `char-ref-p'.
1152
1153         * chartab.h: Add an EXFUN for `Ffind_char'.
1154
1155 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1156
1157         * text-coding.c (Vcharacter_composition_table): Deleted.
1158         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1159         in every UTF-2000.
1160
1161         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1162         UTF-2000.
1163         (Vcharacter_composition_table): Deleted.
1164         (Fget_composite_char): Use the implementation for external-DB
1165         support in every UTF-2000.
1166         (Fput_char_attribute): Likewise.
1167         (char_attribute_system_db_file): Don't define if external-DB
1168         feature is not available.
1169         (Fsave_char_attribute_table): Likewise.
1170         (Fmount_char_attribute_table): Likewise.
1171         (Fclose_char_attribute_table): Likewise.
1172         (Freset_char_attribute_table): Likewise.
1173         (Fload_char_attribute_table): Likewise.
1174         (syms_of_chartab): Don't define `save-char-attribute-table',
1175         `mount-char-attribute-table', `reset-char-attribute-table',
1176         `close-char-attribute-table' and `load-char-attribute-table' if
1177         external-DB feature is not available.
1178         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1179
1180 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1181
1182         * text-coding.c (Qcomposition): Add extern if external-DB feature
1183         is supported.
1184         (Vcharacter_composition_table): Don't add extern if external-DB
1185         feature is supported.
1186         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1187         character composition rule if external-DB feature is supported.
1188
1189         * chartab.c (Vcharacter_composition_table): Don't define if
1190         external-DB feature is supported.
1191         (Qcomposition): New variable.
1192         (Fget_composite_char): New implementation for external-DB support.
1193         (Fput_char_attribute): Use `composition' property of each
1194         character instead of `Vcharacter_composition_table' to store
1195         character-composition rules if external-DB feature is supported.
1196         (syms_of_chartab): Add new symbol `composition'.
1197         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1198         external-DB feature is supported.
1199
1200 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1201
1202         * chartab.c (Vchar_db_stingy_mode): New variable.
1203         (load_char_attribute_maybe): Close database if
1204         Vchar_db_stingy_mode is not NIL.
1205         (Fload_char_attribute_table_map_function): Use
1206         `get_char_id_table_0' instead of `get_char_id_table'.
1207         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1208
1209         * chartab.h (get_char_id_table_0): New inline function.
1210         (get_char_id_table): Use `get_char_id_table_0'.
1211
1212 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1213
1214         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1215         and `COMPOSE_ADD_CHAR'.
1216         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1217
1218 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1219
1220         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1221         instead of `DECODE_ADD_UCS_CHAR'.
1222         (COMPOSE_ADD_CHAR): Likewise.
1223
1224 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1225
1226         * text-coding.c (decode_flush_er_chars): New inline function.
1227         (decode_add_er_char): New function.
1228         (decode_coding_utf8): Use `decode_flush_er_chars' and
1229         `decode_add_er_char'.
1230
1231 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1232
1233         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1234         done before `decode_output_utf8_partial_char'.
1235
1236         * mule-charset.c (complex_vars_of_mule_charset): Specify
1237         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1238         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1239
1240 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1241
1242         * mule-charset.c (decode_defined_char): New function; search
1243         mother.
1244         (decode_builtin_char): Don't search mother if
1245         XCHARSET_MAX_CODE(charset) == 0.
1246         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1247         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1248         (Fdecode_char): Use `decode_defined_char' instead of
1249         `DECODE_DEFINED_CHAR'.
1250         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1251         mother of `Vcharset_ucs_jis'.
1252
1253         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1254         instead of `DECODE_DEFINED_CHAR'.
1255
1256         * char-ucs.h (decode_defined_char): Renamed from
1257         `DECODE_DEFINED_CHAR'; changed to normal function.
1258         (DECODE_CHAR): Use `decode_defined_char' instead of
1259         `DECODE_DEFINED_CHAR'.
1260
1261         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1262
1263 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1266
1267         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1268         variable.
1269         (Quse_entity_reference): New variable.
1270         (Qd): New variable.
1271         (Qx): New variable.
1272         (QX): New variable.
1273         (coding_system_description): Add description for
1274         `ccs_priority_list'.
1275         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1276         (allocate_coding_system): Initialize `ccs_priority_list' in
1277         UTF-2000.
1278         (Fmake_coding_system): Add description about
1279         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1280         (codesys).
1281         (Fcoding_system_property): Accept `disable-composition' and
1282         `use-entity-reference' in UTF-2000.
1283         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1284         in UTF-2000.
1285         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1286         (decode_coding_utf8): Decode entity-reference if
1287         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1288         (char_encode_utf8): Encode non-Unicode characters as
1289         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1290         (str->codesys).
1291         (syms_of_file_coding): Add new symbols `use-entity-reference',
1292         `d', `x', `X'.
1293         (vars_of_file_coding): Add new variable
1294         `coded-charset-entity-reference-alist'.
1295         (complex_vars_of_file_coding): Declare `disable-composition' and
1296         `use-entity-reference' to be coding-system-properties in UTF-2000.
1297
1298         * file-coding.h (struct Lisp_Coding_System): Add new member
1299         `use_entity_reference' and `ccs_priority_list'.
1300         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1301         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1302         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1303
1304 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1305
1306         * chartab.c (save_uint8_byte_table): Don't clear the table.
1307         (save_uint16_byte_table): Likewise.
1308         (save_byte_table): Likewise.
1309         (Fmount_char_attribute_table): New function.
1310         (syms_of_chartab): Add new builtin function
1311         `mount-char-attribute-table'.
1312
1313 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1314
1315         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1316         "w+" mode.
1317         (load_char_decoding_entry_maybe): Open database as read-only mode.
1318
1319         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1320         open database as "w+" mode.
1321         (load_char_attribute_maybe): Open database as read-only mode.
1322         (Fload_char_attribute_table): Likewise.
1323
1324 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1327         (char_table_description): Delete member `db_file'.
1328         (Fmake_char_table): Don't refer `ct->db_file'.
1329         (Fcopy_char_table): Likewise.
1330         (Fsave_char_attribute_table): Likewise.
1331         (Fclose_char_attribute_table): Likewise.
1332         (Freset_char_attribute_table): Likewise.
1333         (load_char_attribute_maybe): Likewise.
1334         (Fload_char_attribute_table): Likewise.
1335
1336         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1337
1338 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339
1340         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1341         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1342         `ct->db' is living.
1343         (load_char_attribute_maybe): Likewise.
1344         (Fload_char_attribute_table): Likewise.
1345
1346 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1347
1348         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1349         `ct->db_file' unconditionally.
1350
1351 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1352
1353         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1354         UTF-2000.
1355         (char_table_description): Add description for `db_file' and `db'
1356         in UTF-2000.
1357         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1358         UTF-2000.
1359         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1360         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1361         (Fclose_char_attribute_table): New function.
1362         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1363         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1364         and `cit->db'.
1365         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1366         (syms_of_chartab): Add new builtin function
1367         `Fclose_char_attribute_table'.
1368
1369 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1370
1371         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1372         `db' in UTF-2000.
1373         (load_char_attribute_maybe): Change interface.
1374         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1375
1376 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1377
1378         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1379
1380 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1381
1382         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1383         instead of `DECODE_CHAR' for mother; don't use special code for
1384         chinese-big5 to use code space of chinese-big5-1 and
1385         chinese-big5-2.
1386         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1387         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1388
1389         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1390         (MAX_CHAR_BIG5_CDP): Revival.
1391
1392 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1395         the XLFD registry-encoding name of `chinese-big5'.
1396
1397 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1398
1399         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1400         (Qchinese_big5_cdp): Deleted.
1401         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1402         (complex_vars_of_mule_charset): Delete coded-charset
1403         `chinese-big5-cdp'.
1404
1405         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1406         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1407         `CHARSET_ID_OFFSET - n' for private CCS.
1408         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1409         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1410         of `MIN_LEADING_BYTE'.
1411         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1412         `(CHARSET_ID_OFFSET - 97)'.
1413         (MIN_CHAR_BIG5_CDP): Deleted.
1414         (MAX_CHAR_BIG5_CDP): Deleted.
1415
1416 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1419
1420 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1421
1422         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1423         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1424         chartab.c].
1425
1426         * chartab.c (Vutf_2000_version): Moved to mule.c.
1427         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1428
1429 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1430
1431         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1432         when HAVE_CHISE_CLIENT is not defined.
1433
1434         * mule.c (vars_of_mule): Provide feature `chise' when
1435         HAVE_CHISE_CLIENT is defined.
1436
1437 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1438
1439         * config.h.in (UTF2000): Add comment.
1440         (HAVE_CHISE_CLIENT): New macro.
1441
1442 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1443
1444         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1445         CONSP.
1446         (Fput_char_attribute): Likewise.
1447         (char_attribute_system_db_file): Encode file-name of attribute.
1448         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1449         the initial value.
1450
1451 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1452
1453         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1454         (Fsave_charset_mapping_table): Use
1455         `char_attribute_system_db_file'.
1456         (load_char_decoding_entry_maybe): Likewise.
1457
1458         * chartab.h (Qsystem_char_id): New external variable.
1459         (char_attribute_system_db_file): New prototype.
1460
1461         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1462         (char_attribute_system_db_file): New function.
1463         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1464         (Freset_char_attribute_table): Likewise.
1465         (load_char_attribute_maybe): Likewise.
1466         (Fload_char_attribute_table): Likewise.
1467         (syms_of_chartab): Add new symbol `system-char-id'.
1468
1469 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1470
1471         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1472         `XCHARSET_GRAPHIC(ccs)'.
1473
1474 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1475
1476         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1477
1478 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1479
1480         * chartab.c (Q_ucs_variants): New variable.
1481         (syms_of_chartab): Add new symbol `->ucs-variants'.
1482         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1483         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1484         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1485
1486         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1487
1488         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1489         `HAVE_DATABASE' is defined.
1490         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1491         `HAVE_DATABASE' is defined.
1492
1493 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1494
1495         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1496         attribute-table.
1497         (Freset_char_attribute_table): New function.
1498         (syms_of_chartab): Add new builtin function
1499         `reset-char-attribute-table'.
1500
1501 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1502
1503         * chartab.c (load_char_attribute_maybe): Don't make directories.
1504
1505 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1506
1507         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1508
1509         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1510         for decoding-table.
1511
1512 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1513
1514         * mule-charset.c (Fsave_charset_mapping_table): Use
1515         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1516
1517         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1518         instead of `XCHARSET_CHARS'.
1519
1520 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1521
1522         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1523         (XCHARSET_BYTE_SIZE): Likewise.
1524
1525         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1526         mule-charset.c].
1527         (XCHARSET_BYTE_SIZE): Likewise.
1528
1529 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1530
1531         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1532         data-directory to store database.
1533         (Fsave_char_attribute_table): Likewise.
1534         (load_char_attribute_maybe): Likewise.
1535         (Fload_char_attribute_table): Likewise.
1536
1537 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1538
1539         * mule-charset.c (Fsave_charset_mapping_table): New function.
1540         (syms_of_mule_charset): Add new builtin function
1541         `save-charset-mapping-table'.
1542
1543 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1546         (get_ccs_octet_table): New inline function.
1547         (put_ccs_octet_table): Likewise.
1548         (decoding_table_put_char): Use `get_ccs_octet_table' and
1549         `put_ccs_octet_table'.
1550         (decoding_table_remove_char): Use `decoding_table_put_char'.
1551         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1552
1553         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1554         into encoding_table.
1555         (make_charset): Use Qunbound instead Qnil as initial value of
1556         decoding_table.
1557
1558 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1559
1560         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1561         element is Qunloaded.
1562         (map_over_uint16_byte_table): Likewise.
1563         (map_over_byte_table): Likewise.
1564         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1565         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1566         database support, load encoding-table of the specified
1567         coded-charset if it is not loaded yet.
1568         (save_uint8_byte_table): New function of UTF-2000 with external
1569         database support.
1570         (save_uint16_byte_table): Likewise.
1571         (save_byte_table): Likewise.
1572         (Fput_char_attribute): Don't store value into external database
1573         even if the external database feature is supported in UTF-2000;
1574         set `attribute' as name of char-table if the external database
1575         feature is supported.
1576         (Fsave_char_attribute_table): New function in UTF-2000.
1577         (syms_of_chartab): Add new builtin function
1578         `save-char-attribute-table' in UTF-2000.
1579
1580 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1581
1582         * chartab.c (char_attribute_table_to_put): New variable in
1583         UTF-2000.
1584         (Qput_char_table_map_function): Likewise.
1585         (value_to_put): Likewise.
1586         (Fput_char_table_map_function): New function in UTF-2000.
1587         (put_char_table): Use `Fmap_char_attribute' for
1588         CHARTAB_RANGE_CHARSET in UTF-2000.
1589         (Fput_char_attribute): Store symbol instead of string in
1590         `XCHAR_TABLE_NAME (table)'.
1591         (load_char_attribute_maybe): Likewise.
1592         (syms_of_chartab): Add new symbol/function
1593         `put-char-table-map-function'.
1594
1595 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1596
1597         * database.h: Add new EXFUN for `Fmap_database'.
1598
1599         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1600         (syms_of_database): Likewise.
1601
1602         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1603         UTF-2000.
1604         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1605         (XCHAR_TABLE_UNLOADED): Likewise.
1606
1607         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1608         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1609         HAVE_DATABASE is defined.
1610         (char_attribute_table_to_load): New variable of UTF-2000 with
1611         external database support.
1612         (Qload_char_attribute_table_map_function): Likewise.
1613         (Fload_char_attribute_table_map_function): New function of
1614         UTF-2000 with external database support.
1615         (Fload_char_attribute_table): New function of UTF-2000.
1616         (Fmap_char_attribute): Call Fload_char_attribute_table if
1617         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1618         (syms_of_chartab): Add new symbol and function
1619         `load-char-attribute-table-map-function' in UTF-2000 with external
1620         database support; add new function `load-char-attribute-table' in
1621         UTF-2000.
1622
1623 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1624
1625         * chartab.h (load_char_attribute_maybe): New prototype for
1626         UTF-2000 with DATABASE support.
1627         (get_char_id_table): Use `load_char_attribute_maybe' if
1628         HAVE_DATABASE is defined.
1629
1630         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1631         with DATABASE support.
1632
1633 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * chartab.c (Fput_char_attribute): Use S-expression as key of
1636         external database.
1637
1638         * chartab.h (get_char_id_table): Use S-expression as key of
1639         external database.
1640
1641 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1642
1643         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1644         if an element is not loaded, load the corresponding attributes
1645         from an external database.
1646         (map_over_uint16_byte_table): Likewise.
1647         (map_over_byte_table): Likewise.
1648         (map_char_table): Modify for `map_over_uint8_byte_table',
1649         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1650         element is not loaded, load the corresponding attributes from an
1651         external database.
1652         (Fput_char_attribute): Change initial values to Qunloaded.
1653
1654         * chartab.h (get_char_id_table): If a character attribute is not
1655         loaded and the attribute value is not found in an external
1656         database, store Qunbound as the attribute value.
1657
1658 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1659
1660         * chartab.c (BT_UINT8_unloaded): New macro.
1661         (UINT8_VALUE_P): Accept Qunloaded.
1662         (UINT8_ENCODE): Likewise.
1663         (UINT8_DECODE): Likewise.
1664         (BT_UINT16_unloaded): New macro.
1665         (UINT16_VALUE_P): Accept Qunloaded.
1666         (UINT16_ENCODE): Likewise.
1667         (UINT16_DECODE): Likewise.
1668         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1669         BT_UINT16_unloaded.
1670         (mark_char_table): Mark `ct->name' in UTF-2000.
1671         (char_table_description): Add `name' in UTF-2000.
1672         (Fmake_char_table): Initialize `ct->name'.
1673         (Fcopy_char_table): Copy `ct->name'.
1674         (Fput_char_attribute): Store value into an external database if
1675         HAVE_DATABASE is defined.
1676
1677         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1678         UTF-2000.
1679         (CHAR_TABLE_NAME): New macro in UTF-2000.
1680         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1681         (get_char_id_table): Try to read an external database if Qunloaded
1682         is stored in a table.
1683
1684         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1685         Qunloaded.
1686
1687 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1688
1689         * database.h: Add EXFUN definitions for Fopen_database,
1690         Fput_database, Fget_database and Fclose_database.
1691
1692         * data.c (Qunloaded): New variable in UTF-2000.
1693
1694         * lisp.h (Qunloaded): New variable in UTF-2000.
1695
1696 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1697
1698         * mule-charset.c (put_char_ccs_code_point): Modify for
1699         `decoding_table_remove_char' and `decoding_table_put_char'.
1700         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1701
1702         * char-ucs.h (decoding_table_remove_char): Change arguments to
1703         hide decoding_table vector.
1704         (decoding_table_put_char): Likewise.
1705
1706 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1707
1708         * mule-charset.c (decoding_table_remove_char): Moved to
1709         char-ucs.h.
1710         (decoding_table_put_char): Likewise.
1711
1712         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1713         from mule-charset.c].
1714         (decoding_table_remove_char): New inline function [moved from
1715         mule-charset.c].
1716         (decoding_table_put_char): Likewise.
1717
1718 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1719
1720         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1721         extension.
1722
1723 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1724
1725         * mule-charset.c (decode_builtin_char): Support mother charsets.
1726
1727 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1728
1729         * mule-charset.c (Q94x94x60): New variable.
1730         (charset_code_point): Support conversion `94x94x60'.
1731         (Fmake_charset): Likewise.
1732         (syms_of_mule_charset): Add new symbol `94x94x60'.
1733
1734         * char-ucs.h (CONVERSION_94x94x60): New macro.
1735
1736 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1737
1738         * mule-charset.c (charset_code_point): Unify code about
1739         `code-offset'.
1740
1741 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1742
1743         * mule-charset.c (charset_code_point): Merge code about builtin
1744         characters into code about mother charsets; don't use
1745         `range_charset_code_point'.
1746         (range_charset_code_point): Deleted.
1747
1748 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749
1750         * mule-charset.c (Qcode_offset): New variable.
1751         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1752         `max-code'; accept new property `code-offset'.
1753         (syms_of_mule_charset): Add new symbol `code-offset'.
1754
1755 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756
1757         * mule-charset.c (range_charset_code_point): Fixed.
1758
1759 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1760
1761         * mule-charset.c (decode_builtin_char): Change semantics of
1762         code-offset of coded-charset.
1763         (charset_code_point): Likewise.
1764         (range_charset_code_point): Likewise.
1765         (complex_vars_of_mule_charset): Modify for the change.
1766
1767 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1768
1769         * mule-charset.c (Fencode_char): Reverse arguments.
1770
1771         * mule-charset.c (charset_code_point): Fixed.
1772
1773 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * mule-charset.c (Vcharset_mojikyo): Deleted.
1776         (Vcharset_mojikyo_2022_1): Deleted.
1777         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1778         (Qmin_code): New variable in UTF-2000.
1779         (Qmax_code): Likewise.
1780         (Qmother): Likewise.
1781         (Qconversion): Likewise.
1782         (Q94x60): Likewise.
1783         (Qmojikyo): Deleted.
1784         (Qmojikyo_2022_1): Deleted.
1785         (Qmojikyo_pj_{1..22}): Deleted.
1786         (mark_charset): Mark `cs->mother'.
1787         (charset_description): Add description for `mother'.
1788         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1789         new arguments `mother' and `conversion'; use
1790         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1791         (charset_code_point): Moved from char-ucs.h; support `mother'
1792         charset feature.
1793         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1794         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1795         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1796         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1797         allow 2 as the value of `graphic' in UTF-2000; add new properties
1798         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1799         require `final' in UTF-2000; modify for `make_charset'.
1800         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1801         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1802         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1803         (Fencode_char): New function.
1804         (syms_of_mule_charset): Add new builtin function `encode-char' in
1805         UTF-2000; add new symbols `min-code', `max-code', `mother',
1806         `conversion' and `94x60'; delete symbols `mojikyo',
1807         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1808         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1809         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1810         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1811
1812         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1813         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1814
1815         * char-ucs.h (Vcharset_mojikyo): Deleted.
1816         (Vcharset_mojikyo_2022_1): Deleted.
1817         (LEADING_BYTE_MOJIKYO): Deleted.
1818         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1819         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1820         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1821         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1822         add new member `mother'; add new member `conversion'.
1823         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1824         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1825         (CHARSET_MOTHER): New macro.
1826         (CHARSET_CONVERSION): New macro.
1827         (CONVERSION_IDENTICAL): New macro.
1828         (CONVERSION_94x60): New macro.
1829         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1830         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1831         (XCHARSET_MOTHER): New macro.
1832         (XCHARSET_CONVERSION): New macro.
1833         (MIN_CHAR_MOJIKYO): Deleted.
1834         (MAX_CHAR_MOJIKYO): Deleted.
1835         (DECODE_MOJIKYO_2022): Deleted.
1836         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1837         (charset_code_point): Changed to non-inline function.
1838         (encode_char_1): Use `charset_code_point'.
1839         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1840
1841 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * lread.c (read_compiled_function): Fix prototype.
1844         (read_vector): Likewise.
1845
1846 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1847
1848         * lrecord.h (struct lrecord_header): Delete `older'.
1849         (set_lheader_implementation): Delete code for `older'.
1850         (set_lheader_older_implementation): Deleted.
1851         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1852         (OLDER_RECORD_P): Deleted.
1853         (OLDER_RECORD_HEADER_P): Deleted.
1854         (alloc_older_lcrecord): Deleted.
1855         (alloc_older_lcrecord_type): Deleted.
1856
1857         * alloc.c (all_older_lcrecords): Deleted.
1858         (alloc_older_lcrecord): Deleted.
1859         (disksave_object_finalization_1): Delete code for older objects.
1860         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1861         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1862
1863 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1864
1865         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1866         instead of `make_older_vector'.
1867         (put_char_ccs_code_point): Likewise.
1868         (mark_charset): Mark `cs->decoding_table'.
1869         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1870
1871         * lisp.h (make_older_vector): Deleted.
1872         (make_vector_newer): Deleted.
1873
1874         * config.h.in (HAVE_GGC): Deleted.
1875
1876         * alloc.c (make_older_vector): Deleted.
1877         (make_vector_newer_1): Deleted.
1878         (make_vector_newer): Deleted.
1879
1880 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881
1882         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1883         (Qideograph_daikanwa_2): New variable.
1884         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1885         (complex_vars_of_mule_charset): Add new coded-charset
1886         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1887         `LEADING_BYTE_DAIKANWA'.
1888
1889         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1890         (LEADING_BYTE_DAIKANWA_1): New macro.
1891         (LEADING_BYTE_DAIKANWA_2): New macro.
1892         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1893
1894 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1895
1896         * mule-charset.c (complex_vars_of_mule_charset): Change
1897         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1898         the second revised version.
1899
1900 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * mule-charset.c (Vcharset_ucs_smp): New variable.
1903         (Vcharset_ucs_sip): New variable.
1904         (Qucs_smp): New variable.
1905         (Qucs_sip): New variable.
1906         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1907         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1908         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1909         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1910         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1911         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1912
1913         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1914         (LEADING_BYTE_UCS_SIP): New macro.
1915         (MIN_CHAR_SMP): New macro.
1916         (MAX_CHAR_SMP): New macro.
1917         (MIN_CHAR_SIP): New macro.
1918         (MAX_CHAR_SIP): New macro.
1919
1920 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1921
1922         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1923         utf-2000.
1924
1925 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1926
1927         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1928         value; don't store value into `encoding_table' of `Lisp_Charset'.
1929         (mark_charset): `encoding_table' was deleted.
1930         (charset_description): Likewise.
1931         (make_charset): Likewise.
1932         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1933         `put_char_ccs_code_point'.
1934
1935         * chartab.h (Fput_char_attribute): New EXFUN.
1936
1937         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1938         is unified with normal symbol space.
1939         (Fget_char_attribute): Likewise.
1940         (Fput_char_attribute): Likewise; behavior of
1941         `put_char_ccs_code_point' is changed.
1942
1943         * char-ucs.h: Include "elhash.h".
1944         (Vchar_attribute_hash_table): New external variable.
1945         (struct Lisp_Charset): Delete `encoding_table'.
1946         (CHARSET_ENCODING_TABLE): New implementation; refer
1947         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1948         `Lisp_Charset'.
1949
1950 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1951
1952         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1953         (cs) == 0.
1954
1955 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1958         `chinese-big5'.
1959
1960 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * chartab.c (uint8_byte_table_description): New constant.
1963         (uint8-byte-table): Use `uint8_byte_table_description'.
1964         (uint16_byte_table_description): New constant.
1965         (uint16-byte-table): Use `uint16_byte_table_description'.
1966
1967 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1970         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1971
1972 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1973
1974         * mule-charset.c (Vcharset_ucs_ks): New variable.
1975         (Qucs_ks): New variable.
1976         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1977         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1978
1979         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1980
1981 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1984         (Fdecode_char): Likewise.
1985
1986         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1987         chartab.h.
1988         (Fdefine_char): Modify for Fdecode_char.
1989         (Ffind_char): Likewise.
1990
1991         * mule-charset.c (Fdecode_char): Add new optional argument
1992         `defined-only'.
1993         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1994
1995 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1996
1997         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1998         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1999         (allocate_coding_system): Initialize initial-charsets of
2000         CODESYS_BIG5 in XEmacs UTF-2000.
2001         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2002         CODESYS_BIG5 in XEmacs UTF-2000.
2003         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2004         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2005
2006         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2007         variables.
2008         (Qideograph_hanziku_{1 .. 12}): Likewise.
2009         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2010         .. 12}'.
2011         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2012         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2013         `ideograph-hanziku-{1 .. 12}'.
2014
2015         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2016         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2017         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2018         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2019         (DECODE_DEFINED_CHAR): New inline function.
2020         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2021
2022 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023
2024         * mule-charset.c (Vcharset_china3_jef): Renamed from
2025         `Vcharset_japanese_jef_china3'.
2026         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2027         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2028         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2029         (syms_of_mule_charset): Rename `china3-jef' from
2030         `japanese-jef-china3'.
2031         (complex_vars_of_mule_charset): Likewise; rename
2032         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2033
2034         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2035         `LEADING_BYTE_JEF_CHINA3'.
2036         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2037         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2038
2039 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * mule-charset.c (encode_builtin_char_1): Comment out special code
2042         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2043
2044         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2045         (MAX_CHAR_MOJIKYO_0): Comment out.
2046         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2047         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2048         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2049         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2050
2051 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2052
2053         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2054         (Qideograph_cbeta): New variable.
2055         (encode_builtin_char_1): Comment out special code for
2056         coded-charset `mojikyo' and `japanese-jef-china3'.
2057         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2058         (complex_vars_of_mule_charset): Add new coded-charset
2059         `ideograph-cbeta'.
2060
2061         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2062         (MIN_CHAR_CBETA): New macro.
2063         (MAX_CHAR_CBETA): New macro.
2064
2065 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2068         (LEADING_BYTE_JEF_CHINA3): New macro.
2069         (MIN_CHAR_JEF_CHINA3): New macro.
2070         (MAX_CHAR_JEF_CHINA3): Likewise.
2071         (DECODE_CHAR): Fixed.
2072
2073 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074
2075         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2076         (Qjapanese_jef_china3): New variable.
2077         (encode_builtin_char_1): Support `japanese-jef-china3'.
2078         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2079         (complex_vars_of_mule_charset): Add new coded-charset
2080         `japanese-jef-china3'.
2081
2082 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2085         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2086         94^4, 96^3, 96^4, 128^n and 256^n set.
2087         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2088         (map_char_table): Likewise.
2089
2090 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2091
2092         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2093         UTF-2000.
2094
2095 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096
2097         * chartab.h (get_char_id_table): New inline function.
2098
2099         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2100         function.
2101
2102 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2103
2104         * chartab.h (decode_char_table_range): New prototype in XEmacs
2105         UTF-2000.
2106         (put_char_id_table): New inline function in XEmacs UTF-2000.
2107
2108         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2109         function.
2110         (decode_char_table_range): Delete static declaration in XEmacs
2111         UTF-2000.
2112
2113 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2114
2115         * chartab.c (put_char_id_table): Use `put_char_table'.
2116
2117 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2120         (map_over_uint16_byte_table): Likewise.
2121         (map_over_byte_table): Likewise.
2122         (map_char_table): Modify for `map_over_uint8_byte_table',
2123         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2124         UTF-2000.
2125
2126 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2127
2128         * chartab.c (struct map_char_table_for_charset_arg): New
2129         structure.
2130         (map_char_table_for_charset_fun): New function.
2131         (map_char_table): Use `map_char_table' for encoding_table of
2132         `range->charset'.
2133
2134 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135
2136         * chartab.c (map_char_table): Check a character is found in
2137         range->charset instead of non default value is defined in
2138         char-table when range is CHARTAB_RANGE_ROW.
2139
2140 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2141
2142         * chartab.c (map_char_id_table): Deleted.
2143         (Fmap_char_attribute): Use `map_char_table' instead of
2144         `map_char_id_table'.
2145
2146 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2147
2148         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2149         UTF-2000.
2150         (update_syntax_table): Deleted in XEmacs UTF-2000.
2151
2152         * syntax.c (find_defun_start): Use `syntax_table' instead of
2153         `mirror_syntax_table' in XEmacs UTF-2000.
2154         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2155         UTF-2000.
2156         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2157         XEmacs UTF-2000.
2158         (Fmatching_paren): Likewise.
2159         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2160         in XEmacs UTF-2000.
2161         (find_start_of_comment): Likewise.
2162         (find_end_of_comment): Likewise.
2163         (Fforward_comment): Likewise.
2164         (scan_lists): Likewise.
2165         (char_quoted): Likewise.
2166         (Fbackward_prefix_chars): Likewise.
2167         (scan_sexps_forward): Likewise.
2168         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2169         (update_syntax_table): Likewise.
2170
2171         * search.c (skip_chars): Use `syntax_table' instead of
2172         `mirror_syntax_table' in XEmacs UTF-2000.
2173         (wordify): Likewise.
2174         (Freplace_match): Likewise.
2175
2176         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2177         `mirror_syntax_table' in XEmacs UTF-2000.
2178         (WORDCHAR_P_UNSAFE): Likewise.
2179         (re_match_2_internal): Likewise.
2180
2181         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2182         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2183
2184         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2185         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2186
2187         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2188         XEmacs UTF-2000.
2189
2190         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2191         UTF-2000.
2192         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2193         (char_table_description): Delete `mirror_table' in XEmacs
2194         UTF-2000.
2195         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2196         UTF-2000.
2197         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2198         (Fcopy_char_table): Likewise.
2199         (put_char_table): Don't call `update_syntax_table' in XEmacs
2200         UTF-2000.
2201
2202         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2203         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2204         (casify_region_internal): Likewise.
2205
2206         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2207
2208         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2209         `mirror_syntax_table' in XEmacs UTF-2000.
2210
2211         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2212         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2213         (Fexpand_abbrev): Likewise.
2214
2215 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2216
2217         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2218
2219 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2222         (map_over_uint16_byte_table): Likewise.
2223         (map_over_byte_table): Likewise.
2224         (get_char_id_table): Refer `cit->default_value'.
2225         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2226         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2227         of character-id ranges.
2228         (mark_char_table): Mark `ct->default_value'.
2229         (char_table_description): Add `default_value'.
2230         (fill_char_table): Use `default_value'.
2231         (decode_char_table_range): Decode `nil' as
2232         `CHARTAB_RANGE_DEFAULT'.
2233         (get_char_id_table): Refer `cit->default_value'.
2234         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2235         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2236         temporary hack; check value of char-table is bound or not.
2237         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2238
2239         * chartab.h (struct Lisp_Char_Table): Add new member
2240         `default_value' in XEmacs UTF-2000.
2241         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2242         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2243         UTF-2000.
2244
2245 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * chartab.h (Lisp_Char_ID_Table): Deleted.
2248
2249         * chartab.c (char_table_description): Fix typo.
2250         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2251         `Lisp_Char_ID_Table'.
2252
2253 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2254
2255         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2256         `CHAR_ID_TABLE_P'.
2257
2258         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2259         `CHAR_ID_TABLE_P'.
2260
2261         * chartab.h (XCHAR_ID_TABLE): Deleted.
2262         (XSETCHAR_ID_TABLE): Deleted.
2263         (CHAR_ID_TABLE_P): Deleted.
2264
2265         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2266         `CHAR_ID_TABLE_P'.
2267         (Fget_composite_char): Likewise.
2268         (put_char_table): Likewise.
2269         (add_char_attribute_alist_mapper): Fixed.
2270         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2271         `CHAR_ID_TABLE_P'.
2272         (Fget_char_attribute): Likewise.
2273         (Fget_char_attribute): Likewise.
2274         (Fmap_char_attribute): Likewise.
2275
2276         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2277         `CHAR_ID_TABLE_P'.
2278         (encode_char_1): Likewise.
2279
2280 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2281
2282         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2283         `XCHAR_ID_TABLE'.
2284
2285         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2286         instead of `XCHAR_ID_TABLE'.
2287         (remove_char_ccs): Likewise.
2288
2289         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2290         `XCHAR_ID_TABLE'.
2291         (Fget_composite_char): Likewise.
2292         (Fchar_variants): Likewise.
2293         (put_char_table): Likewise.
2294         (add_char_attribute_alist_mapper): Likewise.
2295         (Fchar_attribute_alist): Likewise.
2296         (Fget_char_attribute): Likewise.
2297         (Fput_char_attribute): Likewise.
2298         (Fmap_char_attribute): Likewise.
2299         (Fmap_char_attribute): Likewise.
2300
2301         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2302         `XCHAR_ID_TABLE'.
2303         (encode_char_1): Likewise.
2304
2305 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2306
2307         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2308         `Lisp_Char_ID_Table'.
2309         (mark_char_id_table): Deleted.
2310         (print_char_id_table): Likewise.
2311         (char_id_table_equal): Likewise.
2312         (char_id_table_hash): Likewise.
2313         (char_id_table_description): Likewise.
2314         (char_id_table): Likewise.
2315         (make_char_id_table): Use `Fmake_char_table' and
2316         `fill_char_table'.
2317         (get_char_id_table): Use `Lisp_Char_Table' instead of
2318         `Lisp_Char_ID_Table'.
2319         (put_char_id_table): Likewise.
2320         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2321         `XCHAR_ID_TABLE'.
2322         (Fremove_char_attribute): Likewise.
2323         (syms_of_chartab): Don't define type `char-id-table'.
2324
2325         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2326         (char_id_table): Likewise.
2327         (GC_CHAR_ID_TABLE_P): Likewise.
2328         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2329         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2330         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2331         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2332         (get_char_id_table): Use `Lisp_Char_Table' instead of
2333         `Lisp_Char_ID_Table'.
2334         (put_char_id_table_0): Likewise.
2335         (put_char_id_table): Likewise.
2336
2337 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2338
2339         * chartab.h: Lisp_Byte_Table related codes are moved from
2340         chartab.h.
2341
2342         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2343
2344 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2345
2346         * chartab.h: Don't include "chartab.h".
2347         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2348         (Lisp_Char_ID_Table): Likewise.
2349         (char_id_table): Likewise.
2350         (XCHAR_ID_TABLE): Likewise.
2351         (XSETCHAR_ID_TABLE): Likewise.
2352         (CHAR_ID_TABLE_P): Likewise.
2353         (GC_CHAR_ID_TABLE_P): Likewise.
2354         (get_char_id_table): Likewise.
2355
2356         * char-ucs.h: Include "chartab.h".
2357         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2358         (Lisp_Char_ID_Table): Likewise.
2359         (char_id_table): Likewise.
2360         (XCHAR_ID_TABLE): Likewise.
2361         (XSETCHAR_ID_TABLE): Likewise.
2362         (CHAR_ID_TABLE_P): Likewise.
2363         (GC_CHAR_ID_TABLE_P): Likewise.
2364         (get_char_id_table): Likewise.
2365
2366 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2367
2368         * chartab.c (copy_uint8_byte_table): New function.
2369         (copy_uint16_byte_table): New function.
2370         (copy_byte_table): New function.
2371         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2372         characters to call.
2373         (map_over_uint16_byte_table): Likewise.
2374         (map_over_byte_table): Likewise.
2375         (get_byte_table): Move prototype to chartab.h.
2376         (put_byte_table): Likewise.
2377         (put_char_id_table_0): Moved to chartab.h.
2378         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2379         (char_table_entry_equal): Likewise.
2380         (char_table_entry_hash): Likewise.
2381         (char_table_entry_description): Likewise.
2382         (char_table_entry): Likewise.
2383         (make_char_table_entry): Likewise.
2384         (copy_char_table_entry): Likewise.
2385         (get_non_ascii_char_table_value): Likewise.
2386         (map_over_charset_ascii): Likewise.
2387         (map_over_charset_control_1): Likewise.
2388         (map_over_charset_row): Likewise.
2389         (map_over_other_charset): Likewise.
2390         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2391         (print_char_table): Likewise.
2392         (char_table_equal): Likewise.
2393         (char_table_hash): Likewise.
2394         (char_table_description): Likewise.
2395         (fill_char_table): Likewise.
2396         (Fcopy_char_table): Likewise.
2397         (get_char_table): Likewise.
2398         (Fget_range_char_table): Likewise.
2399         (put_char_table): Likewise.
2400         (map_char_table): Likewise.
2401         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2402         UTF-2000.
2403
2404 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405
2406         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2407         `Vauto_fill_chars' in XEmacs UTF-2000.
2408
2409         * chartab.h (get_byte_table): New prototype [moved from
2410         chartab.c].
2411         (put_byte_table): Likewise [moved from chartab.c].
2412         (put_char_id_table_0): New inline function [moved from chartab.c].
2413         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2414         (Lisp_Char_Table_Entry): Likewise.
2415         (char_table_entry): Likewise.
2416         (XCHAR_TABLE_ENTRY): Likewise.
2417         (XSETCHAR_TABLE_ENTRY): Likewise.
2418         (CHAR_TABLE_ENTRYP): Likewise.
2419         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2420         (NUM_ASCII_CHARS): Likewise.
2421         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2422         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2423
2424 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2425
2426         * chartab.c (get_char_id_table): Change interface.
2427         (put_char_id_table_0): New function.
2428         (put_char_id_table): Change interface; new implementation.
2429         (Fget_composite_char): Modify for interface change of
2430         `get_char_id_table'.
2431         (Fchar_variants): Likewise.
2432         (add_char_attribute_alist_mapper): Likewise.
2433         (Fchar_attribute_alist): Likewise.
2434         (Fget_char_attribute): Likewise.
2435         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2436         as same as character as the first argument like `put-char-table';
2437         modify for interface change of `put_char_id_table'.
2438         (Fremove_char_attribute): Modify for interface change of
2439         `put_char_id_table'.
2440
2441 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2442
2443         * text-coding.c: Sync up with XEmacs 21.2.41.
2444         (COMPOSE_ADD_CHAR): Modify for interface change of
2445         `get_char_id_table'.
2446
2447         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2448         change of `put_char_id_table'.
2449         (remove_char_ccs): Likewise.
2450
2451         * chartab.h (put_char_id_table): Change interface.
2452
2453         * char-ucs.h (get_char_id_table): Change interface.
2454         (charset_code_point): Modify for interface change of
2455         `get_char_id_table'.
2456         (encode_char_1): Likewise.
2457
2458 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2459
2460         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2461         argument `ccs'.
2462         (map_over_uint16_byte_table): Likewise.
2463         (map_over_byte_table): Likewise.
2464         (map_char_id_table): Add new argument `range' like
2465         `map_char_table'.
2466         (Fmap_char_attribute): Add new argument `range' like
2467         `Fmap_char_table'.
2468
2469 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * chartab.c (map_over_uint8_byte_table): Change interface of
2472         mapping function to use struct chartab_range instead of Emchar.
2473         (map_over_uint16_byte_table): Likewise.
2474         (map_over_byte_table): Likewise.
2475         (map_char_id_table): Likewise.
2476         (struct slow_map_char_id_table_arg): Deleted.
2477         (slow_map_char_id_table_fun): Deleted.
2478         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2479         function `slow_map_char_table_fun' instead of struct
2480         `slow_map_char_id_table_arg' and function
2481         `slow_map_char_id_table_fun'.
2482
2483 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2484
2485         * mule-charset.c: Move char-it-table related codes to chartab.c.
2486         (Vutf_2000_version): Moved to chartab.c.
2487         (Fdefine_char): Likewise.
2488         (Ffind_char): Likewise.
2489         (syms_of_mule_charset): Move types `uint8-byte-table',
2490         `uint16-byte-table', `byte-table' and `char-id-table' to
2491         chartab.c; move functions `char_attribute_list,
2492         `find_char_attribute_table, `char_attribute_alist,
2493         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2494         `map_char_attribute, `define_char, `find_char, `char_variants and
2495         `get_composite_char to chartab.c; move symbols `=>ucs',
2496         `->decomposition', `compat', `isolated', `initial', `medial',
2497         `final', `vertical', `noBreak', `fraction', `super', `sub',
2498         `circle', `square', `wide', `narrow', `small' and `font' to
2499         chartab.c.
2500         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2501         setting codes for `Vcharacter_composition_table' and
2502         `Vcharacter_variant_table' to chartab.c.
2503         (complex_vars_of_mule_charset): Move setting code for
2504         `Vchar_attribute_hash_table' to chartab.c.
2505
2506         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2507         (make_char_id_table): New prototype.
2508         (put_char_id_table): Likewise.
2509         (Fget_char_attribute): Likewise.
2510
2511         * chartab.c: Move char-id-table related code from mule-charset.c.
2512         (Vutf_2000_version): Moved from mule-charset.c.
2513
2514         * char-ucs.h (Qucs): New external variable.
2515         (put_char_ccs_code_point): New prototype.
2516         (remove_char_ccs): Likewise.
2517
2518 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2519
2520         * mule-charset.c (Vcharset_ucs_jis): New variable.
2521         (Qucs_jis): Likewise.
2522         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2523         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2524
2525         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2526
2527 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2528
2529         * mule-charset.c (map_over_uint8_byte_table): New function.
2530         (map_over_uint16_byte_table): Likewise.
2531         (map_over_byte_table): Likewise.
2532         (map_char_id_table): Likewise.
2533         (slow_map_char_id_table_fun): Likewise.
2534         (Fmap_char_attribute): Likewise.
2535         (syms_of_mule_charset): Add new function `map-char-attribute'.
2536
2537 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2538
2539         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2540         (syms_of_mule_charset): Add new function `find-char'.
2541
2542 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2543
2544         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2545         XEmacs UTF-2000.
2546         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2547         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2548         XEmacs UTF-2000.
2549         (complex_vars_of_mule_charset): Add new coded-charset
2550         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2551         `ideograph-gt-pj-*'.
2552
2553         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2554
2555 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * mule-charset.c (encode_builtin_char_1): Purge codes about
2558         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2559         {MIN|MAX}_CHAR_HEBREW.
2560         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2561         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2562
2563         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2564         (MAX_CHAR_GREEK): Purged.
2565         (MIN_CHAR_CYRILLIC): Purged.
2566         (MAX_CHAR_CYRILLIC): Purged.
2567         (MIN_CHAR_HEBREW): Commented out.
2568         (MAX_CHAR_HEBREW): Likewise.
2569
2570 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2571
2572         * mule-charset.c (Qto_ucs): New variable.
2573         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2574         (Fdefine_char): Likewise.
2575         (syms_of_mule_charset): Add new symbol `=>ucs'.
2576
2577 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2578
2579         * mule-charset.c (Fdecode_char): Fixed.
2580
2581 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582
2583         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2584         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2585         "tcvn5712-1".
2586
2587 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2588
2589         * mule-charset.c (Vcharset_ucs_big5): New variable.
2590         (Qucs_big5): Likewise.
2591         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2592         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2593
2594         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2595
2596 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2597
2598         * mule-charset.c (decode_builtin_char): Check Big5 code range
2599         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2600
2601 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2602
2603         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2604         (Qchinese_gb12345): Likewise.
2605         (Fdecode_builtin_char): Fixed.
2606         (syms_of_mule_charset): Add `chinese-gb12345'.
2607         (complex_vars_of_mule_charset): Add coded-charset
2608         `chinese-gb12345'.
2609
2610         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2611         (LEADING_BYTE_CHINESE_GB12345): New macro.
2612
2613 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2616         and `latin-viscii-upper' for `latin-viscii'.
2617
2618 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619
2620         * mule-charset.c (Fdecode_builtin_char): Comment out
2621         regularization code for ISO-IR GR representation.
2622
2623 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2624
2625         * mule-charset.c (decode_builtin_char): New function; renamed from
2626         `make_builtin_char'; return -1 instead of signal.
2627         (Fdecode_builtin_char): Use `decode_builtin_char'.
2628
2629         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2630         `make_builtin_char'.
2631         (DECODE_CHAR): Use `decode_builtin_char' instead of
2632         `make_builtin_char'; use mapping table of `chinese-big5' for
2633         `chinese-big5-{1,2}'.
2634
2635 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2636
2637         * text-coding.c (char_encode_big5): New function.
2638         (char_finish_big5): Likewise.
2639         (reset_encoding_stream): Use `char_encode_big5' and
2640         `char_finish_big5' for CODESYS_BIG5.
2641         (mule_encode): Don't use `encode_coding_big5'.
2642         (encode_coding_big5): Deleted.
2643
2644 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2645
2646         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2647         0x81- in XEmacs UTF-2000.
2648         (detect_coding_big5): Likewise.
2649
2650 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2651
2652         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2653         generate character-id if the CCS property does not have
2654         corresponding predefined character.
2655         (make_builtin_char): Return -1 if corresponding predefined
2656         character is not found.
2657         (Fdecode_char): Return nil if corresponding character is not
2658         found.
2659         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2660         don't map to builtin ucs space.
2661
2662 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2663
2664         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2665         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2666
2667 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2668
2669         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2670         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2671         (Qideograph_gt): Likewise.
2672         (Qideograph_gt_pj_{1..11}): Likewise.
2673         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2674         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2675         `ideograph-gt-pj-11'.
2676         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2677         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2678         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2679
2680         * char-ucs.h (LEADING_BYTE_GT): New macro.
2681         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2682         (MIN_CHAR_GT): Likewise.
2683         (MAX_CHAR_GT): Likewise.
2684
2685 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2686
2687         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2688         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2689
2690         * doprnt.c (unsigned_int_converters): Add `c'.
2691         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2692
2693         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2694         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2695         `MIN_CHAR_MOJIKYO'.
2696         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2697         (MAX_CHAR_MOJIKYO_0): New macro.
2698         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2699
2700 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * mule-charset.c (Fdefine_char): Delete cemented out code.
2703         (encode_builtin_char_1): Modify for new allocation of builtin
2704         Mojikyo characters.
2705
2706         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2707
2708 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2709
2710         * mule-charset.c (Vcharset_ucs_cns): New variable.
2711         (Qucs_cns): New variable.
2712         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2713         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2714
2715 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2716
2717         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2718
2719 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2720
2721         * search.c (search_buffer): Make `charset_base_code' as
2722         character-id >> 6 to eliminate the corresponding last byte in
2723         UTF-8 representation [I'm not sure it is right thing].
2724         (boyer_moore): Likewise.
2725
2726 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2727
2728         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2729         representation in MULE.
2730
2731 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2732
2733         * text-coding.c (Fmake_coding_system): Use
2734         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2735         `EXTERNAL_PROPERTY_LIST_LOOP'.
2736
2737 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * text-coding.c (decode_output_utf8_partial_char): New function.
2740         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2741
2742 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * text-coding.c (decode_coding_utf8): Output original byte
2745         sequence if it is broken; change order of conditions.
2746
2747         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2748         of conditions.
2749
2750         * mb-multibyte.h (BYTE_ASCII_P):
2751         Use bit ops for char-signedness safety.
2752         (BYTE_C0_P): Use bit ops for char-signedness safety.
2753         (BYTE_C1_P): Use bit ops for char-signedness safety.
2754
2755         * character.h: (XCHAR_OR_CHAR_INT):
2756         Always use inline function.
2757         Remove redundant type checking assert() - XINT will abort quite
2758         nicely.
2759
2760 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * text-coding.c: (Fencode_shift_jis_char):
2763         (Fencode_big5_char):
2764         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2765         Replace 0 with '\0' when working with bytes.
2766         Replace initial "(" with "\(" in docstrings.
2767
2768         (Fmake_coding_system):
2769         When type is ccl and value is vector, register it with a proper
2770         symbol.  And checks whether the given ccl program is valid.
2771         (mule_decode): When calling ccl_driver, if src indicates
2772         NULL pointer, set an empty string instead.
2773         (mule_encode): Likewise.
2774
2775         (detect_eol_type):
2776         (detect_coding_sjis):
2777         (decode_coding_sjis):
2778         (detect_coding_big5):
2779         (decode_coding_big5):
2780         (detect_coding_ucs4):
2781         (decode_coding_ucs4):
2782         (detect_coding_utf8):
2783         (decode_coding_utf8):
2784         (detect_coding_iso2022):
2785         (decode_coding_iso2022):
2786         (decode_coding_no_conversion):
2787         (mule_decode):
2788         Make all detecting and decoding functions take an Extbyte * arg.
2789         (text_encode_generic):
2790         (encode_coding_big5):
2791         (encode_coding_no_conversion):
2792         (mule_encode):
2793         Make all encoding functions take a Bufbyte * arg.
2794         Use size_t instead of unsigned int for memory sizes.
2795         Only cast to unsigned char whenever dereferencing Extbyte *.
2796
2797         (struct lrecord_description fcd_description_1): Use countof.
2798         (complex_vars_of_file_coding):
2799         Use countof instead of sizeof.
2800         Use CHECK_NATNUM instead of CHECK_INT.
2801
2802 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803
2804         * mule-charset.c (Fget_char_attribute): Add new optional argument
2805         `default-value'.
2806         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2807         (remove_char_ccs): Likewise.
2808
2809 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2810
2811         * text-coding.c (char_encode_shift_jis): New implementation in
2812         UTF-2000.
2813         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2814         ...)'.
2815
2816         * mule-charset.c (Vcharset_chinese_big5): New variable in
2817         UTF-2000.
2818         (Qchinese_big5): New variable in UTF-2000.
2819         (BIG5_SAME_ROW): New macro in UTF-2000.
2820         (make_builtin_char): Use builtin characters of
2821         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2822         characters of `Vcharset_chinese_big5'.
2823         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2824         (complex_vars_of_mule_charset): Add new coded-charset
2825         `chinese-big5' in UTF-2000.
2826
2827         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2828         (Vcharset_chinese_big5): New external variable declaration.
2829         (Vcharset_japanese_jisx0208_1990): Likewise.
2830
2831 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2834         function.
2835         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2836
2837 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2838
2839         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2840         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2841         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2842         `mojikyo-pj-*'.
2843
2844 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2845
2846         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2847
2848 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2849
2850         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2851         to 0.17.
2852
2853 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2854
2855         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2856         for `CHARSET_BY_ATTRIBUTES'.
2857         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2858         `CHARSET_BY_ATTRIBUTES'.
2859
2860         * text-coding.c (struct decoding_stream): Rename member `CH' to
2861         `CPOS'.
2862         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2863         (decode_coding_sjis): Likewise.
2864         (decode_coding_big5): Likewise.
2865         (decode_coding_ucs4): Likewise.
2866         (decode_coding_utf8): Likewise.
2867         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2868         `CHARSET_BY_ATTRIBUTES'.
2869         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2870         `str->counter'; decode 3, 4 bytes sets.
2871         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2872         sets.
2873         (decode_coding_no_conversion): Use `str->cpos' instead of
2874         `str->ch'.
2875
2876         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2877         (Qmojikyo_2022_1): New variable.
2878         (make_charset): Don't use `CHARSET_TYPE_*'.
2879         (range_charset_code_point): Support coded-charset
2880         `mojikyo-2022-1'.
2881         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2882         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2883         `CHARSET_BY_ATTRIBUTES'.
2884         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2885         `CHARSET_BY_ATTRIBUTES'.
2886         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2887         (complex_vars_of_mule_charset): Add new coded-charset
2888         `mojikyo-2022-1'.
2889
2890         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2891         interface; changed to inline function.
2892
2893         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2894         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2895         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2896         (CHARSET_TYPE_94): Deleted.
2897         (CHARSET_TYPE_94X94): Deleted.
2898         (CHARSET_TYPE_96): Deleted.
2899         (CHARSET_TYPE_96X96): Deleted.
2900         (CHARSET_TYPE_128): Deleted.
2901         (CHARSET_TYPE_128X128): Deleted.
2902         (CHARSET_TYPE_256): Deleted.
2903         (CHARSET_TYPE_256X256): Deleted.
2904         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2905         to inline function.
2906         (DECODE_MOJIKYO_2022): New inline function.
2907         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2908         `Vcharset_mojikyo_2022_1'.
2909
2910 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2911
2912         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2913         instead of `EQ'.
2914         (put_byte_table): Likewise.
2915         (char_id_table_equal): Use `get_byte_table' [new implementation].
2916
2917 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2918
2919         * mule-charset.c: Include <limits.h> in UTF-2000.
2920         (BT_UINT8_MIN): New macro in UTF-2000.
2921         (BT_UINT8_MAX): New macro in UTF-2000.
2922         (BT_UINT8_t): New macro in UTF-2000.
2923         (BT_UINT8_nil): New macro in UTF-2000.
2924         (BT_UINT8_unbound): New macro in UTF-2000.
2925         (INT_UINT8_P): New inline function in UTF-2000.
2926         (UINT8_VALUE_P): New inline function in UTF-2000.
2927         (UINT8_ENCODE): New inline function in UTF-2000.
2928         (UINT8_DECODE): New inline function in UTF-2000.
2929         (mark_uint8_byte_table): New function in UTF-2000.
2930         (print_uint8_byte_table): New function in UTF-2000.
2931         (uint8_byte_table_equal): New function in UTF-2000.
2932         (uint8_byte_table_hash): New function in UTF-2000.
2933         (make_uint8_byte_table): New function in UTF-2000.
2934         (uint8_byte_table_same_value_p): New function in UTF-2000.
2935         (BT_UINT16_MIN): New macro in UTF-2000.
2936         (BT_UINT16_MAX): New macro in UTF-2000.
2937         (BT_UINT16_t): New macro in UTF-2000.
2938         (BT_UINT16_nil): New macro in UTF-2000.
2939         (BT_UINT16_unbound): New macro in UTF-2000.
2940         (INT_UINT16_P): New inline function in UTF-2000.
2941         (UINT16_VALUE_P): New inline function in UTF-2000.
2942         (UINT16_ENCODE): New inline function in UTF-2000.
2943         (UINT16_DECODE): New inline function in UTF-2000.
2944         (UINT8_TO_UINT16): New inline function in UTF-2000.
2945         (mark_uint16_byte_table): New function in UTF-2000.
2946         (print_uint16_byte_table): New function in UTF-2000.
2947         (uint16_byte_table_equal): New function in UTF-2000.
2948         (uint16_byte_table_hash): New function in UTF-2000.
2949         (make_uint16_byte_table): New function in UTF-2000.
2950         (uint16_byte_table_same_value_p): New function in UTF-2000.
2951         (print_byte_table): New function in UTF-2000.
2952         (byte-table): Use `print_byte_table' as printer.
2953         (make_byte_table): Delete second argument `older'.
2954         (byte_table_same_value_p): New function in UTF-2000.
2955         (copy_byte_table): Deleted.
2956         (get_byte_table): New function in UTF-2000.
2957         (put_byte_table): New function in UTF-2000.
2958         (print_char_id_table): New function in UTF-2000.
2959         (char-id-table): Use `print_char_id_table' as printer.
2960         (make_char_id_table): Delete second argument `older'.
2961         (get_char_id_table): Use `get_byte_table [new implementation].
2962         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2963         implementation].
2964         (Ffind_char_attribute_table): New function in UTF-2000.
2965         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2966         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2967         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2968         (syms_of_mule_charset): Add new function
2969         `find-char-attribute-table' in UTF-2000.
2970
2971         * lrecord.h (enum lrecord_type): Add
2972         `lrecord_type_uint16_byte_table' and
2973         `lrecord_type_uint8_byte_table'.
2974
2975         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2976         (Lisp_Uint8_Byte_Table): New type.
2977         (XUINT8_BYTE_TABLE): New macro.
2978         (XSETUINT8_BYTE_TABLE): New macro.
2979         (UINT8_BYTE_TABLE_P): New macro.
2980         (GC_UINT8_BYTE_TABLE_P): New macro.
2981         (struct Lisp_Uint16_Byte_Table): New structure.
2982         (Lisp_Uint16_Byte_Table): New type.
2983         (XUINT16_BYTE_TABLE): New macro.
2984         (XSETUINT16_BYTE_TABLE): New macro.
2985         (UINT16_BYTE_TABLE_P): New macro.
2986         (GC_UINT16_BYTE_TABLE_P): New macro.
2987
2988 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2989
2990         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2991         (Vcharacter_ideographic_strokes_table): Deleted.
2992         (Vcharacter_total_strokes_table): Deleted.
2993         (Vcharacter_morohashi_daikanwa_table): Deleted.
2994         (Vcharacter_decomposition_table): Deleted.
2995         (Qname): Deleted because it is duplicated.
2996         (Qideographic_radical): Deleted.
2997         (Qideographic_strokes): Deleted.
2998         (Qtotal_strokes): Deleted.
2999         (Qmorohashi_daikanwa): Deleted.
3000         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3001         `ideographic-radical', `ideographic-strokes', `total-strokes',
3002         `morohashi-daikanwa' and `->decomposition'.
3003         (Fget_char_attribute): Likewise.
3004         (Fput_char_attribute): Likewise; use `make-vector' instead of
3005         `make_older_vector' for `->decomposition' value.
3006         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3007         `ideograph-daikanwa'.
3008         (syms_of_mule_charset): Delete builtin symbols `name',
3009         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3010         `morohashi-daikanwa'.
3011         (vars_of_mule_charset): Don't setup
3012         `Vcharacter_ideographic_radical_table',
3013         `Vcharacter_ideographic_strokes_table',
3014         `Vcharacter_total_strokes_table',
3015         `Vcharacter_morohashi_daikanwa_table' and
3016         `Vcharacter_decomposition_table'.
3017
3018 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3019
3020         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3021         `make_older_vector', `make_vector_newer_1' and
3022         `make_vector_newer'.
3023
3024         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3025         `make_older_vector' and `make_vector_newer'.
3026
3027         * config.h.in (HAVE_GGC): New macro.
3028
3029 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030
3031         * mule-charset.c (struct char_attribute_list_closure): New
3032         structure in UTF-2000.
3033         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3034         (Fchar_attribute_list): Likewise.
3035         (Fset_charset_mapping_table): Use `make_vector_newer'.
3036         (Fdecode_builtin_char): New function in UTF-2000.
3037         (syms_of_mule_charset): Add new function `char-attribute-list' and
3038         `decode-builtin-char' in UTF-2000.
3039
3040         * lisp.h (make_vector_newer): New prototype.
3041
3042         * alloc.c (make_vector_newer_1): New function.
3043         (make_vector_newer): New function.
3044
3045 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3046
3047         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3048         50100)'.
3049
3050 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3051
3052         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3053         (Vcharacter_attribute_table): Deleted.
3054         (Vcharacter_name_table): Deleted.
3055         (put_char_attribute): Deleted.
3056         (remove_char_attribute): Deleted.
3057         (struct char_attribute_alist_closure): New structure.
3058         (add_char_attribute_alist_mapper): New function.
3059         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3060         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3061         (Fget_char_attribute): Likewise.
3062         (Fput_char_attribute): Likewise.
3063         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3064         of `remove_char_attribute'.
3065         (Fdefine_char): Return character.
3066         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3067         and `Vcharacter_name_table'.
3068         (complex_vars_of_mule_charset): Likewise
3069         `Vchar_attribute_hash_table'.
3070
3071 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3072
3073         * character.h (CHARC_CHARSET): New macro.
3074         (CHARC_CHARSET_ID): New macro.
3075         (CHARC_CODE_POINT): New macro.
3076         (CHARC_COLUMNS): New macro.
3077         (CHARC_TO_CHAR): New inline function.
3078         (CHARC_EQ): New inline function.
3079         (CHARC_ASCII_EQ): New inline function.
3080         (CHARC_IS_SPACE): New inline function.
3081         (ASCII_TO_CHARC): New inline function.
3082
3083         * char-ucs.h (encode_char_2): Deleted.
3084         (ENCODE_CHAR): Use `encode_char_1' again.
3085         (breakup_char_1): Likewise.
3086         (CHAR_TO_CHARC): New inline function.
3087
3088         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3089
3090 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3091
3092         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3093         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3094         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3095         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3096         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3097         `CHARC_IS_SPACE'.
3098         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3099
3100         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3101         `CHARC_CODE_POINT'.
3102         (x_output_display_block): Use `CHARC_CHARSET' and
3103         `CHARC_ASCII_EQ'.
3104
3105         * redisplay-tty.c (tty_output_display_block): Use
3106         `CHARC_ASCII_EQ'.
3107         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3108
3109         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3110
3111         * insdel.c (find_charsets_in_charc_string): Use
3112         `CHARC_CHARSET_ID'.
3113         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3114         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3115         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3116         (convert_charc_string_into_malloced_string): Likewise.
3117
3118 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3119
3120         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3121         instead of <Emchar_dynarr *> for buf; use
3122         `convert_bufbyte_string_into_charc_dynarr' instead of
3123         `convert_bufbyte_string_into_emchar_dynarr'; use
3124         `find_charsets_in_charc_string' instead of
3125         `find_charsets_in_emchar_string'.
3126
3127         * redisplay.h:
3128         - Include "character.h".
3129         (struct rune): New member `cglyph'; delete member `chr'.
3130
3131         * redisplay.c (redisplay_text_width_charc_string): New function;
3132         delete `redisplay_text_width_emchar_string'.
3133         (rtw_charc_dynarr): New variable; renamed from
3134         `rtw_emchar_dynarr'.
3135         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3136         `rtw_emchar_dynarr'; use
3137         `convert_bufbyte_string_into_charc_dynarr' instead of
3138         `convert_bufbyte_string_into_emchar_dynarr'; use
3139         `redisplay_text_width_charc_string' instead of
3140         `redisplay_text_width_emchar_string'.
3141         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3142         instead of `rtw_emchar_dynarr'; use
3143         `convert_bufbyte_string_into_charc_dynarr' instead of
3144         `convert_bufbyte_string_into_emchar_dynarr'.
3145         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3146         `redisplay_text_width_charc_string' instead of
3147         `redisplay_text_width_emchar_string'.
3148         (create_text_block): Modify for <struct rune> change.
3149         (generate_formatted_string_db): Likewise.
3150         (create_string_text_block): Likewise.
3151         (pixel_to_glyph_translation): Likewise.
3152
3153         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3154         instead of <const Emchar *>.
3155         (x_text_width): Likewise.
3156         (x_output_display_block): Use <Charc_dynarr *> instead
3157         <Emchar_dynarr *>; modify for <structure rune> change.
3158         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3159         *>.
3160
3161         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3162         <const Emchar *>; use `charc_string_displayed_columns' instead of
3163         `emchar_string_displayed_columns'.
3164         (tty_output_display_block): Use <Charc_dynarr *> instead of
3165         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3166         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3167         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3168         `tty_output_emchar_dynarr_dynarr'.
3169         (tty_output_charc_dynarr): New function; delete
3170         `tty_output_charc_dynarr'.
3171
3172         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3173         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3174         <Emchar_dynarr *> for buf; use
3175         `convert_bufbyte_string_into_charc_dynarr' instead of
3176         `convert_bufbyte_string_into_emchar_dynarr'.
3177
3178         * frame.c (title_string_charc_dynarr): New variable; renamed from
3179         `title_string_emchar_dynarr'.
3180         (generate_title_string): Use `title_string_charc_dynarr' instead
3181         of `title_string_emchar_dynarr'; use
3182         `convert_charc_string_into_malloced_string' instead of
3183         `convert_emchar_string_into_malloced_string'.
3184         (init_frame): Use `title_string_charc_dynarr' instead of
3185         `title_string_emchar_dynarr'.
3186
3187         * console.h:
3188         - Include "character.h".
3189         (struct console_methods): Use <const Charc *> instead of <const
3190         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3191         <Emchar_dynarr *> in output_string_method.
3192
3193         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3194         <Emchar_dynarr *>.
3195
3196         * console-stream.c (stream_text_width): Use <const Charc *>
3197         instead of <const Emchar *>.
3198
3199         * character.h (Charc_dynarr): New type.
3200
3201         * char-ucs.h (structure Charc): New structure; define new type
3202         `Charc'.
3203
3204         * char-lb.h (DECODE_CHAR): New inline function.
3205         (encode_char_1): New inline function.
3206         (ENCODE_CHAR): New macro.
3207         (structure Charc): New structure; define new type `Charc'.
3208
3209         * char-1byte.h (Vcharset_control_1): New macro.
3210         (Vcharset_latin_iso8859_1): New macro.
3211         (DECODE_CHAR): New inline function.
3212         (encode_char_1): New inline function.
3213         (ENCODE_CHAR): New macro.
3214         (structure Charc): New structure; define new type `Charc'.
3215
3216         * insdel.c (find_charsets_in_charc_string): New function; delete
3217         `find_charsets_in_emchar_string'.
3218         (charc_string_displayed_columns): New function; delete
3219         `emchar_string_displayed_columns'.
3220         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3221         `convert_bufbyte_string_into_emchar_dynarr'.
3222         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3223         `convert_charc_string_into_bufbyte_dynarr'.
3224         (convert_charc_string_into_malloced_string): New function; delete
3225         `convert_charc_string_into_malloced_string'.
3226
3227         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3228         `find_charsets_in_emchar_string'.
3229         (charc_string_displayed_columns): New prototype; delete
3230         `emchar_string_displayed_columns'.
3231         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3232         `convert_charc_string_into_bufbyte_dynarr'.
3233         (convert_charc_string_into_malloced_string): New prototype; delete
3234         `convert_charc_string_into_malloced_string'.
3235
3236 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3237
3238         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3239
3240 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3241
3242         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3243
3244         * char-ucs.h: Use <short> for <Charset_ID>.
3245
3246         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3247         <Charset_ID>.
3248
3249 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3250
3251         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3252         to 0.16.
3253
3254 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3255
3256         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3257         variable.
3258         (Qmorohashi_daikanwa): New variable.
3259         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3260         for `morohashi-daikanwa' attribute.
3261         (Fget_char_attribute): Likewise.
3262         (Fput_char_attribute): Likewise.
3263         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3264         has the same value of `ideograph-daikanwa'.
3265         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3266         (vars_of_mule_charset): Setup
3267         `Vcharacter_morohashi_daikanwa_table'.
3268
3269 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3270
3271         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3272         attributes.
3273         (add_charset_to_list_mapper): Add `key' instead of
3274         `XCHARSET_NAME (value)' to return aliases.
3275
3276 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3277
3278         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3279         variable.
3280         (Vcharacter_ideographic_strokes_table): New variable.
3281         (Qideographic_radical): New variable.
3282         (Qideographic_strokes): New variable.
3283         (Fchar_attribute_alist): Use
3284         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3285         attribute; use `Vcharacter_ideographic_strokes_table' for
3286         `ideographic-strokes' attribute.
3287         (Fget_char_attribute): Likewise.
3288         (Fput_char_attribute): Likewise.
3289         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3290         `ideographic-strokes'.
3291         (vars_of_mule_charset): Setup
3292         `Vcharacter_ideographic_radical_table' and
3293         `Vcharacter_ideographic_strokes_table'.
3294
3295 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3296
3297         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3298         (Qtotal_strokes): New variable.
3299         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3300         `total-strokes' attribute.
3301         (Fget_char_attribute): Likewise.
3302         (Fput_char_attribute): Likewise.
3303         (syms_of_mule_charset): Add new symbol `total-strokes'.
3304         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3305
3306 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3307
3308         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3309         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3310         are found.
3311         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3312         `->decomposition' attribute.
3313         (Fput_char_attribute): Likewise.
3314         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3315
3316 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3317
3318         * mule-charset.c (decoding_table_check_elements): New function.
3319         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3320
3321 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3322
3323         * mule-charset.c (Fset_charset_mapping_table): Use
3324         `put_char_ccs_code_point'.
3325
3326 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3327
3328         * mule-charset.c (decoding_table_put_char): New inline function.
3329         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3330
3331 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3332
3333         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3334         (XCHARSET_BYTE_SIZE): New macro.
3335         (decoding_table_remove_char): New inline function.
3336         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3337         `decoding_table_remove_char'.
3338         (remove_char_ccs): Use `decoding_table_remove_char'.
3339         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3340
3341 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3342
3343         * mule-charset.c (Vcharacter_name_table): New variable.
3344         (Qname): New variable.
3345         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3346         attribute.
3347         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3348         `Vcharacter_name_table' for `name' attribute.
3349         (Fremove_char_attribute): Use function `remove_char_ccs'.
3350         (put_char_ccs_code_point): New function.
3351         (remove_char_ccs): New function.
3352         (syms_of_mule_charset): Add new symbol `name'.
3353         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3354
3355 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3356
3357         * mule-charset.c (make_byte_table): Add new argument `older'.
3358         (make_char_id_table): Likewise.
3359         (copy_char_id_table): Comment out because it is not used.
3360         (put_char_id_table): Modify for `make_byte_table'.
3361         (Fput_char_attribute): Make encoding_table as older object;
3362         inherit older bit of `Vcharacter_composition_table'.
3363         (mark_charset): Don't mark `cs->encoding_table'.
3364         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3365         normal object; make `Vcharacter_composition_table' as an older
3366         object; delete staticpro for `Vcharacter_composition_table'; make
3367         `Vcharacter_variant_table' as a normal object.
3368
3369         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3370         (mark_object): Don't check older object in UTF-2000.
3371
3372         * lrecord.h (struct lrecord_header): Add new member `older' in
3373         UTF-2000.
3374         (set_lheader_implementation): Setup `SLI_header->older' in
3375         UTF-2000.
3376         (set_lheader_older_implementation): New macro in UTF-2000.
3377         (OLDER_RECORD_P): New macro in UTF-2000.
3378         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3379         (alloc_older_lcrecord): New prototype in UTF-2000.
3380         (alloc_older_lcrecord_type): New macro in UTF-2000.
3381
3382 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3383
3384         * mule-charset.c (byte_table_description): Use
3385         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3386         (char_id_table_description): Delete bogus `, 1'.
3387         (Fget_char_attribute): Refer encoding_table of each coded-charset
3388         to get value of coded-charset attribute of a character.
3389         (Fput_char_attribute): Use `make_older_vector' instead of
3390         `make_vector'; use encoding_table of each coded-charset to store
3391         value of coded-charset attribute of a character.
3392         (Fremove_char_attribute): Use encoding_table of each coded-charset
3393         to store value of coded-charset attribute of a character.
3394         (mark_charset): Mark `cs->encoding_table'; don't mark
3395         `cs->decoding_table'.
3396         (charset_description): Add description of new member
3397         `encoding_table'.
3398         (make_charset): Initialize `encoding_table'.
3399
3400         * char-ucs.h (struct Lisp_Charset): Add new member
3401         `encoding_table'.
3402         (CHARSET_ENCODING_TABLE): New macro.
3403         (XCHARSET_ENCODING_TABLE): New macro.
3404         (charset_code_point): New implementation.
3405         (encode_char_1): Likewise.
3406
3407         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3408         (disksave_object_finalization_1): Call finalizers of
3409         `all_older_lcrecords' in UTF-2000.
3410         (make_older_vector): New function in UTF-2000.
3411         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3412         UTF-2000.
3413
3414         * lisp.h (make_older_vector): New prototype in UTF-2000.
3415
3416 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3417
3418         * lrecord.h (enum lrecord_type): Rename
3419         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3420
3421         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3422         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3423         `get_char_code_table'.
3424
3425         * mule-charset.c (mark_char_id_table): Renamed from
3426         `mark_char_code_table'.
3427         (char_id_table_equal): Renamed from `char_code_table_equal'.
3428         (char_id_table_hash): Renamed from `char_code_table_hash'.
3429         (make_char_id_table): Renamed from `make_char_code_table'.
3430         (copy_char_id_table): Renamed from `copy_char_code_table'.
3431         (get_char_id_table): Renamed from `get_char_code_table'.
3432         (put_char_id_table): Renamed from `put_char_code_table'.
3433         (to_char_id): Renamed from `to_char_code'.
3434
3435         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3436         `Lisp_Char_Code_Table'.
3437         (char_id_table): Renamed from `char_code_table'.
3438         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3439         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3440         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3441         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3442         (get_char_id_table): Renamed from `get_char_code_table'.
3443
3444 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3445
3446         * lrecord.h (enum lrecord_type): Rename
3447         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3448
3449         * mule-charset.c (mark_byte_table): Renamed from
3450         `mark_char_byte_table'.
3451         (byte_table_equal): Renamed from `char_byte_table_equal'.
3452         (byte_table_hash): Renamed from `byte_table_hash'.
3453         (make_byte_table): Renamed from `make_byte_table'.
3454         (copy_byte_table): Renamed from `copy_char_byte_table'.
3455
3456         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3457         `Lisp_Char_Byte_Table'.
3458         (byte_table): Renamed from `char_byte_table'.
3459         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3460         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3461         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3462         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3463
3464 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3465
3466         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3467         (dfc_convert_to_internal_format): Likewise.
3468         
3469         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3470         * text-coding.c (Fcoding_system_alias_p): New function.
3471         * text-coding.c (Fcoding_system_aliasee): New function.
3472         * text-coding.c (append_suffix_to_symbol): New function.
3473         * text-coding.c (dangling_coding_system_alias_p): New function.
3474         * text-coding.c (Ffind_coding_system):
3475         * text-coding.c (Fcopy_coding_system):
3476         * text-coding.c (encode_coding_no_conversion):
3477         * text-coding.c (syms_of_file_coding):
3478         * text-coding.c (vars_of_file_coding):
3479         Rewrite coding system alias code.
3480         Allow nested aliases, like symbolic links.
3481         Allow redefinition of coding system aliases.
3482         Prevent existence of dangling coding system aliases.
3483         Eliminate convert_to_external_format.
3484         Eliminate convert_to_internal_format.
3485         
3486         * text-coding.c: Change enum eol_type to eol_type_t.
3487
3488 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489
3490         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3491         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3492
3493         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3494         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3495
3496 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3497
3498         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3499         `ideograph-daikanwa'.
3500
3501         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3502         (Vcharset_ucs_bmp): Likewise.
3503         (Vcharset_mojikyo): Add new extern variable definition.
3504         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3505         (Vcharset_latin_iso8859_3): Likewise.
3506         (Vcharset_latin_iso8859_4): Likewise.
3507         (Vcharset_latin_iso8859_9): Likewise.
3508         (Vcharset_latin_viscii_lower): Likewise.
3509         (Vcharset_latin_viscii_upper): Likewise.
3510         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3511         `mojikyo' code-point is used to decode.
3512         (encode_char_2): New function [to convert `mojikyo' code-point to
3513         Mojikyo font encoding].
3514         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3515         (breakup_char_1): Likewise.
3516         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3517
3518 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3519
3520         * text-coding.c (Fmake_coding_system): Add document about
3521         `disable-composition' property.
3522
3523 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3524
3525         * text-coding.c (Qdisable_composition): New variable; delete
3526         `Qcomposite'.
3527         (Fmake_coding_system): Add new property `disable-composite';
3528         delete property `composite'.
3529         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3530         instead of `!CODING_SYSTEM_COMPOSITE'.
3531         (syms_of_file_coding): Add new symbol `disable-composition';
3532         delete symbol `composite'.
3533
3534         * file-coding.h (struct Lisp_Coding_System): Add
3535         `disable_composition'; delete `enable_composition'.
3536         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3537         `CODING_SYSTEM_COMPOSITE'.
3538         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3539         `XCODING_SYSTEM_COMPOSITE'.
3540
3541 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3542
3543         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3544         to 0.15.
3545
3546 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3547
3548         * text-coding.c (Qcomposite): New variable.
3549         (Fmake_coding_system): Add new property `composite'.
3550         (struct decoding_stream): Add `combined_char_count',
3551         `combined_chars' and `combining_table' in UTF-2000.
3552         (COMPOSE_FLUSH_CHARS): New macro.
3553         (COMPOSE_ADD_CHAR): New macro.
3554         (reset_decoding_stream): Reset `str->combined_char_count' and
3555         `str->combining_table' in UTF-2000.
3556         (decode_coding_iso2022): Modify for character-decomposition.
3557         (syms_of_file_coding): Add new symbol `composite'.
3558
3559 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3560
3561         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3562         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3563         of `Vcharacter_composition_table' if `->decomposition' property
3564         has only 1 element.
3565         (Qlatin_tcvn5712): New variable.
3566         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3567         (complex_vars_of_mule_charset): Add new coded-charset
3568         `latin-tcvn5712'.
3569
3570         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3571
3572 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3573
3574         * file-coding.h (struct Lisp_Coding_System): Add
3575         `enable_composition'.
3576         (CODING_SYSTEM_COMPOSITE): New macro.
3577         (XCODING_SYSTEM_COMPOSITE): New macro.
3578
3579 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3580
3581         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3582
3583 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3584
3585         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3586         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3587
3588 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3589
3590         * mule-charset.c (Vcharset_mojikyo): New variable.
3591         (Fdefine_char): Don't use coded-charset which does not have
3592         non-builtin character range to allocate character-id.
3593         (Qmojikyo): New variable.
3594         (syms_of_mule_charset): Add new symbol `mojikyo'.
3595         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3596
3597         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3598         (LEADING_BYTE_MOJIKYO): New macro.
3599         (MIN_CHAR_MOJIKYO): New macro.
3600         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3601         (MAX_CHAR_MOJIKYO): New macro.
3602
3603 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3604
3605         * mule-charset.c (remove_char_attribute): Fixed.
3606
3607 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3608
3609         * mule-charset.c (remove_char_attribute): New function.
3610         (Fremove_char_attribute): New function.
3611         (encode_builtin_char_1): Comment out builtin-support for
3612         greek-iso8859-7 and cyrillic-iso8859-5.
3613         (Fdecode_char): Check `code' is an integer.
3614         (syms_of_mule_charset): Add `remove-char-attribute'.
3615         (MIN_CHAR_GREEK): Deleted.
3616         (MAX_CHAR_GREEK): Likewise.
3617         (MIN_CHAR_CYRILLIC): Likewise.
3618         (MAX_CHAR_CYRILLIC): Likewise.
3619         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3620         MAX_CHAR_GREEK for `greek-iso8859-7'.
3621
3622         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3623         (MAX_CHAR_GREEK): Likewise.
3624         (MIN_CHAR_CYRILLIC): Likewise.
3625         (MAX_CHAR_CYRILLIC): Likewise.
3626
3627 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3628
3629         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3630         format is used without `ucs' property.
3631         (Fdecode_char): Fix problem with GR representation.
3632         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3633         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3634
3635 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3636
3637         * mule-charset.c (make_builtin_char): New function.
3638         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3639         (Fset_charset_mapping_table): Modify for new representation of
3640         code-point.
3641         (Fdecode_char): New function.
3642         (syms_of_mule_charset): Add new builtin function `decode-char' in
3643         UTF-2000.
3644
3645         * char-ucs.h (make_builtin_char): New prototype.
3646         (DECODE_CHAR): New inline function.
3647         (MAKE_CHAR): Use `DECODE_CHAR'.
3648
3649 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3650
3651         * text-coding.c (parse_charset_conversion_specs): Use
3652         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3653         `XCHARSET_TYPE'.
3654         (iso2022_designate): Likewise.
3655
3656         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3657         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3658
3659         * mule-charset.c (Vcharset_ucs): New variable.
3660         (print_charset): Change design; use `CHARSET_CHARS' and
3661         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3662         (make_charset): Change signature to specify `chars' and
3663         `dimension' instead of `type'.
3664         (range_charset_code_point): Modify for 256^n-set.
3665         (encode_builtin_char_1): Encode as `ucs' in default.
3666         (Fmake_charset): Modify for `make_charset'.
3667         (Fmake_reverse_direction_charset): Likewise.
3668         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3669         UTF-2000.
3670         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3671         for `make_charset'.
3672
3673         * char-ucs.h (Vcharset_ucs): New variable.
3674         (LEADING_BYTE_UCS): New macro.
3675         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3676         and `chars' to `unsigned short' from `unsigned int'.
3677         (CHARSET_TYPE): Deleted.
3678         (XCHARSET_TYPE): Deleted.
3679
3680 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3681
3682         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3683
3684         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3685         (ENCODE_CHAR): New macro.
3686
3687 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3688
3689         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3690         to 0.14 (Kawachi-Katakami).
3691
3692 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3693
3694         * text-coding.c (char_encode_shift_jis): Modify for
3695         `charset_code_point'.
3696         (char_encode_iso2022): Likewise.
3697
3698         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3699         (integer) instead of list of <Lisp_Object>s (integers) as the
3700         format of code-point of a coded-charset.
3701         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3702         (encode_builtin_char_1): New function; delete
3703         `split_builtin_char'.
3704         (charset_code_point): Return <int> instead of <Lisp_Object>.
3705         (Fsplit_char): Don't use `SPLIT_CHAR'.
3706
3707         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3708         prototype for `split_builtin_char'.
3709         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3710         (charset_code_point): Likewise.
3711         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3712         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3713
3714 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3715
3716         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3717         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3718
3719 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3720
3721         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3722
3723         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3724         (MAX_CHAR_OBS_94x94): Deleted.
3725
3726 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3727
3728         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3729
3730         * char-ucs.h (MAX_CHAR_BMP): New macro.
3731
3732 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3733
3734         * text-coding.c: Sync with r21-2-24.
3735
3736 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3737
3738         * file-coding.c: Modify for UTF-2000.
3739
3740 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3741
3742         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3743         to 0.13 (Takaida).
3744
3745 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3746
3747         * mule-charset.c (split_builtin_char): Delete builtin support for
3748         `katakana-jisx0201'.
3749         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3750         BMP area in builtin representation.
3751
3752         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3753         `Vcharset_katakana_jisx0201'.
3754
3755 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3756
3757         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3758         (Qisolated): New variable.
3759         (Qinitial): New variable.
3760         (Qmedial): New variable.
3761         (Qfinal): New variable.
3762         (Qvertical): New variable.
3763         (Qsmall): New variable.
3764         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3765         `Qvertical' and `Qsmall'.
3766         (Qmojikyo_pj_[1 .. 21]): New variable.
3767         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3768         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3769         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3770         .. 21]'.
3771
3772 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3773
3774         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3775         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3776         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3777
3778 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3779
3780         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3781         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3782         BMP.
3783         (Qjapanese_jisx0208_1990): New variable.
3784         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3785         (complex_vars_of_mule_charset): Add new coded-charset
3786         `japanese-jisx0208-1990'.
3787
3788         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3789         (MIN_CHAR_JIS_X0208_1990): New macro.
3790         (MAX_CHAR_JIS_X0208_1990): New macro.
3791
3792 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3793
3794         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3795         coded-charset is not found.
3796
3797 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3798
3799         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3800         (Fdefine_char): Use `Fmake_char'.
3801
3802 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3803
3804         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3805         (Vcharset_hiragana_jisx0208): Deleted.
3806         (Vcharset_katakana_jisx0208): Deleted.
3807         (Qideograph_daikanwa): New variable.
3808         (Qhiragana_jisx0208): Deleted.
3809         (Qkatakana_jisx0208): Deleted.
3810         (split_builtin_char): Split `ideograph-daikanwa'.
3811         (Fsplit_char): New implementation for UTF-2000.
3812         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3813         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3814         (complex_vars_of_mule_charset): Add new coded-charset
3815         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3816         `katakana-jisx0208'.
3817
3818         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3819         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3820         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3821         (MIN_CHAR_DAIKANWA): New macro.
3822         (MAX_CHAR_DAIKANWA): New macro.
3823
3824 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3825
3826         * data.c (Fstring_to_number): Don't recognize floating point if
3827         base is not 10.
3828
3829 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3830
3831         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3832
3833 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3834
3835         * mule-charset.c (Qsquare): New variable.
3836         (to_char_code): Add `Qsquare'.
3837         (syms_of_mule_charset): Add new symbol `square'.
3838
3839 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3840
3841         * mule-charset.c (Qcircle): New variable.
3842         (to_char_code): Add `Qcircle'.
3843         (syms_of_mule_charset): Add new symbol `circle'.
3844
3845 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3846
3847         * mule-charset.c (Qfont): New variable.
3848         (to_char_code): Add `Qfont'.
3849         (syms_of_mule_charset): Add new symbol `font'.
3850
3851 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3852
3853         * mule-charset.c (Qsub): New variable.
3854         (to_char_code): Add `Qsub'.
3855         (syms_of_mule_charset): Add new symbol `sub'.
3856
3857 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3858
3859         * mule-charset.c (Fput_char_attribute): Convert each element of
3860         VALUE to GL position if ATTRIBUTE is a GR-set,
3861
3862 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3863
3864         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3865         coded-charset is a GR-set.
3866
3867 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3868
3869         * mule-charset.c (Fput_char_attribute): Check each element of
3870         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3871
3872 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3873
3874         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3875         UTF-2000.
3876         (Qethiopic_ucs): New variable in UTF-2000.
3877         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3878         (complex_vars_of_mule_charset): Add new coded-charset
3879         `ethiopic-ucs' in UTF-2000.
3880
3881         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3882         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3883         9)'.
3884         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3885         10)'.
3886         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3887
3888 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3889
3890         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3891         `ascii'.
3892
3893 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3894
3895         * mule-charset.c (Vcharacter_variant_table): New variable.
3896         (Q_ucs): New variable.
3897         (Fchar_variants): New function.
3898         (Fput_char_attribute): Register `->ucs' value to
3899         `Vcharacter_variant_table'.
3900         (syms_of_mule_charset): Add new function `char-variants' and new
3901         symbol `->ucs'.
3902         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3903
3904 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3905
3906         * mule-charset.c (get_char_code_table): Allow negative character
3907         code.
3908         (put_char_code_table): Likewise.
3909         (Vcharacter_composition_table): New variable.
3910         (Q_decomposition): New variable.
3911         (Qwide): New variable.
3912         (Qnarrow): New variable.
3913         (Qcompat): New variable.
3914         (QnoBreak): New variable.
3915         (Qsuper): New variable.
3916         (Qfraction): New variable.
3917         (to_char_code): New function.
3918         (Fget_composite_char): New function.
3919         (Fput_char_attribute): Register `->decomposition' value to
3920         `Vcharacter_composition_table'.
3921         (syms_of_mule_charset): Add new function `get-composite-char', new
3922         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3923         `super' and `fraction'.
3924         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3925
3926 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3927
3928         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3929         character; copy the return value.
3930
3931 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3932
3933         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3934
3935         * mule-charset.c (range_charset_code_point): Must use make_int.
3936         (split_builtin_char): New function.
3937
3938 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3939
3940         * mule-charset.c (char_byte_table): Change name from
3941         "char-code-table" to "char-byte-table".
3942         (mark_char_code_table): New function.
3943         (char_code_table_equal): New function.
3944         (char_code_table_hash): New function.
3945         (char_code_table_description): New constant.
3946         (char_code_table): New type.
3947         (make_char_code_table): New function.
3948         (copy_char_code_table): New function.
3949         (get_char_code_table): Modify for `char_code_table' type.
3950         (put_char_code_table): Likewise.
3951         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3952         (Kashiwara).
3953
3954         * char-ucs.h (char_code_table): New type.
3955         (XCHAR_CODE_TABLE): New macro.
3956         (XSETCHAR_CODE_TABLE): New macro.
3957         (CHAR_CODE_TABLE_P): New macro.
3958         (GC_CHAR_CODE_TABLE_P): New macro.
3959         (struct Lisp_Char_Code_Table): New structure.
3960
3961 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3962
3963         * mule-charset.c (Fmake_charset): Setup byte_offset for
3964         {94|96}^n-set.
3965
3966 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3967
3968         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3969         character.
3970
3971 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3972
3973         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3974         is found.
3975
3976 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3977
3978         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3979         charset, it is regarded as a charset.
3980         (put_char_attribute): New function in UTF-2000.
3981         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3982         charset, mapping-table of the charset is modified.
3983         (Fdefine_char): New function in UTF-2000.
3984         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3985         `Fput_char_attribute'.
3986         (syms_of_mule_charset): Add new function `define-char' and new
3987         symbol `ucs' in UTF-2000.
3988         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3989
3990 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3991
3992         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3993         non-UTF-2000 configuration.
3994
3995 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3996
3997         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3998         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3999
4000         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4001         deleted.
4002         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4003         (Fset_charset_mapping_table): Likewise.
4004
4005         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4006         (CHARSET_ENCODING_TABLE): Delete.
4007         (XCHARSET_ENCODING_TABLE): Delete.
4008         (charset_code_point): New interface.
4009
4010 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4011
4012         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4013         instead of `charset_get_byte1' and `charset_get_byte2'.
4014
4015         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4016         (charset_get_byte2): Deleted.
4017
4018 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4019
4020         * char-ucs.h (SPLIT_CHAR): New inline function.
4021         (breakup_char_1): Use `SPLIT_CHAR'.
4022
4023         * mule-charset.c (range_charset_code_point): New function.
4024         (charset_code_point): New function.
4025
4026         * char-ucs.h (range_charset_code_point): New interface.
4027         (breakup_char_1): Use `range_charset_code_point'.
4028
4029 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4030
4031         * mule-charset.c (Fmake_charset): Delete unused local variable
4032         `code_offset'.
4033
4034         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4035         (breakup_char_1): Find a charset and code-point in
4036         `Vcharacter_attribute_table'.
4037
4038 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4039
4040         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4041         to 0.10 (Yao).
4042
4043 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4044
4045         * mule-charset.c (Vcharacter_attribute_table): New variable.
4046         (Fchar_attribute_alist): New function.
4047         (Fget_char_attribute): New function.
4048         (Fput_char_attribute): New function.
4049         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4050         too.
4051         (syms_of_mule_charset): Add new function `char-attribute-alist',
4052         `get-char-attribute' and `put-char-attribute'.
4053         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4054
4055 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4056
4057         * mule-charset.c (Fmake_charset): Just use
4058         `get_unallocated_leading_byte'.
4059
4060         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4061         sets; don't use final-byte based number for private sets.
4062
4063 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4064
4065         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4066         integer.
4067
4068 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4069
4070         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4071         to 0.9.
4072
4073 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4074
4075         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4076         of `CHAR_LEADING_BYTE' in UTF-2000.
4077
4078         * insdel.c (find_charsets_in_bufbyte_string): Use
4079         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4080         (find_charsets_in_emchar_string): Likewise.
4081
4082         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4083         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4084
4085         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4086         (CHAR_CHARSET_ID): New macro.
4087
4088 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4089
4090         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4091         charset-id - MIN_LEADING_BYTE.
4092         (put_char_table): Likewise.
4093
4094 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4095
4096         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4097         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4098         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4099         (CHARSET_ID_OFFSET): New macro.
4100         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4101         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4102         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4103         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4104         4).
4105         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4106         5).
4107         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4108         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4109         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4110         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4111         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4112
4113 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4114
4115         * mule-charset.c (next_allocated_leading_byte): New variable in
4116         UTF-2000.
4117         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4118         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4119         (get_unallocated_leading_byte): Simply use
4120         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4121         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4122         UTF-2000.
4123
4124         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4125         (MAX_LEADING_BYTE_PRIVATE): New macro.
4126         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4127         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4128
4129 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4130
4131         * mule-charset.c (Fmake_charset): Allocate final-byte based
4132         charset-id for 94-set, 96-set and 94x94-set.
4133
4134 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4135
4136         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4137         ambiguous `else'.
4138         (Fmake_charset): Likewise.
4139         (complex_vars_of_mule_charset): Modify the font registry of
4140         `ucs-bmp' not to match `Ethiopic-Unicode'.
4141
4142 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4143
4144         * mule-charset.c (complex_vars_of_mule_charset): Add font
4145         registory of `ucs-bmp'.
4146
4147 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4148
4149         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4150         coded-charsets in `default-coded-charset-priority-list' when
4151         breaking up a character.
4152
4153         * mule-charset.c (Vcharset_latin_viscii): New variable.
4154         (Qlatin_viscii): New variable.
4155         (make_charset): Don't use `decoding_table'.
4156         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4157         byte_offset.
4158         (Fset_charset_mapping_table): New implementation.
4159         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4160         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4161         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4162         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4163         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4164         charset `latin_viscii'.
4165
4166         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4167         (CHARSET_TYPE_94X94): Change to 1 from 2.
4168         (CHARSET_TYPE_96): Change to 2 from 1.
4169         (CHARSET_TYPE_128): New macro.
4170         (CHARSET_TYPE_128X128): Change to 5 from 4.
4171         (CHARSET_TYPE_256): New macro.
4172         (CHARSET_TYPE_256X256): Change to 7 from 5.
4173         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4174
4175 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4176
4177         * text-coding.c (char_encode_shift_jis): Refer
4178         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4179         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4180
4181         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4182         (char_byte_table_equal): New function in UTF-2000.
4183         (char_byte_table_hash): New function in UTF-2000.
4184         (char_byte_table_description): New constant in UTF-2000.
4185         (char_byte_table): New type in UTF-2000.
4186         (make_char_byte_table): New function in UTF-2000.
4187         (copy_char_byte_table): New function in UTF-2000.
4188         (make_char_code_table): New macro in UTF-2000.
4189         (get_char_code_table): New function in UTF-2000.
4190         (put_char_code_table): New function in UTF-2000.
4191         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4192         (charset_description): Add setting in UTF-2000.
4193         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4194         `CHARSET_TO_BYTE1_TABLE(cs)'.
4195         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4196         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4197         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4198         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4199         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4200         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4201         `CHARSET_TO_BYTE2_TABLE(cs)'.
4202
4203         * char-ucs.h (char_byte_table): New type.
4204         (XCHAR_BYTE_TABLE): New macro.
4205         (XSETCHAR_BYTE_TABLE): New macro.
4206         (CHAR_BYTE_TABLE_P): New macro.
4207         (GC_CHAR_BYTE_TABLE_P): New macro.
4208         (struct Lisp_Char_Byte_Table): New structure.
4209         (get_char_code_table): New interface.
4210         (Emchar_to_byte_table): Deleted.
4211         (get_byte_from_character_table): Deleted.
4212         (struct Lisp_Charset): Add `encoding_table'; delete
4213         `to_byte1_table' and `to_byte2_table'.
4214         (CHARSET_ENCODING_TABLE): New macro.
4215         (CHARSET_TO_BYTE1_TABLE): Deleted.
4216         (CHARSET_TO_BYTE2_TABLE): Deleted.
4217         (XCHARSET_ENCODING_TABLE): New macro.
4218         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4219         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4220
4221 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4222
4223         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4224         `vietnamese-viscii-*'.
4225
4226 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4227
4228         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4229         (Qvietnamese_viscii_upper): New variable.
4230         (Fdefine_charset_alias): New function.
4231         (syms_of_mule_charset): Add new function `define-charset-alias'.
4232         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4233         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4234         `latin-viscii-*'.
4235
4236 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4237
4238         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4239         (MAX_CHAR_OBS_94x94): New macro.
4240         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4241         for 94x94 sets.
4242
4243         * mule-charset.c (put_byte_from_character_table): Change unit size
4244         from 128 to 256.
4245         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4246         not defined.
4247         (Fmake_reverse_direction_charset): Modify dummy argument of
4248         `make_charset' for non-UTF-2000 environment.
4249
4250 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4251
4252         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4253
4254         * mule-charset.c (destroy_byte_from_character_table): New macro.
4255         (latin_jisx0201_to_ucs): Deleted.
4256         (latin_iso8859_2_to_ucs): Deleted.
4257         (latin_iso8859_3_to_ucs): Deleted.
4258         (latin_iso8859_4_to_ucs): Deleted.
4259         (latin_iso8859_9_to_ucs): Deleted.
4260         (latin_viscii_lower_to_ucs): Deleted.
4261         (latin_viscii_upper_to_ucs): Deleted.
4262         (mark_charset): Mark `cs->decoding_table'.
4263         (Fcharset_mapping_table): Fix DOC-string.
4264         (Fset_charset_mapping_table): New function.
4265         (syms_of_mule_charset): Add nwe function
4266         `set-charset-mapping-table'.
4267         (complex_vars_of_mule_charset): Don't setup and use
4268         `latin_*_to_ucs'.
4269
4270 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4271
4272         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4273         charset.
4274
4275 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4276
4277         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4278         (Vcharset_katakana_jisx0208): New variable.
4279         (Qhiragana_jisx0208): New variable.
4280         (Qkatakana_jisx0208): New variable.
4281         (make_charset): Add new argument `byte_offset'.
4282         (charset_get_byte1): Modify for new coded-charset definition; use
4283         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4284         `XCHARSET_BYTE_OFFSET'.
4285         (Fmake_charset): Modify for `make_charset'.
4286         (Fmake_reverse_direction_charset): Likewise.
4287         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4288         `katakana-jisx0208'.
4289         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4290         `.'  in font registry of charset `katakana-jisx0201',
4291         `latin-jisx0201', `vietnamese-viscii-lower' and
4292         `vietnamese-viscii-upper'; modify DOC-string of charset
4293         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4294         registry of charset `japanese-jisx0208' not to use font for JIS
4295         X0208:1990; add new charset `hiragana-jisx0208' and
4296         `katakana-jisx0208'.
4297
4298         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4299         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4300         (struct Lisp_Charset): Add `byte_offset'.
4301         (CHARSET_BYTE_OFFSET): New macro.
4302         (XCHARSET_UCS_MIN): New macro.
4303         (XCHARSET_UCS_MAX): New macro.
4304         (XCHARSET_CODE_OFFSET): New macro.
4305         (XCHARSET_BYTE_OFFSET): New macro.
4306         (MIN_CHAR_HIRAGANA): New macro.
4307         (MAX_CHAR_HIRAGANA): New macro.
4308         (MIN_CHAR_KATAKANA): New macro.
4309         (MAX_CHAR_KATAKANA): New macro.
4310         (MAKE_CHAR): Modify for new coded-charset definition; use
4311         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4312         `XCHARSET_BYTE_OFFSET'.
4313
4314 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * mule-charset.c (CHAR96): Deleted.
4317         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4318         <Lisp_Object>.
4319         (latin_iso8859_2_to_ucs): Likewise.
4320         (latin_iso8859_3_to_ucs): Likewise.
4321         (latin_iso8859_4_to_ucs): Likewise.
4322         (latin_iso8859_9_to_ucs): Likewise.
4323         (latin_viscii_lower_to_ucs): Likewise.
4324         (latin_viscii_upper_to_ucs): Likewise.
4325         (latin_tcvn5712_to_ucs): Commented out.
4326         (make_charset): Change type of argument `decoding_table' from
4327         <Emchar*> to <Lisp_Object> [vector of characters].
4328         (Fmake_charset): Modify for `make_charset'.
4329         (Fmake_reverse_direction_charset): Likewise.
4330         (Fcharset_mapping_table): New function in UTF-2000.
4331         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4332         UTF-2000.
4333         (complex_vars_of_mule_charset): Modify for type change of
4334         `*_to_ucs'; modify for `make_charset'.
4335
4336         * char-ucs.h (struct Lisp_Charset): Change type of
4337         `decoding_table' from <Emchar*> to <Lisp_Object>.
4338         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4339
4340 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4341
4342         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4343         error with non-UTF-2000-Mule.
4344
4345 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4346
4347         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4348         in lisp again].
4349         (Vcharset_chinese_cns11643_4): Likewise.
4350         (Vcharset_chinese_cns11643_5): Likewise.
4351         (Vcharset_chinese_cns11643_6): Likewise.
4352         (Vcharset_chinese_cns11643_7): Likewise.
4353         (Qchinese_cns11643_3): Likewise.
4354         (Qchinese_cns11643_4): Likewise.
4355         (Qchinese_cns11643_5): Likewise.
4356         (Qchinese_cns11643_6): Likewise.
4357         (Qchinese_cns11643_7): Likewise.
4358         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4359         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4360         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4361         (complex_vars_of_mule_charset): Likewise.
4362
4363 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4364
4365         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4366         96-set.
4367         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4368         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4369
4370 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4371
4372         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4373         0xFF60.
4374         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4375         (breakup_char_1): Likewise.
4376
4377         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4378         one of them includes the specified character.
4379
4380 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4381
4382         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4383
4384 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4385
4386         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4387
4388 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4389
4390         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4391         definition for non-UTF-2000 Mule.
4392         (latin_iso8859_3_to_ucs): Likewise.
4393         (latin_iso8859_4_to_ucs): Likewise.
4394         (latin_iso8859_9_to_ucs): Likewise.
4395         (latin_jisx0201_to_ucs): Likewise.
4396         (MIN_CHAR_THAI): Likewise.
4397         (MAX_CHAR_THAI): Likewise.
4398         (MIN_CHAR_GREEK): Likewise.
4399         (MAX_CHAR_GREEK): Likewise.
4400         (MIN_CHAR_HEBREW): Likewise.
4401         (MAX_CHAR_HEBREW): Likewise.
4402         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4403         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4404         (MIN_CHAR_CYRILLIC): Likewise.
4405         (MAX_CHAR_CYRILLIC): Likewise.
4406
4407 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * char-ucs.h (breakup_char_1): Use
4410         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4411         thai-tis620 and katakana-jisx0201 area.
4412
4413 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4414
4415         * char-ucs.h (breakup_char_1): Use
4416         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4417         area.
4418
4419         * text-coding.c (reset_encoding_stream): Fixed.
4420         (char_encode_ucs4): Delete `& 255'.
4421
4422         * char-ucs.h (breakup_char_1): Use
4423         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4424
4425 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4426
4427         * file-coding.c (Fmake_coding_system): Don't set up
4428         `codesys->fixed.size'.
4429         (encode_coding_no_conversion): Don't refer
4430         `str->codesys->fixed.size'.
4431
4432 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4433
4434         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4435         (latin_a_char_to_byte1): Deleted.
4436         (latin_a_char_to_byte2): Deleted.
4437
4438 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4439
4440         * mule-charset.c (make_charset): Add new argument `ucs_min',
4441         `ucs_max' and `code_offset'.
4442         (charset_get_byte1): New implementation [delete specific charset
4443         depended implementations].
4444         (Fmake_charset): Modify for `make_charset'.
4445         (Fmake_reverse_direction_charset): Likewise.
4446         (complex_vars_of_mule_charset): Likewise.
4447
4448         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4449         `code_offset'.
4450         (CHARSET_UCS_MIN): New macro.
4451         (CHARSET_UCS_MAX): New macro.
4452         (CHARSET_CODE_OFFSET): New macro.
4453         (MAKE_CHAR): Delete charset depended definitions [except
4454         katakana-jisx0201].
4455
4456 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4457
4458         * char-ucs.h (breakup_char_1): Use
4459         `Vdefault_coded_charset_priority_list' for C0-Controls,
4460         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4461
4462 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4463
4464         * char-ucs.h (charset_get_byte1): New function.
4465         (XCHARSET_GET_BYTE1): Deleted.
4466         (charset_get_byte2): New function.
4467         (XCHARSET_GET_BYTE2): Deleted.
4468         (Vdefault_coded_charset_priority_list): New external variable.
4469         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4470         `Vdefault_preferred_coded_charset_list'.
4471
4472         * mule-charset.c (charset_get_byte1): New function.
4473         (charset_get_byte2): New function.
4474         (Vdefault_coded_charset_priority_list): New variable.
4475         (vars_of_mule_charset): Add new variable
4476         `default-coded-charset-priority-list'.
4477
4478 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4479
4480         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4481         (XCHARSET_GET_BYTE2): New inline function.
4482         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4483         `XCHARSET_GET_BYTE2'.
4484
4485 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4486
4487         * mule-charset.c (make_charset): Initialize
4488         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4489         NULL if table is not defined.
4490
4491 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4492
4493         * text-coding.c (char_encode_shift_jis): Use
4494         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4495         `ucs_to_latin_jisx0201'.
4496
4497         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4498         (ucs_to_latin_iso8859_2): Deleted.
4499         (ucs_to_latin_iso8859_3): Deleted.
4500         (ucs_to_latin_iso8859_4): Deleted.
4501         (ucs_to_latin_iso8859_9): Deleted.
4502         (ucs_to_latin_viscii_lower): Deleted.
4503         (ucs_to_latin_viscii_upper): Deleted.
4504         (ucs_to_latin_tcvn5712): Deleted.
4505         (make_charset): Add new argument `decoding_table'; set up
4506         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4507         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4508         `decoding_table' is defined in UTF-2000.
4509         (Fmake_charset): Modify for `make_charset'.
4510         (Fmake_reverse_direction_charset): Likewise.
4511         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4512         and `GENERATE_96_SET'.
4513
4514         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4515         (ucs_to_latin_jisx0201): Deleted.
4516         (latin_iso8859_2_to_ucs): Deleted.
4517         (ucs_to_latin_iso8859_2): Deleted.
4518         (latin_iso8859_3_to_ucs): Deleted.
4519         (ucs_to_latin_iso8859_3): Deleted.
4520         (latin_iso8859_4_to_ucs): Deleted.
4521         (ucs_to_latin_iso8859_4): Deleted.
4522         (latin_iso8859_9_to_ucs): Deleted.
4523         (ucs_to_latin_iso8859_9): Deleted.
4524         (latin_viscii_lower_to_ucs): Deleted.
4525         (ucs_to_latin_viscii_lower): Deleted.
4526         (latin_viscii_upper_to_ucs): Deleted.
4527         (ucs_to_latin_viscii_upper): Deleted.
4528         (struct Lisp_Charset): Renamed `encoding_table' to
4529         `to_byte1_table'; add `to_byte2_table'.
4530         (CHARSET_DECODING_TABLE): New macro.
4531         (CHARSET_TO_BYTE1_TABLE): New macro.
4532         (CHARSET_TO_BYTE2_TABLE): New macro.
4533         (XCHARSET_DECODING_TABLE): New macro.
4534         (XCHARSET_TO_BYTE1_TABLE): New macro.
4535         (XCHARSET_TO_BYTE2_TABLE): New macro.
4536         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4537         tables.
4538         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4539         don't use `ucs_to_*' tables.
4540
4541 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4542
4543         * text-coding.c (Fmake_coding_system): Don't set up
4544         `codesys->fixed.size'.
4545         (encode_coding_no_conversion): Use `if' instead of `switch'.
4546
4547         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4548
4549 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4550
4551         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4552         (Fmake_charset): Modify for `make_charset'.
4553         (Fmake_reverse_direction_charset): Likewise.
4554         (complex_vars_of_mule_charset): Likewise.
4555
4556 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4557
4558         * text-coding.c (char_encode_shift_jis): Use table
4559         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4560
4561 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4562
4563         * text-coding.c (text_encode_generic): Use `if' instead of
4564         `switch'.
4565         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4566         decode JIS-Latin.
4567
4568 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4569
4570         * text-coding.c (encode_coding_sjis): Deleted.
4571         (char_encode_shift_jis): New function.
4572         (char_finish_shift_jis): New function.
4573         (reset_encoding_stream): Set up `encode_char' and `finish' for
4574         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4575         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4576         (char_encode_utf8): Treat `eol_type'.
4577
4578 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4579
4580         * file-coding.c (decode_coding_iso2022): Use
4581         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4582
4583 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4584
4585         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4586         to 0.7 (Hirano).
4587
4588 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4589
4590         * char-lb.h (CHAR_COLUMNS): New macro.
4591
4592 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4593
4594         * text-coding.c (char_encode_ucs4): New function.
4595         (char_finish_ucs4): New function.
4596         (encode_coding_ucs4): Deleted.
4597         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4598         (text_encode_generic): Delete local variable `charset' and `half'.
4599         (ucs_to_mule_table): Deleted.
4600         (mule_to_ucs_table): Deleted.
4601         (Fset_ucs_char): Deleted.
4602         (ucs_to_char): Deleted.
4603         (Fucs_char): Deleted.
4604         (Fset_char_ucs): Deleted.
4605         (Fchar_ucs): Deleted.
4606         (decode_ucs4): Deleted.
4607         (mule_char_to_ucs4): Deleted.
4608         (encode_ucs4): Deleted.
4609         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4610         (decode_coding_utf8): Likewise.
4611         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4612         (char_encode_iso2022): Fixed.
4613         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4614         `Fset_char_ucs' and `Fchar_ucs'.
4615         (complex_vars_of_file_coding): Don't initialize
4616         `ucs_to_mule_table'.
4617
4618         * objects-tty.c (tty_initialize_font_instance): Don't use
4619         `XCHARSET_COLUMNS'.
4620
4621         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4622         UTF-2000.
4623
4624         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4625         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4626
4627         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4628         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4629         (emchar_string_displayed_columns): Likewise.
4630
4631         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4632         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4633         (string_column_at_point): Likewise.
4634         (Fmove_to_column): Likewise.
4635
4636         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4637         `encoding_table' and `decoding_table'.
4638         (CHARSET_REP_BYTES): Deleted.
4639         (XCHARSET_REP_BYTES): Deleted.
4640         (XCHARSET_COLUMNS): Deleted.
4641         (CHAR_COLUMNS): New macro.
4642         (lookup_composite_char): Deleted unconditionally.
4643         (composite_char_string): Likewise.
4644
4645 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4646
4647         * char-ucs.h (Emchar_to_byte_table): New type.
4648         (get_byte_from_character_table): New function interface.
4649         (Vcharset_latin_jisx0201): New variable.
4650         (latin_jisx0201_to_ucs): New variable.
4651         (ucs_to_latin_jisx0201): New variable.
4652         (Vcharset_latin_iso8859_2): New variable.
4653         (latin_iso8859_2_to_ucs): New variable.
4654         (ucs_to_latin_iso8859_2): New variable.
4655         (Vcharset_latin_iso8859_3): New variable.
4656         (latin_iso8859_3_to_ucs): New variable.
4657         (ucs_to_latin_iso8859_3): New variable.
4658         (Vcharset_latin_iso8859_4): New variable.
4659         (latin_iso8859_4_to_ucs): New variable.
4660         (ucs_to_latin_iso8859_4): New variable.
4661         (Vcharset_latin_iso8859_9): New variable.
4662         (latin_iso8859_9_to_ucs): New variable.
4663         (ucs_to_latin_iso8859_9): New variable.
4664         (Vcharset_latin_viscii_lower): New variable.
4665         (latin_viscii_lower_to_ucs): New variable.
4666         (ucs_to_latin_viscii_lower): New variable.
4667         (Vcharset_latin_viscii_upper): New variable.
4668         (latin_viscii_upper_to_ucs): New variable.
4669         (ucs_to_latin_viscii_upper): New variable.
4670         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4671         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4672         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4673         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4674         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4675         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4676         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4677         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4678         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4679         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4680
4681         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4682         (Vcharset_latin_viscii_upper): New variable.
4683         (make_byte_from_character_table): New function.
4684         (put_byte_from_character_table): New function.
4685         (get_byte_from_character_table): New function.
4686         (CHAR96): New macro.
4687         (ucs_to_latin_jisx0201): New variable.
4688         (latin_jisx0201_to_ucs): New variable.
4689         (ucs_to_latin_iso8859_2): New variable.
4690         (latin_iso8859_2_to_ucs): New variable.
4691         (ucs_to_latin_iso8859_3): New variable.
4692         (latin_iso8859_3_to_ucs): New variable.
4693         (ucs_to_latin_iso8859_4): New variable.
4694         (latin_iso8859_4_to_ucs): New variable.
4695         (ucs_to_latin_iso8859_9): New variable.
4696         (latin_iso8859_9_to_ucs): New variable.
4697         (ucs_to_latin_viscii_lower): New variable.
4698         (latin_viscii_lower_to_ucs): New variable.
4699         (ucs_to_latin_viscii_upper): New variable.
4700         (latin_viscii_upper_to_ucs): New variable.
4701         (ucs_to_latin_tcvn5712): New variable.
4702         (latin_tcvn5712_to_ucs): New variable.
4703         (Qlatin_viscii_lower): New variable.
4704         (Qlatin_viscii_upper): New variable.
4705         (syms_of_mule_charset): Set up new symbol
4706         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4707         (complex_vars_of_mule_charset): Set up new charset
4708         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4709         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4710         `ucs_to_<CHARSET>' tables.
4711
4712 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4713
4714         * text-coding.c: New file.
4715
4716 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4717
4718         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4719
4720         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4721         (MAKE_CHAR): Modify for `ucs-bmp'.
4722         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4723         non-MULE characters of BMP.
4724
4725 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4726
4727         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4728         to 0.6.
4729
4730 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4731
4732         * lstream.h:
4733         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4734         - Include character.h for `CHAR_ASCII_P'.
4735
4736         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4737
4738         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4739         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4740
4741         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4742         (BYTE_C0_P): Likewise.
4743         (BYTE_C1_P): Likewise.
4744         (Lstream_get_emchar_1): Likewise.
4745         (Lstream_fput_emchar): Likewise.
4746         (Lstream_funget_emchar): Likewise.
4747         (copy_internal_to_external): Likewise.
4748         (copy_external_to_internal): Likewise.
4749
4750         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4751         (BYTE_C0_P): Likewise.
4752         (BYTE_C1_P): Likewise.
4753         (Lstream_get_emchar_1): Likewise.
4754         (Lstream_fput_emchar): Likewise.
4755         (Lstream_funget_emchar): Likewise.
4756         (copy_internal_to_external): Likewise.
4757         (copy_external_to_internal): Likewise.
4758
4759         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4760         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4761
4762         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4763         (BYTE_ASCII_P): Moved to mb-1byte.h.
4764
4765 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4766
4767         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4768
4769         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4770         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4771         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4772         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4773         (VALIDATE_CHARPTR_FORWARD): Likewise.
4774         (simple_charptr_emchar): Moved to mb-multibyte.h.
4775         (simple_set_charptr_emchar): Likewise.
4776         (simple_charptr_copy_char): Likewise.
4777         (non_ascii_charptr_emchar): Likewise.
4778         (non_ascii_set_charptr_emchar): Likewise.
4779         (non_ascii_charptr_copy_char): Likewise.
4780         (charptr_emchar): Moved to mb-*byte.h.
4781         (set_charptr_emchar): Likewise.
4782         (charptr_copy_char): Likewise.
4783
4784         * mb-1byte.h, mb-multibyte.h: New files.
4785
4786 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4787
4788         * mb-utf-8.h (MULTIBYTE): New macro.
4789         (MAX_EMCHAR_LEN): Moved from buffer.h.
4790         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4791
4792         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4793
4794         * mb-lb.h, multibyte.h: New files.
4795
4796         * char-1byte.h (Charset_ID): Moved from buffer.h.
4797         (MIN_LEADING_BYTE): Likewise.
4798         (LEADING_BYTE_ASCII): Likewise.
4799         (NUM_LEADING_BYTES): Likewise.
4800         (CHARSETP): Likewise.
4801         (CHARSET_BY_LEADING_BYTE): Likewise.
4802         (XCHARSET_LEADING_BYTE): Likewise.
4803         (XCHARSET_GRAPHIC): Likewise.
4804         (XCHARSET_COLUMNS): Likewise.
4805         (XCHARSET_DIMENSION): Likewise.
4806         (CHAR_CHARSET): Likewise.
4807         (CHAR_LEADING_BYTE): Likewise.
4808         (BREAKUP_CHAR): Likewise.
4809         (Vcharset_ascii): Likewise.
4810
4811         * buffer.h: Include multibyte.h unconditionally.
4812         (VALID_CHARPTR_P): Moved to multibyte.h.
4813         (ASSERT_VALID_CHARPTR): Likewise.
4814         (REAL_INC_CHARPTR): Likewise.
4815         (REAL_INC_CHARBYTIND): Likewise.
4816         (REAL_DEC_CHARPTR): Likewise.
4817         (INC_CHARPTR): Likewise.
4818         (INC_CHARBYTIND): Likewise.
4819         (DEC_CHARPTR): Likewise.
4820         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4821         (VALIDATE_CHARPTR_FORWARD): Likewise.
4822         (charptr_n_addr): Likewise.
4823         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4824         (simple_charptr_emchar): Moved to multibyte.h.
4825         (simple_set_charptr_emchar): Likewise.
4826         (simple_charptr_copy_char): Likewise.
4827         (non_ascii_charptr_emchar): Likewise.
4828         (non_ascii_set_charptr_emchar): Likewise.
4829         (non_ascii_charptr_copy_char): Likewise.
4830         (charptr_emchar): Likewise.
4831         (set_charptr_emchar): Likewise.
4832         (charptr_copy_char): Likewise.
4833         (charptr_emchar_n): Likewise.
4834         (Charset_ID): Moved to char-1byte.h.
4835         (Vcharset_ascii): Likewise.
4836         (CHAR_CHARSET): Likewise.
4837         (CHAR_LEADING_BYTE): Likewise.
4838         (LEADING_BYTE_ASCII): Likewise.
4839         (NUM_LEADING_BYTES): Likewise.
4840         (MIN_LEADING_BYTE): Likewise.
4841         (CHARSETP): Likewise.
4842         (CHARSET_BY_LEADING_BYTE): Likewise.
4843         (XCHARSET_LEADING_BYTE): Likewise.
4844         (XCHARSET_GRAPHIC): Likewise.
4845         (XCHARSET_COLUMNS): Likewise.
4846         (XCHARSET_DIMENSION): Likewise.
4847         (BREAKUP_CHAR): Likewise.
4848
4849 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4850
4851         * character.h: Add document about interface for characters.
4852
4853         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4854         (MAKE_CHAR): Delete comment about
4855         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4856         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4857         (BREAKUP_CHAR): Modify name of arguments.
4858         (CHAR_CHARSET): Modify name of argument.
4859
4860         * buffer.h: Delete document about Emchar accessors.
4861
4862 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4863
4864         * character.h (CHAR_INTP): Moved from buffer.h
4865         (CHAR_OR_CHAR_INTP): Likewise.
4866         (XCHAR_OR_CHAR_INT): Likewise.
4867         (CHECK_CHAR_COERCE_INT): Likewise.
4868
4869         * buffer.h (CHAR_INTP): Moved to character.h
4870         (CHAR_OR_CHAR_INTP): Likewise.
4871         (XCHAR_OR_CHAR_INT): Likewise.
4872         (CHECK_CHAR_COERCE_INT): Likewise.
4873
4874 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4875
4876         * character.h:
4877         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4878         - Include char-1byte.h, char-lb.h or char-ucs.h.
4879
4880         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4881
4882         * buffer.h: Include character unconditionally.
4883         (valid_char_p): Moved to char-*.h.
4884         (non_ascii_valid_char_p): Moved to char-lb.h.
4885
4886         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4887
4888 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4889
4890         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4891         in UTF-2000 because it is not ported yet and not to use
4892         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4893         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4894         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4895
4896         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4897         (CHAR_ASCII_P): Moved from character.h.
4898
4899         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4900         (CHAR_ASCII_P): Likewise.
4901         (CHAR_FIELD1_MASK): Deleted.
4902         (CHAR_FIELD2_MASK): Deleted.
4903         (CHAR_FIELD3_MASK): Deleted.
4904         (MAX_CHAR_BASIC_LATIN): New macro.
4905         (CHAR_FIELD1): Deleted.
4906         (CHAR_FIELD2_INTERNAL): Deleted.
4907         (CHAR_FIELD3_INTERNAL): Deleted.
4908         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4909         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4910         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4911         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4912         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4913         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4914         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4915         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4916         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4917         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4918         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4919         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4920         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4921         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4922         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4923         (MIN_CHAR_COMPOSITION): Deleted.
4924         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4925         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4926
4927 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4928
4929         * buffer.h: Include mb-utf-8.h in UTF-2000.
4930
4931         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4932
4933         * mb-utf-8.h: New file.
4934
4935 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4936
4937         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4938         instead of `int'.
4939
4940         * mule-charset.h, buffer.h (Charset_ID): New type.
4941
4942 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4943
4944         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4945         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4946         instead of `MULE_CHAR_PRIVATE_OFFSET',
4947         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4948         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4949         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4950
4951         * character.h (Vcharset_japanese_jisx0212): New variable
4952         definition.
4953
4954 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4955
4956         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4957         (charset_by_attributes): Delete array about direction.
4958         (latin_a_char_to_charset): New variable in UTF-2000.
4959         (latin_a_char_to_byte1): New variable in UTF-2000.
4960         (latin_a_char_to_byte2): New variable in UTF-2000.
4961         (Qucs_bmp): New variable.
4962         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4963         `Bufbyte'.
4964         (next_allocated_2_byte_leading_byte): Likewise.
4965         (non_ascii_set_charptr_emchar): Likewise.
4966         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4967         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4968         `charset_by_attributes'.
4969         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4970         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4971         and `CHARSET_BY_LEADING_BYTE'.
4972         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4973         `utf-2000-version' to `vars_of_mule_charset'.
4974         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4975         define `leading-code-private-11' in UTF-2000; move setting of
4976         `utf-2000-version' from `syms_of_mule_charset'.
4977         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4978         UTF-2000.
4979
4980         * character.h (Charset_ID): New type.
4981         (LEADING_BYTE_UCS_BMP): New macro.
4982         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4983         (CHARSET_ID_OFFSET_94): New macro.
4984         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4985         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4986         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4987         final-byte.
4988         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4989         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4990         (CHARSET_ID_OFFSET_96): New macro.
4991         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4992         CHARSET_ID_OFFSET_96 and final-byte.
4993         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4994         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4995         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4996         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4997         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4998         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4999         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5000         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5001         (LEADING_BYTE_THAI_TIS620): Likewise.
5002         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5003         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5004         (CHARSET_ID_OFFSET_94x94): New macro.
5005         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5006         CHARSET_ID_OFFSET_94x94 and final-byte.
5007         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5008         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5009         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5010         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5011         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5012         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5013         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5014         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5015         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5016         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5017         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5018         (CHARSET_TYPE_128X128): New macro.
5019         (CHARSET_TYPE_256X256): New macro.
5020         (XCHARSET_PRIVATE_P): Delete unconditionally.
5021         (charset_by_attributes): Delete array about direction.
5022         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5023         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5024         (MIN_CHAR_94): New macro.
5025         (MAX_CHAR_94): New macro.
5026         (MIN_CHAR_96): New macro.
5027         (MAX_CHAR_96): New macro.
5028         (MIN_CHAR_94x94): New macro.
5029         (MAX_CHAR_94x94): New macro.
5030         (MIN_CHAR_96x96): New macro.
5031         (MAX_CHAR_96x96): New macro.
5032         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5033         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5034         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5035         - 32)'.
5036         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5037         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5038         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5039         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5040         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5041         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5042         `XCHARSET_LEADING_BYTE' to make code-point.
5043         (latin_a_char_to_charset): New variable.
5044         (latin_a_char_to_byte1): New variable.
5045         (latin_a_char_to_byte2): New variable.
5046         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5047         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5048         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5049
5050         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5051         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5052         (find_charsets_in_emchar_string): Likewise.
5053         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5054
5055         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5056         `int'.
5057         (decode_coding_iso2022): Likewise.
5058
5059         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5060         of `unsigned char'.
5061
5062         * redisplay.c (redisplay_text_width_emchar_string): Use
5063         `Charset_ID' instead of `unsigned char'.
5064         (redisplay_frame_text_width_string): Likewise.
5065
5066         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5067         `unsigned char'.
5068
5069         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5070         instead of `unsigned char'.
5071         (face_cachel_charset_font_metric_info): Likewise.
5072
5073         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5074         (get_non_ascii_char_table_value): Likewise.
5075         (get_char_table): Likewise.
5076         (put_char_table): Likewise.
5077         (map_over_other_charset): Likewise.
5078         (map_char_table): Likewise.
5079
5080         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5081         instead of `unsigned char'.
5082
5083 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5084
5085         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5086         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5087
5088         * mule-charset.c (leading_code_private_11): Don't define in
5089         UTF-2000.
5090
5091         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5092         in UTF-2000 because it is not ported yet and not to use
5093         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5094
5095 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5096
5097         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5098
5099 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5100
5101         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5102         in UTF-2000.
5103
5104         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5105         of unsigned char to store leading-byte.
5106
5107         * chartab.c (get_non_ascii_char_table_value): Don't use
5108         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5109
5110         * file-coding.c (encode_coding_big5): Delete bogus implementation
5111         in UTF2000.
5112
5113         * character.h (LEADING_BYTE_*): Delete definition for
5114         non-UTF-2000.
5115         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5116         (LEADING_BYTE_PREFIX_P): Deleted.
5117         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5118         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5119         (BUFBYTE_LEADING_BYTE_P): Deleted.
5120         (CHARSET_PRIVATE_P): Deleted unconditionally.
5121         (rep_bytes_by_first_byte): Deleted unconditionally.
5122         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5123         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5124         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5125         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5126         (CHAR_FIELD2): Deleted.
5127         (CHAR_FIELD3): Deleted.
5128         (MAKE_CHAR): Delete definition for non-UTF-2000.
5129         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5130         (breakup_char_1): New implementation.
5131         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5132         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5133
5134 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5135
5136         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5137         condition.
5138
5139 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5140
5141         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5142         (CHARSET_PRIVATE_P): Likewise.
5143         (XCHARSET_PRIVATE_P): Likewise.
5144         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5145
5146         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5147         UTF2000.
5148         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5149
5150 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5151
5152         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5153         (NUM_LEADING_BYTES): Changed from 128 to 256.
5154         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5155         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5156         UTF2000.
5157         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5158
5159         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5160         UTF2000.
5161         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5162         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5163         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5164         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5165         (Qchinese_cns11643_3): New variable in UTF2000.
5166         (Qchinese_cns11643_4): New variable in UTF2000.
5167         (Qchinese_cns11643_5): New variable in UTF2000.
5168         (Qchinese_cns11643_6): New variable in UTF2000.
5169         (Qchinese_cns11643_7): New variable in UTF2000.
5170         (syms_of_mule_charset): Define `chinese-cns11643-3',
5171         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5172         and `chinese-cns11643-7' in UTF2000.
5173         (vars_of_mule_charset): Initialize
5174         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5175         + 1 in UTF2000.
5176         (complex_vars_of_mule_charset): Setup charset
5177         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5178         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5179
5180 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5181
5182         * mule-charset.c: Move setting for `leading-code-private-11' from
5183         `syms_of_mule_charset' to `vars_of_mule_charset'.
5184
5185 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5186
5187         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5188         and `NUM_LEADING_BYTES' in assert.
5189
5190 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5191
5192         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5193         instead of 128.
5194         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5195         `NUM_LEADING_BYTES' instead of 128.
5196
5197 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5198
5199         * mule-charset.h (charset_by_leading_byte): Use
5200         `NUM_LEADING_BYTES' instead of 128.
5201         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5202
5203         * mule-charset.c (charset_by_leading_byte): Use
5204         `NUM_LEADING_BYTES' instead of 128.
5205         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5206
5207         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5208         128.
5209
5210 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5211
5212         * mule-charset.c (syms_of_mule_charset): Update to
5213         0.4 (Shin-Imamiya).
5214
5215 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5216
5217         * file-coding.c (encode_coding_sjis): New implementation for
5218         UTF2000.  (decode_coding_sjis): Ditto.
5219
5220 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5221
5222         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5223         Don't define in UTF2000.
5224
5225         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5226         defined.
5227
5228         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5229         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5230         MULE.
5231
5232 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5233
5234         * config.h.in (CHAR_IS_UCS4): New macro.
5235
5236         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5237         conventional MULE representation.
5238         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5239
5240         * mule-charset.h: Reverted to original.
5241
5242         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5243         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5244         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5245
5246         * character.h: New file.
5247
5248         * file-coding.c (Fmake_coding_system): Set 1 to
5249         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5250         defined.
5251         (encode_coding_no_conversion): New implementation for UTF2000.
5252
5253         * file-coding.h (struct Lisp_Coding_System): Add new member
5254         `fixed.size'.
5255
5256 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5257
5258         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5259         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5260         (encode_coding_iso2022): New implementation for UTF2000.
5261
5262 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5263
5264         * mule-canna.c (c2mu): New implementation for UTF2000.
5265         (m2c): Likewise.
5266
5267 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5268
5269         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5270
5271 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5272
5273         * file-coding.c (reset_encoding_stream): Set 0 to
5274         `str->iso2022.current_char_boundary' in UTF2000.
5275         (encode_utf8): Don't define in UTF2000.
5276         (encode_coding_utf8): New implementation for UTF-8 representation
5277         of UTF2000.
5278         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5279
5280 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5281
5282         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5283
5284         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5285         UTF2000.
5286         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5287
5288         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5289
5290         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5291         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5292         as UTF-8 in UTF2000.
5293         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5294         (non_ascii_valid_char_p): Don't define in UTF2000.
5295         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5296         (Lstream_get_emchar_1): Likewise.
5297         (utf-2000-version): New variable in UTF2000.
5298
5299         * lread.c (read_escape): Add new reader `u'.
5300
5301         * insdel.c (three_to_one_table): Don't define in UTF2000.
5302         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5303         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5304         UTF2000.
5305         (bytind_to_bufpos_func): Likewise.
5306         (buffer_mule_signal_inserted_region): Likewise.
5307         (vars_of_insdel): Don't initialize `three_to_one_table'.
5308         (init_buffer_text): Use `buf->text->mule_size' instead of
5309         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5310         UTF2000.
5311
5312         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5313         UTF-8 representation in UTF2000.
5314         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5315         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5316         (decode_coding_iso2022): Don't define local variable `lb' in
5317         UTF2000; don't use LEADING_BYTE in UTF2000; use
5318         `DECODE_ADD_UCS_CHAR' in UTF2000.
5319         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5320
5321         * config.h.in (UTF2000): New macro.
5322
5323         * buffer.h (struct buffer_text): Add new member `mule_size' and
5324         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5325         (valid_char_p): Return always 1 in UTF2000.
5326         (MAX_EMCHAR_LEN): 6 in UTF2000.
5327         (three_to_one_table): Don't define in UTF2000.
5328         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5329         UTF2000.
5330         (real_bytind_to_bufpos): Likewise.
5331
5332         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5333
5334 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5335
5336         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5337         representation change.
5338         (Vutf_2000_version): New variable.
5339         (leading_code_private_11): New variable.
5340         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5341         `leading-code-private-11'.
5342
5343         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5344         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5345         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5346         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5347         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5348         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5349         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5350         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5351         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5352         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5353         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5354         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5355         (MIN_CHAR_GREEK): New macro.
5356         (MAX_CHAR_GREEK): New macro.
5357         (MIN_CHAR_CYRILLIC): New macro.
5358         (MAX_CHAR_CYRILLIC): New macro.
5359         (MIN_CHAR_HEBREW): New macro.
5360         (MAX_CHAR_HEBREW): New macro.
5361         (MIN_CHAR_THAI): New macro.
5362         (MAX_CHAR_THAI): New macro.
5363         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5364         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5365         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5366         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5367         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5368         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5369         (CHAR_FIELD2): New inline function.
5370         (CHAR_FIELD3): New inline function.
5371         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5372         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5373         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5374         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5375         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5376         (MIN_CHAR_COMPOSITION): Likewise.
5377         (CHAR_LEADING_BYTE): Modified for character representation change.
5378         (MAKE_CHAR): Likewise.
5379
5380         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5381         (Vcharset_greek_iso8859_7): Likewise.
5382         (Vcharset_cyrillic_iso8859_5): Likewise.
5383         (Vcharset_hebrew_iso8859_8): Likewise.
5384         (Vcharset_thai_tis620): Likewise.
5385         (Vcharset_katakana_jisx0201): Likewise.
5386
5387 2004-02-02  Vin Shelton <acs@xemacs.org>
5388
5389         * XEmacs 21.4.15 is released
5390
5391 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5392
5393         * device-x.c (x_error_handler): Don't call stderr_out
5394
5395 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5396
5397         * buffer.c (other-buffer): Clarify documentation of order of
5398         arguments for FSF Emacs.
5399
5400 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5401
5402         * window.c (Fdelete_window): Dirty the mirror structure _before_
5403         marking the window deleted.
5404
5405 2003-09-15  Jerry James  <james@xemacs.org>
5406
5407         * event-msw.c (debug_mswin_messages): Conditionally compile
5408         messages missing from the Cygwin headers.
5409
5410 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5411
5412         * data.c (eq_with_ebola_notice): Fix typo in comment.
5413         (Ftrue_list_p): Improve docstring.
5414
5415 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5416
5417         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5418
5419 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5420
5421         * search.c (trivial_regexp_p): Regexps containing "\{" are
5422         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5423         Stefan Monnier for suggesting a diagnosis.
5424
5425 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5426
5427         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5428
5429 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5430
5431         * search.c (Fsearch_forward):
5432         (Fsearch_backward):
5433         Document negative count.
5434
5435 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5436
5437         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5438
5439 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5440
5441         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5442
5443 2003-09-15  Vin Shelton  <acs@xemacs.org>
5444
5445         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5446         21.5.
5447
5448 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5449
5450         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5451         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5452         (re_match_2_internal): Use TRANSLATE instead of
5453         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5454         non-ASCII char case conversion.
5455
5456 2003-09-08  Mike Sperber  <mike@xemacs.org>
5457
5458         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5459         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5460
5461 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5462
5463        * .gdbinit (pobj): fix printing of symbol name.
5464
5465 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5466
5467         * frame-x.c (x_layout_widgets): When resizing is about to cause
5468         frame size slip, mark it for redisplay.
5469
5470 2003-08-18  Jerry James  <james@xemacs.org>
5471
5472         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5473
5474 2003-09-03  Vin Shelton <acs@xemacs.org>
5475
5476         * XEmacs 21.4.14 is released
5477
5478 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5479
5480         * config.h.in (REGEX_MALLOC): Make it configure'able.
5481
5482 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5483
5484         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5485         linking.
5486         * sysdll.c (dll_init):
5487         * sysdll.c (dll_open):
5488         * sysdll.c (dll_close):
5489         * sysdll.c (dll_function):
5490         * sysdll.c (dll_variable):
5491         * sysdll.c (dll_error):
5492         Add support for loading bundles using Darwin/MacOSX
5493         native API.
5494
5495 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5496
5497         * process.c (start-process-internal): Document coding systems.
5498
5499 2003-07-30  Jerry James  <james@xemacs.org>
5500
5501         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5502
5503 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5504
5505         * event-msw.c (mswindows_enqueue_mouse_button_event):
5506         * event-msw.c (mswindows_wnd_proc):
5507           enqueue button event when scrollwheel event isn't handled by 
5508           mswindows_handle_mousewheel_event, such as when the scrollbars
5509           are not showing.
5510
5511 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5512
5513         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5514
5515 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5516
5517         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5518
5519 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * regex.c (re_match_2_internal): Fix matching degenerate word
5522         boundaries.
5523
5524 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5525
5526         * XEmacs 21.4.13 is released
5527
5528 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5529
5530         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5531         * lisp.h (<inttypes.h>):
5532         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5533         the definition.
5534
5535 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5536
5537         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5538         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5539         Result: "temacs can only be run in -batch mode."
5540         Fix: Check xemacs executable candidate for directory-ness.
5541
5542 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5543
5544         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5545           they conflict with <sys/types.h>.
5546
5547 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5548
5549         * database.c: Berkeley DB wants __STDC__ to be defined.
5550
5551 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5552
5553         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5554
5555 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5556
5557         * process-unix.c (unix_send_process): Fix C++ compile error.
5558
5559 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5560
5561         * Added .dylib as an acceptable shared library file extension
5562         * to support MacOSX.
5563
5564 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5565
5566         * EmacsFrameP.h (EmacsFramePart):
5567         Kludge to allow compiling with Motif1, but linking with Motif2.
5568
5569 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5570
5571         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5572
5573
5574 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5575
5576         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5577
5578 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5579
5580         * sysdll.c: Included lisp.h to define needed alloca_array.
5581
5582 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5583
5584         Make XEmacs redisplay 10 times faster.
5585         If, that is, you're using a slow X connection and MoveOpaque.
5586         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5587         Use compress_motion = TRUE.
5588         * EmacsFrame.c (emacsFrameClassRec): 
5589         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5590         * EmacsManager.c (emacsManagerClassRec):
5591         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5592
5593 2003-01-30  Vin Shelton  <acs@xemacs.org>
5594
5595         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5596
5597 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5598
5599         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5600         Patch by Martin Buchholz.
5601
5602 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5603
5604         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5605         Thanks to icc for warning and Martin Buchholz for reporting.
5606
5607 2003-01-29  Vin Shelton <acs@xemacs.org>
5608
5609         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5610
5611         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5612         remember to multiply by the element size.
5613
5614 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5615
5616         * XEmacs 21.4.12 "Portable Code" is released.
5617
5618 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5619
5620         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5621         * s/cygwin.sc: new linker file.
5622
5623 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5624
5625         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5626
5627         * redisplay-x.c (x_output_string): Use X11-specified types.
5628         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5629         * emacs.c (__free_hook): Use typeof with Intel compiler.
5630         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5631
5632 2003-01-08  Andy Piper  <andy@xemacs.org>
5633
5634         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5635         reserve size during unexec().
5636
5637 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5638
5639         * process-unix.c (unix_create_process): Don't let outchannel block.
5640
5641 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5642
5643         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5644         Needed for IsBadReadPtr().
5645
5646 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5647
5648         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5649
5650 2002-12-14  Ben Wing  <ben@xemacs.org>
5651
5652         * callint.c: Declaration error.
5653         * dumper.c (pdump):
5654         * dumper.c (pdump_load): Warning fix.
5655         * process.c: GCPRO error.
5656         * glyphs.c (unmap_subwindow):
5657         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5658         * event-stream.c (maybe_kbd_translate): Wrong argument to
5659         character_to_event().
5660
5661         * alloc.c (garbage_collect_1):
5662         * emacs.c:
5663         * emacs.c (debug_can_access_memory):
5664         * emacs.c (fatal_error_signal):
5665         * emacs.c (mswindows_handle_hardware_exceptions):
5666         * emacs.c (main_1):
5667         * emacs.c (main):
5668         * emacs.c (assert_failed):
5669         * emacs.c (syms_of_emacs):
5670         * lisp.h:
5671         * print.c:
5672         * print.c (std_handle_out_va):
5673         * print.c (write_string_to_stdio_stream):
5674         * print.c (write_fmt_string):
5675         * print.c (printing_badness):
5676         * print.c (printing_major_badness):
5677         * print.c (print_internal):
5678         * print.c (debug_print_no_newline):
5679         * print.c (debug_backtrace):
5680         Be more defensive in handling bad values when printing.  Add code
5681         from trunk involving inhibit_non_essential_printing_operations.
5682         When going down or in debug_print(), don't do external conversion
5683         and such and try really, really hard when printing to avoid core
5684         dumping.  Add force-debugging-signal, debug_break().
5685
5686 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5687
5688         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5689         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5690
5691 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5692
5693         * database.c: Fix open_database. Berkeley DB API has changed in
5694         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5695
5696 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5697
5698         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5699
5700 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5701
5702         * event-Xt.c (Xt_timeout):
5703         (Xt_timeout_callback):
5704         (emacs_Xt_add_timeout):
5705         (emacs_Xt_remove_timeout):
5706         (Xt_timeout_to_emacs_event):
5707         Turn completed_timeouts from a stack into a queue.  Fixes
5708         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5709
5710 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5711
5712         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5713         * emacs.c (main): Assert that mmap'd allocation is disabled.
5714
5715 2002-10-14  Andy Piper  <andy@xemacs.org>
5716
5717         * glyphs-widget.c (layout_query_geometry): add in fiddle
5718         factor. Include border text in width layout calculation.
5719         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5720
5721 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5722
5723         * XEmacs 21.4.10 "Military Intelligence" is released.
5724
5725 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5726
5727         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5728         using the NAS private array SoundFileInfo that no longer exists in
5729         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5730         and earlier.  This is broken for some versions between 1.5a and
5731         1.5f.
5732
5733 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5734
5735         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5736
5737         * emacs.c (shut_down_emacs): Improve crash message.
5738
5739 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5740
5741         * file-coding.c (determine_real_coding_system): Check for coding
5742         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5743         shebangs and Python PEP 263.
5744
5745 2002-10-08  Andy Piper  <andy@xemacs.org>
5746
5747         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5748         if static sizes haven't been set.
5749
5750 2002-08-30  Mike Alexander  <mta@arbortext.com>
5751
5752         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5753         to close a socket.
5754
5755 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5756
5757         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5758
5759 2002-09-20  Mike Sperber <mike@xemacs.org>
5760
5761         (This partially gets back my patch from 2002-07-20 without the
5762         bug.)
5763         * callproc.c (child_setup): Remove Ben's comment noting confusion
5764         over the file descriptors >= 3: close_process_descs() doesn't
5765         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5766         * process-unix.c (unix_create_process): Call
5767         begin_dont_check_for_quit to inhibit unwanted interaction (and
5768         thus breaking of X event synchronicity) in the child.
5769
5770 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5771
5772         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5773         widget.
5774
5775 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5776
5777         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5778         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5779         the xemacs process did not exit, but looped infinitely here.  This
5780         fixes that problem.
5781
5782 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5783
5784         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5785         (find_context): Improve comments.
5786
5787         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5788         (re_match_2): An XCHAR_TABLE operation was missing.
5789
5790         Many of the following changes were inspired by Andy Piper's (now
5791         obsolete) patch to make syntax-table text property lookup optional.
5792
5793         [Documentation]
5794
5795         * syntax.h (top level): Document semantics of syntax flags.
5796         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5797         * syntax.c, syntax.h (top level): Document syntax cache better in
5798         comments.
5799
5800         [Instrument syntax caching (temporary change)]
5801
5802         * syntax.h (enum syntax_cache_statistics_functions, struct
5803         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5804         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5805         * syntax.c (scan_words, Fforward_comment, scan_lists,
5806         Fbackward_prefix_characters):
5807         * font-lock.c (find_context):
5808         Use them to instrument syntax caching. 
5809         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5810         syntax_cache_statistics_function_names): New type and variables.
5811         * syntax.c (update_syntax_cache): Update and report statistics.
5812
5813         [Major syntax cache optimizations]
5814
5815         syntax.c (lookup_syntax_properties): Default off.
5816
5817         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5818         * syntax.c (update_syntax_cache):
5819         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5820
5821         [Minor syntax cache optimizations and code clarifications]
5822
5823         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5824         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5825         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5826         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5827         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5828         (Code clarification.)
5829
5830         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5831         scan_lists): Compute code from syncode, use Boolean macros instead
5832         of redundant masking operations.  (Code clarification; any decent
5833         compiler can do this optimization.)
5834
5835         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5836         for clarity.
5837
5838         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5839         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5840         use F*_single_property_change instead of F*_extent_change.
5841         Currently F*_single_property_change is _much_ less efficient.
5842
5843         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5844         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5845         syntax_cache.object properly, don't leave Qt or Qnil.
5846         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5847         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5848         tests for Qt or Qnil.
5849
5850 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5851
5852         * redisplay.c (point_in_line_start_cache): 
5853         * extents.c (print_extent_1):
5854         Fix warnings.
5855
5856         * extents.c (Fset_extent_property): Document `syntax-table' property.
5857
5858         * extents.h (Fnext_single_property_change): EXFUN it.
5859
5860 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5861
5862         * search.c (clear_unused_search_regs): New static function.
5863         (search_buffer): 
5864         (simple_search): 
5865         (boyer_moore):
5866         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5867         Minor clarifications in comments.
5868
5869         * regex.c (re_match_2_internal): Ensure no stale submatches.
5870
5871 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5872
5873         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5874
5875 2002-08-29  Jerry James  <james@xemacs.org>
5876
5877         * lisp.h: structrures -> structures.
5878
5879 2002-06-03  Andy Piper  <andy@xemacs.org>
5880
5881         * frame.c (frame_conversion_internal): add conversion appropriate
5882         for setting frame dimensions in pixels.
5883
5884         * console.h (struct console_methods): add device-specific widget
5885         layout functions.
5886
5887         * emacs.c (main_1): initialize glyph vars.
5888
5889         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5890         (handle_focus_event_2): new function. Allow focus to
5891         be set to a particular window and widget.
5892         (enqueue_focus_event): new function. Create a
5893         synthetic focus event.
5894         (emacs_Xt_handle_magic_event): call
5895         handle_focus_event_2.
5896
5897         * frame.c (Fset_frame_pixel_height): new function. Allow
5898         pixel-based sizing. Does the right thing on character-oriented
5899         displays.
5900         (Fset_frame_pixel_width): ditto.
5901         (Fset_frame_pixel_size): ditto.
5902         (syms_of_frame): declare.
5903
5904         * general-slots.h: add :vertically-justify and
5905         :horizontally-justify.
5906
5907         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5908         (mswindows_widget_border_width): new function.
5909         (mswindows_combo_box_instantiate): set border widths.
5910         (console_type_create_glyphs_mswindows): declare.
5911
5912         * glyphs-widget.c:
5913         (check_valid_justification): allow vertical and horizontal
5914         justification.
5915         (widget_border_width): new function. Call device methods.
5916         (widget_instance_border_width): ditto.
5917         (logical_unit_height): new function. Determine the height of a
5918         logical-unit. Logical units are intended to provide grid-like
5919         layout for subcontrols in a layout. If the layout is
5920         :vertically-justify top then subcontrols will be positioned on
5921         logical-unit boundaries, thus allowing adjacent subcontrols to
5922         line up.
5923         (widget_logical_unit_height): ditto for widgets.
5924         (redisplay_widget): misc cleanup.
5925         (widget_spacing): new function. Call device specific
5926         methods. Intended to be the default gap between adjacent widgets.
5927         (widget_query_geometry): use new spacing functions to determine
5928         appropriate geometry.
5929         (initialize_widget_image_instance): initialize horizontal and
5930         vertical justification.
5931         (widget_instantiate): use logica-units where appropriate for
5932         sizing large widgets.
5933         (button_query_geometry): use widget_instance_border_width.
5934         (tree_view_query_geometry): ditto.
5935         (tab_control_query_geometry): ditto.
5936         (edit_field_query_geometry): new function.
5937         (layout_update): pick up :justify, :horizontally-justify and
5938         :vertically-justify none of which worked previously. :justify is
5939         used as a fallback for both horizontal and vertical justification.
5940         (layout_query_geometry): use logical units to size appropriately.
5941         (layout_layout): ditto.
5942         (Fwidget_logical_to_character_width): new function. Allow users to
5943         convert from logical units to characters so that frame sizes can
5944         be set appropriately.
5945         (Fwidget_logical_to_character_height): ditto.
5946         (syms_of_glyphs_widget): declare.
5947         (image_instantiator_edit_fields): add edit_field_query_geometry.
5948         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5949         :horizontally-justify.
5950         (specifier_vars_of_glyphs_widget): new function. Declare
5951         Vwidget_border_width which is not yet used.
5952
5953         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5954         (x_widget_border_width): new function.
5955         (x_widget_instantiate): create a sensible name for widgets.
5956         (console_type_create_glyphs_x): declare x_widget_border_width.
5957
5958         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5959         (struct Lisp_Image_Instance): add :vertically-justify and
5960         :horizontally-justify.
5961         (LAYOUT_JUSTIFY_TOP): new.
5962         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5963         (ROUND_UP): new macro. Round argument up to next integral
5964         interval.
5965
5966         * redisplay-output.c (redisplay_output_layout): misc formatting.
5967
5968         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5969
5970 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5971
5972         * XEmacs 21.4.9 "Informed Management" is released.
5973
5974 2002-08-19  Andy Piper  <andy@xemacs.org>
5975
5976         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5977         win32 format.
5978
5979         * realpath.c (xrealpath): normalize drive spec also so that dir
5980         sep chars are not mixed on cygwin.
5981
5982 2002-08-06  Jerry James  <james@xemacs.org>
5983
5984         * window.c (Fsplit_window): Count only half of the divider width
5985         against the left window when splitting horizontally. 
5986
5987 2002-06-24  Andy Piper  <andy@xemacs.org>
5988
5989         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5990         toolbar was cleared.
5991
5992         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5993         function. Split out from mswindows_output_frame_toolbars.
5994         (mswindows_output_frame_toolbars): move clear pieces to
5995         mswindows_output_frame_toolbars.
5996
5997         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5998         out from gtk_output_frame_toolbars.
5999         (gtk_output_frame_toolbars): move clear pieces to
6000         gtk_clear_frame_toolbars.
6001
6002         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6003         the frame is cleared. How this ever worked before is a mystery.
6004         (x_output_frame_toolbars): Only output toolbars.
6005         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6006
6007         * gutter.c (update_gutter_geometry):
6008         Mark frame layout changed.
6009         (update_frame_gutter_geometry, update_frame_gutters):
6010         Respect frame_layout_changed.
6011
6012         * console.h (struct console_methods): add
6013         clear_frame_toolbars_method.
6014
6015         * redisplay.c (redisplay_frame): call
6016         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6017
6018         * toolbar.h: declare update_frame_toolbars_geometry.
6019
6020         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6021         out from update_frame_toolbars.  Call clear_frame_toolbars.
6022         (update_frame_toolbars): only output, do not change geometry.
6023
6024         * redisplay.c: add frame_layout_changed.
6025
6026         * redisplay.h: add frame_layout_changed.
6027         (CLASS_RESET_CHANGED_FLAGS): set it.
6028         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6029         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6030         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6031
6032         * device.h (struct device): add frame_layout_changed.
6033         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6034
6035         * frame.h (struct frame): add frame_layout_changed.
6036         (MARK_FRAME_LAYOUT_CHANGED): new.
6037
6038 2002-06-30  Mike Alexander  <mta@arbortext.com>
6039
6040         * event-msw.c (mswindows_need_event): Don't wait for a new message
6041         if the queue is not empty.  Suggested by Paul Moore.
6042
6043 2002-06-12  Andy Piper  <andy@xemacs.org>
6044
6045         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6046         for printing on accurately.
6047
6048 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6049
6050         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6051         WM_ACTIVATE message. Make sure that the frame is visible if the
6052         window is visible. This seemss to fix the problem where XEmacs
6053         appears to freeze after switching desktops with certain virtual
6054         window managers.
6055         (debug_output_mswin_message): Added code to output message
6056         parameters for WM_WINDOWPOSCHANGED, 
6057         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6058
6059 2002-05-25  Andy Piper  <andy@xemacs.org>
6060
6061         * select-x.c (vars_of_select_x): Fix docstring of
6062         x-selection-strict-motif-ownership
6063
6064 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6065
6066         * keymap.c (get_keymap):
6067         Add comment about do_autoload GCPROs own args.
6068
6069 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6070
6071         * bytecode.c (execute_optimized_program): check_opcode ifdef
6072         ERROR_CHECK_BYTE_CODE.
6073
6074 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6075
6076         Thanks to Ben Wing and Michael Sperber.
6077
6078         * eval.c (Fcommand_execute):
6079         (Feval):
6080         (Ffuncall):
6081         (Fmacroexpand_internal):
6082         (function_argcount):
6083         callint.c (Fcall_interactively):
6084         Add comment about do_autoload GCPROs own args.
6085
6086         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6087
6088         * eval.c (Ffuncall): Extra braces to placate GCC.
6089
6090 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6091
6092         * backtrace.h (grow_specpdl):
6093         (SPECPDL_RESERVE):
6094         * EmacsFrame.c (EmacsFrameSetValues):
6095         * eval.c (grow_specpdl):
6096         * ExternalShell.c (hack_event_masks_1):
6097         * glyphs-x.c (convert_EImage_to_XImage): 
6098         (x_finalize_image_instance):
6099         * ralloc.c (page_size):
6100         (r_alloc_sbrk):
6101         * xgccache.c (gc_cache_hash):
6102         Fix unsigned comparison warnings.
6103
6104 2002-07-29  Jerry James  <james@xemacs.org>
6105
6106         * lread.c (locate_file): Any nonnegative return value indicates
6107         success if MODE is nonnegative.
6108
6109 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6110
6111         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6112         argument. 
6113
6114 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6115
6116         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6117
6118         * dumper.c (pdump_get_indirect_count):
6119         (pdump_scan_by_alignment):
6120         (pdump_dump_root_struct_ptrs):
6121         (pdump_dump_rtables):
6122         (pdump_dump_root_objects):
6123         (pdump):
6124         * nas.c (WaveOpenDataForReading):
6125         * fns.c (print_bit_vector):
6126         * font-lock.c (SINGLE_SYNTAX_STYLE):
6127         * glyphs.c (check_for_ignored_expose):
6128         (find_matching_subwindow):
6129         * glyphs-eimage.c:
6130         * imgproc.c (get_histogram):
6131         * redisplay.c (point_in_line_start_cache):
6132         * redisplay-output.c (redisplay_unmap_subwindows):
6133         * symbols.c (defsymbol_massage_name_1):
6134         (defkeyword_massage_name):
6135         (deferror_massage_name_and_message):
6136         * redisplay-x.c (x_output_string): 
6137         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6138         * frame.h (struct frame):
6139         * filelock.c (current_lock_owner):
6140         * doprnt.c (emacs_doprnt_1):
6141         * lisp.h (struct Lisp_Bit_Vector):
6142         (DO_REALLOC):
6143         Fix warnings.
6144
6145 2002-02-13  Ben Wing  <ben@xemacs.org>
6146
6147         * event-stream.c (reset_key_echo):
6148         * event-stream.c (reset_this_command_keys):
6149         * event-stream.c (execute_command_event):
6150         If console is dead as a result of C-x 5 0, then post-command stuff
6151         needs to be careful and do only non-console-specific stuff.
6152
6153 2002-07-01  Mike Sperber <mike@xemacs.org>
6154
6155         * process-unix.c (unix_send_process): Mark coding_outstream as
6156         non-open upon SIGPIPE.
6157
6158         * event-stream.c (Fnext_event): Reorder switch cases to something
6159         that makes sense.
6160
6161 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6162
6163         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6164         Don't bogusly reinitialize ascii_character property.
6165
6166 2002-07-08  Mike Sperber <mike@xemacs.org>
6167
6168         * process.c (Fstart_process_internal): Do error checking before we
6169         fork off the child, so the child can't muck with the state of the
6170         parent.
6171
6172 2002-07-08  Mike Sperber <mike@xemacs.org>
6173
6174         * ralloc.c (init_ralloc): Allocate properly for pdump.
6175
6176 2002-06-12  Andy Piper  <andy@xemacs.org>
6177
6178         * glyphs.c (query_string_geometry): check the string.
6179
6180         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6181         widget names.
6182
6183 2002-06-17  Jerry James  <james@xemacs.org>
6184
6185         * sysdll.c: Remove RTLD_GLOBAL initialization.
6186         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6187
6188 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6189
6190         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6191
6192 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6193
6194         * sysdep.c (sys_rename): Make sys_rename work for the case where
6195         Windows rename sets errno to EACCES if target file exists.
6196
6197 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6198
6199         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6200         Fix detection of metric units to work on Win95
6201
6202 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6203
6204         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6205
6206 2002-04-25  Andy Piper  <andy@xemacs.org>
6207
6208         * redisplay.c (create_text_block): Remove extra comment trailer.
6209
6210 2002-04-24  Andy Piper  <andy@xemacs.org>
6211
6212         * redisplay.c (create_text_block): Don't actually add propagation
6213         data if the line ends after we have added a glyph.
6214
6215 2002-04-22  Andy Piper  <andy@xemacs.org>
6216
6217         * extents.c (extent_fragment_update): check for glyphs we have
6218         previously displayed.
6219         * extents.c (print_extent_1): warning removal.
6220         * extents.h: change prototype.
6221         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6222         widths correctly for wide glyphs.
6223         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6224         * redisplay.c (prop_type): add PROP_GLYPH.
6225         * redisplay.c (struct prop_block): add glyph type
6226         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6227         to the propagation data.
6228         * redisplay.c (create_text_block): if there is a glyph in the
6229         propagation data use it to salt extent_fragment_update.
6230         * redisplay.c (create_string_text_block): ditto.
6231
6232 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6233
6234         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6235         * redisplay-output.c (compare_runes): Compare them.
6236         * redisplay.c: Update copyright date.
6237         * redisplay.c (pos_data): Add need_baseline_computation field.
6238         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6239         need_baseline_computation; zero yoffset. Set max_pixmap_height
6240         for all pixmaps, not just automatically positioned ones.
6241         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6242         * redisplay.c (calculate_baseline): New, compute textual baseline.
6243         * redisplay.c (add_glyph_rune): Call them.
6244         * redisplay.c (create_text_block): Likewise.
6245         * redisplay.c (create_overlay_glyph_block): Likewise.
6246         * redisplay.c (add_margin_runes): Likewise.
6247         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6248
6249         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6250         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6251         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6252         * redisplay-msw.c (mswindows_output_string): Likewise.
6253         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6254         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6255         * redisplay-x.c (x_output_display_block): Likewise.
6256
6257 2002-03-28  Ben Wing  <ben@xemacs.org>
6258
6259         * redisplay.c: Fixed bug in redisplay
6260         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6261         and down of the lines, since they're bigger than the line
6262         size. (It was seen most obviously when there's a horizontal scroll
6263         bar, e.g. do C-h a glyph or something like that.) The problem was
6264         that the glyph-contrib-p setting on glyphs was ignored even if it
6265         was set properly, which it wasn't until now.
6266
6267 2002-04-24  Andy Piper  <andy@xemacs.org>
6268
6269         * lisp.h (Dynarr_end): Fix definition.
6270
6271 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6272
6273         * redisplay.c (mark_redisplay): Remove call to
6274         update_frame_window_mirror.
6275
6276 2001-11-15  Andy Piper  <andy@xemacs.org>
6277
6278         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6279         cygwin (again).
6280
6281 2002-02-13  Andy Piper  <andy@xemacs.org>
6282
6283         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6284         we did in fact enqueue the XM_MAPFRAME event.
6285
6286 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6287
6288         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6289         to fix problem switching between virtual desktops under virtuawin
6290         virtual window manager.
6291
6292 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6293
6294         * event-msw.c: Typo fix.
6295         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6296         magic XM_MAPFRAME event has been sent.
6297
6298 2001-11-23  Andy Piper  <andy@xemacs.org>
6299
6300         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6301
6302 2001-11-21  Andy Piper  <andy@xemacs.org>
6303
6304         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6305         mouse events outside the frame.
6306
6307 2002-03-20  Andy Piper  <andy@xemacs.org>
6308
6309         * menubar-msw.c (mswindows_popup_menu): warning removal.
6310         * dialog-msw.c (dialog_popped_down): ditto.
6311
6312 2001-12-11  Andy Piper  <andy@xemacs.org>
6313
6314         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6315         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6316         popup_up_p.
6317         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6318         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6319         * menubar-msw.c (mswindows_popup_menu): ditto.
6320
6321 2001-10-29  Andy Piper  <andy@xemacs.org>
6322
6323         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6324         cancels.
6325
6326 2002-01-03  Andy Piper  <andy@xemacs.org>
6327
6328         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6329         letters.
6330         (xrealpath): ditto.
6331
6332 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6333
6334         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6335         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6336         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6337         Detect and handle case where machine is set up for metric units
6338
6339 2002-04-02  Andy Piper  <andy@xemacs.org>
6340
6341         * dired-msw.c (mswindows_get_files): 
6342         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6343         completely handled by XEmacs. Suggested by Thomas Vogler
6344         <mail@thomas-vogler.de>.
6345
6346 2001-11-14  Andy Piper  <andy@xemacs.org>
6347
6348         * nt.c (REG_ROOT): change registry key to XEmacs.
6349
6350 2002-04-27  Andy Piper  <andy@xemacs.org>
6351
6352         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6353
6354 2002-04-26  Andy Piper  <andy@xemacs.org>
6355
6356         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6357         behavior.
6358
6359 2002-03-14  Mike Alexander  <mta@arbortext.com>
6360
6361         * event-msw.c (mswindows_unwait_process): New, remove process from
6362         wait list
6363         * process-nt.c (nt_finalize_process_data): Call
6364         mswindows_unwait_process
6365         * console-msw.h: Declare mswindows_unwait_process
6366
6367 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6368
6369         * editfns.c (Fdecode_time):
6370         (Fformat_time_string):
6371         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6372         (make_time): Warning elimination (change arg name).
6373
6374 2001-11-24  Andy Piper  <andy@xemacs.org>
6375
6376         * window.c (Fsplit_window): Doc return type.
6377
6378 2002-04-01  Andy Piper  <andy@xemacs.org>
6379
6380         * emacs.c (Fkill_emacs): Only output message box in interactive
6381         mode.
6382
6383 2002-04-26  Andy Piper  <andy@xemacs.org>
6384  
6385         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6386         cygwin.
6387
6388 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6389
6390         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6391         bit platform.
6392
6393 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6394
6395         * XEmacs 21.4.8 "Honest Recruiter" is released.
6396
6397 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6398
6399         Supersedes 2002-04-17 patch.
6400
6401         * process.h (PROCESS_LIVE_P): Use the process status as
6402         evidence of health, not the state of the input stream.
6403         (PROCESS_READABLE_P): Say if the process is readable
6404         from. (It may be dead nonetheless.)
6405         (CHECK_READABLE_PROCESS): Test for that condition.
6406
6407         * process.c (create_process): Use PROCESS_READABLE_P.
6408         (read_process_output, set_process_filter): Likewise.
6409
6410         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6411         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6412
6413         This code is #if 0'd, this is not the time to add new functions:
6414
6415         * process.c (Fprocess_readable_p): Report readability status.
6416         * process.c (Qprocess_readable_p): New, associated symbol...
6417         * process.c (syms_of_process): ... initialize it.
6418
6419 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6420
6421         * XEmacs 21.4.7 "Economic Science" is released.
6422
6423 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6424
6425         * process.h (PROCESS_LIVE_P): Use the process status as
6426         evidence of health, not the state of the input stream.
6427
6428 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6429
6430         * sysdep.c (sys_siglist): change "signum" to "signal"
6431
6432 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6433
6434         * s/darwin.h: New file.
6435         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6436         
6437 2002-04-23  Andreas Jaeger  <aj@suse.de>
6438
6439         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6440         which use lib64 for 64-bit libs.
6441         (START_FILES): Likewise.
6442
6443 2002-02-11  Mike Sperber  <mike@xemacs.org>
6444
6445         * device-x.c: 
6446         (x_IO_error_handler):
6447         (x_init_device): Temporarily keep device in static variable
6448         `device_being_initialized' so we can recover gracefully from
6449         internal XOpenDevice failure.  (XOpenDevice is documented to
6450         return NULL on failure, but sometimes calls the IO error handler
6451         instead.)
6452
6453 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6454
6455         * dired.c (Ffile_name_all_completions): Change documentation --
6456         remove reference to completion-ignored-extensions.
6457         * dired.c (vars_of_dired): Change documentation for
6458         completion-ignored-extensions -- remove reference to
6459         file-name-all-completions.
6460
6461 2002-03-06  Jerry James  <james@xemacs.org>
6462
6463         * emodules.c (emodules_load): Fix multiple loading of same module.
6464
6465 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6466         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6467         RTLD_LAZY to avoid incorrect symbol binding when using nested
6468         shared libraries on Solaris.
6469
6470 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6471
6472         * fileio.c (Ffind_file_name_handler): Improve docstring.
6473
6474 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6475
6476         * fns.c (Fmapconcat): Improve docstring.
6477
6478 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6479
6480         * device-gtk.c: Add prototype for
6481         emacs_gtk_selection_clear_event_handle.
6482         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6483         selection.  Setup signal handler for "selection_clear_event"
6484         (emacs_gtk_selection_clear_event_handle).
6485
6486         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6487         other applications owning the clipboard (based on
6488         x_handle_selection_clear).
6489
6490 2001-12-23  William M. Perry  <wmperry@gnu.org>
6491
6492         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6493         
6494 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6495
6496         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6497
6498 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6499
6500         * XEmacs 21.4.6 "Common Lisp" is released.
6501
6502 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6503
6504         * search.c (Freplace_match): Add missing sub-expression functionality.
6505
6506         * buffer.c (decode_buffer): Add a check for pointer type to
6507         decode_buffer, before gcc's CSE optimization reorders a
6508         dereference in front of the allow_string test.
6509
6510 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6511
6512         * window.c (window_loop): Fix bug that sometimes prevented
6513         window_loop() from iterating across multiple devices.  Also, at
6514         Ben's request, changed infloop-detecting code to abort() instead
6515         of silently terminating window_loop().
6516
6517 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6518
6519         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6520         * editfns.c (make_time): New function.
6521         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6522         * lisp.h (make_time): Prototype and comment it.
6523         * dired.c (wasteful_word_to_lisp): Deprecate.
6524         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6525
6526 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6527
6528         * fileio.c (auto_save_1): Use current coding system, not
6529         escape-quoted.
6530
6531 2001-11-13  Ben Wing  <ben@xemacs.org>
6532
6533         * window.c:
6534         * window.c (window_truncation_on):
6535         * window.c (syms_of_window):
6536         truncate-partial-width-windows should respect the buffer being
6537         displayed, like other redisplay vars.
6538
6539 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6540
6541         * event-stream.c (Fread_key_sequence): save current buffer.
6542
6543 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6544
6545         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6546
6547 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6548
6549         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6550
6551 2001-10-26  Mike Alexander  <mta@arbortext.com>
6552
6553         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6554
6555 2001-10-25  Andy Piper  <andy@xemacs.org>
6556
6557         * ChangeLog:
6558         * dialog-msw.c (handle_directory_proc): new function.
6559          (handle_directory_dialog_box): new fucntion.
6560          (handle_file_dialog_box): use new directory dialog support.
6561          (mswindows_make_dialog_box_internal): ditto.
6562         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6563         handling.
6564         (mswindows_find_frame): make global.
6565         * fileio.c (Fexpand_file_name): build fix.
6566         * general-slots.h: add Qdirectory.
6567         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6568         handling.
6569         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6570         cygwin not leaving win32 paths unchanged.
6571         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6572         cygwin runtime to do path conversion.
6573         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6574         (syms_of_win32): add new function.
6575         * window.c (window_loop): build fix.
6576
6577 2001-10-15  Andy Piper  <andy@xemacs.org>
6578
6579         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6580
6581 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6582
6583         * XEmacs 21.4.5 "Civil Service" is released.
6584
6585 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6586
6587         * glyphs-x.c: Force buffer-tab highlight update when moving the
6588         buffer, avoiding an ugly black border, used for keyboard focus
6589         indication, on a widget that can never have keyboard focus, the
6590         buffer tab.
6591
6592 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6593
6594         * process-unix.c (unix_open_multicast_group): Remove too much
6595         conversion between host and network byte order.
6596
6597 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6598
6599         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6600         before replacing them.
6601
6602         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6603         operation.
6604
6605         * src/window.c (undedicate_windows): Use it.
6606         * src/window.h: Add prototype.
6607
6608 2001-09-17  Ben Wing  <ben@xemacs.org>
6609
6610         * fileio.c (normalize_filename):
6611         * fileio.c (Fexpand_file_name):
6612         Fix various C++ compile errors in Andy's recent code.
6613         
6614         * callint.c (Fcall_interactively):
6615         * editfns.c (Ftemp_directory):
6616         * editfns.c (Fuser_full_name):
6617         * emacs.c (argmatch):
6618         * lread.c (locate_file_map_suffixes):
6619         * redisplay-x.c (x_ring_bell):
6620         Fix sign-compare warnings.
6621         
6622 2001-09-08  Andy Piper  <andy@xemacs.org>
6623
6624         * fileio.c (normalize_filename): copied from nt.c
6625         * (Ffile_name_directory): enable win32 paths under cygwin.
6626         * (Ffile_name_nondirectory): ditto.
6627         * (directory_file_name): ditto.
6628         * (Fexpand_file_name): ditto.
6629         * (Ffile_truename): ditto.
6630         * (Fsubstitute_in_file_name): ditto.
6631         * (Ffile_name_absolute_p): ditto.
6632         * (Ffile_readable_p): ditto.
6633
6634 2001-09-08  Andy Piper  <andy@xemacs.org>
6635
6636         * device-msw.c (mswindows_finish_init_device): remove dde
6637         initialization.
6638         * device-msw.c (mswindows_init_dde): factor out from
6639         mswindows_finish_init_device()
6640         * device-msw.c (init_mswindows_very_early): new function
6641         initialize but don't enable dde.
6642         * emacs.c (main_1): call init_mswindows_very_early.
6643         * event-msw.c:
6644         * event-msw.c (mswindows_dde_callback): only execute when we are
6645         ready.
6646         * symsinit.h: declare init_mswindows_very_early.
6647
6648 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6649
6650         [sjt: This has been in 21.5 for months with no complaints.]
6651
6652         * console.h (struct console_methods): Added flags member.
6653         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6654         (CONMETH_IMPL_FLAG):
6655         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6656         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6657
6658         * device.c (window_system_pixelated_geometry): Use the above macros.
6659
6660         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6661         implememntation flag.
6662         * device.h (DEVICE_DISPLAY_P): Use it.
6663
6664         * frame.c (delete_frame_internal): Use the above macro.
6665
6666         * redisplay.c (redisplay_device): Use it.
6667         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6668         (redisplay_frame): Ditto.
6669
6670         * device-msw.c (mswindows_device_implementation_flags): Removed.
6671         (msprinter_device_implementation_flags): Removed.
6672         (console_type_create_device_mswindows): Removed references to
6673         implementation_flags methods, set implementation flags here.
6674         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6675
6676         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6677         (console_type_create_device_gtk): Removed method declaration.
6678         Added commented out statement which semantically matches the
6679         commented out statement in the above removed method.
6680
6681 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6682
6683         The attached patch fixes a few warnings. 
6684
6685         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6686         * src/frame-gtk.c: guard against GNOME calls in GTK only
6687         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6688         * src/select-gtk.c: prototype lisp_to_time
6689
6690 2001-06-08  Ben Wing  <ben@xemacs.org>
6691
6692         ------ gc-in-window-procedure fixes ------
6693         
6694         * alloc.c:
6695         * alloc.c (struct post_gc_action):
6696         * alloc.c (register_post_gc_action):
6697         * alloc.c (run_post_gc_actions):
6698         * alloc.c (garbage_collect_1):
6699         Create "post-gc actions", to avoid those dreaded "GC during window
6700         procedure" problems.
6701
6702         * event-msw.c:
6703         Abort, clean and simple, when GC in window procedure.  We want
6704         to flush these puppies out.
6705
6706         * glyphs-msw.c:
6707         * glyphs-msw.c (finalize_destroy_window):
6708         * glyphs-msw.c (mswindows_finalize_image_instance):
6709         Use a post-gc action when destroying subwindows.
6710
6711         * lisp.h:
6712         Declare register_post_gc_action().
6713
6714         * scrollbar-msw.c:
6715         * scrollbar-msw.c (unshow_that_mofo):
6716         Use a post-gc action when unshowing scrollbar windows, if in gc.
6717
6718         * redisplay.c (mark_redisplay):
6719         Add comment about the utter evilness of what's going down here.
6720
6721         ------ cygwin setitimer fixes ------
6722         
6723         * Makefile.in.in (sheap_objs):
6724         * Makefile.in.in (profile_objs):
6725         * Makefile.in.in (objs):
6726         Compile profile.c only when HAVE_SETITIMER.
6727         
6728         * nt.c (mswindows_sigset):
6729         * nt.c (mswindows_sighold):
6730         * nt.c (mswindows_sigrelse):
6731         * nt.c (mswindows_sigpause):
6732         * nt.c (mswindows_raise):
6733         * nt.c (close_file_data):
6734         Style fixes.
6735         
6736         * nt.c:
6737         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6738         
6739         * profile.c:
6740         * profile.c (Fstart_profiling):
6741         * profile.c (Fstop_profiling):
6742         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6743         instead of just plain setitimer().
6744         
6745         * signal.c:
6746         * signal.c (set_one_shot_timer):
6747         * signal.c (alarm):
6748         Define qxe_setitimer() as an encapsulation around setitimer() --
6749         call setitimer() directly unless Cygwin or MS Win, in which case
6750         we use our simulated version in win32.c.
6751         
6752         * systime.h:
6753         * systime.h (struct itimerval):
6754         * systime.h (ITIMER_REAL):
6755         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6756         comment about "qxe" and the policy regarding encapsulation.
6757
6758         * win32.c:
6759         * win32.c (setitimer_helper_proc):
6760         * win32.c (setitimer_helper_period):
6761         * win32.c (setitimer_helper):
6762         * win32.c (mswindows_setitimer):
6763         Move setitimer() emulation here, so Cygwin can use it.
6764         Rename a couple of functions and variables to be longer and more
6765         descriptive.  In setitimer_helper_proc(), send the signal
6766         using either mswindows_raise() or (on Cygwin) kill().  If for
6767         some reason we are still getting lockups, we'll change the kill()
6768         to directly invoke the signal handlers.
6769
6770         ------ windows shell fixes ------
6771         
6772         * callproc.c:
6773         * ntproc.c:
6774         Comments about how these two files must die.
6775
6776         * callproc.c (init_callproc):
6777         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6778         not just COMSPEC. (more correct and closer to FSF.) Don't
6779         force a value for SHELL into the environment. (Comments added
6780         to explain why not.)
6781         
6782         * nt.c (init_user_info):
6783         Don't shove a fabricated SHELL into the environment.  See above.
6784
6785 2001-06-01  Ben Wing  <ben@xemacs.org>
6786
6787         * Makefile.in.in (ldflags):
6788         eliminate that pesky "defaulting to 00401000" warning.
6789         * nt.h:
6790         eliminate warnings.
6791
6792 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6793
6794         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6795         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6796
6797 2001-04-24  Jerry James <james@xemacs.org>
6798
6799         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6800         correct order.
6801
6802 2001-06-01  Ben Wing  <ben@xemacs.org>
6803
6804         * event-msw.c (debug_mswin_messages):
6805         conditionalize the messages that were causing compile errors.
6806         (if only macros could generate #ifdef statements ...)
6807
6808 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6809
6810         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6811
6812 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6813
6814         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6815
6816 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6817
6818         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6819         * process-unix.c (unix_canonicalize_host_name):
6820         sysdep.c (init_system_name):
6821         Use it to conditionally support IPv6 canonicalization.
6822
6823 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6824
6825         * event-msw.c:
6826         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6827
6828 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6829
6830         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6831         attempt is made to scroll when no scroll bar is available.
6832
6833 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6834
6835         * input-method-motif.c (XIM_delete_frame): New callback.
6836         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6837         got deleted from 21.4.3.)
6838
6839 2001-06-01  Ben Wing  <ben@xemacs.org>
6840
6841         * nt.c (mswindows_utime):
6842         * nt.c (close_file_data):
6843         fix off-by-one-indirection error.
6844
6845 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6846
6847         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6848         because set_file_times() now takes Lisp_Object path, instead of
6849         char*.
6850         * nt.c: Include buffer.h.
6851         * nt.c (convert_from_time_t): New.
6852         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6853         not set mtime correctly.
6854         * nt.h: Declare mswindows_utime().
6855         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6856         path, instead of char*.
6857         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6858
6859 2001-05-30  Ben Wing  <ben@xemacs.org>
6860
6861         For 21.4:
6862
6863         (Stephen, just take all event-msw.c patches.  This includes
6864         the "iconify" fix below.)
6865
6866         * event-msw.c:
6867         * event-msw.c (mswindows_dequeue_dispatch_event):
6868         * event-msw.c (assert):
6869         * event-msw.c (emacs_mswindows_quit_p):
6870         * event-msw.c (debug_mswin_messages):
6871         * event-msw.c (debug_output_mswin_message):
6872         * event-msw.c (vars_of_event_mswindows):
6873         Fix yet more problems with C-g handling.
6874         Implement debug-mswindows-events.
6875         
6876 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6877
6878         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6879         
6880 2001-05-23  Ben Wing  <ben@xemacs.org>
6881
6882         * event-msw.c (winsock_writer):
6883         * event-msw.c (winsock_closer):
6884         prior kludgy code was clobbering the buffer, thinking it was
6885         "unused" space to store an unneeded return value; instead, use
6886         the variable we've already got staring us in the face.
6887
6888 2001-05-17  Andy Piper  <andy@xemacs.org>
6889
6890         * sysfile.h: don't assume that file attributes are boolean
6891
6892 2001-05-23  Ben Wing  <ben@xemacs.org>
6893
6894         * device-msw.c (msprinter_init_device):
6895         signal an error rather than crash with an unavailable network
6896         printer (from Mike Alexander).
6897         
6898         * event-msw.c:
6899         * event-msw.c (struct winsock_stream):
6900         * event-msw.c (winsock_writer):
6901         * event-msw.c (winsock_closer):
6902         * event-msw.c (make_winsock_stream_1):
6903         cleanup headers.  fix (hopefully) an error with data corruption
6904         when sending to a network connection.
6905
6906         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6907         to handle the ~user prefix by (a) always assuming we're referencing
6908         ourselves and not even verifying the user -- hence any file with
6909         a tilde as its first char is invalid! (b) if there wasn't a slash
6910         following the filename, the pointer was set *past* the end of
6911         file and we started reading from uninitialized memory.  Now we
6912         simply treat these as files, always.
6913
6914         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6915         
6916 2001-05-19  Ben Wing  <ben@xemacs.org>
6917
6918         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6919
6920         * process-nt.c:
6921         * process-nt.c (vars_of_process_nt):
6922         remove unused mswindows-quote-process-args.  rec for 21.4.
6923         
6924 2001-05-12  Ben Wing  <ben@xemacs.org>
6925
6926         * event-msw.c (mswindows_dde_callback):
6927         * event-msw.c (mswindows_wnd_proc):
6928         eliminate cygwin warnings.
6929
6930 2001-05-06  Ben Wing  <ben@xemacs.org>
6931
6932         * console-msw.h:
6933         * device-msw.c:
6934         * device-msw.c (print_dialog_worker):
6935         * device-msw.c (mswindows_handle_print_dialog_box):
6936         * device-msw.c (syms_of_device_mswindows):
6937         * dialog-msw.c (mswindows_make_dialog_box_internal):
6938         * general-slots.h:
6939         implement printing the selection when it's selected.
6940
6941 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6942
6943         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6944
6945 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6946
6947         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6948         EMACS_INT is signed.
6949
6950 2001-04-15  Michael Lausch  <mla@1012surf.net>
6951
6952         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6953         gtk_widget_request_size() to give scrollbar >0 width for
6954         GTK >1.2.8.
6955
6956 2001-05-30  William M. Perry  <wmperry@gnu.org>
6957
6958         * event-gtk.c: Check for buttons as modifier keys.
6959
6960 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6961
6962         * s\mingw32.h:
6963         Properly find MinGW's <process.h> inside Cygwin's restructured
6964         include directories.  Don't try to include <cygwin/version.h>
6965         since we are dropping support for MinGW in versions of Cygwin
6966         earlier than b21.
6967         * nt.c:
6968         Drop support for MinGW in versions of Cygwin before b21.
6969         * sysdep.c:
6970         Properly find MinGW's <process.h> inside Cygwin's restructured
6971         include directories.
6972         * syswindows.h:
6973         Drop support for MinGW in versions of Cygwin before b21.
6974         * unexcw.c:
6975         Even though a.out.h is no longer detected by configure, allow
6976         MinGW to use it until we figure out how to do the job with Win32.
6977
6978 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6979
6980         * syntax.c (find_start_of_comment):
6981         Fix `unbalanced parentheses' bug when dealing with mixed comment
6982         styles in c++/java/etc. mode
6983
6984 2001-05-29  Mike Alexander  <mta@arbortext.com>
6985
6986         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6987         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6988
6989 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6990
6991         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6992
6993 2001-03-31  Mike Sperber <mike@xemacs.org>
6994
6995         * search.c (Freplace_match): Support FSF-style specification of
6996         match subexpression when applied to a buffer.
6997
6998 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6999
7000         * event-stream.c (is_scrollbar_event): add missing semicolon
7001
7002 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7003
7004         * Makefile.in.in: Use TAR macro instead of hardcoding
7005           tar.  Allows use of GNU tar instead of system tar
7006
7007 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7008
7009         * event-stream.c (is_scrollbar_event): add missing semicolon
7010
7011 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7012
7013         * XEmacs 21.4.3 "Academic Rigor" is released.
7014
7015 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7016
7017         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7018
7019 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7020
7021         * buffer.c (Vcase_fold_search): Remove obsolete
7022           comment about non ASCII case-fold-search.  This
7023           bug has been fixed by case-table changes.
7024
7025 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7026
7027         * event-msw.c: Restore include of events-mod.h.
7028
7029 2001-04-22   zhaoway  <zw@debian.org>
7030
7031         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7032         !HAVE_SCROLLBARS.
7033
7034 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7035
7036         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7037
7038 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7039
7040         * mule-charset.c (Fmake_charset): Add missing else.
7041
7042 2001-04-23  Ben Wing  <ben@xemacs.org>
7043
7044         * event-msw.c (FAKE_MOD_QUIT):
7045         * event-msw.c (mswindows_dequeue_dispatch_event):
7046         * event-msw.c (mswindows_wnd_proc):
7047         * event-msw.c (emacs_mswindows_quit_p):
7048         Get critical quit working.
7049
7050 2001-05-05  Ben Wing  <ben@xemacs.org>
7051
7052         * console-msw.h:
7053         * device-msw.c:
7054         * device-msw.c (mswindows_get_default_margin):
7055         * frame-msw.c (mswindows_size_frame_internal):
7056         * frame-msw.c (msprinter_init_frame_1):
7057         * frame-msw.c (vars_of_frame_mswindows):
7058         Change top/bottom margin defaults to 0.5 inches.
7059
7060 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7061
7062         Fix link error with gcc 3.0 on Linux.
7063         * terminfo.c (UP): Remove.
7064         * terminfo.c (BC): Remove.
7065         * terminfo.c (PC): Remove.
7066         They weren't used, and in any case, these symbols should be
7067         defined in the *library*.
7068
7069 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7070
7071         * s/aix4.h: Fix crash with xlc -O3.
7072         Improve comment explaining how -O3 works.
7073
7074 2001-04-15  Ben Wing  <ben@xemacs.org>
7075
7076         * event-stream.c:
7077         * event-stream.c (Fnext_event):
7078         * event-stream.c (is_scrollbar_event):
7079         * event-stream.c (execute_command_event):
7080         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7081         crash' problem.  His fix introduces other problems.  We filter
7082         out scrollbar events specifically, making them somewhat invisible
7083         to command-building, and not appearing in `this-command-keys'.
7084         More work is still needed (see comments in event-stream.c), but
7085         this fixes all the major problems.
7086
7087 2001-04-20  Ben Wing  <ben@xemacs.org>
7088
7089         * .cvsignore: Added stuff for Windows.
7090
7091 2001-04-28  Ben Wing  <ben@xemacs.org>
7092
7093         * buffer.c (Ferase_buffer):
7094         * editfns.c (buffer_insert1):
7095         * editfns.c (Finsert_before_markers):
7096         * editfns.c (Finsert_string):
7097         * editfns.c (Finsert_char):
7098         * editfns.c (Fdelete_region):
7099         * editfns.c (Fwiden):
7100         * editfns.c (Fnarrow_to_region):
7101         remove bogus lines setting zmacs_region_stays to 0.
7102         
7103 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7104
7105         * process-unix.c (unix_open_network_stream): If connect() fails
7106         invalidate file descriptor after closing it.
7107
7108 2001-03-08  Mike Alexander  <mta@arbortext.com>
7109
7110         * event-msw.c (mswindows_need_event_in_modal_loop):
7111         Don't dispatch a message if we didn't get one.
7112         (mswindows_need_event):
7113         Terminate the correct process when one exits instead of the first
7114         one on Vprocess_list and look for process termination when in
7115         mswindows_protect_modal_loop.
7116
7117 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7118
7119         * XEmacs 21.4.1 "Copyleft" is released.
7120
7121 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7122
7123         * input-method-motif.c (XIM_delete_frame): New callback.
7124         (XIM_init_frame): Register it.
7125
7126 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7127
7128         * XEmacs 21.4.0 "Solid Vapor" is released.
7129
7130 2001-04-15  Ben Wing  <ben@xemacs.org>
7131
7132         * cmdloop.c (call_command_loop):
7133         Fix braino in bit-rotting code.
7134         
7135 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7136
7137         * extents.c (Fset_extent_endpoints): Force creation of extent info
7138         in buffer_or_string.
7139
7140         * extents.c (process_extents_for_insertion_mapper): Correctly
7141         check for open-open zero-length extents.
7142
7143 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7144
7145         * lisp.h: New typedefs Memory_count, Element_count.
7146         * regex.c:
7147         * regex.h:
7148         Sign-compare warning elimination: several unsigned -> signed.
7149         Based on work by Ben Wing <ben@xemacs.org>.
7150
7151 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7152
7153         * XEmacs 21.2.47 "Zephir" is released.
7154
7155 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7156
7157         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7158
7159 2001-04-03  Mike Sperber <mike@xemacs.org>
7160
7161         * search.c: Revert previous patch due because of release.
7162
7163 2001-03-30  Ben Wing  <ben@xemacs.org>
7164
7165         * s\cygwin32.h:
7166         Add missing killpg prototype.
7167
7168         * elhash.c:
7169         Add a comment about fixing problems when a new entry is added
7170         while mapping.
7171
7172         * frame-msw.c (mswindows_init_frame_1):
7173         Fix compile warnings.
7174
7175         * menubar.c (vars_of_menubar):
7176         Provide `menu-accelerator-support' to indicate that we properly
7177         support %_ in menu specifications, so that package code can
7178         conditionalize on this (and remove %_ from menu specifications
7179         on older versions).
7180
7181         * event-msw.c:
7182         * scrollbar-msw.c:
7183         * scrollbar-msw.c (can_scroll):
7184         * scrollbar-msw.h:
7185         Fix handling of mouse wheel under Windows to follow standards --
7186         now scrolls window under pointer, not selected window.
7187
7188 2001-03-31  Mike Sperber <mike@xemacs.org>
7189
7190         * search.c (Freplace_match): Support FSF-style specification of
7191         match subexpression when applied to a buffer.
7192
7193 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7194
7195         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7196         function to modify KEYMAP, so map over a copy of the hash table.
7197
7198 2001-03-21  Martin Buchholz <martin@xemacs.org>
7199
7200         * XEmacs 21.2.46 "Urania" is released.
7201
7202 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7203
7204         * realpath.c (xrealpath): Make file-truename work with symlinks to
7205         /cygdrive paths on cygwin. Always lowercase drive-letters on
7206         native windows.
7207         (cygwin_readlink): Don't try to find canonical filename unless
7208         file exists.
7209
7210 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7211
7212         * ChangeLog: Log GTK merge.
7213
7214         * dumper.c:
7215         * select-x.c:
7216         * specifier.c:
7217         * symeval.h:
7218         Revert gratuitous whitespace changes from GTK merge.
7219
7220         * emacs.c: Document end of complex #ifdef @ l. 1495.
7221
7222
7223 2001-03-12  Andy Piper  <andy@xemacs.org>
7224
7225         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7226         have to do likewise.
7227
7228 2001-03-12  Andy Piper  <andy@xemacs.org>
7229
7230         * sysdep.c: we only support mingw now.
7231
7232 2001-03-09  Andy Piper  <andy@xemacs.org>
7233
7234         * unexcw.c (copy_executable_and_dump_data_section): making approx
7235         overrun a warning only.
7236
7237 2001-03-10  William M. Perry  <wmperry@aventail.com>
7238
7239         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7240         satisfy Stephen's identical-after-cpp plea.
7241
7242 2001-03-02  Ben Wing  <ben@xemacs.org>
7243
7244         * cmds.c:
7245         * cmds.c (Fforward_char):
7246         * syntax.c:
7247         * window.c:
7248
7249         Augment documentation of the most common motion commands to make
7250         note of the shifted-motion support.
7251         
7252 2001-03-02  Ben Wing  <ben@xemacs.org>
7253
7254         * nt.c (mswindows_fstat):
7255         * nt.c (mswindows_stat):
7256         * search.c (boyer_moore):
7257         Fix compile warnings under Windows.
7258         
7259         * sysdep.c (sys_readdir):
7260         Fix buggy filename-conversion code under Mule.
7261
7262 2001-03-09  William M. Perry  <wmperry@aventail.com>
7263
7264         * Makefile.in.in:
7265         * config.h.in:
7266         * console.c:
7267         * console.h:
7268         * device.c:
7269         * device.h:
7270         * dragdrop.c:
7271         * emacs.c:
7272         * event-stream.c:
7273         * events.c:
7274         * events.h:
7275         * faces.c:
7276         * frame.h:
7277         * general-slots.h:
7278         * glyphs.c:
7279         * gutter.c:
7280         * inline.c:
7281         * lisp.h:
7282         * lrecord.h:
7283         * make-src-depend:
7284         * redisplay-output.c:
7285         * redisplay.c:
7286         * symsinit.h:
7287         * sysfile.h:
7288         * toolbar.c:
7289         * window.c:
7290         The Great GTK Merge.
7291
7292         * ChangeLog.GTK:
7293         * console-gtk.c:
7294         * console-gtk.h:
7295         * device-gtk.c:
7296         * emacs-marshals.c:
7297         * emacs-widget-accessors.c:
7298         * event-gtk.c:
7299         * frame-gtk.c:
7300         * gccache-gtk.c:
7301         * gccache-gtk.h:
7302         * glade.c:
7303         * glyphs-gtk.c:
7304         * glyphs-gtk.h:
7305         * gtk-glue.c:
7306         * gtk-xemacs.c:
7307         * gtk-xemacs.h:
7308         * gui-gtk.c:
7309         * gui-gtk.h:
7310         * menubar-gtk.c:
7311         * native-gtk-toolbar.c:
7312         * objects-gtk.c:
7313         * objects-gtk.h:
7314         * redisplay-gtk.c:
7315         * scrollbar-gtk.c:
7316         * scrollbar-gtk.h:
7317         * select-gtk.c:
7318         * toolbar-gtk.c:
7319         * ui-byhand.c:
7320         * ui-gtk.c:
7321         * ui-gtk.h:
7322         The Great GTK Merge: new files.
7323
7324 2001-02-26  Ben Wing  <ben@xemacs.org>
7325
7326         Reapplied Lstream change.
7327
7328 2001-02-26  Ben Wing  <ben@xemacs.org>
7329
7330         Undid the last change, since it is more controversial than I
7331         thought.  It should be back in at some point soon.
7332         
7333 2001-02-25  Ben Wing  <ben@xemacs.org>
7334
7335         * buffer.c:
7336         * callproc.c (Fold_call_process_internal):
7337         * event-msw.c (ntpipe_slurp_reader):
7338         * event-msw.c (ntpipe_shove_writer):
7339         * event-msw.c (winsock_reader):
7340         * event-msw.c (winsock_writer):
7341         * file-coding.c:
7342         * file-coding.c (detect_eol_type):
7343         * file-coding.c (detect_coding_type):
7344         * file-coding.c (determine_real_coding_system):
7345         * file-coding.c (Fdetect_coding_region):
7346         * file-coding.c (decoding_reader):
7347         * file-coding.c (decoding_writer):
7348         * file-coding.c (mule_decode):
7349         * file-coding.c (Fdecode_coding_region):
7350         * file-coding.c (encoding_reader):
7351         * file-coding.c (encoding_writer):
7352         * file-coding.c (mule_encode):
7353         * file-coding.c (Fencode_coding_region):
7354         * file-coding.c (detect_coding_sjis):
7355         * file-coding.c (decode_coding_sjis):
7356         * file-coding.c (encode_coding_sjis):
7357         * file-coding.c (detect_coding_big5):
7358         * file-coding.c (decode_coding_big5):
7359         * file-coding.c (encode_coding_big5):
7360         * file-coding.c (detect_coding_ucs4):
7361         * file-coding.c (decode_coding_ucs4):
7362         * file-coding.c (encode_coding_ucs4):
7363         * file-coding.c (detect_coding_utf8):
7364         * file-coding.c (decode_coding_utf8):
7365         * file-coding.c (encode_coding_utf8):
7366         * file-coding.c (detect_coding_iso2022):
7367         * file-coding.c (decode_coding_iso2022):
7368         * file-coding.c (encode_coding_iso2022):
7369         * file-coding.c (decode_coding_no_conversion):
7370         * file-coding.c (encode_coding_no_conversion):
7371         * glyphs-x.c (write_lisp_string_to_temp_file):
7372         * gpmevent.c (tty_get_foreign_selection):
7373         * lisp.h:
7374         * lstream.c:
7375         * lstream.c (Lstream_flush_out):
7376         * lstream.c (Lstream_adding):
7377         * lstream.c (Lstream_write_1):
7378         * lstream.c (Lstream_write):
7379         * lstream.c (Lstream_raw_read):
7380         * lstream.c (Lstream_read_more):
7381         * lstream.c (Lstream_read):
7382         * lstream.c (Lstream_unread):
7383         * lstream.c (Lstream_fputc):
7384         * lstream.c (stdio_reader):
7385         * lstream.c (stdio_writer):
7386         * lstream.c (filedesc_reader):
7387         * lstream.c (filedesc_writer):
7388         * lstream.c (lisp_string_reader):
7389         * lstream.c (struct fixed_buffer_stream):
7390         * lstream.c (make_fixed_buffer_input_stream):
7391         * lstream.c (make_fixed_buffer_output_stream):
7392         * lstream.c (fixed_buffer_reader):
7393         * lstream.c (fixed_buffer_writer):
7394         * lstream.c (struct resizing_buffer_stream):
7395         * lstream.c (resizing_buffer_writer):
7396         * lstream.c (dynarr_writer):
7397         * lstream.c (lisp_buffer_reader):
7398         * lstream.c (lisp_buffer_writer):
7399         * lstream.h:
7400         * lstream.h (lstream_implementation):
7401         * lstream.h (struct lstream):
7402         * md5.c (Fmd5):
7403         * process-nt.c (nt_send_process):
7404         * process-unix.c (unix_send_process):
7405         
7406         Correct Lstream lossage due to mixing of signed and unsigned
7407         quantities.  All Lstream uses of size_t and ssize_t are now a
7408         single signed data type Lstream_data_count.  This fixes problems
7409         under Windows with sending large quantities of data to a process,
7410         and may well fix other subtle bugs.
7411
7412 2001-02-23  Martin Buchholz <martin@xemacs.org>
7413
7414         * XEmacs 21.2.45 "Thelxepeia" is released.
7415
7416 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7417
7418         * lisp-union.h (XSETINT): 
7419         (XSETCHAR):
7420         (XSETOBJ): 
7421         Reverse previous change of 2001-02-06.
7422
7423 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7424
7425         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7426         buffers.
7427         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7428         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7429         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7430         * regex.c (POS_AS_IN_BUFFER): removed
7431         * regex.c (re_search_2):
7432         * regex.c (re_match_2):
7433         Don't use an offset of 1 when calculating buffer positions, since
7434         `BI_BUF_BEGV' does it already.
7435
7436 2001-02-18  Wim Dumon  <wim@easics.be>
7437
7438         * insdel.c (prepare_to_modify_buffer): Also check for
7439         supersession when clash-detection is enabled. 
7440
7441 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7442
7443         * regex.c (re_match_2_internal):
7444         Convert temp characters from 'const unsigned char' to 're_char'.
7445         Fix crashing bug with extended characters under mule.
7446         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7447         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7448         font-lock, pdump, and new syntax-table code.
7449         * syntax.c (find_start_of_comment):
7450         (find_end_of_comment):
7451         (forward-comment):
7452         Fix crashing bugs involving moving beyond end of buffer.
7453         * syntax.c (find_start_of_comment):
7454         Fixed logic to allow proper detection of cases where the same
7455         character is used to end both a two-char comment start and a
7456         two-char comment end sequence. Fixes `(forward-comment -1)'.
7457         * syntax.c (find_start_of_comment):
7458         Return position just past last comment-end character for all cases
7459         (previously was only done for two-char comment-end sequences).
7460         * syntax.c (forward-comment):
7461         Take value returned from `find_end_of_comment', rather than
7462         incrementing it.
7463         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7464         Properly deal with BUFFERP (syntax_cache.object)
7465
7466 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7467
7468         * alloc.c (Fgarbage_collect): 
7469         * alloc.c (make_bit_vector_from_byte_vector):
7470         -Wsign-compare-correctness.
7471
7472 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7473
7474         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7475         (XSETCHAR): Likewise.
7476         (XSETOBJ): Likewise.
7477
7478 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7479
7480         * mule-canna.c (canna-func-delete_previous): 
7481         Rename to canna-func-delete-previous.
7482
7483 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7484
7485         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7486
7487 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7488
7489         * font-lock.c (find_context): Fix C++ compile errors introduced by
7490         recent patch
7491
7492 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7493
7494         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7495         pragma, but earlier ones barf on the same pragma.
7496
7497 2001-02-06  Mike Sperber <mike@xemacs.org>
7498
7499         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7500         `configure-mule-lisp-directory'.
7501
7502 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7503
7504         Make sure dump-id.c is compiled in the same way as other .c's.
7505         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7506         * dump-id.h: Remove.
7507         * emacs.c: Move dump-id.h into dumper.h.
7508         * dumper.h: Move dump-id.h into dumper.h.
7509         * Makefile.in.in:
7510         Use standard .c.o rule for building dump-id.o.
7511         Remove preprocessor flags from link command.
7512         Add dump-id.o to ${otherobjs} if PDUMP.
7513
7514 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7515
7516         Port FSF 20.7 syntax table improvements.
7517         * syntax.c.
7518         * syntax.h.
7519
7520         Fixups for new syntax table stuff.
7521         * dired.c: Include syntax.c.
7522         (Fdirectory_files): Initialize regex_match_object and
7523         regex_emacs_buffer.
7524         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7525         and Fget_char_property.
7526
7527         Use ported FSF 20.7 syntax table improvements.
7528         * font-lock.c.
7529         * regex.c.
7530         * search.c.
7531         
7532 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7533
7534         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7535         Unixware's enum boolean from sys/types.h.
7536
7537 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7538
7539         Fix support for building with latest Purify.
7540         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7541         (PURIFY_FLAGS): Likewise.
7542
7543 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7544
7545         * fileio.c (lisp_string_set_file_times): New.
7546         * fileio.c (Fcopy_file): Use it.
7547         Fixes bug:
7548         (copy-file filename non-ascii-filename t t)
7549         ==> No such file or directory, non-ascii-filename
7550
7551 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7552
7553         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7554         USHRT_MAX seems clearer than ~0 anyways.
7555
7556 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7557
7558         dumper improvements.  Inspired by Olivier.
7559         * dumper.c (pdump_max_align): New.
7560         * dumper.c (pdump_add_entry): Use pdump_max_align.
7561         * dumper.c (pdump_get_entry_list): Likewise.
7562         * dumper.c (pdump_scan_by_alignment): Likewise.
7563         Don't iterate through unnecessary alignments.
7564         * dumper.c (pdump_file_get): No need to align result of malloc().
7565         * dumper.c (pdump_mallocadr): Remove.  
7566         The result of malloc() is guaranteed to be maximally aligned.
7567         * dumper.c: s/elmt/elt/g;
7568         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7569         * dumper.c (pdump_alert_undump_object): Likewise.
7570         * dumper.c (pdump_align_table): 
7571         Don't support alignments > 64.
7572         Store ALIGNOF's, not shift counts, in table.
7573
7574 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7575
7576         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7577         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7578         * systime.h: Use HAVE_UTIME.
7579         * sysdep.c (struct utimbuf): Remove.
7580         * sysdep.c (set_file_times): Prefer utime() to utimes().
7581         * config.h.in (HAVE_UTIME): New.
7582         * config.h.in (HAVE_UTIME_H): Remove.
7583         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7584
7585 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7586
7587         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7588
7589 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7590
7591         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7592
7593 2001-02-08  Martin Buchholz <martin@xemacs.org>
7594
7595         * XEmacs 21.2.44 "Thalia" is released.
7596
7597 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7598
7599         Fixes crashes in kill-emacs on some systems.
7600         * process-unix.c (unix_kill_child_process):
7601         It's OK for kill() to fail with ESRCH.
7602
7603 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7604
7605         Contortions to make .gdbinit tricks work on most systems.
7606         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7607         * alloc.c (dbg_valmask): Make non-const.
7608         * alloc.c (dbg_typemask): Make non-const.
7609         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7610         * alloc.c (dbg_valbits): Make non-const.
7611         * alloc.c (dbg_gctypebits): Make non-const.
7612         * .gdbinit (decode_object): Make it work with AIX cc.
7613
7614 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7615
7616         * elhash.c (make_general_lisp_hash_table):
7617         Use simpler and more efficient calloc to clear entries.
7618
7619 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7620
7621         * window.c (window_scroll): Work around an AIX C compiler bug.
7622         Fixes 'scroll-up' does nothing problem with xlC.
7623
7624 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7625
7626         * .gdbinit: Remove obsolete comment.
7627
7628 2001-01-31  Mike Alexander  <mta@arbortext.com>
7629
7630         * select.c (Fown_selection_internal): Set owned_p for device
7631         method correctly.
7632
7633 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7634
7635         Port to g++ 2.97.
7636         "not" cannot be used as a macro name as it is an operator in C++
7637         * config.h.in: Stop #defining `not'.
7638         * chartab.c (check_category_char): not ==> not_p
7639         * chartab.h: Likewise.
7640         * regex.c (re_match_2_internal): Likewise.
7641
7642 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7643
7644         * lisp-disunion.h: Fix up comments.
7645
7646 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7647
7648         * keymap.c (define_key_check_and_coerce_keysym):
7649         (syms_of_keymap):
7650         Support mouse-6 and mouse-7 bindings in the obvious way.
7651
7652 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7653
7654         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7655
7656 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7657
7658         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7659         Previous patch missed DEFVAR_INT_MAGIC.
7660         Make sure future DEFVAR_foo use correct types.
7661         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7662         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7663         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7664         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7665         * (DEFVAR_INT): Likewise.
7666         * redisplay.c (vertical_clip): Should be of type Fixnum.
7667         * redisplay.c (horizontal_clip): Likewise.
7668         * lisp.h (dump_add_opaque_int): New.
7669         (dump_add_opaque_fixnum): New.
7670
7671 2001-01-29  Andy Piper  <andy@xemacs.org>
7672
7673         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7674         since they can be eval'ed
7675
7676 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7677
7678         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7679         Oops, XEmacs redefines `class'.  Use `typename' instead.
7680
7681 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7682
7683         * dumper.c: Fix C++ compile errors.
7684
7685 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7686
7687         * tparam.c: Use correct prototypes.
7688
7689 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7690
7691         * sysproc.h: #include util.h for NetBSD's openpty.
7692
7693 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7694
7695         More 64-bit correctness.
7696         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7697         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7698         Fix up comments.
7699         This finally finishes the 64-bit SGI port.
7700         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7701         * symbols.c: Fix up comments and type casts.
7702         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7703         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7704         * symeval.h (Fixnum): New type.
7705         * symeval.h (symbol_value_type): Fix up comment.
7706
7707         * commands.h:
7708         * nt.c:
7709         * emacs.c:
7710         * data.c:
7711         * redisplay.c:
7712         * abbrev.c:
7713         * dired-msw.c:
7714         * event-Xt.c:
7715         * eldap.c:
7716         * window.c:
7717         * sound.c:
7718         * event-stream.c:
7719         * eval.c:
7720         * buffer.c:
7721         * mule-canna.c: A million DEFVAR_INTs here...
7722         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7723         * extents.c:
7724         * cmdloop.c:
7725         * lisp.h:
7726         * select-x.c:
7727         * console-x.h:
7728         * event-msw.c:
7729         * mule-wnnfns.c:
7730         * hpplay.c:
7731         * ralloc.c:
7732         * alloc.c:
7733         * keymap.c:
7734         * profile.c:
7735         s/int/Fixnum/g in DEFVAR_INT declarations.
7736
7737 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7738
7739         Port pdump to SGI alignment-sensitive environment.
7740         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7741         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7742         properly aligned.
7743         Define and use aligned reading and writing macros.
7744         Use buffered stdio instead of posix i/o for faster dumping.
7745         Eliminate kludgy 256 byte space for header.
7746         Read and write from dump file using structs for alignment safety.
7747         * dumper.c (pdump_align_stream): New.
7748         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7749         * dumper.c (PDUMP_READ_ALIGNED): New.
7750         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7751         * dumper.c (pdump_static_Lisp_Object): New struct.
7752         * dumper.c (pdump_static_pointer): New struct.
7753         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7754         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7755         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7756         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7757
7758         * dumper.c (pdump_backtrace):
7759         * dumper.c (pdump_get_indirect_count):
7760         * dumper.c (pdump_register_object):
7761         * dumper.c (pdump_register_struct):
7762         * dumper.c (pdump_reloc_one):
7763         * dumper.c (pdump_scan_by_alignment):
7764         * dumper.c (pdump_dump_from_root_struct_ptrs):
7765         * dumper.c (pdump_dump_opaques):
7766         * dumper.c (pdump_dump_rtables):
7767         * dumper.c (pdump_dump_from_root_objects):
7768         * dumper.c (pdump):
7769         * dumper.c (pdump_load_finish):
7770         Use aligned reading and writing.
7771
7772         * dumper.c (pdump_free): Make static.
7773         * dumper.c (pdump_hFile): Likewise.
7774         * dumper.c (pdump_hMap): Likewise.
7775
7776 2001-01-26  Martin Buchholz <martin@xemacs.org>
7777
7778         * XEmacs 21.2.43 "Terspichore" is released.
7779
7780 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7781
7782         Type fiddling for window_config.saved_windows_count
7783         * window.c (struct window_config): 
7784         Make saved_windows_count member unsigned.
7785         * window.c (sizeof_window_config_for_n_windows): 
7786         Make parameter unsigned.
7787         * window.c (mark_window_config):
7788         * window.c (window_config_equal):
7789         * window.c (free_window_configuration):
7790         * window.c (Fset_window_configuration):
7791         * window.c (count_windows):
7792         * window.c (Fcurrent_window_configuration):
7793         * window.c (reinit_vars_of_window):
7794         Update all callers and users.
7795
7796 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7797
7798         Alignment correctness for flexible arrays.
7799         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7800         Make alignment-correct. Add interesting comments.
7801         * alloc.c (size_vector):
7802         * alloc.c (make_vector_internal):
7803         * alloc.c (make_bit_vector_internal):
7804         * alloc.c (sweep_bit_vectors_1):
7805         * fns.c (size_bit_vector):
7806         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7807         * window.c (sizeof_window_config_for_n_windows): 
7808         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7809
7810 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7811
7812         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7813
7814 2001-01-23  Andy Piper  <andy@xemacs.org>
7815
7816         * select.c (Fown_selection_internal): pass owned_p
7817
7818         * select-msw.c (mswindows_own_selection): New Signature.
7819
7820         * console.h (struct console_methods): add owned_p to
7821         _own_selection.
7822
7823         * select-x.c (x_own_selection): pass owned_p
7824         (hack_motif_clipboard_selection): use owned_p
7825         (vars_of_select_x): new variable -
7826         x_selection_strict_motif_ownership.
7827
7828 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7829
7830         * specifier.h (specifier_data_offset): Remove pointless parens.
7831         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7832
7833 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7834
7835         Make Lisp_Object sizeof methods be alignment-correct.
7836         pdump must restore objects to the same alignment as the C compiler
7837         assumes.  It really matters on SGIs.
7838         * lstream.c (aligned_sizeof_lstream): New.
7839         (sizeof_lstream): Use aligned_sizeof_lstream.
7840         (Lstream_new): Likewise.
7841         * opaque.c (aligned_sizeof_opaque): New.
7842         (sizeof_opaque): Use aligned_sizeof_opaque.
7843         (make_opaque): Likewise.
7844         * specifier.c (aligned_sizeof_specifier): New.
7845         (sizeof_specifier): Use aligned_sizeof_specifier.
7846         (make_specifier_internal): Likewise.
7847
7848 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7849
7850         * lstream.h (struct lstream): Use max_align_t for trailing data.
7851         * specifier.h (struct Lisp_Specifier): Likewise.
7852
7853 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7854
7855         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7856         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7857         (CCL_SUSPEND): Likewise.
7858         (CCL_INVALID_CMD): Likewise.
7859         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7860         (ccl_driver): Likewise.
7861         (CCL_WRITE_CHAR): Macro hygiene.
7862         (CCL_WRITE_STRING): Macro hygiene.
7863
7864 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7865
7866         Port "portable" dumper to SunOS 4 and HP-UX.
7867         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7868         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7869         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7870
7871 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7872
7873         * lisp.h (ALIGNOF): A better definition for C++.
7874
7875 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7876
7877         Macro hygiene.
7878         Fix printf warnings: int format, long int arg.
7879         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7880         (PUSH_FAILURE_POINT): Use correct printf formats.
7881         (POP_FAILURE_POINT): Use correct printf formats.  
7882         Use do {...} while (0)
7883
7884 2001-01-20  Martin Buchholz <martin@xemacs.org>
7885
7886         * XEmacs 21.2.42 "Poseidon" is released.
7887
7888 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7889
7890         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7891
7892 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7893
7894         De-kludgify FIXED_TYPE free list frobbing.
7895         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7896         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7897         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7898         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7899         * alloc.c (LRECORD_FREE_P): New.
7900         * alloc.c (MARK_LRECORD_AS_FREE): New.
7901         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7902         * alloc.c (STRUCT_FREE_P): Deleted.
7903         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7904         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7905         * alloc.c (STRING_CHARS_FREE_P): New.
7906         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7907         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7908         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7909         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7910         * alloc.c (resize_string): Use new definitions.
7911         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7912         * alloc.c (verify_string_chars_integrity): Use new definitions.
7913         * alloc.c (compact_string_chars): Use new definitions.
7914         * alloc.c: Update monster comments.
7915         * lrecord.h (lrecord_type): Add some new lrecord types for
7916         alloc.c's use.
7917
7918 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7919
7920         Improve alignment hackery.
7921         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7922         (max_align_t): Moved from opaque.h - general purpose.
7923         (ALIGN_PTR): Use size_t, not long.
7924         * opaque.h (max_align_t): Move to lisp.h.
7925
7926 2001-01-18  Norbert Koch  <nk@LF.net>
7927
7928         * gui.h: Fix and add prototypes to fix build problems.
7929
7930 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7931
7932         temacs is going away, so `dump-temacs' is now a bad name.
7933         * .dbxrc (dump-temacs): Rename to `dmp'.
7934         * .gdbinit (dump-temacs): Rename to `dmp'.
7935
7936 2001-01-17  Andy Piper  <andy@xemacs.org>
7937
7938         * glyphs.c (print_image_instance): comment to make martin happy.
7939
7940         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7941         change.
7942
7943         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7944         activation.
7945         (mswindows_tab_control_redisplay): warning suppression.
7946
7947         * glyphs-widget.c (widget_update): re-write to cope with updated
7948         items.
7949         (widget_instantiate): use new gui_item functions.
7950         (tab_control_update): deleted.
7951         (progress_gauge_update): deleted.
7952         (image_instantiator_progress_guage): take out update reference.
7953         (image_instantiator_tree_view): ditto.
7954         (image_instantiator_tab_control): ditto.
7955
7956         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7957         Right the new way.
7958         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7959         return whether anything was changed.
7960         (update_gui_item_keywords): as it sounds.
7961
7962         * gui.h: declare widget_gui_parse_item_keywords.
7963
7964         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7965         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7966
7967 2001-01-17  Martin Buchholz <martin@xemacs.org>
7968
7969         * XEmacs 21.2.41 "Polyhymnia" is released.
7970
7971 2001-01-16  Didier Verna  <didier@xemacs.org>
7972
7973         * glyphs.c (image_instantiate): don't use fallbacks when
7974         instantiating a face's background pixmap by inheritance.
7975
7976 2001-01-14  Mike Sperber <mike@xemacs.org>
7977
7978         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7979         Conditionalize accordingly.
7980
7981 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7982
7983         * dumper.c (pdump_file_get): Fix a compiler warning.
7984
7985 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7986
7987         Make Purify happy when pdumping.
7988         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7989         iniitalizing all bits of new lisp object memory.
7990         * symbols.c (Fmake_local_variable): Likewise.
7991         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7992         * symbols.c (Fdefvaralias): Likewise.
7993         * mule-charset.c (vars_of_mule_charset): Likewise.
7994
7995 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7996         Add the `-nd' flag when running pre-dump operations under the debugger.
7997         * .dbxrc (run-temacs): Add `-nd'.
7998         * .dbxrc (update-elc): Likewise.
7999         * .dbxrc (dump-temacs): Likewise.
8000         * .gdbinit (run-temacs): Likewise.
8001         * .gdbinit (check-temacs): Likewise.
8002         * .gdbinit (update-elc): Likewise.
8003         * .gdbinit (dump-temacs): Likewise.
8004
8005 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8006
8007         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8008         export OBJECT_MODE=64
8009         configure --pdump --use-union-type=no
8010         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8011         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8012
8013         * miscplay.c (sndcnv8U_2mono):
8014         Avoid two uses of `++' in the same expression.
8015         Suppresses a GCC warning.
8016
8017 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8018
8019         Make sure future compilers don't miscompile alloc.c.
8020         * alloc.c:
8021         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8022         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8023
8024 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8025
8026         * dumper.c: A little post-pdump-rename comment fixup.
8027
8028 2001-01-09  Jerry James  <james@eecs.ku.edu>
8029
8030         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8031
8032 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8033
8034         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8035         script:
8036         #!/bin/sh
8037         replace_symbol () {
8038           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8039         }
8040
8041         replace_symbol pdump_wire_lists pdump_weak_object_chains
8042         replace_symbol pdump_wire_list dump_add_weak_object_chain
8043
8044         replace_symbol pdump_wires pdump_root_objects
8045         replace_symbol pdump_wire dump_add_root_object
8046
8047         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8048         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8049
8050         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8051         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8052         replace_symbol dumpstructinfo pdump_root_struct_ptr
8053         replace_symbol dumpstruct dump_add_root_struct_ptr
8054
8055         replace_symbol dumpopaque dump_add_opaque
8056         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8057         replace_symbol dumpopaqueinfos pdump_opaques
8058         replace_symbol dumpopaqueinfo pdump_opaque
8059
8060         replace_symbol nb_structdump nb_root_struct_ptrs
8061         replace_symbol nb_opaquedump nb_opaques
8062
8063         replace_symbol align_table pdump_align_table
8064         replace_symbol dump_header pdump_header
8065
8066         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8067         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8068
8069
8070 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8071
8072         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8073         optimizing bytecount_to_charcount().
8074
8075 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8076
8077         * config.h.in:
8078         (HAVE_DLFCN_H): Removed.
8079         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8080
8081 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8082
8083         Portable dumper maintainability improvements.
8084         * alloc.c (staticpro):
8085         * alloc.c (staticpro_nodump):
8086         * alloc.c (garbage_collect_1):
8087         * alloc.c (reinit_alloc_once_early):
8088         * alloc.c (init_alloc_once_early):
8089         * alloc.c: Move dumper functions to alloc.c.
8090         * dumper.c (pdump_backtrace):
8091         * dumper.c (pdump_dump_structs):
8092         * dumper.c (pdump_dump_opaques):
8093         * dumper.c (pdump_dump_rtables):
8094         * dumper.c (pdump_dump_wired):
8095         * dumper.c (pdump):
8096         * dumper.c (pdump_load_check):
8097         * dumper.c (pdump_load_finish):
8098         * dumper.c (pdump_file_unmap):
8099         * dumper.c (pdump_file_get):
8100         * dumper.c (pdump_resource_free):
8101         * dumper.c (pdump_resource_get):
8102         * dumper.c (pdump_file_free):
8103         * dumper.c (pdump_file_try):
8104         * dumper.c (pdump_load):
8105         Remove fixed size limits on staticpro(), staticpro_nodump(),
8106         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8107         Remove custom code for dumping lrecord_implementations_table - use
8108         dumpopaque instead.
8109         Remove (most of the) custom code for dumping staticpros - dump it
8110         like any other dynarr.
8111
8112         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8113         * dumper.c: Moved functions from alloc.c.
8114         * alloc.c (dumpstruct): Moved to dumper.c.
8115         * alloc.c (dumpopaque): Likewise.
8116         * alloc.c (pdump_wire): Likewise.
8117         * alloc.c (pdump_wire_list): Likewise.
8118
8119         * lisp.h (Dynarr_sizeof): New.
8120         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8121         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8122         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8123
8124         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8125         * lisp.h (dumpopaque): ditto.
8126         * lisp.h (pdump_wire): ditto.
8127         * lisp.h (pdump_wire_list): ditto.
8128
8129 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8130
8131         * make-src-depend (PrintPatternDeps):
8132         Use `sort' to make output independent of perl version.
8133
8134 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8135
8136         Port to Netbsd 1.5.
8137         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8138         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8139
8140 2001-01-03  Didier Verna  <didier@xemacs.org>
8141
8142         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8143         that `focus_frame' is alive before thinking of calling
8144         `redisplay_redraw_cursor' on it.
8145
8146 2001-01-08  Martin Buchholz <martin@xemacs.org>
8147
8148         * XEmacs 21.2.40 is released.
8149
8150 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8151
8152         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8153
8154 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8155
8156         * alloc.c (dbg_valmask): Make const.
8157         * alloc.c (dbg_typemask): Make const.
8158         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8159         * alloc.c (dbg_valbits): Make const.
8160         * alloc.c (dbg_gctypebits): Make const.
8161
8162 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8163
8164         * redisplay-x.c (x_bevel_area):
8165         redisplay.h (struct rune):
8166         Typo fixes in comments.
8167
8168 2001-01-05  Andy Piper  <andy@xemacs.org>
8169
8170         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8171         adjustment.
8172
8173         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8174
8175 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8176
8177         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8178
8179         * mule-ccl.c (stack_idx_of_map_multiple):
8180         Non const global data must not be initialized!
8181         Found by MIYASHITA Hisashi.
8182
8183 2001-01-02  Andy Piper  <andy@xemacs.org>
8184
8185         * frame.c (change_frame_size): make sure frame size is always
8186         marked as changed.
8187
8188         * glyphs.c (image_instance_layout): minor code reuse.
8189
8190         * window.c (Fcurrent_window_configuration): revert previous
8191         change.
8192
8193 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8194
8195         * glyphs.h:
8196         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8197
8198 2000-12-31  Andy Piper  <andy@xemacs.org>
8199
8200         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8201         when widget gets unmapped.
8202
8203         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8204         function. Make sure widgets losing focus don't just drop it.
8205         (handle_focus_event_1): record the widget with focus.
8206
8207 2000-12-31  Andy Piper  <andy@xemacs.org>
8208
8209         * window.c (allocate_window): use
8210         make_image_instance_cache_hash_table.
8211         (make_dummy_parent): ditto.
8212         (Fset_window_configuration): ditto.
8213
8214         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8215
8216         * glyphs.c (process_image_string_instantiator): use
8217         INSTANTIATOR_TYPE.
8218         (get_image_instantiator_governing_domain): ditto.
8219         (normalize_image_instantiator): ditto.
8220         (instantiate_image_instantiator): ditto.
8221         (make_image_instance_1): ditto.
8222         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8223         (instantiator_eq_equal): new function for use with instance hash
8224         tables.
8225         (instantiator_eq_hash): ditto.
8226         (make_image_instance_cache_hash_table): create a suitable hash
8227         table for storing image instances.
8228
8229         * elhash.h (hash_table_weakness): new internal weakness type
8230         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8231         declare new functions.
8232
8233         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8234         another weakness type for glyphs.
8235         (make_standard_lisp_hash_table): new function split out from
8236         make_general_lisp_hash_table.
8237         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8238         (hash_table_instantiate): ditto.
8239         (Fmake_hash_table): ditto.
8240
8241 2000-12-31  Martin Buchholz <martin@xemacs.org>
8242
8243         * XEmacs 21.2.39 is released.
8244
8245 2000-12-29  Andy Piper  <andy@xemacs.org>
8246
8247         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8248
8249         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8250         the frame has changed so that we pick up geometry changes such as
8251         menubar visibility.
8252
8253 2000-12-28  Andy Piper  <andy@xemacs.org>
8254
8255         * lastfile.c (my_ebss): make a char array so we can pad the
8256         bss. Fixes cygwin unexec.
8257
8258         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8259
8260 2000-12-26  Andy Piper  <andy@xemacs.org>
8261
8262         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8263         comments and try and be more precise about a non-/SIGIO world.
8264         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8265         SIGIO.
8266
8267         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8268         we don't normalize to zero width or height.
8269
8270 2000-12-24  Andy Piper  <andy@xemacs.org>
8271
8272         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8273
8274 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8275
8276         * s/sco5.h: SCO 5 has pty support.
8277
8278 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8279
8280         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8281         input-method-xlib.c contains whole contents of input-method-xfs.c,
8282         so we can use input-method-xlib.c's code for USE_XFONTSET
8283         using #ifdefs.
8284         * input-method-xfs.c: removed.
8285
8286 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8287
8288         * file-coding.h (enum coding_category_type): reorder enumerators to
8289         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8290         (now one greater than largest real coding_category_type enumerator).
8291         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8292         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8293         Fcoding_category_list, Fset_coding_priority_list,
8294         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8295         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8296
8297 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8298
8299         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8300         * redisplay-output.c (redisplay_output_window): Clear top of window
8301         when face is changed.
8302         * redisplay-x.c (x_redraw_exposed_window): Call
8303         redisplay_clear_top_of_window.
8304         * redisplay.h: Publish redisplay_clear_top_of_window.
8305
8306 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8307
8308         * buffer.c (Fkill_buffer): Map over all devices.
8309         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8310         (list_windows): New function.
8311         (list_all_windows): Ditto.
8312         (Freplace_buffer_in_windows): Use them.
8313
8314 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8315
8316         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8317         (Fopen_database): Use `db_create' instead of `db_open'.
8318         (syms_of_database): Initialize Qqueue.
8319
8320 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8321
8322         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8323         buffer_local_face_property.
8324         * buffer.h (struct buffer): New member buffer_local_face_property.
8325         * window.c (Fset_window_buffer):  Mark window's face as changed
8326         when buffer has buffer local face.
8327         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8328         * objects.c (color_after_change): Set buffer_local_face_property
8329         when locale of face specifier is buffer.
8330         * objects.c (font_after_change): Ditto.
8331         * objects.c (face_boolean_after_change): Ditto.
8332         * glyphs.c (image_after_change): Ditto.
8333
8334 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8335
8336         * nt.c (mswindows_fstat): Report file permissions, volume serial
8337         number, etc. Code adapted from FSF Emacs 20.7.
8338
8339 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8340
8341         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8342         of stat when we don't have symbolic links, to make sure
8343         mswindows_stat is called on mswindows.
8344
8345 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8346
8347         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8348
8349 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8350
8351         * doprnt.c (emacs_doprnt_1): More printing fixes.
8352         Make printing of numbers compatible with libc and FSF Emacs.
8353         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8354         Use the system printf to do most of the hard work of formatting,
8355         instead of doprnt_1().
8356         Calculate memory to allocate for format string.
8357         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8358         (doprnt_1): Cleaner code and documentation.
8359
8360 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8361
8362         * Makefile.in.in: Use the loop variable to install headers.
8363
8364 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8365
8366         * window.c (Fsplit_window): Don't invalidate face cache.
8367
8368 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8369
8370         * minibuf.c (Fall_completions): Undo the previous change
8371         which removed checking elements start with space.
8372
8373 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8374
8375         * mule-canna.c: Didier suppression.
8376
8377 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8378
8379         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8380         (warning suppression).  Add English comment translations.
8381
8382 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8383
8384         * unexelfsgi.c (unexec): Better test for mmap failure.
8385
8386 2000-12-05  Martin Buchholz <martin@xemacs.org>
8387
8388         * XEmacs 21.2.38 is released.
8389
8390 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8391
8392         * redisplay.c (bar-cursor): Make a user variable.
8393
8394         * symsinit.h: Add init_postgresql_from_environment.
8395
8396 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8397
8398         * regex.c: Convert to clean C.
8399
8400 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8401
8402         * realpath.c:
8403         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8404         initialization.
8405         (sys_readlink): renamed to system_readlink to avoid conflict with
8406         the other sys_readlink.
8407
8408 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8409
8410         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8411
8412 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8413
8414         * postgresql.c (init_postgresql_from_environment): new function.
8415         (vars_of_postgresql): Move code initializing Lisp variables out and
8416         into init_postgresql_from_environment.
8417         emacs.c (main_1): Call init_postgresql_from_environment if and only
8418         if running a dumped XEmacs.
8419
8420 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8421
8422         * buffer.c: Make find-file-compare-truenames default to true on
8423         windows.
8424
8425         * realpath.c (win32_abs_start):
8426         (cygwin_readlink):
8427         (win32_readlink): New functions.
8428         (xrealpath): Return really real filenames on windows.
8429
8430         * fileio.c (Ffile_truename): Make file-truename work on windows.
8431
8432 2000-11-29  Didier Verna  <didier@xemacs.org>
8433
8434         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8435         * faces.c (update_face_cachel_data): use it.
8436         * faces.c (add_face_cachel): use it. Complete background pixmap
8437         frobbing in face cache if `update_face_cachel_data' has not done so.
8438
8439 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8440
8441         * search.c (string_match_1): Don't set last_thing_searched
8442         when search failed.
8443
8444 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8445
8446         * buffer.c: Include casetab.h
8447         (common_init_complex_vars_of_buffer): Use new case-table object.
8448         * buffer.h: Include casetab.h
8449         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8450         (DOWNCASE_TABLE_OF): Ditto.
8451         * bufslots.h: Remove char-tables and add case-table.
8452         * casetab.c: Include casetab.h
8453         (CASE_TABLE_P): Removed.
8454         (mark_case_table): New function.
8455         (allocate_case_table): New function.
8456         (Fcase_table_p): Use new case-table.
8457         (case_table_char): New function.
8458         (Fget_case_table): Ditto.
8459         (Fput_case_table): Ditto.
8460         (Fput_case_table_pair): Ditto.
8461         (Fcopy_case_table): Ditto.
8462         (Fcurrent_case_table): Return case-table.
8463         (Fstandard_case_table): Return case-table.
8464         (Fset_case_table): Fix doc-string.
8465         (set_case_table): Use case-table
8466         (syms_of_casetab): DEFSUBR new functions.
8467         (complex_vars_of_casetab): Set up standard case-table.
8468         * casetab.h: New file.
8469         * editfns.c: Include casetab.h
8470         (Fcompare_buffer_substrings): Use case-table.
8471         * inline.c: Include casetab.h
8472         * lisp.h: Remove bogus extern.
8473         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8474         * search.c: Include casetab.h
8475         (TRANSLATE_ASCII): Removed.
8476         (TRANSLATE): Unconditionally translate character.
8477         (looking_at_1): Use case-table.
8478         (string_match_1): Ditto.
8479         (fast_string_match): Ditto.
8480         (search_command): Ditto.
8481         (search_buffer): Separate boyer_moore.  Check whether
8482         boyer_moore is possible.
8483         (simple_search): New function.
8484         (boyer_moore): Separated from search_buffer. Translate char.
8485
8486 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8487
8488         * regex.c (RE_TR_ASCII): Removed.
8489         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8490         (PATFETCH): Call PATFETCH_RAW.
8491         (PATFETCH_RAW): Fetch Emchar.
8492         (PATUNFETCH): Decrement charptr.
8493         (GET_BUFFER_SPACE): Rename b to buf_end.
8494         (BUF_PUSH): Ditto.
8495         (BUF_PUSH_2): Ditto.
8496         (BUF_PUSH_3): Ditto.
8497         (EXTEND_BUFFER): Ditto.
8498         (SET_LIST_BIT): Ditto.
8499         (regex_compile): Ditto.  Translate non ASCII char.
8500         (compile_range): Ditto.
8501         (re_search_2): Ditto.
8502         (re_match_2_internal): Compare Emchar.
8503         (bcmp_translate): Ditto.
8504
8505 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8506
8507         * lisp.h (basic char/int typedefs):  comment improvement.
8508
8509 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8510
8511         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8512         unstomp inhibit_site_lisp.  Improve comments.
8513
8514 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8515
8516         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8517
8518 2000-11-28  Andy Piper  <andy@xemacs.org>
8519
8520         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8521         clipped display for windows in the gutter also.
8522         (redisplay_display_boxes_in_window_p): change semantics of return
8523         codes to be more intuitive.
8524
8525         * gutter.h: declare display_boxes_in_gutter_p.
8526
8527         * gutter.c (display_boxes_in_gutter_p): new function for
8528         redisplay.
8529
8530 2000-11-22  Andy Piper  <andy@xemacs.org>
8531
8532         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8533         autodetect domain.
8534
8535 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8536
8537         * callproc.c (Fold_call_process_internal):
8538         * gpm.c (Freceive_gpm_event):
8539         (tty_get_foreign_selection): Might be just warning supression.
8540         * fileio.c (Fwrite_region_internal):
8541         (Fset_visited_file_modtime):
8542         * keymap.c (event_matches_key_specifier_p):
8543         Initialize GCPROed variable.
8544
8545         * menubar-x.c (command_builder_find_menu_accelerator):
8546         Initialize before use.
8547
8548 2000-11-23  Andy Piper  <andy@xemacs.org>
8549
8550         * unexcw.c (unexec): make the resulting executable executable.
8551
8552 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8553
8554         * doc.c (get_doc_string):
8555         Use size_t, not int, for result of XSTRING_LENGTH.
8556
8557         * cmds.c (Fdelete_char):
8558         * cmds.c (Fpoint_at_eol):
8559         * cmds.c (Fself_insert_command):
8560         Use EMACS_INT, not int, for result of XINT.
8561         Someday, someone will want to insert more than 2**31 identical characters.
8562
8563         * cmds.c (Fdelete_char):
8564         * cmds.c (Fdelete_backward_char):
8565         * syntax.c (Fforward_word):
8566         * syntax.c (Fforward_comment):
8567         Make COUNT argument optional, for consistency with forward-char et al.
8568
8569 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8570
8571         * lisp.h:
8572         * print.c (long_to_string):
8573         Return a useful value: the pointer at end of data written.
8574
8575         * doprnt.c:
8576         Use `static const char * const' for constant strings.
8577         (union printf_arg): Delete `i', `ui' members.
8578         (get_doprnt_args):
8579         (emacs_doprnt_1):
8580         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8581         Do all printf-ing via the `l' specifier.
8582         Use EMACS_INT instead of int.
8583         Optimize.
8584
8585 2000-11-20  Didier Verna  <didier@xemacs.org>
8586
8587         * faces.c (update_face_cachel_data): don't frob the background
8588         pixmap when the window is being created. The face is needed but
8589         does not exist yet.
8590
8591 2000-11-20  Andy Piper  <andy@xemacs.org>
8592
8593         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8594         messing with a debug environment.
8595
8596 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8597
8598         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8599
8600 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8601
8602         * casetab.c (Fcase_table_p): Fix compile error and crash.
8603
8604 2000-11-18  Philip Aston  <philipa@mail.com>
8605
8606         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8607
8608 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8609
8610         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8611         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8612
8613 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8614
8615         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8616         * unexelf.c: Use HAVE_ELF_H.
8617         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8618         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8619         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8620         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8621         for testing.
8622         So this is an unexelfsgi.c from a different line of development.
8623
8624 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8625
8626         * regex.c (RE_TR_ASCII): New function.
8627         (RE_TRANSLATE): Call it.
8628
8629 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8630
8631         * buffer.h (TRT_TABLE_OF): Remove assert.
8632         (IN_TRT_TABLE_DOMAIN): Removed.
8633
8634 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8635
8636         * free-hook.c (log_gcpro):
8637         (show_gcprohist): Add support for GCPRO5.
8638
8639 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8640
8641         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8642
8643 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8644
8645         * symeval.h: Declare flush_all_buffer_local_cache.
8646
8647         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8648         (flush_buffer_local_cache): Added.
8649         (flush_all_buffer_local_cache): Added.
8650
8651         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8652
8653         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8654         (pdump_dump_data): Ditto.
8655         (pdump_reloc_one): Ditto.
8656         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8657         before dumping.
8658
8659
8660 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8661
8662         * buffer.c: Remove if 0'ed entry.
8663         * buffer.h: Rewrite TRT to use char-table.
8664         * bufslots.h: Remove mirror tables.
8665         * casetab.c: Remove mirror tables.
8666         (CASE_TABLE_P): New macro.
8667         (Fcase_table_p): Element of a case table is string or char-table.
8668         (make_mirror_trt_table): Removed.
8669         (set_case_table): Setup char-table from strings for backward
8670         compatibility.
8671         * dired.c (Fdirectory_files):
8672         * dired-msw.c: (mswindows_get_files):
8673         * lisp.h: Change prototype of re_pattern_buffer.
8674         * regex.c: (RE_TRANSLATE): New macro.
8675         (TRANSLATE_P): Ditto.
8676         Change translate to type RE_TRANSLATE_TYPE.
8677         * regex.h: Define RE_TRANSLATE_TYPE
8678         * search.c (TRANSLATE): New macro.
8679         (TRANSLATE_ASCII): New macro.
8680         Translate table is changed to Lisp_Object.
8681         (signal_failure): Inhibit return.
8682
8683 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8684
8685         * device-msw.c:
8686         * eldap.c:
8687         * event-Xt.c:
8688         * event-stream.c:
8689         * print.c:
8690         Do UNGCPRO before return.
8691
8692 2000-11-14  Martin Buchholz <martin@xemacs.org>
8693
8694         * XEmacs 21.2.37 is released.
8695
8696 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8697
8698         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8699         Add comments about discarded return value.
8700
8701 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8702
8703         * callint.c:
8704         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8705
8706 2000-10-27  Andy Piper  <andy@xemacs.org>
8707
8708         * gutter.c (Fset_default_gutter_position): default left and right
8709         gutters to visible.
8710         (calculate_gutter_size): calculate resonable heuristic for left
8711         and right gutter sizes.
8712         (specifier_vars_of_gutter): change left and right gutter sizes to
8713         autodetect.
8714         (calculate_gutter_size_from_display_lines): new function.
8715         (output_gutter): check for resizing on left and right gutters.
8716         (clear_gutter): don't special case top and left gutters.
8717         (specifier_vars_of_gutter): use new signature for
8718         set_specifier_caching.
8719
8720         * glyphs-x.c (x_redisplay_widget): spelling fix.
8721         * glyphs.c (specifier_vars_of_glyphs):
8722         * menubar.c (specifier_vars_of_menubar):
8723         * redisplay.c (specifier_vars_of_redisplay):
8724         * toolbar.c (specifier_vars_of_toolbar):
8725         * window.c (specifier_vars_of_window):
8726         * scrollbar.c (specifier_vars_of_scrollbar):
8727         (complex_vars_of_scrollbar): use new signature for
8728         set_specifier_caching.
8729
8730         * specifier.c (set_specifier_caching): include recompute flag.
8731         (recompute_one_cached_specifier_in_window): always recompute if
8732         flag set.
8733         (recompute_one_cached_specifier_in_frame): ditto.
8734
8735         * specifier.h (struct specifier_caching): add recompute flag.
8736
8737 2000-10-24  Andy Piper  <andy@xemacs.org>
8738
8739         * unexcw.c (copy_executable_and_dump_data_section): add new
8740         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8741         5.0 happy.
8742
8743 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8744
8745         * console-x.h (x_device): New member modifier_release_time.
8746         * event-Xt.c (x_handle_sticky_modifiers):
8747         Bound interval modifier keys are sticky.
8748         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8749         * events.h: extern it.
8750
8751 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8752
8753         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8754
8755 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8756
8757         * event-stream.c (execute_command_event): Preserve current_events
8758         and the like when event is misc-user-event.
8759         Inhibit quit during the call to maybe_echo_keys.
8760
8761 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8762
8763         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8764         symlink when buffer is killed.
8765         (inhibit_clash_detection): New variable.
8766
8767 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8768
8769         * console.c (Fset_input_method): Trigger redisplay on tty.
8770
8771 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8772
8773         * process.c (Fprocess_status): Revert to previous behavior:
8774         (process-status "nosuchprocess") ==> nil
8775
8776 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8777
8778         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8779         Work around another GCC 2.95.2 optimizer bug.
8780
8781 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8782
8783         * process.c (Fget_process): Use LIST_LOOP_2.
8784         (kill_buffer_processes): Use LIST_LOOP_2.
8785
8786         * minibuf.c (Fall_completions):
8787         Delete old non-functional code for FSF fourth argument.
8788
8789         * frame.c (frame_matches_frame_spec):
8790         Renamed from `frame_matches_frametype'.  Update all callers.
8791         (device_matches_device_spec):
8792         Renamed from 'device_matches_console_spec'.  Update all callers.
8793
8794         * doc.c (Fsubstitute_command_keys):
8795         Remove buffer overflow crash.  Small code cleanups.
8796
8797         * casetab.c (check_case_table): Simpler code.
8798
8799         * window.c (Freplace_buffer_in_windows):
8800         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8801         (and similar implementation) as Fdelete_windows_on.
8802         Update all callers.
8803
8804         * alloc.c (Fmake_list):
8805         * alloc.c (make_vector):
8806         * alloc.c (Fmake_vector):
8807         * alloc.c (make_bit_vector):
8808         * alloc.c (Fmake_bit_vector):
8809         * alloc.c (Fbit_vector):
8810         * alloc.c (Fmake_string):
8811         * alloc.c (Fpurecopy):
8812         * alloc.c (Fmemory_limit):
8813         * buffer.c:
8814         * buffer.c (Fget_buffer):
8815         * buffer.c (Fkill_buffer):
8816         * buffer.c (complex_vars_of_buffer):
8817         * bytecode.c (Fcompiled_function_stack_depth):
8818         * callint.c (Fprefix_numeric_value):
8819         * event-stream.c:
8820         * event-stream.c (Fread_key_sequence):
8821         * casetab.c:
8822         * casetab.c (Fcase_table_p):
8823         * casetab.c (check_case_table):
8824         * casetab.c (Fset_case_table):
8825         * casetab.c (Fset_standard_case_table):
8826         * chartab.c:
8827         * chartab.c (Fchar_table_type):
8828         * chartab.c (Freset_char_table):
8829         * chartab.c (Fget_char_table):
8830         * chartab.c (Fget_range_char_table):
8831         * chartab.c (Fput_char_table):
8832         * chartab.c (Fmap_char_table):
8833         * chartab.c (Fcategory_table_p):
8834         * chartab.c (Fcheck_category_at):
8835         * chartab.c (Fchar_in_category_p):
8836         * chartab.c (Fcategory_table):
8837         * chartab.c (Fcopy_category_table):
8838         * chartab.c (Fset_category_table):
8839         * chartab.c (Fcategory_designator_p):
8840         * chartab.c (Fcategory_table_value_p):
8841         * cmds.c (Fdelete_char):
8842         * cmds.c (Fdelete_backward_char):
8843         * cmds.c (Fself_insert_command):
8844         * cmds.c (Fself_insert_internal):
8845         * console.c (Fvalid_console_type_p):
8846         * console.c (Fcdfw_console):
8847         * console.c (Fconsole_type):
8848         * console.c (Fconsole_name):
8849         * console.c (Fconsole_device_list):
8850         * console.c (Fconsole_on_window_system_p):
8851         * data.c:
8852         * data.c (Feq):
8853         * data.c (Fold_eq):
8854         * data.c (Fsubr_interactive):
8855         * data.c (Fchar_to_int):
8856         * data.c (Fint_to_char):
8857         * data.c (Fsetcar):
8858         * data.c (Fsetcdr):
8859         * data.c (Fnumber_to_string):
8860         * data.c (Fstring_to_number):
8861         * data.c (Frem):
8862         * database.c (mark_database):
8863         * database.c (finalize_database):
8864         * database.c (Fdatabase_live_p):
8865         * database.c (Fdatabasep):
8866         * device-x.c (Fx_get_resource):
8867         * device.c (Fdfw_device):
8868         * dired.c:
8869         * dired.c (Ffile_name_completion):
8870         * dired.c (Ffile_name_all_completions):
8871         * dired.c (Fuser_name_completion):
8872         * dired.c (Fuser_name_completion_1):
8873         * dired.c (Fuser_name_all_completions):
8874         * doc.c (Fdocumentation):
8875         * doc.c (Fdocumentation_property):
8876         * doc.c (Fsubstitute_command_keys):
8877         * editfns.c:
8878         * editfns.c (Fchar_to_string):
8879         * editfns.c (Fstring_to_char):
8880         * editfns.c (Ftemp_directory):
8881         * editfns.c (Finsert_char):
8882         * editfns.c (Fbuffer_substring_no_properties):
8883         * editfns.c (Fnarrow_to_region):
8884         * editfns.c (Fchar_equal):
8885         * editfns.c (Fchar_Equal):
8886         * editfns.c (Ftranspose_regions):
8887         * emacs.c (Fdump_emacs):
8888         * eval.c (Fthrow):
8889         * eval.c (Fcommand_execute):
8890         * eval.c (Fautoload):
8891         * eval.c (Fbacktrace):
8892         * eval.c (Fbacktrace_frame):
8893         * events.c:
8894         * events.c (Fcopy_event):
8895         * events.c (Fcharacter_to_event):
8896         * events.c (Fevent_button):
8897         * events.c (Fevent_process):
8898         * extents.c:
8899         * extents.c (Fnext_extent_change):
8900         * extents.c (Fextent_property):
8901         * faces.c (Ffacep):
8902         * faces.c (Fmake_face):
8903         * file-coding.c:
8904         * file-coding.c (Fencode_shift_jis_char):
8905         * file-coding.c (Fencode_big5_char):
8906         * fileio.c (Ffile_name_directory):
8907         * fileio.c (Ffile_name_nondirectory):
8908         * fileio.c (Ffile_name_as_directory):
8909         * fileio.c (Fdirectory_file_name):
8910         * fileio.c (Ffile_truename):
8911         * fileio.c (Fsubstitute_in_file_name):
8912         * fileio.c (Ffile_modes):
8913         * fileio.c (Fset_file_modes):
8914         * fileio.c (Fset_default_file_modes):
8915         * fileio.c (Fverify_visited_file_modtime):
8916         * floatfns.c (Facos):
8917         * floatfns.c (Fasin):
8918         * floatfns.c (Fatan):
8919         * floatfns.c (Fcos):
8920         * floatfns.c (Fsin):
8921         * floatfns.c (Ftan):
8922         * floatfns.c (Fbessel_j0):
8923         * floatfns.c (Fbessel_j1):
8924         * floatfns.c (Fbessel_jn):
8925         * floatfns.c (Fbessel_y0):
8926         * floatfns.c (Fbessel_y1):
8927         * floatfns.c (Fbessel_yn):
8928         * floatfns.c (Ferf):
8929         * floatfns.c (Ferfc):
8930         * floatfns.c (Flog_gamma):
8931         * floatfns.c (Fexp):
8932         * floatfns.c (Fexpt):
8933         * floatfns.c (Flog):
8934         * floatfns.c (Flog10):
8935         * floatfns.c (Fsqrt):
8936         * floatfns.c (Fcube_root):
8937         * floatfns.c (Facosh):
8938         * floatfns.c (Fasinh):
8939         * floatfns.c (Fatanh):
8940         * floatfns.c (Fcosh):
8941         * floatfns.c (Fsinh):
8942         * floatfns.c (Ftanh):
8943         * floatfns.c (Fabs):
8944         * floatfns.c (Ffloat):
8945         * floatfns.c (Flogb):
8946         * floatfns.c (Fceiling):
8947         * floatfns.c (Ffloor):
8948         * floatfns.c (Fround):
8949         * floatfns.c (Ftruncate):
8950         * floatfns.c (Ffceiling):
8951         * floatfns.c (Fffloor):
8952         * floatfns.c (Ffround):
8953         * floatfns.c (Fftruncate):
8954         * fns.c (Fstring_equal):
8955         * fns.c (Fstring_lessp):
8956         * fns.c (concat2):
8957         * fns.c (concat3):
8958         * fns.c (vconcat2):
8959         * fns.c (vconcat3):
8960         * fns.c (Fsubstring):
8961         * fns.c (Fassoc):
8962         * fns.c (Fold_assoc):
8963         * fns.c (assoc_no_quit):
8964         * fns.c (Fassq):
8965         * fns.c (Fold_assq):
8966         * fns.c (assq_no_quit):
8967         * fns.c (Frassoc):
8968         * fns.c (Fold_rassoc):
8969         * fns.c (Frassq):
8970         * fns.c (Fold_rassq):
8971         * fns.c (rassq_no_quit):
8972         * fns.c (Fremassoc):
8973         * fns.c (remassoc_no_quit):
8974         * fns.c (Fremassq):
8975         * fns.c (remassq_no_quit):
8976         * fns.c (Fremrassoc):
8977         * fns.c (Fremrassq):
8978         * fns.c (remrassq_no_quit):
8979         * fns.c (Fsort):
8980         * fns.c (Fplist_get):
8981         * fns.c (Fplist_put):
8982         * fns.c (Fplist_remprop):
8983         * fns.c (Fplist_member):
8984         * fns.c (Flax_plist_get):
8985         * fns.c (Flax_plist_put):
8986         * fns.c (Flax_plist_remprop):
8987         * fns.c (Flax_plist_member):
8988         * fns.c (Fequal):
8989         * fns.c (Fold_equal):
8990         * fns.c (Frequire):
8991         * fns.c (Fbase64_encode_region):
8992         * fns.c (Fbase64_encode_string):
8993         * fns.c (Fbase64_decode_region):
8994         * frame.c:
8995         * frame.c (frame_matches_frame_spec):
8996         * frame.c (device_matches_device_spec):
8997         * frame.c (next_frame):
8998         * frame.c (previous_frame):
8999         * frame.c (Fnext_frame):
9000         * frame.c (Fprevious_frame):
9001         * frame.c (Fframe_property):
9002         * frame.c (Fset_frame_height):
9003         * frame.c (Fset_frame_size):
9004         * frame.h:
9005         * glyphs.c:
9006         * glyphs.c (if):
9007         * glyphs.c (decode_error_behavior_flag):
9008         * glyphs.c (Fmake_image_instance):
9009         * indent.c (Findent_to):
9010         * intl.c (Fignore_defer_gettext):
9011         * keymap.c (Fkeymapp):
9012         * keymap.c (Flookup_key):
9013         * lread.c:
9014         * lread.c (Fload_internal):
9015         * lread.c (Feval_buffer):
9016         * lread.c (Feval_region):
9017         * macros.c (Fexecute_kbd_macro):
9018         * marker.c (set_marker_internal):
9019         * marker.c (Fset_marker):
9020         * marker.c (set_marker_restricted):
9021         * marker.c (Fcopy_marker):
9022         * marker.c (noseeum_copy_marker):
9023         * menubar.c:
9024         * menubar.c (Fpopup_menu):
9025         * minibuf.c:
9026         * mule-charset.c (Fcharset_name):
9027         * mule-charset.c (Fchar_charset):
9028         * mule-charset.c (Fchar_octet):
9029         * mule-charset.c (Fsplit_char):
9030         * mule-wnnfns.c (Fwnn_open):
9031         * mule-wnnfns.c (Fwnn_dict_comment):
9032         * mule-wnnfns.c (Fwnn_quit_henkan):
9033         * mule-wnnfns.c (Fwnn_word_toroku):
9034         * mule-wnnfns.c (Fwnn_word_sakujo):
9035         * mule-wnnfns.c (Fwnn_word_use):
9036         * mule-wnnfns.c (Fwnn_hindo_set):
9037         * objects.c:
9038         * objects.c (Fmake_color_instance):
9039         * objects.c (Fmake_font_instance):
9040         * print.c (Fwrite_char):
9041         * process.c:
9042         * process.c (mark_process):
9043         * process.c (print_process):
9044         * process.c (get_process_from_usid):
9045         * process.c (Fprocessp):
9046         * process.c (Fprocess_live_p):
9047         * process.c (Fget_process):
9048         * process.c (Fget_buffer_process):
9049         * process.c (get_process):
9050         * process.c (Fprocess_id):
9051         * process.c (Fprocess_name):
9052         * process.c (Fprocess_command):
9053         * process.c (init_process_io_handles):
9054         * process.c (start_process_unwind):
9055         * process.c (Fstart_process_internal):
9056         * process.c (Fopen_multicast_group_internal):
9057         * process.c (Fset_process_window_size):
9058         * process.c (read_process_output):
9059         * process.c (send_process):
9060         * process.c (Fprocess_tty_name):
9061         * process.c (Fset_process_buffer):
9062         * process.c (Fprocess_buffer):
9063         * process.c (Fprocess_mark):
9064         * process.c (set_process_filter):
9065         * process.c (Fset_process_filter):
9066         * process.c (Fprocess_filter):
9067         * process.c (Fprocess_send_region):
9068         * process.c (Fprocess_send_string):
9069         * process.c (exec_sentinel):
9070         * process.c (Fset_process_sentinel):
9071         * process.c (Fprocess_sentinel):
9072         * process.c (status_notify):
9073         * process.c (Fprocess_status):
9074         * process.c (Fprocess_exit_status):
9075         * process.c (process_send_signal):
9076         * process.c (Fprocess_send_eof):
9077         * process.c (deactivate_process):
9078         * process.c (remove_process):
9079         * process.c (Fdelete_process):
9080         * process.c (kill_buffer_processes):
9081         * process.c (Fprocess_kill_without_query):
9082         * process.c (Fprocess_kill_without_query_p):
9083         * rangetab.c:
9084         * rangetab.c (Fget_range_table):
9085         * rangetab.c (Fput_range_table):
9086         * rangetab.c (Fremove_range_table):
9087         * rangetab.c (Fclear_range_table):
9088         * search.c:
9089         * search.c (Fskip_chars_forward):
9090         * search.c (Fskip_chars_backward):
9091         * search.c (Fskip_syntax_forward):
9092         * search.c (Fskip_syntax_backward):
9093         * search.c (search_command):
9094         * search.c (Freplace_match):
9095         * search.c (Fregexp_quote):
9096         * select.c (Fown_selection_internal):
9097         * select.c (Fselection_owner_p):
9098         * select.c (Fselection_exists_p):
9099         * select.c (Fget_selection_internal):
9100         * specifier.c:
9101         * symbols.c:
9102         * symbols.c (Fintern):
9103         * symbols.c (Fintern_soft):
9104         * symbols.c (Funintern):
9105         * symbols.c (Fapropos_internal):
9106         * symbols.c (Fset_default):
9107         * syntax.c:
9108         * syntax.c (Fsyntax_table_p):
9109         * syntax.c (Fcopy_syntax_table):
9110         * syntax.c (Fset_syntax_table):
9111         * syntax.c (Fchar_syntax):
9112         * syntax.c (syntax_match):
9113         * syntax.c (Fmatching_paren):
9114         * syntax.c (Fforward_word):
9115         * syntax.c (scan_lists):
9116         * syntax.c (Fscan_lists):
9117         * syntax.c (Fscan_sexps):
9118         * syntax.c (Fparse_partial_sexp):
9119         * toolbar.c (Fcheck_toolbar_button_syntax):
9120         * tooltalk.doc:
9121         * window.c:
9122         * window.c (Fwindowp):
9123         * window.c (Fwindow_live_p):
9124         * window.c (Fwindow_point):
9125         * window.c (Fdelete_window):
9126         * window.c (Fnext_window):
9127         * window.c (Fprevious_window):
9128         * window.c (Fother_window):
9129         * window.c (window_loop):
9130         * window.c (Fget_lru_window):
9131         * window.c (Fsplit_window):
9132         * window.c (Fenlarge_window):
9133         * window.c (Fenlarge_window_pixels):
9134         * window.c (Fshrink_window):
9135         * window.c (Fshrink_window_pixels):
9136         * window.c (change_window_height):
9137         * window.c (Fwindow_configuration_p):
9138         * window.c (Fcurrent_window_configuration):
9139         * window.h:
9140         * casefiddle.c (casify_object):
9141         * casefiddle.c (Fupcase):
9142         * casefiddle.c (Fdowncase):
9143         * casefiddle.c (Fcapitalize):
9144         * casefiddle.c (Fupcase_initials):
9145         * casefiddle.c (casify_region_internal):
9146         * casefiddle.c (casify_region):
9147         * casefiddle.c (Fupcase_region):
9148         * casefiddle.c (Fdowncase_region):
9149         * casefiddle.c (Fcapitalize_region):
9150         * casefiddle.c (Fupcase_initials_region):
9151         * casefiddle.c (Fupcase_word):
9152         * casefiddle.c (Fdowncase_word):
9153         * casefiddle.c (Fcapitalize_word):
9154         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9155         Replace 0 with '\0' when working with bytes.
9156         Replace initial "(" with "\(" in docstrings.
9157
9158 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9159
9160         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9161
9162         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9163
9164 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9165
9166         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9167
9168 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9169
9170         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9171         correctly.
9172
9173 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9174
9175         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9176         (inhibit_auto_save_session): New variable.
9177         (vars_of_fileio): Declare and initialize them.
9178         * fileio.c (Fdo_auto_save): Don't create session file if
9179         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9180
9181 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9182
9183         * sgiplay.c (play_internal): C++ compilability.
9184         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9185         * callproc.c (Fold_call_process_internal):
9186         Remove unused vars `env', `first'.
9187         * scrollbar.c (update_scrollbar_instance):
9188         #### unused var `current_window'.
9189         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9190         etc. within #ifdef NOT_YET.
9191         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9192         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9193         * specifier.c (specifier_instance):
9194         #### unused var `tag'.
9195         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9196
9197 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9198
9199         * fns.c (Fbutlast):
9200         * fns.c (list_sort):
9201         * fns.c (Ffillarray):
9202         * fns.c (bytecode_nconc2):
9203         * fns.c (Fnconc):
9204         * fns.c (mapcar1):
9205         * fns.c (Fmapconcat):
9206         Be pedantically 64-bit correct.  For the time when someone will
9207         want to have a list with length > 2**32.
9208
9209         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9210         Work around MIPSpro compiler bug.
9211
9212         * process-unix.c (unix_kill_child_process): Add snarky comment.
9213         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9214
9215         * config.h.in: Oops, _getpt ==> _getpty
9216
9217 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9218
9219         * config.h.in:
9220         * regex.c:
9221         Use void*, not char*, as return type of alloca().
9222
9223         * alloc.c (free_marker): Side effect inside assert expression!
9224
9225 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9226
9227         * mule-charset.c (Fset_charset_ccl_program): To check
9228         if the given ccl program is valid, use setup_ccl_program()
9229         instead of CHECK_VECTOR().
9230         (Fmake_charset): Likewise.
9231
9232 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9233
9234         * faces.c (get_extent_fragment_face_cache_index):
9235         Fix cachel.merged_faces memory leak.
9236
9237 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9238
9239         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9240         Reset MSB of octets obtained by DECODE_SJIS
9241         because of the incompatibility with Emacs.
9242         (ccl_driver)<CCL_ENCODE_SJIS>:
9243         Set MSB of octets before passing them to
9244         ENCODE_SJIS because of the incompatibility
9245         with Emacs.
9246
9247 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9248
9249         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9250         (DECLARE_LRECORD): Undo the last change.
9251         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9252
9253 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9254
9255         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9256         the implementation to lrecord_implementations_table.
9257
9258 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9259
9260         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9261         initial value of `lrecord_type_##c_name' and
9262         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9263         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9264         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9265         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9266         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9267
9268 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9269
9270         * miscplay.c (sndcnv8S_2mono):
9271         (sndcnv2monounsigned):
9272         (sndcnvULaw_2linear):
9273         (sndcnv16swap):
9274         Remove implementation-defined behavior.
9275
9276 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9277
9278         * input-method-xlib.c: Warning suppression.
9279
9280 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9281
9282         * mule-ccl.c: Sync up with Emacs 21.0.90.
9283         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9284         Do nothing.
9285         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9286         Likewise.
9287         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9288         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9289         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9290         leading char belongs to official 2-dimensional charset.
9291         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9292         write the given character as is.  Otherwise,
9293         if it is a multibyte char, convert it by
9294         non_ascii_set_charptr_emchar, then write it.
9295         (CCL_WRITE_STRING): Likewise.
9296         (ccl_get_compiled_code): New function.
9297         (setup_ccl_program): When ccl_prog is invalid,
9298         return -1.
9299         (Fregister_code_conversion_map): New function.
9300         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9301
9302         * mule-ccl.h: Sync up with Emacs 21.0.90.
9303         (Fregister_ccl_program): export it.
9304
9305         * redisplay-msw.c (separate_textual_runs):
9306         If ccl program is not valid, don't do ccl conversion.
9307
9308         * redisplay-x.c (separate_textual_runs): Ditto.
9309
9310         * file-coding.c (Fmake_coding_system):
9311         When type is ccl and value is vector, register it
9312         with a proper symbol.  And checks whether the
9313         given ccl program is valid.
9314         (mule_decode): When calling ccl_driver, if src indicates
9315         NULL pointer, set an empty string instead.
9316         (mule_encode): Likewise.
9317
9318 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9319
9320         The following large batch of changes gets us back to a state of
9321         C++ compilability.  Extbyte is now a char, which means that
9322         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9323
9324         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9325
9326         * sound.c (Fplay_sound): Type correctness.
9327
9328         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9329         (x_get_window_property): Type correctness.
9330         (receive_incremental_selection): unsigned char ==> Extbyte
9331         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9332         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9333         (Fx_store_cutbuffer_internal): Type correctness.
9334
9335         * process-unix.c (try_to_initialize_subtty): Type correctness.
9336
9337         * objects-x.c (x_print_color_instance): Type correctness.
9338         (x_print_font_instance): Type correctness.
9339         (x_list_fonts): SExtbyte ==> Extbyte.
9340         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9341         (x_find_charset_font): SExtbyte ==> Extbyte.
9342         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9343         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9344         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9345         Use bufbyte_strcmp.
9346
9347         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9348         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9349         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9350         (BYTE_C0_P): Use bit ops for char-signedness safety.
9351         (BYTE_C1_P): Use bit ops for char-signedness safety.
9352         (CHARSET_BY_LEADING_BYTE):
9353         (CHARSET_BY_ATTRIBUTES):
9354         Always use inline function.
9355         Use type_checking_assert.
9356         Hide chlook.
9357
9358         * mule-charset.c (non_ascii_charptr_copy_char):
9359         Modify to work with both ASCII and non-ASCII characters.
9360         Improve docs and variable names.
9361         Replace over-clever fall-through switch with a simple loop.
9362         (Lstream_get_emchar_1):
9363         Replace over-clever fall-through switch with a simple loop.
9364
9365         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9366         Warning suppression.
9367
9368         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9369         the return value of Lstream_getc, which could be EOF as well.
9370
9371         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9372
9373         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9374         APIs can be used on Extbytes without casts.  Risky!
9375         (SExtbyte): Remove.
9376         (UExtbyte): Remove.
9377
9378         * input-method-xlib.c (XIM_init_device):
9379         Use Xlib.h instead of IntrinsicP.h.
9380         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9381         which will break in X11R7.
9382         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9383         to call XRegisterIMInstantiateCallback with correct types.
9384
9385         * gui-x.c (button_item_to_widget_value): Type correctness.
9386
9387         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9388
9389         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9390         (xbm_instantiate_1): Type correctness.
9391         (BUILD_GLYPH_INST):  Type correctness.
9392
9393         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9394
9395         * file-coding.c:
9396         (decode_coding_sjis):
9397         (decode_coding_big5):
9398         (decode_coding_ucs4):
9399         (decode_coding_utf8):
9400         (decode_coding_iso2022):
9401         (decode_coding_no_conversion):
9402         Make all decoding functions take an Extbyte * arg.
9403         (encode_coding_sjis):
9404         (encode_coding_big5):
9405         (encode_coding_ucs4):
9406         (encode_coding_utf8):
9407         (encode_coding_iso2022):
9408         (encode_coding_no_conversion):
9409         Make all encoding functions take a Bufbyte * arg.
9410         Use size_t instead of unsigned int for memory sizes.
9411         Only cast to unsigned char whenever dereferencing Extbyte *.
9412
9413         * doc.c (unparesseuxify_doc_string): Type correctness.
9414
9415         * console-x.c (split_up_display_spec):
9416         Rewrite without using details of internal string representation.
9417         (x_semi_canonicalize_device_connection): Type correctness.
9418
9419         * config.h.in:
9420         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9421         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9422         (HAVE_XFREE386): Removed.
9423
9424         * buffer.h (DEC_CHARPTR): `const' correctness.
9425         (bufbyte_strcmp): New.
9426         (bufbyte_memcmp): New.
9427
9428         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9429
9430         * buffer.h (XCHAR_OR_CHAR_INT):
9431         Always use inline function.
9432         Remove redundant type checking assert() - XINT will abort quite nicely.
9433
9434 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9435
9436         * search.c (Freplace_match): Set newtext to an empty string.
9437
9438 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9439
9440         * s/decosf1-3.h: Remove #include of stropts.h
9441         * s/ptx.h: Remove #include of stropts.h
9442         * s/usg5-4.h: Remove #include of stropts.h
9443         * sysproc.h:
9444         * config.h.in:
9445         Use stropts.h, not sys/stropts.h.
9446         Use strtio.h, not sys/strtio.h.
9447
9448 2000-10-04  Martin Buchholz <martin@xemacs.org>
9449
9450         * XEmacs 21.2.36 is released.
9451
9452 2000-09-21  Andy Piper  <andy@xemacs.org>
9453
9454         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9455         changes still involve copying the widget tree.
9456         (update_widget_face): make sure a change is register in the widget
9457         tree. Call update_tab_widget_face appropriately.
9458         (update_tab_widget_face): ditto.
9459         (x_tab_control_redisplay): make sure non-structural changes still
9460         involve copying the widget tree.
9461
9462 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9463
9464         * lread.c (locate_file): Check the path element is non-nil.
9465
9466 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9467
9468         * lisp.h: Warning suppression for SCO compilers.
9469
9470         * redisplay-tty.c (reset_tty_modes): Fix crash.
9471         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9472
9473 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9474
9475         Big signal/process handling overhaul.  Bugs fixed:
9476         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9477         M-x comint-kill-subjob should work for both values nil and t of
9478         process-connection-type. It was broken on most platforms.
9479         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9480         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9481         * process-unix.c: Signal/Process handling overhaul.
9482         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9483         (allocate_pty): Use all available modern methods of allocating
9484         ptys, falling back to old style BSD allocation as a last resort.
9485         Use allegedly more secure Unix98 pty allocation by default.
9486         (allocate_pty_the_old_fashioned_way): New. the last resort.
9487         (unix_create_process): Push ptem, ldterm, ttcompat where
9488         available.  Autoconfiscate.
9489         (try_to_initialize_subtty): New.
9490         (unix_kill_child_process): Proper signal handling for ptys on most
9491         platforms, using special knowledge of AIX, BSD, etc...
9492         (unix_create_process): Always disconnect_controlling_terminal() for
9493         subprocesses, whether using ptys or not.
9494         * process.h: Remove old getpt-dependent PTY code.
9495         * process.c (Fprocess_send_signal): New, obvious generic function.
9496         (decode_signal): New.
9497         (Finterrupt_process):
9498         (Fkill_process):
9499         (Fquit_process):
9500         (Fstop_process):
9501         (Fcontinue_process):
9502         (Fsignal_process): Use decode_signal.
9503         (process_send_signal):
9504         Many docstring corrections.
9505         Allow any signal to be sent to a process object.
9506         * config.h.in: Add symbols for big signal/process overhaul.
9507         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9508         * sysproc.h: Include process-related headers, where available:
9509         sys/stropts.h sys/strtio.h pty.h libutil.h
9510         * s/irix4-0.h:
9511         * s/irix5-0.h:
9512         * s/cygwin32.h:
9513         * s/gnu.h:
9514         * s/linux.h:
9515         * s/hpux.h:
9516         * s/aix3-1.h:
9517         Remove old S&M pty stuff.
9518         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9519         * systty.h: Simplify cpp hackery, improve comments.
9520         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9521
9522         * editfns.c (Fformat_time_string):
9523         Be a little more paranoid with the return value of ctime.
9524
9525         * fileio.c (check_executable):
9526         (check_writable):
9527         Use symbolic constants X_OK, W_OK.
9528
9529         * console-x.c (split_up_display_spec): Fix a warning.
9530
9531 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9532
9533         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9534         * ntproc.c (sys_spawnve): make_string ==> build_string
9535         Small clarity improvements.
9536
9537 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9538
9539         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9540
9541         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9542
9543         * config.h.in (HAVE_STRCASECMP): Remove.
9544
9545 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9546
9547         * redisplay-output.c (redisplay_output_pixmap):
9548         Cleaner and possibly more 64-bit correct code.
9549
9550 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9551
9552         * dumper.c (pdump_load_finish): move restoration of
9553         `noninteractive1' to emacs.c (main_1).
9554         * emacs.c (main_1): protect LISP-visible command-line flags
9555         from pdump_load().
9556
9557 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9558
9559         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9560         DUMP_TARGET instead of literal program names.
9561
9562 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9563
9564         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9565
9566 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9567
9568         * *: Spelling mega-patch
9569
9570 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9571
9572         * fns.c (bad_bad_turtle):
9573         Delete "Eek!" comment, since we fixed the bug to which it refers.
9574
9575 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9576
9577         * alloca.c: Replace REGISTER with register.
9578
9579 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9580
9581         * file-coding.c (ucs_to_char): Use countof.
9582
9583 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9584
9585         * file-coding.c: (ucs_to_char):
9586         (complex_vars_of_file_coding):
9587         Use countof instead of sizeof.
9588         Use CHECK_NATNUM instead of CHECK_INT.
9589
9590         * sysdep.c (strcasecmp): Remove.
9591         * device-x.c (ascii_strcasecmp): New.
9592         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9593         Avoid using non-standard non-portable strcasecmp.
9594
9595 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9596
9597         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9598         * font-lock.c: remove reference to emacsfns.h.
9599         * search.c: small doc improvement.
9600         * event-Xt.c: correct file names in comments.
9601         * console-x.h Correct file names in comments.
9602         * frame.c: Correct file names in comments.
9603         * event-stream.c: remove Energize from comments.
9604
9605 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9606
9607         * symeval.h (DEFERROR_STANDARD):
9608         (DEFERROR):
9609         (DEFSYMBOL):
9610         (DEFSYMBOL_NO_DUMP):
9611         (DEFSYMBOL_MULTIWORD_PREDICATE):
9612         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9613         (DEFKEYWORD):
9614         The construct &##name is not sensible C.
9615         Fixes compilation errors with Unixware native compiler.
9616
9617 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9618
9619         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9620         (next_frame_internal): Removed.  We now just have next_frame.
9621         (next_frame):
9622         Write a simpler and cleaner one-pass algorithm.
9623         Remove called_from_delete_device arg and #ifdefed-out code.
9624         (previous_frame):
9625         Renamed from prev_frame.  Update callers.
9626         Cleaned up to have an analogous implementation to next_frame.
9627         (other_visible_frames_internal): Remove the
9628         called_from_delete_device bogus arg, and hence, remove this
9629         function.  Just use other_visible_frames().
9630
9631         * window.c (Fnext_window):
9632         Prettify docstring.
9633         Since next_frame() is guaranteed to return a frame, remove check
9634         for nil inserted in previous patch.
9635         (Fprevious_window):
9636         Prettify docstring.
9637         Make code look more like Fnext_window.
9638         (window_loop):
9639         Respect the `console' arg when iterating through windows.
9640         Fixes bug: (get-buffer-window buffer t device) not respecting
9641         the `device' arg.
9642         This function needs more work, as others have pointed out.
9643
9644         * frame.h: Rename prev_frame to previous_frame.
9645         device_matches_console_spec no longer takes a `frame' arg.
9646
9647         * s/gnu.h:
9648         * s/linux.h:
9649         * s/hpux.h:
9650         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9651         From "Golubev I. N." <gin@mo.msk.ru>.
9652
9653         * make-src-depend: Fix typo.
9654
9655 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9656
9657         * window.c (Fnext_window):
9658         next_frame() might return nil, not a frame.
9659         Fixes this crash:
9660         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9661
9662         * frame.c (next_frame_internal):
9663         We've passed a frame if we've passed its device.
9664         Fixes this crash:
9665         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9666 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9667
9668 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9669
9670         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9671         Allow option to suppress accelerators in menu/dialog items.
9672         (populate_or_checksum_helper): Pass dialog title through above.
9673
9674 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9675
9676         * event-msw.c (mswindows_key_to_emacs_keysym):
9677         Add "pause" key, fix "menu" key.
9678
9679 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9680
9681         * eval.c (reinit_vars_of_eval):
9682         Increase max_lisp_eval_depth to 1000,
9683         required for thai-xtis.el to byte-compile under some circumstances.
9684
9685 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9686
9687         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9688         From Kenichi Handa.
9689
9690 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9691
9692         * make-src-depend: Make the generated Makefiles smaller.
9693
9694         * s/hpux.h (SETUP_SLAVE_PTY):
9695         Provide a %d in the format string for the errno argument.
9696
9697         * editfns.c (Ftemp_directory):
9698         Warning fix.
9699         Avoid buffer overrun on very long file name.
9700
9701         * input-method-xlib.c (XIM_init_device):
9702         6th parameter of XRegisterIMInstantiateCallback has different
9703         pointer types on different OSes, so simply cast to (void *).
9704
9705         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9706
9707         * sysdll.c (dll_open):
9708         shl_load will hang hard if passed a NULL filename.
9709         Simply return NULL for compatibility with dlopen.
9710         * sysdll.c: Conform to XEmacs coding standards.
9711
9712         * sysdep.c (get_pty_max_bytes):
9713         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9714
9715 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9716
9717         * tooltalk.c: Add #include <syssignal.h>
9718
9719 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9720
9721         * s/hpux.h: Don't use undefined function sigunblock().
9722
9723 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9724
9725         * config.h.in: Add HAVE_BALLOON_HELP.
9726         * emacs.c: Use HAVE_BALLOON_HELP.
9727         * Makefile.in.in (x_objs):
9728         Make Balloon Help conditional on finding shape.h.
9729
9730 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9731
9732         * syntax.c (regex_emacs_buffer_p): New variable.
9733         * syntax.h (regex_emacs_buffer_p): extern.
9734         * search.c (looking_at_1):
9735         (string_match_1):
9736         (fast_string_match):
9737         (search_buffer): Set regex_emacs_buffer_p.
9738         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9739         when before_dot, at_dot, after_dot.
9740
9741 2000-08-23  Andy Piper  <andy@xemacs.org>
9742
9743         * gui-x.c (popup_selection_callback): Only set action_occurred
9744         when we really have an image instance.
9745         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9746
9747 2000-08-23  Andy Piper  <andy@xemacs.org>
9748
9749         * gui-msw.c (mswindows_handle_gui_wm_command): set
9750         action_occurred.
9751         * gui-x.c (popup_selection_callback): ditto.
9752
9753         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9754         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9755         (struct Lisp_Image_Instance): add action_occurred flag.
9756
9757         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9758         (image_instance_changed): ditto.
9759         (reset_frame_subwindow_instance_cache): only unmap windows - do
9760         not remove them from the cache also.
9761
9762         * glyphs-widget.c (tab_control_update): better debug.
9763         (progress_gauge_update): ditto.
9764         (layout_update): ditto.
9765         (layout_instantiate): ditto.
9766         (tab_control_order_only_changed): cope with null pending items.
9767
9768         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9769         debug. Force selection of an item when an action occurred. Cope
9770         with null pending_items.
9771         (mswindows_progress_gauge_redisplay): better debug.
9772         * glyphs-x.c (x_tab_control_redisplay): ditto.
9773
9774         * redisplay.c (redisplay_frame): reset the frame cache if the
9775         frame is garbaged.
9776
9777         * window.c (Fset_window_configuration): potentially re-enable
9778         frame cache reset.
9779         (window_unmap_subwindows): need to finalize instances here since
9780         it is only used in mark_window_as_deleted.
9781
9782 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9783
9784         * nas.c (SndOpenDataForReading):
9785         nas.c (WaveOpenDataForReading):
9786         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9787         Somehow escaped from the 2000-08-14 patch.
9788
9789 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9790
9791         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9792         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9793
9794 2000-08-21  Andy Piper  <andy@xemacs.org>
9795
9796         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9797         window if it is not already displayed.
9798
9799         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9800         it is not already displayed.
9801
9802         * window.c (Fset_window_configuration): don't reset the frame
9803         cache.
9804
9805         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9806         instances from the frame cache if we are actually finalizing them.
9807         (reset_frame_subwindow_instance_cache): reset frame cache only
9808         after unmapping everything.
9809         (map_subwindow): set displayed flag after mapping.
9810
9811 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9812
9813         * data.c (indirect_function):
9814         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9815
9816         * eval.c (function_argcount):
9817         Use original function when signaling errors.
9818
9819 2000-08-18  Andy Piper  <andy@xemacs.org>
9820
9821         * frame.c (delete_frame_internal): use new
9822         free_frame_subwindow_instances name.
9823
9824         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9825         (add_tab_item): make return type correct.
9826         (mswindows_tab_control_instantiate): assert index of tab.
9827         (mswindows_tab_control_redisplay): Re-code to use
9828         gui_item_equal_sans_selected and gui_item_list_find_selected.
9829
9830         * glyphs-widget.c (tab_control_update): Correct comment.
9831
9832         * window.c (window_unmap_subwindows): use new
9833         unmap_subwindow_instance_cache_mapper.
9834         (window_unmap_subwindows_cache_mapper): deleted.
9835         (Fset_window_configuration): comparisons should now be with
9836         EQ. Preserve the subwindow instance cache across configuration
9837         changes.
9838         (allocate_window): ditto.
9839         (make_dummy_parent): ditto.
9840
9841         * glyphs.c (free_frame_subwindow_instances): rename from
9842         free_frame_subwindow_instance_cache. finalize all instances rather
9843         than just those in the display cache.
9844         (finalize_all_subwindow_instances): walk windows unmapping and
9845         finalizing subwindows.
9846         (unmap_subwindow_instance_cache_mapper): moved from
9847         window.c. Allow finalization as well as unmapping.
9848
9849         * gui.c (gui_item_list_find_selected): new function.
9850
9851         * gui.h (gui_item_list_find_selected): declare.
9852
9853         * glyphs-x.c (x_tab_control_redisplay): pick tab
9854         explicitly. Re-code to use gui_item_equal_sans_selected and
9855         gui_item_list_find_selected.
9856
9857         * glyphs-x.h: add lwlib-utils.h
9858
9859         * buffer.c (Frecord_buffer): undo previous change.
9860
9861 2000-08-09  Vin Shelton  <acs@xemacs.org>
9862
9863         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9864         possible.  Create temporary files more securely.  The patch was
9865         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9866         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9867         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9868         for details.
9869
9870 2000-08-07  Ben Wing  <ben@xemacs.org>
9871
9872         * getloadavg.c: remove duplicate (and windows-breaking)
9873         includes of fcntl.h and sys/file.h.
9874
9875         * nt.c: remove duplicate getloadavg() definition.
9876
9877         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9878         encodings.
9879
9880 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9881
9882         * eval.c (function_argcount): If function needs to be autoloaded
9883         actually use the loaded definition.
9884         GCPRO function.
9885
9886 2000-08-05  Ben Wing  <ben@xemacs.org>
9887
9888         * getloadavg.c: add prototype for getloadavg().  remove
9889         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9890         of the code).  remove duplicate header includes.
9891
9892         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9893
9894         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9895         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9896         useful load average.
9897
9898         * alloc.c (reinit_alloc_once_early): removed references to
9899         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9900         the lisp vars are the only things referencing the malloc_sbrk_*
9901         vars, and they were already if 0'd out.  these vars only exist
9902         in the older malloc.c, which is basically unused, and they're
9903         only for informational purposes.
9904
9905         * m\*.h: removed useless VIRT_ADDR_VARIES.
9906
9907         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9908
9909 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9910
9911         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9912         color if the image is a mono pixmap.
9913
9914 2000-07-30  Ben Wing  <ben@xemacs.org>
9915
9916         * Makefile.in.in (release):
9917         Remove stray @.
9918
9919         * buffer.c (directory_is_current_directory):
9920         * dired-msw.c (mswindows_get_files):
9921         * dired.c:
9922         * dired.c (Fdirectory_files):
9923         * dired.c (file_name_completion_stat):
9924         * dired.c (Ffile_attributes):
9925         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9926         preprocessor tricks, to avoid problems on some machines
9927         (e.g. SCO).
9928
9929         * callproc.c (egetenv): GC docs.
9930
9931         * console-msw.h:
9932         * console-msw.h (struct mswindows_dialog_id):
9933         * lrecord.h (lrecord_type):
9934         New object for use with MSW dialogs.
9935
9936         * console.h (struct console_methods):
9937         New enable/disable frame methods, for proper modal dialogs.
9938
9939         * device-msw.c (msprinter_default_printer): Fix to follow
9940         proper Mule conventions.
9941
9942         * device-msw.c:
9943         * device-msw.c (signal_open_printer_error):
9944         * device-msw.c (msprinter_init_device):
9945         * device-msw.c (ensure_not_printing):
9946         * device-msw.c (plist_get_margin):
9947         * device-msw.c (Fmsprinter_select_settings):
9948         * device-msw.c (finalize_devmode):
9949         * device-msw.c (Fmsprinter_settings_despecialize):
9950         * device-msw.c (signal_enum_priner_error):
9951         * extents.c (decode_extent):
9952         * extents.c (decode_map_extents_flags):
9953         * extents.c (decode_extent_at_flag):
9954         * extents.c (Fextent_at):
9955         * extents.c (Fextents_at):
9956         * extents.c (symbol_to_glyph_layout):
9957         [[[[2]]]] Use structured errors.
9958
9959         * dialog-msw.c:
9960         * dialog-msw.c (mswindows_is_dialog_msg):
9961         * dialog-msw.c (mark_mswindows_dialog_id):
9962         * dialog-msw.c (dialog_proc):
9963         * dialog-msw.c (handle_question_dialog_box):
9964         * dialog-msw.c (syms_of_dialog_mswindows):
9965         Define new object to clean up marking; use it as a dialog identifier.
9966         Call new delete-dialog-box-hook.
9967
9968         * dialog-x.c (dbox_selection_callback):
9969         * dialog-x.c (dbox_descriptor_to_widget_value):
9970         * dialog-x.c (x_make_dialog_box_internal):
9971         Call new delete-dialog-box-hook.
9972         Return an id.
9973
9974         * dialog.c:
9975         * dialog.c (syms_of_dialog):
9976         * dialog.c (vars_of_dialog):
9977         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9978
9979         * eval.c:
9980         * eval.c (signal_call_debugger):
9981         when noninteractive, output stack traces on the console instead
9982         of in a (never-seen) buffer.
9983
9984         * eval.c (signal_type_error):
9985         * eval.c (invalid_argument_2):
9986         * lisp.h:
9987         new funs for use w/structured errors.
9988
9989         * event-Xt.c:
9990         * event-Xt.c (x_to_emacs_keysym):
9991         * event-Xt.c (describe_event):
9992         * event-Xt.c (emacs_Xt_event_handler):
9993         * event-Xt.c (vars_of_event_Xt):
9994         * event-msw.c:
9995         * event-msw.c (mswindows_wnd_proc):
9996         * event-msw.c (vars_of_event_mswindows):
9997         rename {x,mswindows}-debug-events to debug-{}-events for
9998         consistency with other debug-foo variables.
9999
10000         * event-stream.c:
10001         document next-event more clearly.
10002
10003         * fileio.c (Ffile_name_directory):
10004         * fileio.c (Ffile_name_nondirectory):
10005         * fileio.c (Funhandled_file_name_directory):
10006         * fileio.c (file_name_as_directory):
10007         * fileio.c (Ffile_name_as_directory):
10008         * fileio.c (directory_file_name):
10009         * fileio.c (Fdirectory_file_name):
10010         * fileio.c (Fmake_temp_name):
10011         * fileio.c (Ffile_truename):
10012         * fileio.c (Fsubstitute_in_file_name):
10013         * fileio.c (expand_and_dir_to_file):
10014         * fileio.c (barf_or_query_if_file_exists):
10015         * fileio.c (check_executable):
10016         * fileio.c (Ffile_exists_p):
10017         * fileio.c (Ffile_writable_p):
10018         * fileio.c (Ffile_directory_p):
10019         * fileio.c (Ffile_regular_p):
10020         * fileio.c (Ffile_modes):
10021         * fileio.c (Ffile_newer_than_file_p):
10022         * fileio.c (Fverify_visited_file_modtime):
10023         * fileio.c (Fset_visited_file_modtime):
10024         * fileio.c (auto_save_1):
10025         (1). (2).
10026         fix up gcpro's.
10027
10028         * frame-msw.c:
10029         * frame-msw.c (mswindows_init_frame_1):
10030         * frame-msw.c (mswindows_enable_frame):
10031         * frame-msw.c (error_frame_unsizable):
10032         * frame-msw.c (msprinter_init_frame_1):
10033         * frame-msw.c (msprinter_init_frame_3):
10034         * frame-msw.c (console_type_create_frame_mswindows):
10035         (2).
10036         implement new enable/disable frame methods.
10037
10038         * frame-x.c:
10039         * frame-x.c (x_enable_frame):
10040         * frame-x.c (console_type_create_frame_x):
10041         implement new enable/disable frame methods.
10042
10043         * frame.c:
10044         * frame.c (Fdisable_frame):
10045         * frame.c (syms_of_frame):
10046         * frame.h (struct frame):
10047         implement new enable/disable frame methods/functions.
10048
10049         * general-slots.h:
10050         add initial-focus.
10051
10052         * glyphs-msw.c (mswindows_widget_instantiate):
10053         comment that initial-focus should be implemented.
10054
10055         * glyphs-widget.c:
10056         * glyphs-widget.c (check_valid_instantiator):
10057         * glyphs-widget.c (check_valid_orientation):
10058         * glyphs-widget.c (check_valid_tab_orientation):
10059         * glyphs-widget.c (check_valid_justification):
10060         * glyphs-widget.c (check_valid_border):
10061         * glyphs-widget.c (check_valid_callback):
10062         * glyphs-widget.c (check_valid_int_or_function):
10063         * glyphs-widget.c (check_valid_string_or_vector):
10064         * glyphs-widget.c (check_valid_item_list_1):
10065         * glyphs-widget.c (widget_validate):
10066         * glyphs-widget.c (combo_box_validate):
10067         * glyphs-widget.c (widget_instantiate):
10068         * glyphs-widget.c (syms_of_glyphs_widget):
10069         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10070         * glyphs-widget.c (image_instantiator_combo_box):
10071         * glyphs-widget.c (image_instantiator_scrollbar):
10072         * glyphs-widget.c (image_instantiator_tab_control):
10073         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10074         (2).
10075         support (unimplemented) keyword initial-focus.
10076         reindent long macros.
10077
10078         * glyphs-x.c (x_redisplay_widget):
10079         * glyphs-x.c (x_button_instantiate):
10080         * glyphs-x.c (x_button_redisplay):
10081         * glyphs-x.c (x_progress_gauge_instantiate):
10082         * glyphs-x.c (x_edit_field_instantiate):
10083         * glyphs-x.c (x_combo_box_instantiate):
10084         * glyphs-x.c (x_tab_control_instantiate):
10085         * glyphs-x.c (x_label_instantiate):
10086         * gui-x.c:
10087         * gui-x.c (button_item_to_widget_value):
10088         * gui-x.c (gui_items_to_widget_values_1):
10089         * gui-x.c (gui_item_children_to_widget_values):
10090         * gui-x.c (gui_items_to_widget_values):
10091         * gui-x.h:
10092         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10093         add new flag to gui-parsing routines to indicate whether
10094         accelerator specs should be supported.
10095
10096         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10097
10098         * glyphs.h (struct Lisp_Image_Instance):
10099         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10100         add initial-focus flag.
10101
10102         * gui.c:
10103         * gui.c (syms_of_gui):
10104         * gui.c (vars_of_gui):
10105         clean up menu-no-selection-hook.
10106
10107         * gui.h:
10108         support delete-dialog-box-hook.
10109
10110         * lread.c (Fload_internal):
10111         * lread.c (locate_file_in_directory_mapper):
10112         (1).
10113
10114         * lrecord.h:
10115         * lrecord.h (struct toolbar_button):
10116         * lrecord.h (syms_of_toolbar):
10117         document how to create a new object.
10118
10119         * menubar-msw.c (mswindows_char_is_accelerator):
10120         may be called on frames w/o menus.
10121
10122         * menubar.c (vars_of_menubar):
10123         clean up :filter docs.
10124
10125         * nt.c (readdir):
10126         * ntproc.c:
10127         (1).
10128
10129         * process-nt.c:
10130         * process-nt.c (validate_signal_number):
10131         * process-nt.c (signal_cannot_launch):
10132         * process-nt.c (nt_create_process):
10133         * process-nt.c (nt_send_process):
10134         * process-nt.c (nt_kill_child_process):
10135         * process-nt.c (nt_open_network_stream):
10136         * process-nt.c (syms_of_process_nt):
10137         (2).
10138         delete quote-handling.  call new lisp code that does it better.
10139
10140         * process-unix.c (connect_to_file_descriptor):
10141         * process-unix.c (allocate_pty):
10142         * process-unix.c (unix_send_process):
10143         * process-unix.c (unix_kill_child_process):
10144         * process-unix.c (unix_open_network_stream):
10145         * process-unix.c (unix_open_multicast_group):
10146         (1). (2).
10147
10148         * process.c:
10149         * process.c (Fstart_process_internal):
10150         (2).  need to canonicalize process path even if absolute.
10151
10152         * select-msw.c (symbol_to_ms_cf):
10153         * select-msw.c (ms_cf_to_symbol):
10154         * select-msw.c (cf_is_autofreed):
10155         * select-msw.c (mswindows_destroy_selection):
10156         * select.c:
10157         * select.c (syms_of_select):
10158         * select.h:
10159         support dibv5, fix bugs. (from Mike Alexander)
10160
10161         * select.c (Fget_selection_internal):
10162         * select.c (select_convert_out):
10163
10164         * sysdep.c:
10165         * sysdep.c (xemacs_stat):
10166         renamed.
10167
10168         * sysdep.c (mkdir):
10169         * sysdep.c (rmdir):
10170         but keep original stat() here because we provide encapsulation
10171         around these funs.
10172
10173         * sysfile.h:
10174         * sysfile.h (fstat):
10175         remove stat garbage.
10176
10177         * syswindows.h:
10178         fix X/MSW conflict.
10179         don't include tchar.h.  it's inappropriate because it makes
10180         compile-time distinctions when we want runtime distinctions.
10181         (we provide our own tchar replacements)
10182
10183         * toolbar.c:
10184         use default object printer for toolbar-button.
10185
10186         * unexcw.c:
10187         make sure we don't encapsulate.
10188
10189         * window.c (vars_of_window):
10190         emphasize that temp-buffer-show-hook is obsolete.
10191
10192 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10193
10194         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10195         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10196
10197         * events.c (Fevent_timestamp_lessp):
10198         Not 64-bit clean.  Use EMACS_INT, not int.
10199
10200 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10201
10202         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10203         unsigned int and changed the last enum to
10204         lrecord_type_last_built_in_type.
10205         (lrecord_implementations_table): changed prototype to know how
10206         long the array is supposed to be.
10207         (lrecord_type_count): new unsigned int to keep track of the
10208         current number of lisp lrecord types.
10209         (DEFINE_EXTERNAL_LRECORD):
10210         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10211         dynamic-modules to declare new lisp types. They are the same
10212         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10213         int for each new type, and increment lrecord_type_count by 1.
10214
10215         * alloc.c (lrecord_implementations_table): Changed to reference
10216         lrecord_type_last_built_in_type for the size of the array.
10217         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10218
10219 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10220
10221         * glyphs.h (check_valid_item_list): Renamed from
10222         check_valid_item_list_1.
10223
10224 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10225
10226         * select.c (Qselect_coerce): New.
10227         * select.c (Vselection_coercion_alist): New.
10228         * select.c (syms_of_select): Declare.
10229         * select.c (get-selection-internal): Use it.
10230         Use the new select-coerce functionality.
10231
10232         * select.c (select_coerce): New.
10233         * select.h (select_coerce): Declare.
10234         New function to coerce one type of data into another.
10235
10236 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10237
10238         * callproc.c (Fcall_process_internal):
10239         (Fcall_process_internal):
10240         * process-unix.c (unix_create_process):
10241         Save and restore the value of errno, so that error messages are accurate.
10242
10243 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10244
10245         * elhash.c (print_hash_table):
10246         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10247         Prettify docstrings and indentation.
10248
10249 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10250
10251         * window.c (Fwindow_pixel_edges): Subtract frame border and
10252         gutter size.
10253
10254 2000-07-31  Andy Piper  <andy@xemacs.org>
10255
10256         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10257         will acknowledge the change.
10258
10259         * glyphs.h: declare tab_control_order_only_changed.
10260
10261         * glyphs-x.c (x_tab_control_redisplay): use
10262         tab_control_order_only_changed.
10263
10264         * glyphs-widget.c (tab_control_order_only_changed): new function.
10265
10266         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10267         tab_control_order_only_changed.
10268
10269         * gui.c (gui_item_equal_sans_selected): new function.
10270         (gui_item_equal): use it.
10271
10272         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10273         :properties in favor of :items..
10274
10275         * glyphs-widget.c (check_valid_item_list): rename from
10276         check_valid_item_list_1.
10277         (check_valid_item_list_1): renamed.
10278         (combo_box_validate): deprecate :properties in favor of :items.
10279         (widget_instantiate): ditto.
10280         (tab_control_update): ditto.
10281         (image_instantiator_combo_box): ditto.
10282         (image_instantiator_tree_view): ditto.
10283         (image_instantiator_tab_control): ditto.
10284         (layout_post_instantiate): remove dead code.
10285
10286         * print.c (debug_print_no_newline): only write to debugger if in
10287         WIN32_NATIVE.
10288
10289         * elhash.c (Fmake_hash_table): update doc string.
10290
10291         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10292         messages whilst in GC. This at least stops XEmacs crashing but has
10293         the potential for wierd behaviour.
10294
10295 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10296
10297         * config.h.in:
10298         Make existence of s&m files optional.
10299
10300         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10301         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10302         * s/gnu.h: Remove HAVE_GETLOADAVG.
10303         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10304         * s/sol2.h: Remove HAVE_GETLOADAVG.
10305         * lisp.h: Remove getloadavg() declaration.
10306         * fns.c:
10307         Include <sys/loadavg.h> if available.
10308         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10309         * config.h.in:  Group together getloadavg()-related macros.
10310         Use only configure-time tests to detect getloadavg().
10311
10312 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10313
10314         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10315
10316 2000-07-25  Andy Piper  <andy@xemacs.org>
10317
10318         * syswindows.h: add tchar.h for native builds.
10319
10320         * frame.c (syms_of_frame): remove set-glyph-image.
10321
10322         * general-slots.h: add Qset_glyph_image.
10323
10324         * glyphs-widget.c (layout_update): add domain arg to
10325         set-glyph-image.
10326         (syms_of_glyphs_widget): remove set-glyph-image.
10327
10328 2000-07-23  Ben Wing  <ben@xemacs.org>
10329
10330         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10331         Vpopup_frame_list.
10332
10333 2000-07-22  Andy Piper  <andy@xemacs.org>
10334
10335         * symsinit.h: add syms_of_win32().
10336
10337         * gui-msw.c (syms_of_gui_mswindows): remove
10338         Fmswindows_shell_execute.
10339         (Fmswindows_shell_execute): moved to win32.c.
10340
10341         * emacs.c (main_1): add syms_of_win32 ().
10342
10343         * win32.c (init_potentially_nonexistent_functions): rewrite in
10344         compiler-friendly terms.
10345         (Fmswindows_shell_execute): move here from gui-msw.c.
10346         (syms_of_win32): new.
10347
10348         * device-msw.c (Fmswindows_printer_list): clean up args to
10349         EnumPrinters.
10350         Don't include tchar under cygwin or mingw.
10351         (msprinter_default_printer): make cygwin-friendly.
10352
10353 2000-07-21  Andy Piper  <andy@xemacs.org>
10354
10355         * glyphs-widget.c (image_instantiator_tree_view): use tab
10356         control's update function.
10357         (layout_property): new function. Retrieve items.
10358
10359         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10360         function. Re-populate the tree view from the pending items.
10361
10362         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10363         is designated the parent if the domain is an image instance. This
10364         is needed so that dirtiness can be cascade up the hierarchy and
10365         thus for layout children to be redisplayed correctly.
10366         (allocate_image_instance): rename glyph -> parent.
10367
10368         * redisplay.h: change redisplay_output_layout signature.
10369
10370         * redisplay-msw.c (mswindows_output_display_block): use domain
10371         arg.
10372
10373         * redisplay-x.c (x_output_display_block): use domain arg.
10374
10375 2000-07-10  Andy Piper  <andy@xemacs.org>
10376
10377         * window.c (Fset_window_configuration): add comment.
10378
10379         * redisplay-output.c (compare_runes):
10380         (redisplay_output_subwindow): redisplay rather than update subwindow.
10381         (redisplay_output_layout): ditto.
10382
10383         * redisplay-msw.c (mswindows_frame_output_end):
10384         (mswindows_frame_output_end): make defer window pos optional.
10385
10386         * lisp.h: add Flast.
10387
10388         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10389         normalize method. Change update method to be for changed
10390         instantiators. Add redisplay method. Change signature of layout
10391         method.
10392         (struct Lisp_Image_Instance): add instantiator.
10393         (IMAGE_INSTANCE_INSTANTIATOR): new.
10394         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10395         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10396         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10397
10398         * glyphs.c:
10399         (find_instantiator_differences): new function.
10400         (Fset_instantiator_property): new convenience function.
10401         (check_image_instance_structure): strictly check for vector
10402         instantiators.
10403         (normalize_image_instantiator): make non-static.
10404         (instantiate_image_instantiator): pass on dest_mask and use new
10405         signatures for image_instance_layout and friends.
10406         (mark_image_instance): mark the instantiator. Mark the subwindow
10407         face not the widget face.
10408         (image_instance_equal): add instantiator.
10409         (image_instance_hash): ditto.
10410         (allocate_image_instance): ditto.
10411         (Fset_image_instance_property): removed.
10412         (Fimage_instance_file_name): ditto.
10413         (Fcolorize_image_instance): ditto.
10414         (image_instance_layout): add offsets to be set.
10415         (update_image_instance): new function. update an image instance
10416         from its changed instantiator.
10417         (inherit_normalize): add dest_mask.
10418         (xbm_normalize): ditto.
10419         (xface_normalize): ditto.
10420         (xpm_normalize): ditto.
10421         (text_update): set_property -> update.
10422         (image_instantiate): use the glyph identity as a hash key, not the
10423         instantiator.
10424         (glyph_width): use new image_instance_layout signature.
10425         (glyph_ascent): ditto.
10426         (glyph_descent): ditto.
10427         (glyph_height): ditto.
10428         (glyph_query_geometry): ressurrect.
10429         (glyph_layout): ditto.
10430         (redisplay_subwindow): update -> redisplay.
10431         (syms_of_glyphs): add Fset_instantiator_property.
10432         (image_instantiator_format_create): set_property -> update.
10433
10434         * glyphs-x.c:
10435         (autodetect_normalize): add dest_maks to signature.
10436         (x_redisplay_subwindow): update -> redisplay.
10437         (x_redisplay_widget): ditto.
10438         (x_button_redisplay): ditto.
10439         (x_progress_gauge_redisplay): ditto.
10440         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10441         stacking order.
10442         (console_type_create_glyphs_x): update -> redisplay.
10443         (image_instantiator_format_create_glyphs_x): ditto.
10444
10445         * glyphs-widget.c:
10446         (check_valid_instantiator): disallow glyphs in the instantiator,
10447         they must now be vectors.
10448         (check_valid_instantiator_list): ditto.
10449         (glyph_instantiator_to_glyph): use internal symbol rather than
10450         intern.
10451         (widget_update): renamed from widget_set_property. Call cascaded
10452         update methods.
10453         (redisplay_widget): renamed from update_widget.
10454         (widget_layout): image_instance_layout now takes position as well
10455         as size.
10456         (widget_normalize): ditto.
10457         (widget_instantiate): ditto.
10458         (tab_control_query_geometry) ditto.:
10459         (tab_control_update): renamed from tab_control_set_property.
10460         (progress_gauge_update): set_property -> update.
10461         (layout_normalize): rewrite so that child instantiators are
10462         normalized also.
10463         (layout_update): new function. Create glyphs from the normalized
10464         children and cope with any other layout keywords. We do not
10465         instantiate children here that will be take care of by
10466         redisplay_output_layout.
10467         (layout_instantiate): call layout_update and not much else.
10468         (layout_post_instantiate): not sure whether this is needed
10469         anymore.
10470         (layout_query_geometry): query glyph geometry rather than
10471         image_instance geometry.
10472         (layout_layout): set offsets from pass in parameters. Use glyph
10473         geometry and layout functions rather than image instance ones.
10474         (native_layout_layout): ditto.
10475         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10476         (image_instantiator_widget): set_property -> update.
10477         (image_instantiator_buttons): ditto.
10478         (image_instantiator_progress_guage): ditto.
10479         (image_instantiator_tab_control): ditto.
10480         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10481         (image_instantiator_layout): add update method.
10482
10483         * glyphs-msw.c (bmp_normalize):
10484         (mswindows_resource_normalize): add dest_mask so that it can be
10485         proprogated by layout_normalize.
10486         (begin_defer_window_pos): make optional because it may not be the
10487         right thing to do and it introduces differences with X.
10488         (mswindows_unmap_subwindow): ditto.
10489         (mswindows_map_subwindow): ditto.
10490         (mswindows_redisplay_subwindow): renamed from
10491         mswindows_update_subwindow.
10492         (mswindows_redisplay_widget): ditto.
10493         (mswindows_button_redisplay): renamed from
10494         mswindows_button_update. Update is now what the instantiation
10495         function does for a changed instantiator.
10496         (mswindows_progress_gauge_instantiate): set the progress value
10497         here if appropriate.
10498         (mswindows_tab_control_redisplay): cope with re-ordering of the
10499         members of the tab widget by simply selecting the new top
10500         widget. This makes things appear ok if you click on a tab.
10501         (mswindows_combo_box_instantiate): image_instance_layout now takes
10502         position as well as size.
10503         (mswindows_progress_gauge_redisplay): renamed from
10504         mswindows_progress_gauge_update.
10505         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10506         (image_instantiator_format_create_glyphs_mswindows): ditto.
10507
10508         * glyphs-eimage.c (jpeg_normalize):
10509         (gif_normalize):
10510         (png_normalize):
10511         (tiff_normalize): add dest_mask so that it can be proprogated by
10512         layout_normalize.
10513
10514         * elhash.c:
10515         (print_hash_table):
10516         (hash_table_weakness_validate):
10517         (decode_hash_table_weakness):
10518         (Fhash_table_weakness):
10519         (Fhash_table_type):
10520         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10521
10522         * console.h (struct console_methods): move update_* to
10523         redisplay_*.
10524
10525 2000-07-20  Ben Wing  <ben@xemacs.org>
10526
10527         * *.[ch] (XSETOBJ): remove unused middle argument.
10528         lisp-disunion.h: correct wrap_object() to one argument.
10529
10530 2000-07-15  Ben Wing  <ben@xemacs.org>
10531
10532         * s/cygwin32.h:
10533         * s/cygwin32.h (CYGWIN_CONV_PATH):
10534         Add missing logb prototype for v1.1.
10535         Use post-b20 names and alias to pre-b20 names when pre-b20.
10536
10537         * s/windowsnt.h: [5].
10538
10539 2000-07-15  Ben Wing  <ben@xemacs.org>
10540
10541         * Makefile.in.in (x_objs):
10542         * Makefile.in.in (sheap_objs):
10543         * Makefile.in.in (objs):
10544         added win32.o, cosmetic cleanups.
10545
10546         * alloc.c (Fmake_byte_code):
10547         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10548         etc. macros which declare their own args now.
10549
10550         * alloc.c (syms_of_alloc):
10551         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10552
10553         * buffer.c:
10554         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10555
10556         * buffer.c (Fget_file_buffer):
10557         Fixed GCPRO problem.
10558
10559         * buffer.c (get_truename_buffer):
10560         Fixed comment about GC checking.
10561
10562         * buffer.c (syms_of_buffer):
10563         Undeclared those dedicated frame funs.
10564         [2].
10565
10566         * buffer.h:
10567         Define convenience macros for internal/external conversions.
10568         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10569         and Qenvironment_variable_encoding for cleaner code.
10570
10571         * bufslots.h:
10572         Remove dedicated-frame; in lisp.
10573
10574         * bytecode.c (funcall_compiled_function):
10575         [1].
10576
10577         * bytecode.c (syms_of_bytecode):
10578         [2].
10579
10580         * console-msw.c:
10581         * console-msw.c (mswindows_show_console): Rewrote.
10582
10583         * console-msw.c (Fmswindows_debugging_output): New.
10584         Sends to OutputDebugString (special MSWin debugger interface).
10585
10586         * console-msw.c (Fmswindows_message_box):
10587         Fixed stupid bugs so it works when called from kill-emacs.
10588
10589         * console-msw.c (syms_of_console_mswindows):
10590         Declare Fmswindows_debugging_output.
10591
10592         * console-msw.h:
10593         New MSWin prototypes.
10594
10595         * console-msw.h (struct mswindows_frame):
10596         New entry last-click-mods for improved button-modifier support.
10597
10598         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10599         New struct entry `popup' with corresponding accessor.
10600
10601         * console-x.c:
10602         * console-x.c (split_up_display_spec):
10603         * console-x.c (get_display_arg_connection):
10604         * console-x.c (x_semi_canonicalize_console_connection):
10605         * console-x.c (x_canonicalize_device_connection):
10606         [[[6]]]: Change char to more specific type.
10607         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10608
10609         * console-x.c (x_semi_canonicalize_console_connection):
10610         * console-x.c (x_canonicalize_device_connection):
10611         [[[9]]]: Fix up error signalling to use new structured error system.
10612
10613         * console-x.h:
10614         [[[4]]]: Define codesys aliases:
10615         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10616         Qx_color_name_encoding, Qx_display_name_encoding.
10617
10618         * console.h (struct console_methods):
10619         New method make_dialog_box_internal supersedes older
10620         popup_dialog_box method.
10621
10622         * data.c:
10623         Define many new errors, part of new structured errors.
10624
10625         * data.c (init_errors_once_early):
10626         * data.c (syms_of_data):
10627         [2].
10628
10629         * device-msw.c (mswindows_init_device):
10630         [[[5]]]: Cleanup to support NT 3.51.
10631
10632         * device-msw.c (decode_devmode): Cleanup.
10633
10634         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10635         * device-msw.c (mswindows_handle_print_dialog_box):
10636         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10637         * device-msw.c (syms_of_device_mswindows):
10638         Delete the dialog box primitives recently introduced by Kirill and
10639         instead interface to general dialog box interface.
10640
10641         * device-x.c:
10642         * device-x.c (compute_x_app_name):
10643         * device-x.c (x_init_device):
10644         * device-x.c (Fx_valid_keysym_name_p):
10645         * device-x.c (Fx_set_font_path):
10646         [6].
10647         [7].
10648
10649         * device.h (wrap_device): New.
10650         First of its kind; meant to replace XSETDEVICE.
10651
10652         * dialog-msw.c: Many file-dialog symbols.
10653
10654         * dialog-msw.c (mswindows_register_popup_frame): New.
10655         * dialog-msw.c (mswindows_is_dialog_msg): New.
10656         For supporting kbd traversal in dialog boxes.
10657
10658         * dialog-msw.c (dialog_proc):
10659         Support hitting ESC in dialogs.
10660
10661         * dialog-msw.c (struct):
10662         Common dialog box errors.
10663
10664         * dialog-msw.c (handle_file_dialog_box): New.
10665         Add file dialog code.
10666
10667         * dialog-msw.c (handle_question_dialog_box):
10668         Redo existing code to support new question dialog syntax.
10669
10670         * dialog-msw.c (console_type_create_dialog_mswindows):
10671         We support new dialog console method.
10672
10673         * dialog-msw.c (syms_of_dialog_mswindows):
10674         * dialog-msw.c (vars_of_dialog_mswindows):
10675         New file dialog symbols, vars.
10676
10677         * dialog-x.c:
10678         * dialog-x.c (maybe_run_dbox_text_callback):
10679         * dialog-x.c (dbox_descriptor_to_widget_value):
10680         * dialog-x.c (x_make_dialog_box_internal):
10681         * dialog-x.c (console_type_create_dialog_x):
10682         Mule-ize entire file.
10683         Redo to support question dialog syntax.
10684         [6].
10685
10686         * dialog.c:
10687         * dialog.c (Fmake_dialog_box_internal):
10688         * dialog.c (syms_of_dialog):
10689         Kill old popup-dialog-box, replace with new primitive.
10690         Just call device method or signal error.
10691
10692         * eldap.c (Fldap_open):
10693         * eldap.c (Fldap_search_basic):
10694         * eldap.c (Fldap_add):
10695         * eldap.c (Fldap_modify):
10696         [1].
10697         [7].
10698
10699         * emacs.c:
10700         * emacs.c (make_arg_list_1):
10701         * emacs.c (make_arg_list):
10702         Mule-ize call to dll_init().
10703         [6].
10704         [8].
10705
10706         * emacs.c (make_argc_argv):
10707         * emacs.c (free_argc_argv):
10708         * emacs.c (init_cmdargs):
10709         * emacs.c (main_1):
10710         * emacs.c (Fkill_emacs):
10711         * emacs.c (Fdump_emacs):
10712         Update comments about what can be used in syms_* etc.
10713         Call init_win32() when necessary.
10714         Fix up MS Win dialog box in kill-buffer to actually work right.
10715         [7].
10716
10717         * eval.c:
10718         * eval.c (For):
10719         * eval.c (Fand):
10720         * eval.c (Fprogn):
10721         * eval.c (Fprog1):
10722         * eval.c (Fprog2):
10723         * eval.c (FletX):
10724         * eval.c (Flet):
10725         * eval.c (condition_case_3):
10726         * eval.c (Feval):
10727         * eval.c (function_argcount):
10728         * eval.c (funcall_lambda):
10729         [1].
10730
10731         * eval.c (type_error): New.
10732         * eval.c (maybe_type_error): New.
10733         * eval.c (continuable_type_error): New.
10734         * eval.c (maybe_continuable_type_error): New.
10735         * eval.c (type_error_with_frob): New.
10736         * eval.c (maybe_type_error_with_frob): New.
10737         * eval.c (continuable_type_error_with_frob): New.
10738         * eval.c (maybe_continuable_type_error_with_frob): New.
10739         New functions for use with structured errors.
10740
10741         * event-Xt.c:
10742         * event-Xt.c (x_event_to_emacs_event):
10743         Buttons are now modifiers too.
10744
10745         * event-Xt.c (emacs_Xt_current_event_timestamp):
10746         Implement new event method.
10747         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10748
10749         * event-msw.c:
10750         * event-msw.c (ntpipe_shove_writer): [5].
10751         * event-msw.c (mswindows_enqueue_mouse_button_event):
10752         * event-msw.c (mswindows_drain_windows_queue):
10753         * event-msw.c (mswindows_wnd_proc): [7].
10754         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10755         * event-msw.c (mswindows_modifier_state):
10756         Throughout: support new button modifiers.
10757
10758         * event-msw.c (emacs_mswindows_current_event_timestamp):
10759         Implement new event method.
10760         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10761
10762         * event-stream.c:
10763         * event-stream.c (event_stream_current_event_timestamp): New.
10764         * event-stream.c (maybe_kbd_translate): New functionality.
10765         * event-stream.c (vars_of_event_stream):
10766         Document new kbd-translate-table functionality.
10767
10768         * event-stream.c (Fcurrent_event_timestamp): New.
10769         New primitive for use in fabricated events.
10770         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10771
10772         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10773
10774         * events.c:
10775         * events.c (Fmake_event):
10776         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10777         [1].
10778         [9].
10779
10780         * events.c (format_event_object): fix gcc warnings.
10781
10782         * events.c (Fevent_timestamp): Document new primitives.
10783
10784         * events.c (TIMESTAMP_HALFSPACE): New.
10785
10786         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10787         comparing timestamps correctly (half-space algorithm).
10788
10789         * events.c (Fevent_modifier_bits): Doc fix.
10790
10791         * events.c (Fevent_modifiers): Major doc addition.
10792         * events.c (event_x_y_pixel_internal): Typo fix.
10793         * events.c (syms_of_events): Declare new primitives.
10794
10795         * events.h:
10796         Update long comment for button modifiers, timestamps.
10797
10798         * events.h (struct event_stream):
10799         New current_event_timestamp method.
10800
10801         * extents.c:
10802         * extents.c (extent_in_region_p):
10803         * extents.c (decode_extent):
10804         * extents.c (Fset_extent_parent):
10805         * extents.c (decode_map_extents_flags):
10806         Fix gcc warnings.
10807         [9].
10808
10809         * extents.c (struct extent_at_arg):
10810         * extents.c (decode_extent_at_flag):
10811         * extents.c (extent_at_mapper):
10812         * extents.c (extent_at_bytind):
10813         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10814         * extents.c (Fextents_at): New primitive. [9].
10815         * extents.c (symbol_to_glyph_layout): [9].
10816         Support new primitive `extents-at'.
10817
10818
10819         * extents.c (get_text_property_bytind):
10820         extent_at_bytind has another arg.
10821         [9].
10822
10823         * extents.c (syms_of_extents): New primitive.
10824
10825         * file-coding.c (Fmake_coding_system): [1].
10826         * file-coding.c (subsidiary_coding_system): fix gcc warning
10827         * file-coding.c (syms_of_file_coding): [2].
10828
10829         * fileio.c (Fexpand_file_name):
10830         * fileio.c (Fsysnetunam):
10831         * fileio.c (Ffile_exists_p):
10832         * fileio.c (Ffile_executable_p):
10833         * fileio.c (Fverify_visited_file_modtime):
10834         Clean up GCPROing.
10835
10836         * fileio.c (syms_of_fileio): [2].
10837
10838         * filelock.c (lock_file_1):
10839         * filelock.c (current_lock_owner):
10840         * filelock.c (lock_if_free):
10841         * filelock.c (lock_file):
10842         * filelock.c (unlock_file):
10843         Clean up GCPROing.
10844
10845         * fns.c (concat): Fix gcc warning.
10846
10847         * fns.c (Fmember):
10848         * fns.c (Fold_member):
10849         * fns.c (Fmemq):
10850         * fns.c (Fold_memq):
10851         * fns.c (memq_no_quit):
10852         * fns.c (Fassoc):
10853         * fns.c (Fold_assoc):
10854         * fns.c (Fassq):
10855         * fns.c (Fold_assq):
10856         * fns.c (assq_no_quit):
10857         * fns.c (Frassoc):
10858         * fns.c (Fold_rassoc):
10859         * fns.c (Frassq):
10860         * fns.c (Fold_rassq):
10861         * fns.c (rassq_no_quit):
10862         * fns.c (Fdelete):
10863         * fns.c (Fold_delete):
10864         * fns.c (Fdelq):
10865         * fns.c (Fold_delq):
10866         * fns.c (delq_no_quit):
10867         * fns.c (Fremassoc):
10868         * fns.c (Fremassq):
10869         * fns.c (remassq_no_quit):
10870         * fns.c (Fremrassoc):
10871         * fns.c (Fremrassq):
10872         * fns.c (remrassq_no_quit):
10873         * fns.c (Freverse):
10874         * fns.c (mapcar1):
10875         [1].
10876
10877         * frame-msw.c (mswindows_init_frame_1):
10878         * frame-msw.c (mswindows_delete_frame):
10879         Register popups with dialog code so keyboard traversing works.
10880
10881         * frame-tty.c (tty_raise_frame_no_select): [1].
10882
10883         * frame-x.c:
10884         * frame-x.c (x_set_frame_text_value):
10885         * frame-x.c (x_set_frame_properties):
10886         * frame-x.c (x_create_widgets):
10887         [7].
10888
10889         * frame.c:
10890         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10891
10892         * frame.h (wrap_frame): New.
10893         Macro like wrap_device.
10894
10895         * general.c:
10896         * general.c (SYMBOL):
10897         * general.c (syms_of_general):
10898         Major reorg.  This is now just a wrapper and symbols themselves
10899         are listed in general-slots.h.
10900
10901         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10902         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10903
10904         * glyphs-msw.c (mswindows_native_layout_instantiate):
10905         Add DS_CONTROL so keyboard traversal will work.
10906
10907         * glyphs-widget.c:
10908         * glyphs-widget.c (syms_of_glyphs_widget):
10909         Move some symbols to general-slots.h.
10910
10911         * glyphs-x.c:
10912         * glyphs-x.c (xbm_instantiate_1):
10913         * glyphs-x.c (x_xbm_instantiate):
10914         * glyphs-x.c (x_xface_instantiate):
10915         * glyphs-x.c (autodetect_instantiate):
10916         * glyphs-x.c (cursor_font_instantiate):
10917         * glyphs-x.c (x_update_widget):
10918         * glyphs-x.c (x_widget_instantiate):
10919         * glyphs.c (bitmap_to_lisp_data):
10920         * glyphs.c (pixmap_to_lisp_data):
10921         [7].
10922
10923         * glyphs.c (syms_of_glyphs):
10924         [2].
10925
10926         * gui-x.c:
10927         * gui-x.c (print_widget_value):
10928         * gui-x.c (menu_separator_style_and_to_external):
10929         * gui-x.c (add_accel_and_to_external):
10930         * gui-x.c (button_item_to_widget_value):
10931         * gui-x.c (gui_items_to_widget_values_1):
10932         * gui-x.c (gui_items_to_widget_values):
10933         * gui-x.c (syms_of_gui_x):
10934         * gui-x.c (vars_of_gui_x):
10935         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10936         [9].
10937
10938         * gui-x.h:
10939         Muleize, prototype changes matching gui-x.c.
10940
10941         * gui.c:
10942         * gui.c (separator_string_p):
10943         * gui.c (gui_item_add_keyval_pair):
10944         * gui.c (make_gui_item_from_keywords_internal):
10945         * gui.c (signal_too_long_error):
10946         * gui.c (parse_gui_item_tree_item):
10947         * gui.c (syms_of_gui):
10948         * gui.c (vars_of_gui):
10949         * gui.h:
10950         menu-no-selection-hook moved here (used by MSWin).
10951         Move some symbols to general-slots.h.
10952         [6].
10953         [9].
10954
10955         * insdel.c (get_buffer_pos_char):
10956         * insdel.c (get_buffer_range_char):
10957         Add GC comments.
10958
10959         * keymap.c (keymap_lookup_directly):
10960         * keymap.c (keymap_store):
10961         * keymap.c (ensure_meta_prefix_char_keymapp):
10962         * keymap.c (describe_map):
10963         * keymap.h:
10964         Support new button modifiers.
10965
10966         * lisp-disunion.h (wrap_object):
10967         * lisp-disunion.h (XSETOBJ):
10968         Rename make_obj to wrap_object.
10969
10970         * lisp-union.h:
10971         * lisp-union.h (make_int):
10972         * lisp-union.h (make_char):
10973         Support wrap_object.
10974
10975         * lisp.h:
10976         * lisp.h (LIST_LOOP):
10977         * lisp.h (EXTERNAL_LIST_LOOP):
10978         * lisp.h (LIST_LOOP_2):
10979         * lisp.h (EXTERNAL_LIST_LOOP_1):
10980         * lisp.h (EXTERNAL_LIST_LOOP_2):
10981         * lisp.h (EXTERNAL_LIST_LOOP_3):
10982         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10983         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10984         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10985         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10986         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10987         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10988         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10989         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10990         * lisp.h (struct Lisp_Symbol):
10991         * lisp.h (maybe_continuable_error_with_frob):
10992         Fix up section comments.
10993         Add new types for char to indicate usage.
10994         Delete symbols auto-generated from general-slots.h.
10995         Add prototypes for structured error functions.
10996         Add long comments describing looping macros and change interface
10997         so that lvalues are automatically declared.
10998         Add NO_DECLARE macro in case callers want to declare lvalues
10999         themselves.
11000
11001         * lread.c (read_syntax_error):
11002         * lread.c (continuable_read_syntax_error):
11003         * lread.c (read_structure):
11004         * lread.c (sequence_reader):
11005         * lread.c (read_list_conser):
11006         * lread.c (read_compiled_function):
11007         Rename syntax_error and continuable_syntax_error to avoid clash
11008         with same-named structured error functions.
11009
11010         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11011         * menubar-msw.c (populate_menu_add_item):
11012         * menubar-msw.c (populate_or_checksum_helper):
11013         [5].
11014         [9].
11015
11016         * menubar-x.c:
11017         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11018         Mule-ize whole file.
11019
11020         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11021
11022         * mule-charset.c (Fmake_charset):
11023         * mule-wnnfns.c (Fwnn_set_param):
11024         [1].
11025
11026         * ntproc.c (create_child):
11027         * ntproc.c (Fwin32_set_current_locale):
11028         Add comments portending doom.
11029
11030         * objects-msw.c:
11031         * objects-msw.c (old_font_enum_callback_2):
11032         * objects-msw.c (font_enum_callback_1):
11033         * objects-msw.c (mswindows_enumerate_fonts):
11034         [5].
11035
11036         * objects-x.c:
11037         * objects-x.c (allocate_nearest_color):
11038         * objects-x.c (x_parse_nearest_color):
11039         * objects-x.c (x_initialize_color_instance):
11040         * objects-x.c (x_print_color_instance):
11041         * objects-x.c (x_finalize_color_instance):
11042         * objects-x.c (x_valid_color_name_p):
11043         * objects-x.c (x_initialize_font_instance):
11044         * objects-x.c (x_print_font_instance):
11045         * objects-x.c (valid_x_font_name_p):
11046         * objects-x.c (truename_via_FONT_prop):
11047         * objects-x.c (truename_via_random_props):
11048         * objects-x.c (truename_via_XListFonts):
11049         * objects-x.c (x_font_truename):
11050         * objects-x.c (x_font_instance_truename):
11051         * objects-x.c (x_font_instance_properties):
11052         * objects-x.c (x_list_fonts):
11053         * objects-x.c (x_find_charset_font):
11054         Mule-ize entire file.
11055         [7].
11056
11057         * objects-x.h:
11058         Mule-verify.
11059
11060         * print.c:
11061         * print.c (std_handle_out_external):
11062         * print.c (debug_print_no_newline):
11063         * print.c (syms_of_print):
11064         Output to all debugger kinds in debug-print.
11065         Fix console-output code under MSWin to actually work.
11066
11067         * process-nt.c (send_signal):
11068         * process-nt.c (nt_create_process):
11069         Use newer Unicode macros.
11070
11071         * process-unix.c (unix_create_process):
11072         * process-unix.c (unix_canonicalize_host_name):
11073         * process-unix.c (unix_open_network_stream):
11074         [7].
11075
11076         * scrollbar-x.c:
11077         Mule-verify.
11078
11079         * search.c (syms_of_search):
11080         [2].
11081
11082         * select-msw.c (mswindows_destroy_selection):
11083         Use LIST_LOOP_2.
11084
11085         * select-x.c (symbol_to_x_atom):
11086         [7].
11087
11088         * select.c (syms_of_select):
11089         [2].
11090
11091         * sound.c (Fplay_sound_file):
11092         [7].
11093
11094         * specifier.c:
11095         * specifier.c (decode_specifier_type):
11096         * specifier.c (Fvalid_specifier_locale_type_p):
11097         * specifier.c (check_valid_locale_or_locale_type):
11098         * specifier.c (decode_locale):
11099         * specifier.c (decode_locale_type):
11100         * specifier.c (decode_locale_list):
11101         * specifier.c (check_valid_domain):
11102         * specifier.c (decode_specifier_tag_set):
11103         * specifier.c (Fcanonicalize_tag_set):
11104         * specifier.c (Fdefine_specifier_tag):
11105         * specifier.c (Fspecifier_tag_predicate):
11106         * specifier.c (check_valid_inst_list):
11107         * specifier.c (check_valid_spec_list):
11108         * specifier.c (decode_how_to_add_specification):
11109         * specifier.c (check_modifiable_specifier):
11110         * specifier.c (specifier_add_spec):
11111         * specifier.c (boolean_validate):
11112         * specifier.c (display_table_validate):
11113         [9].
11114
11115         * specifier.c (syms_of_specifier):
11116         Move some symbols to general-slots.h.
11117         [2].
11118
11119         * symbols.c:
11120         * symbols.c (Fmapatoms):
11121         * symbols.c (Fapropos_internal):
11122         Add GCPROs.
11123
11124         * symbols.c (set_default_buffer_slot_variable):
11125         * symbols.c (set_default_console_slot_variable):
11126         [1].
11127
11128         * symbols.c (defsymbol_massage_name_1):
11129         * symbols.c (defkeyword_massage_name):
11130         * symbols.c (deferror_1):
11131         * symbols.c (deferror):
11132         * symbols.c (deferror_massage_name_and_message):
11133         * symeval.h:
11134         * symeval.h (DEFSYMBOL):
11135         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11136
11137         * symbols.c (syms_of_symbols):
11138         [2].
11139
11140         * symsinit.h:
11141         * symsinit.h (init_win32): New.
11142         Also new is syms_of_dialog_mswindows.
11143
11144         * syswindows.h:
11145         Add new Unicode macros, missing Cygwin wide-char functions,
11146         convenience conversion macros for Qmswindows_tstr, macros for
11147         encapsulating required MSWin <-> Cygwin filename conversions,
11148         prototype for dynamically-extracted (not in NT 3.51) functions.
11149
11150         * toolbar-x.c:
11151         Mule-verify.
11152
11153         * tooltalk.c (Fadd_tooltalk_message_arg):
11154         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11155         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11156         [7].
11157
11158         * tooltalk.c (syms_of_tooltalk):
11159         [2].
11160
11161         * unexnt.c:
11162         * unexnt.c (unexec):
11163         Fix up headers, declaration of unexec() to be more standard.
11164
11165 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11166
11167         * offix.h: Revert change to guard macros - they're used in offix.c!
11168
11169 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11170
11171         * lisp.h: Defsubred Fdelete.
11172
11173         * console-msw.h:  (msprinter_default_printer): Added.
11174
11175         * console-msw.c (msprinter_canonicalize_console_connection):
11176         (msprinter_canonicalize_device_connection): Added.
11177
11178         * device-msw.c (msprinter_default_printer):
11179         (Fmswingows_get_default_printer):
11180         (signal_enum_priner_error):
11181         (Fmswingows_printer_list): Added.
11182
11183 2000-07-19  Martin Buchholz <martin@xemacs.org>
11184
11185         * XEmacs 21.2.35 is released.
11186
11187 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11188
11189         * select-x.c (x_handle_selection_request):
11190         Text selected in xemacs and pasted into xterm failed to appear.
11191         Spelling fixes and cosmetic changes.
11192
11193 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11194
11195         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11196         XEmacs frame (fix for doubling chars in dialog boxes).
11197
11198 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11199
11200         * select.c (select_convert_in, select_convert_out):
11201         Don't call intern() every time.
11202
11203         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11204         * select.c (vars_of_select): Initialise them.
11205
11206 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11207
11208         * select.c (selection-coercible-types): New.
11209
11210         * select.c (own-selection-internal):
11211         * select.c (get-selection-internal):
11212         MULE bug fix - these should default to COMPOUND_TEXT and not
11213         STRING for MULE. I think.
11214
11215         * select.c (select_convert_out): Use selection-coercible-types
11216         to find types that we can attempt to perform coercions on.
11217
11218 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11219
11220         * mule-wnnfns.c:
11221         * mule-canna.c:
11222         Add coding: cookie to identify encoding.
11223
11224         * mule-canna.c (CANNA_mode_keys): make static.
11225         Use proper prototypes, even for functions of no arguments.
11226         Remove external prototype for Fding().
11227
11228         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11229
11230         * select.c (syms_of_select): Add missing DEFSUBR.
11231
11232 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11233
11234         * select.c (get_selection_internal, own_selection_internal):
11235         Make the type default to STRING, rather than placing a nil type
11236         into Vselection_alist.
11237
11238 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11239
11240         * gpmevent.c (tty_selection_exists_p):
11241         * gpmevent.c (tty_own_selection):
11242         Updated parameter lists.
11243
11244 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11245
11246         * select.h (selection-alist): Removed declaration.
11247
11248         * select.h (get_local_selection):
11249         * select.c (get_local_selection):
11250         Made static.
11251
11252         * select.h (convert_selection): Removed declaration.
11253         * select.c (convert_selection): Removed.
11254         This function belongs in Lisp.
11255
11256         * select.h (select_convert_in): Declare.
11257         * select.h (select_convert_out): Declare.
11258         * select.c (select_convert_in): New.
11259         * select.c (select_convert_out): New.
11260         New conversion functions for other files to call.
11261
11262         * select.h (select_notify_buffer_kill): Declare.
11263         * select.c (select_notify_buffer_kill): New.
11264         New functions that get called from kill-buffer.
11265
11266         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11267         X-specific lisp code.
11268
11269         * select.h: Declare some of the lisp-visible functions for
11270         external use.
11271
11272         * select.c (clean_local_selection_data): Removed. This was
11273         a disgusting function, and previously should have been in
11274         select-x.c in any case. The functionality is now provided
11275         in select-convert-from-integer (select.el).
11276
11277         * select.c (available-selection-types): Fixed stupidity where
11278         INTEGER and ATOM got added twice. Also add STRING when we see an
11279         extent.
11280
11281         * select.c (get-selection-internal): Removed symbol stripping. No
11282         longer causes conversion when data comes from the internal cache.
11283
11284         * select.c (syms_of_select): Added new functions.
11285
11286         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11287         error checking - previously this called abort!
11288
11289         * select-x.c (x_own_selection): Changed comment.
11290
11291         * select-x.c (x_handle_selection_request): Use select_convert_out.
11292         Don't mess with selection-alist; it's an internal variable of select.c.
11293
11294         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11295
11296         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11297         rather than messing with selection-alist.
11298
11299         * select-msw.c (mswindows_get_foreign_selection):
11300         Use TO_INTERNAL_FORMAT rather than hacking.
11301
11302 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11303
11304         * process-unix.c (unix_open_multicast_group):
11305         (unix_open_multicast_group): Remove useless casts.
11306
11307 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11308
11309         * sound.c (Fplay_sound): Fix `unused variable' warning.
11310
11311         * emacs.c (main): Use correct type for _environ on SCO5.
11312
11313 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11314
11315         * console.h (own_selection_method):
11316         * console.h (selection_exists_p_method):
11317         * console.h (available_selection_types_method): New.
11318         * console.h (register_selection_data_type_method): New.
11319         * console.h (selection_data_type_name): New.
11320
11321         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11322         function & alist to track GlobalAlloc()'d handles that need
11323         releasing when the clipboard data gets replaced or emptied.
11324
11325         * event-msw.c (mswindows_wnd_proc): Call it.
11326
11327         * lisp.h, general.c (Qappend): New symbol representing a
11328         `how-to-add' mode.
11329
11330         * select.c (own-selection-internal):
11331         * select.c (selection-exists-p):
11332         * select.c (available-selection-types): New.
11333         * select.c (register-selection-data-type): New.
11334         * select.c (selection-data-type-name): New.  New functions to deal
11335         with device-specific selection data formats.
11336         * select.c (selection-converter-out-alist): Renamed.
11337         * select.c (selection-converter-in-alist): New.
11338         * select.c (selection-appender-alist): New.  Added new alists.
11339         * select.c (syms_of_select, vars_of_select): Added new symbols &
11340         variables.
11341         * select.c (get_local_selection): Split.
11342         * select.c: Removed spurious type checking - selections may now be
11343         of any type, not just strings.
11344         * select.c (own-selection-internal):
11345
11346         * select.h, select.c (convert_selection): New. Created
11347         convert_selection() function based on get_local_selection().
11348         * select.h, select.c (QCF_*): New symbols representing mswindows
11349         clipboard formats.
11350         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11351         symbols representing `how-to-add' modes.
11352
11353         * select-msw.c (x_sym_p): New.
11354         * select-msw.c (symbol_to_ms_cf): New.
11355         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11356         symbols & clipboard formats. Can also handle string names.
11357         * select-msw.c (mswindows_own_selection):
11358         * select-msw.c (mswindows_selection_exists_p):
11359         Added `data-type' parameter. Use it.
11360         * select-msw.c (mswindows_available_selection_types): New.
11361         * select-msw.c (mswindows_register_selection_data_type): New.
11362         * select-msw.c (mswindows_selection_data_type_name): New.
11363         * select-msw.c (mswindows_own_selection):
11364         * select-msw.c (mswindows_get_foreign_selection):
11365         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11366         * select-msw.c (console_create_select_mswindows): Added new methods.
11367         * select-msw.c (mswindows_destroy_selection): New.
11368         * select-msw.c (Vhandle_alist): New list.
11369         * select-msw.c (mswindows_own_selection):
11370
11371         * select-x.c (x_own_selection):
11372         * select-x.c (x_selection_exists_p):
11373         * select-x.c: Added some comments about maybe using new
11374         functionality.
11375         * select-x.c (x_own_selection):
11376
11377         * specifier.c: Remove definition of Qappend (now in general.c)
11378         * specifier.c (syms_of_specifier): Remove Qappend.
11379
11380 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11381
11382         * config.h.in: Add socklen_t.
11383
11384         * s/decosf4-0.h: No special compiler flags needed or desired.
11385         In particular, undefine _BSD for DEC OSF 4.0.
11386
11387 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11388
11389         * redisplay-msw.c (msprinter_frame_output_end): Added.
11390         (console_type_create_redisplay_mswindows): Referred the above.
11391
11392         * frame.c (setup_frame_without_minibuffer): Do not create a
11393         default minibuffer frame on a printer device.
11394
11395         * frame-msw.c (apply_dc_geometry): Added.
11396         (msprinter_start_page):
11397         (msprinter_init_frame_3):
11398         (msprinter_eject_page): Use it.
11399
11400         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11401         and removed residual duplex and orientation properties.
11402
11403 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11404
11405         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11406
11407         * unexalpha.c: Remove system prototypes from C sources!
11408
11409 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11410
11411         * eval.c: Remove references to M-x edit-options in DEFUNs for
11412         `defvar' and `defconst'.
11413
11414 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11415
11416         * config.h.in: Remove SMART_INCLUDE hackery.
11417
11418         PostgreSQL hacking:
11419         * config.h.in: Don't use SMART_INCLUDE.
11420
11421         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11422         * inline.c: Simply #include "postgresql.h"
11423         * postgresql.c:
11424         - Don't use SMART_INCLUDE
11425         - Use simply "const".
11426         - Use standard doc string conventions.
11427         - Use correct type for result of PQstatus.
11428
11429 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11430
11431         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11432
11433         C++ compilation changes.
11434         * config.h.in (EXTERN_C): Define.
11435         * config.h.in (not): This is also a C++ keyword.
11436         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11437         * cm.c: Use EXTERN_C.
11438         * redisplay-tty.c: Use EXTERN_C.
11439         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11440
11441 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11442
11443         * general.c: Remove duplicate definition for Qfunction.
11444
11445 2000-07-08  Ben Wing  <ben@xemacs.org>
11446
11447         * device-msw.c (msprinter_init_device):
11448         * device-msw.c (sync_printer_with_devmode):
11449         * device-msw.c (handle_devmode_changes):
11450         * device-msw.c (print_dialog_worker):
11451         * device-msw.c (Fmsprinter_apply_settings):
11452         * device-msw.c (hash_devmode):
11453         * device-msw.c (Fmsprinter_settings_despecialize):
11454         use Qmswindows_tstr, not Qctext.
11455
11456         * vm-limit.c (check_memory_limits):
11457         avoid infinite loop printing warning messages.
11458
11459 2000-07-05  Craig Lanning  <lanning@scra.org>
11460
11461         * Makefile.in.in: Add support for including the Windows resources
11462         when building with the cygwin and mingw targets.
11463
11464         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11465         not set or not correct.
11466         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11467         (init_initial_directory): Don't try to use $PWD on the
11468         WIN32_NATIVE target.
11469
11470         * s\cygwin32.h:
11471         [[Add -mwindows to eliminate console window.]] not required --ben
11472         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11473         (MAIL_USE_POP): removed; now handled by configure.
11474
11475         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11476         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11477         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11478         (MAIL_USE_POP): removed; now handled by configure.
11479         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11480         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11481         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11482         constant string.
11483         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11484         up from <winsock.h> via systime.h.
11485         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11486         (getpagesize): from Dan Holmsand, added.
11487         Added #endif which was left dangling by Ben's mega patch; added
11488         comment to help prevent this in the future.
11489
11490         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11491
11492 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11493
11494         * console-msw.h (struct mswindows_device): Removed unnecessary
11495         cached device geometry values.
11496         Added update_tick and an accessor macro.
11497         (Lisp_Devmode): Added lrecord declaration.
11498         (struct msprinter_device): Contain devmode as a Lisp object.
11499         Added mswindows_get_selected_frame_hwnd();
11500
11501         * console.h (struct console_methods): Indentation nitpicking.
11502
11503         * device-msw.c (mswindows_init_device): Do not initialize geometry
11504         cache. Initialize update tick.
11505         (mswindows_device_system_metrics): Ask the device for its geometry.
11506         (global_free_2_maybe):
11507         (devmode_to_hglobal):
11508         (handle_printer_changes):
11509         (ensure_not_printing):
11510         (print_dialog_worker):
11511         (Fmsprinter_print_setup_dialog):
11512         (Fmsprinter_print_dialog):
11513         (plist_get_margin):
11514         (plist_set_margin):
11515         (Fmsprinter_page_setup_dialog): Added functions.
11516         (sync_printer_with_devmode):
11517         (handle_devmode_changes):
11518         (Fmsprinter_get_settings):
11519         (Fmsprinter_select_settings):
11520         (Fmsprinter_apply_settings):
11521         (allocate_devmode):
11522         (Fmsprinter_settings_copy):
11523         (Fmsprinter_settings_despecialize):
11524         (print_devmode):
11525         (finalize_devmode):
11526         (equal_devmode):
11527         (hash_devmode): Added functions
11528         (syms_of_device_mswindows): Init devmode lrecord class.
11529
11530         * device.h: Added an exfun for find-device.
11531
11532         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11533         geometry; although, recreate the device compatible DC.
11534
11535         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11536         (msprinter_init_frame_3):
11537         (msprinter_frame_property):
11538         (msprinter_internal_frame_property_p):
11539         (msprinter_frame_properties):
11540         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11541         print job properties (will move to device settings).
11542
11543         * lisp.h: Added symbols.
11544
11545         * general.c (syms_of_general): Declared them.
11546
11547         * hash.c (string_hash): Added.
11548
11549         * lrecord.h (lrecord_type): Added devmode lrecord type.
11550
11551 2000-07-02  Mike Sperber <mike@xemacs.org>
11552
11553         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11554         FreeBSD 4.0.
11555
11556 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11557
11558         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11559         integer.
11560
11561 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11562
11563         * data.c (Fstring_to_number): Don't recognize floating point if
11564         base is not 10.
11565
11566 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11567
11568         * glyphs-widget.c (tab_control_query_geometry):
11569         (widget_query_geometry):
11570         (button_query_geometry):
11571         * glyphs.c (text_query_geometry):
11572         Enforce type correctness.
11573
11574 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11575
11576         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11577         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11578
11579 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11580
11581         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11582         conflicts with gcc's fixincluded version of FOO.h.
11583
11584         * glyphs.h (image_instance_geometry): Remove trailing `,'
11585
11586 2000-06-08  Mike Alexander  <mta@arbortext.com>
11587
11588         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11589         (shove_thread): Don't write the same output twice
11590         (make_ntpipe_output_stream): Increase priority of shove thread
11591         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11592         chance to run
11593         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11594         it.
11595
11596 2000-06-12  Ben Wing  <ben@xemacs.org>
11597
11598         * s\mingw32.h (sigset):
11599         * s\windowsnt.h (sigset):
11600         rename msw_ to mswindows_ for consistency with general convention.
11601
11602 2000-06-12  Ben Wing  <ben@xemacs.org>
11603
11604         * console-msw.c:
11605         * console-msw.c (mswindows_get_console_hwnd):
11606         * console-msw.c (mswindows_ensure_console_allocated):
11607         * console-msw.c (mswindows_hide_console):
11608         * console-msw.c (mswindows_show_console):
11609         * console-msw.c (mswindows_ensure_console_buffered):
11610         * console-msw.c (mswindows_output_console_string):
11611         * console-msw.c (mswindows_windows9x_p):
11612         * console-msw.h:
11613         * device-msw.c (mswindows_get_workspace_coords):
11614         * device-msw.c (mswindows_device_system_metrics):
11615         * dialog-msw.c (mswindows_popup_dialog_box):
11616         * event-msw.c (mswindows_wnd_proc):
11617         * frame-msw.c (mswindows_size_frame_internal):
11618         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11619         * menubar-msw.c (displayable_menu_item):
11620         * menubar-msw.c (mswindows_char_is_accelerator):
11621         * nt.c:
11622         * nt.c (mswindows_sigset):
11623         * nt.c (mswindows_sigrelse):
11624         * nt.c (mswindows_sigpause):
11625         * nt.c (mswindows_raise):
11626         * nt.c (timer_proc):
11627         * ntproc.c:
11628         * ntproc.c (find_child_console):
11629         * ntproc.c (sys_kill):
11630         * print.c:
11631         * print.c (std_handle_out_external):
11632         * process-nt.c (find_child_console):
11633         * process-nt.c (send_signal_the_95_way):
11634         * process-nt.c (ensure_console_window_exists):
11635         * process-nt.c (nt_create_process):
11636         * syssignal.h:
11637         rename msw_ to mswindows_ for consistency with general convention.
11638
11639         * emacs.c:
11640         * dumper.c:
11641         include nt.h, not syswindows.h.
11642
11643         * nt.c (mswindows_fstat):
11644         * nt.c (mswindows_stat):
11645         prefix mswindows_ instead of attempting to directly override the
11646         library functions.  fix declarations.
11647
11648         * nt.h:
11649         include syswindows.h.  move some sysdep.h stuff here.
11650
11651         * ntheap.h:
11652         include syswindows.h, not <windows.h>.
11653
11654         * ntplay.c:
11655         clean up headers.
11656
11657         * sysdep.c:
11658         clean up headers.
11659
11660         * sysdep.c (sys_fstat):
11661         * sysdep.c (sys_stat):
11662         call mswindows versions when appropriate.
11663
11664         * sysdep.h:
11665         move mswin decls to nt.h.
11666
11667         * syswindows.h:
11668         add long comment describing appropriate use of the various windows
11669         headers.
11670
11671 2000-06-11  Ben Wing  <ben@xemacs.org>
11672
11673         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11674
11675 2000-06-10  Ben Wing  <ben@xemacs.org>
11676
11677         * Makefile.in.in (release):
11678         Correction to make sure xemacs.exe always dumped when correct.
11679
11680         * alloca.c:
11681         * balloon_help.c:
11682         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11683
11684         * buffer.c (set_buffer_internal):
11685         [[[[2]]]]: Remove HAVE_FEP code.
11686
11687         * buffer.c (init_initial_directory):
11688         [3].
11689
11690         * bytecode.c:
11691         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11692         individual files.
11693
11694         * callproc.c:
11695         * callproc.c (call_process_cleanup):
11696         * callproc.c (Fold_call_process_internal):
11697         * callproc.c (child_setup):
11698         * callproc.c (getenv_internal):
11699         * callproc.c (init_callproc):
11700         * callproc.c (vars_of_callproc):
11701         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11702         __CYGWIN32__ -> CYGWIN.
11703         DOS_NT -> WIN32_NATIVE.
11704         Remove MSDOS support/references, converting to WIN32_NATIVE
11705           where correct.
11706         __MINGW32__ -> MINGW.
11707         Fix windows.h includes.
11708         Remove bogus HAVE_NTGUI.
11709
11710         * config.h.in:
11711         [2].
11712
11713         * console-msw.c:
11714         mswindows_message_outputted added for use in allowing startup
11715         errors on the console to be seen.
11716
11717         * console-msw.c (msw_ensure_console_allocated):
11718         * console-msw.c (msw_output_console_string):
11719         * console-msw.c (DHEADER):
11720         * console-msw.c (DOPAQUE_DATA):
11721         * console-msw.c (DEVENT):
11722         * console-msw.c (DCONS):
11723         * console-msw.c (DCONSCDR):
11724         * console-msw.c (DSTRING):
11725         * console-msw.c (DVECTOR):
11726         * console-msw.c (DSYMBOL):
11727         * console-msw.c (DSYMNAME):
11728         Fix warnings.
11729
11730         * console-stream.c (stream_init_console):
11731         Fix text/binary problems.
11732
11733         * device-msw.c:
11734         * device-msw.c (mswindows_finish_init_device):
11735         * device-msw.c (mswindows_delete_device):
11736         [1].
11737
11738         * device.c (handle_asynch_device_change):
11739         [3].
11740
11741         * dgif_lib.c:
11742         * dgif_lib.c (DGifOpenFileName):
11743         * dgif_lib.c (DGifOpenFileHandle):
11744         * dgif_lib.c (DGifGetLine):
11745         * dgif_lib.c (DGifGetPixel):
11746         Added config.h/lisp.h, fix up includes.
11747         [1].
11748
11749         * dired-msw.c:
11750         [4].
11751
11752         * dired.c:
11753         * dired.c (file_name_completion):
11754         * dired.c (Ffile_attributes):
11755         * dired.c (syms_of_dired):
11756         [1].
11757
11758         * dumper.c:
11759         * dumper.c (pdump_file_unmap):
11760         * dumper.c (pdump_load):
11761         [1].
11762
11763         * editfns.c:
11764         * editfns.c (Ftemp_directory):
11765         * editfns.c (user_login_name):
11766         * editfns.c (Fuser_real_login_name):
11767         * editfns.c (get_home_directory):
11768         [1].
11769
11770         * elhash.c (finish_marking_weak_hash_tables):
11771         [[[[5]]]]: Fix GCC warnings.
11772
11773         * emacs.c:
11774         * emacs.c (mswindows_handle_hardware_exceptions):
11775         * emacs.c (make_arg_list_1):
11776         * emacs.c (main_1):
11777         * emacs.c (Fkill_emacs):
11778         * emacs.c (Fdump_emacs):
11779         [1].
11780         Fix problems with nested crashes, add long comment.
11781
11782         * event-Xt.c (init_event_Xt_late):
11783         [1].
11784
11785         * event-msw.c:
11786         * event-msw.c (mswindows_dde_callback):
11787         * event-msw.c (mswindows_handle_sticky_modifiers):
11788         * event-msw.c (mswindows_wnd_proc):
11789         [1].
11790         [5].
11791
11792         * events.c (character_to_event):
11793         [1].
11794
11795         * fileio.c:
11796         * fileio.c (Ffile_name_directory):
11797         * fileio.c (Ffile_name_nondirectory):
11798         * fileio.c (directory_file_name):
11799         * fileio.c (Fexpand_file_name):
11800         * fileio.c (Fsubstitute_in_file_name):
11801         * fileio.c (Ffile_name_absolute_p):
11802         * fileio.c (check_executable):
11803         * fileio.c (Ffile_readable_p):
11804         * fileio.c (Ffile_accessible_directory_p):
11805         * fileio.c (Ffile_modes):
11806         * fileio.c (Funix_sync):
11807         * fileio.c (vars_of_fileio):
11808         [1]. [4].
11809
11810         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11811
11812         Expand getdefdir defn.
11813         Fix bogus rename() comment.
11814
11815         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11816         to use standard XEmacs include files, e.g. sysfile.h, rather
11817         than system-specific includes.
11818
11819         * fns.c:
11820         * fns.c (Fsubseq):
11821         [5]. [6].
11822
11823         * frame.c (vars_of_frame):
11824         [1].
11825
11826         * getloadavg.c:
11827         * getloadavg.c (getloadavg):
11828         [1]. [6].
11829         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11830         (We don't use it elsewhere in the code; just add a comment.)
11831
11832         * gif_io.c:
11833         [6].
11834         Add config.h.
11835
11836         * glyphs-msw.c:
11837         * glyphs-msw.c (mswindows_resource_instantiate):
11838         [1].
11839
11840         * glyphs-x.c (x_native_layout_instantiate):
11841         [5].
11842
11843         * gui-msw.c (Fmswindows_shell_execute):
11844         [1].
11845
11846         * insdel.c:
11847         [4].
11848
11849         * lisp.h:
11850         [4]. [5].
11851
11852         * lread.c (locate_file_in_directory_mapper):
11853         [1].
11854
11855         * lstream.c:
11856         [4].
11857
11858         * mem-limits.h:
11859         * mem-limits.h (get_lim_data):
11860         [1].
11861
11862         * menubar-msw.c:
11863         [4].
11864
11865         * ndir.h:
11866         [1].
11867
11868         * nt.c:
11869         * nt.c (getwd):
11870         * nt.c (closedir):
11871         * nt.c (rva_to_section):
11872         * nt.c (mswindows_executable_type):
11873         [1]. [6].
11874         Fix closedir() defn.
11875
11876         * nt.h:
11877         [[[[8]]]]: *_OK defs moved to sysfile.h.
11878
11879         * ntproc.c:
11880         [6]. [7].
11881
11882         * objects-x.c:
11883         [4].
11884
11885         * print.c:
11886         * print.c (std_handle_out_external):
11887         [1]. [4].
11888
11889         * process-nt.c:
11890         * process-nt.c (nt_create_process):
11891         [6].
11892         try to fix process quoting somewhat.
11893
11894         * process-unix.c (unix_create_process):
11895         [1].
11896
11897         * process.c:
11898         * process.c (vars_of_process):
11899         Add Vnull_device.
11900
11901         * process.h:
11902         [1].
11903
11904         * realpath.c:
11905         * realpath.c (xrealpath):
11906         [1].
11907
11908         * redisplay-tty.c (init_tty_for_redisplay):
11909         [3].
11910
11911         * redisplay.c:
11912         [4]. [6].
11913
11914         * scrollbar-msw.c:
11915         [4].
11916
11917         * sheap.c:
11918         * sheap.c (more_static_core):
11919         * sheap.c (report_sheap_usage):
11920         [5]. [6].
11921
11922         * signal.c:
11923         * signal.c (alarm_signal):
11924         [1]. [6].
11925
11926         * sound.c:
11927         [6].
11928
11929         * strftime.c:
11930         * strftime.c (zone_name):
11931         [1]. [5].
11932
11933         * symsinit.h (init_sunpro):
11934         [1].
11935
11936         * syscommctrl.h:
11937         commctrl.h not in Cygwin b20.1.
11938
11939         * sysdep.c:
11940         * sysdep.c (endif):
11941         * sysdep.c (sys_subshell):
11942         * sysdep.c (init_baud_rate):
11943         * sysdep.c (emacs_get_tty):
11944         * sysdep.c (emacs_set_tty):
11945         * sysdep.c (tty_init_sys_modes_on_device):
11946         * sysdep.c (init_system_name):
11947         * sysdep.c (sys_open):
11948         * sysdep.c (interruptible_open):
11949         * sysdep.c (sys_fopen):
11950         * sysdep.c (sys_mkdir):
11951         * sysdep.c (sys_rename):
11952         * sysdep.c (get_process_times_1):
11953         [1]. [6].
11954
11955         * sysdep.h:
11956         [1].
11957
11958         * sysdir.h:
11959         * sysdir.h (DIRENTRY_NONEMPTY):
11960         [1]. [6].
11961
11962         * sysdll.c (dll_init):
11963         * sysdll.h:
11964         [1].
11965
11966         * sysfile.h:
11967         [1]. [6]. [8].
11968         added text/binary defs.
11969
11970         * sysfloat.h:
11971         [1].
11972
11973         * sysproc.h:
11974         * sysproc.h (EDESTADDRREQ):
11975         * sysproc.h (poll_fds_for_input):
11976         [1]. [6].
11977
11978         * syspwd.h:
11979         [6].
11980
11981         * syssignal.h:
11982         [1].
11983
11984         * systime.h:
11985         [1]. [6].
11986
11987         * systty.h:
11988         [1].
11989
11990         * syswindows.h:
11991         [1].
11992         Always define WIN32_LEAN_AND_MEAN.
11993
11994         * unexcw.c (unexec):
11995         [5].
11996
11997         * unexec.c:
11998         * unexec.c (copy_text_and_data):
11999         * unexec.c (adjust_lnnoptrs):
12000         [1].
12001
12002         * unexnt.c:
12003         * unexnt.c (_start):
12004         [1].
12005
12006 2000-06-07  Ben Wing  <ben@xemacs.org>
12007
12008         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12009         was used only as a model.  We've long since extracted any useful
12010         logic or code out of this. (I just did an exhaustive search.)
12011
12012         * s\msdos.h: Removed.
12013
12014         * s\windows95.h: Removed.
12015
12016 2000-06-10  Ben Wing  <ben@xemacs.org>
12017
12018         * s\cygwin32.h:
12019         [1]. [5].
12020         Don't use extern with fun defs.
12021
12022         * s\mingw32.h:
12023         [1]. [7].
12024         Remove nt\inc include.
12025         Remove getdisk, getdefdir. (The former is unused, the latter
12026         expanded in fileio.h.)
12027
12028         * s\windowsnt.h:
12029         * s\windowsnt.h (WIN32_NATIVE):
12030         * s\windowsnt.h (HAVE_STRCASECMP):
12031         [1]. [7].
12032         Add long comment about preprocessor changes.
12033         Remove getdisk, getdefdir. (The former is unused, the latter
12034         expanded in fileio.h.)
12035
12036 2000-06-10  Ben Wing  <ben@xemacs.org>
12037
12038         * m\arm.h:
12039         * m\delta.h:
12040         * m\intel386.h:
12041         * m\sequent.h:
12042         * m\template.h:
12043         * m\windowsnt.h:
12044         [1].
12045         Remove bogus/unused NO_SOCK_SIGIO.
12046
12047 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12048
12049         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12050         not an Emchar.
12051
12052 2000-06-04  Mike Sperber <mike@xemacs.org>
12053
12054         * casetab.c (set_case_table): For `set-standard-case-table',
12055         actually deposit the new case tables where the rest of XEmacs can
12056         see them.
12057
12058 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12059
12060         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12061
12062 2000-06-05  Ben Wing  <ben@xemacs.org>
12063
12064         * callproc.c (child_setup): Don't do close_load_descs() under
12065         MS Windows.  Put in a comment explaining why.
12066
12067 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12068
12069         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12070         Toolkit shell" which breaks `kill-compilation' on Windows NT
12071         native, retaining STDERR handling improvements.
12072
12073 2000-06-01  Andreas Jaeger  <aj@suse.de>
12074
12075         * s/s390.h: Support for S390, based on a patch by Martin
12076         Schwidefsky <schwidefsky@de.ibm.com>.
12077
12078 2000-05-30  Andy Piper  <andy@xemacs.org>
12079
12080         * window.c (allocate_window):
12081         (make_dummy_parent):
12082         (Fset_window_configuration): use new hashtable type.
12083
12084         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12085         (struct image_instantiator_methods):
12086         (struct Lisp_Image_Instance): make instance geometry signed.
12087
12088         * glyphs.c (instantiate_image_instantiator):
12089         (image_instance_query_geometry):
12090         (image_instance_layout):
12091         (image_instance_layout):
12092         (query_string_geometry):
12093         (text_query_geometry):
12094         (image_instantiate):
12095         (image_instantiate):
12096         (cache_subwindow_instance_in_frame_maybe):
12097         (subwindow_query_geometry): make instance geometry signed.
12098
12099         * glyphs-widget.c (widget_query_geometry):
12100         (widget_layout):
12101         (button_query_geometry):
12102         (tree_view_query_geometry):
12103         (tab_control_query_geometry):
12104         (layout_query_geometry):
12105         (layout_layout):
12106         (native_layout_layout): make instance geometry signed.
12107
12108 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12109
12110         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12111         constant.
12112
12113         * general.c (syms_of_general): Add Qfull_assoc symbol.
12114
12115         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12116         correctly.
12117         (decode_weak_list_type): Decode full-assoc type.
12118         (encode_weak_list_type): Encode full-assoc type.
12119         (Fmake_weak_list): Update doc string.
12120
12121 2000-05-30  Andy Piper  <andy@xemacs.org>
12122
12123         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12124
12125         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12126         (decode_hash_table_weakness): ditto.
12127         (Fhash_table_weakness): ditto.
12128         (Fhash_table_type): ditto.
12129         (finish_marking_weak_hash_tables): ditto.
12130         (hash_table_weakness_validate): ditto.
12131         (syms_of_elhash): ditto.
12132
12133 2000-05-28  Martin Buchholz <martin@xemacs.org>
12134
12135         * XEmacs 21.2.34 is released.
12136
12137 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12138
12139         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12140         start cache.
12141         (updating_line_start_cache): Gone.
12142         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12143         generic code to force a minimum of 1 line laid out in the
12144         CMOTION_DISP case.
12145
12146 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12147
12148         * glyphs.c (instantiate_image_instantiator): Check for initialized
12149         height & width no longer special cases IMAGE_NOTHING.
12150         (nothing_instantiate): Set height and width of instance.
12151
12152 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12153
12154         * unexelf.c (unexec): Search for ".data" section.
12155         Initialize new_data2_offset from old_data_index.
12156         Remove redundant check for ElfW.
12157
12158 2000-05-23  Andy Piper  <andy@xemacs.org>
12159
12160         * glyphs.c (get_image_instantiator_governing_domain): allow more
12161         specific domains as the governing domain rather than expecting an
12162         exact match. This fixes problems with layouts.
12163
12164 2000-05-22  Andy Piper  <andy@xemacs.org>
12165
12166         * redisplay-output.c (compare_runes): check for non-images
12167
12168         * glyphs.c (set_glyph_dirty_p): ditto.
12169         (update_glyph_cachel_data): ditto.
12170
12171         * glyphs-widget.c (layout_post_instantiate): ditto.
12172         (layout_post_instantiate): ditto.
12173
12174         * event-msw.c (mswindows_wnd_proc): warning removal.
12175
12176 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12177
12178         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12179
12180         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12181
12182         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12183
12184         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12185         (mswindows_executable_type): mingw32 now has enough headers for
12186         this to work.
12187
12188 2000-05-20  Andy Piper  <andy@xemacs.org>
12189
12190         * console-msw.c (mswindows_output_last_error): ; -> ,
12191
12192 2000-05-12  Andy Piper  <andy@xemacs.org>
12193
12194         * console-msw.c (FROB): compare ints with ints.
12195
12196 2000-05-11  Andy Piper  <andy@xemacs.org>
12197
12198         * glyphs-x.c (x_finalize_image_instance): make minimal build
12199         happy.
12200
12201 2000-05-20  Ben Wing  <ben@xemacs.org>
12202
12203         * event-Xt.c:
12204         * event-Xt.c (vars_of_event_Xt):
12205         move modifier-keys-are-sticky to event-stream.c.
12206
12207         * event-msw.c:
12208         * event-msw.c (mswindows_enqueue_mouse_button_event):
12209         * event-msw.c (key_needs_default_processing_p):
12210         * event-msw.c (XEMSW_LCONTROL):
12211         * event-msw.c (mswindows_handle_sticky_modifiers):
12212         * event-msw.c (FROB):
12213         * event-msw.c (clear_sticky_modifiers):
12214         * event-msw.c (output_modifier_keyboard_state):
12215         * event-msw.c (output_alt_keyboard_state):
12216         * event-msw.c (mswindows_wnd_proc):
12217         * event-msw.c (mswindows_modifier_state):
12218         * event-msw.c (emacs_mswindows_handle_magic_event):
12219         implement sticky modifiers.
12220
12221         * event-stream.c:
12222         * event-stream.c (vars_of_event_stream):
12223         move modifier-keys-are-sticky here.
12224
12225         * lisp.h:
12226         add CHECK_FUNCTION.
12227
12228         * rangetab.c:
12229         implement map-range-table.
12230
12231
12232 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12233
12234         * redisplay-tty.c (reset_tty_modes):
12235         (tty_redisplay_shutdown): Adjust argument type to
12236         tty_frame_output_end.
12237
12238 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12239
12240         * eval.c (Fbacktrace): Don't output a line with only right
12241         parenthesis.
12242
12243 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12244
12245         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12246         (Fpq_reset_poll): Ditto.
12247
12248 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12249
12250         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12251
12252 2000-05-16  Ben Wing  <ben@xemacs.org>
12253
12254         * buffer.c:
12255         * buffer.c (dfc_convert_to/from_internal_format):
12256         * buffer.c (reinit_vars_of_buffer):
12257         Fix conversion functions to allow reentrancy.
12258
12259         * console-msw.c:
12260         * console-msw.c (mswindows_output_last_error):
12261         New fun, generally useful -- output a human-readable
12262         version of GetLastError() on the console.
12263
12264         * console-msw.h:
12265         * console-msw.h (struct mswindows_frame):
12266         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12267
12268         * console-stream.c (stream_output_begin):
12269         * console-stream.c (stream_output_end):
12270         * console-stream.c (stream_output_vertical_divider):
12271         * console-stream.c (stream_clear_region):
12272         * console-stream.c (stream_flash):
12273         * console-stream.c (console_type_create_stream):
12274         Delete blank stream methods, not needed.
12275
12276         * console.h (struct console_methods):
12277         Split begin/end methods into window and frame.
12278
12279         * event-msw.c:
12280         * event-msw.c (mswindows_handle_paint):
12281         * event-msw.c (output_alt_keyboard_state):
12282         * event-msw.c (mswindows_wnd_proc):
12283         * event-msw.c (vars_of_event_mswindows):
12284         Comment about problems with ignored-expose.
12285         Define mswindows-debug-events; not really implemented.
12286
12287         * frame-msw.c (mswindows_init_frame_1):
12288         random cleanups.
12289
12290         * glyphs-msw.c:
12291         * glyphs-msw.c (begin_defer_window_pos):
12292         * glyphs-msw.c (mswindows_unmap_subwindow):
12293         * glyphs-msw.c (mswindows_map_subwindow):
12294         * glyphs-msw.c (mswindows_resize_subwindow):
12295         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12296
12297         * glyphs.c (make_image_instance_1):
12298         Fix crash.
12299
12300         * gutter.c (Fredisplay_gutter_area):
12301         Use new begin/end methods.
12302
12303         * lisp.h (Dynarr_new2):
12304         New creation fun.
12305
12306         * redisplay-msw.c:
12307         * redisplay-msw.c (mswindows_frame_output_begin):
12308         * redisplay-msw.c (mswindows_frame_output_end):
12309         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12310         New begin/end methods -- handle DeferWindowPos.
12311
12312         * redisplay-output.c (redisplay_move_cursor):
12313         * redisplay-output.c (redraw_cursor_in_window):
12314         * redisplay-output.c (redisplay_update_line):
12315         * redisplay-output.c (redisplay_output_window):
12316         New begin/end methods.
12317
12318         * redisplay-tty.c:
12319         * redisplay-tty.c (tty_frame_output_begin):
12320         * redisplay-tty.c (tty_frame_output_end):
12321         * redisplay-tty.c (console_type_create_redisplay_tty):
12322         New begin/end methods.
12323
12324         * redisplay-x.c:
12325         * redisplay-x.c (x_window_output_begin):
12326         * redisplay-x.c (x_window_output_end):
12327         * redisplay-x.c (console_type_create_redisplay_x):
12328         New begin/end methods.
12329
12330         * redisplay.c (redisplay_frame):
12331         * redisplay.c (Fredisplay_echo_area):
12332         New begin/end methods.
12333         use MAYBE_DEVMETH for clear_frame; it may not exist.
12334
12335         * window.h (WINDOW_XFRAME):
12336         WINDOW_XFOO macros -- get locale and decode struct pointer.
12337
12338
12339 2000-05-12  Ben Wing  <ben@xemacs.org>
12340
12341         * emacs.c:
12342         * emacs.c (ensure_no_quitting_from_now_on):
12343         * emacs.c (fatal_error_signal):
12344         * emacs.c (mswindows_handle_hardware_exceptions):
12345         * emacs.c (main):
12346         * emacs.c (Fkill_emacs):
12347         * emacs.c (shut_down_emacs):
12348         * emacs.c (assert_failed):
12349         various improvements in fatal error handling.
12350
12351         * eval.c:
12352         move preparing_for_armageddon to emacs.c.
12353
12354         * lisp.h:
12355         declare fatal_error_in_progress.
12356
12357         * print.c:
12358         * print.c (std_handle_out_external):
12359         * print.c (std_handle_out_va):
12360         * print.c (stderr_out):
12361         * print.c (stdout_out):
12362         use console under mswin when no standard output.
12363         don't do code conversion during fatal error.
12364
12365         * scrollbar.c (Fscrollbar_page_up):
12366         * scrollbar.c (Fscrollbar_page_down):
12367         fix missing else.  reindent.
12368
12369 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12370
12371         Emergency fix.
12372
12373         * glyphs.h (GLYPH_CACHEL_DESCENT):
12374         (GLYPH_CACHEL_DESCENT):
12375         (GLYPH_CACHEL_DESCENT):
12376         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12377         used in case these are inline functions.
12378         Use more absurd values to error check.
12379
12380         include window.h for error check functions.
12381
12382 2000-05-11  Ben Wing  <ben@xemacs.org>
12383
12384         * cmdloop.c (Freally_early_error_handler):
12385         Display message box under windows; otherwise, message will disappear
12386         before it can be viewed.
12387
12388         * console-msw.c:
12389         * console-msw.c (Fmswindows_message_box):
12390         * console-msw.c (FROB):
12391         * console-msw.c (syms_of_console_mswindows):
12392         Define new fun `mswindows-message-box'.
12393         #### I will merge this into `popup-dialog-box'; just give me
12394         a bit of time.
12395
12396         * general.c:
12397         * general.c (syms_of_general):
12398         Some new symbols used in `mswindows-message-box'.
12399
12400         * glyphs.c:
12401         * glyphs.c (Fset_image_instance_property):
12402         put warning in this fun.
12403
12404         * glyphs.h:
12405         * glyphs.h (GLYPH_CACHEL_WIDTH):
12406         * glyphs.h (GLYPH_CACHEL_ASCENT):
12407         * glyphs.h (GLYPH_CACHEL):
12408         * glyphs.h (GLYPH_CACHEL_GLYPH):
12409         define error-checking versions to try to catch a bug i've seen --
12410         redisplay gets in an infinite loop because the glyph width of the
12411         continuation glyph is 65535.
12412
12413         * lisp.h:
12414         Extern message-box stuff.
12415
12416         * window.c (allocate_window):
12417         * window.c (make_dummy_parent):
12418         * window.c (Fset_window_configuration):
12419         Use EQUAL not EQ for subwindow caches to make them work a bit
12420         better. (Something is still very broken.)
12421
12422
12423 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12424
12425         * glyphs.c (image_instantiate): Suppress gcc warnings.
12426         (Fmake_image_instance): Fix doc string.
12427         * specifier.c (Fmake_specifier): Ditto.
12428
12429 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12430
12431         * paths.h.in (PATH_LOCK): Removed.
12432         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12433         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12434
12435 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12436
12437         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12438         Document (featurep '(and xemacs 21.02)).
12439
12440 2000-05-09  Ben Wing  <ben@xemacs.org>
12441
12442         * buffer.c (complex_vars_of_buffer):
12443         update modeline-format doc.
12444
12445         * device.h:
12446         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12447
12448         * emacs.c:
12449         timeline of all released versions of Emacs, for use in creating
12450         authorship comments and in synching up.
12451
12452         * glyphs-widget.c (image_instantiator_buttons):
12453         * glyphs-widget.c (image_instantiator_edit_fields):
12454         * glyphs-widget.c (image_instantiator_combo_box):
12455         * glyphs-widget.c (image_instantiator_scrollbar):
12456         * glyphs-widget.c (image_instantiator_progress_guage):
12457         * glyphs-widget.c (image_instantiator_tree_view):
12458         * glyphs-widget.c (image_instantiator_tab_control):
12459         * glyphs-widget.c (image_instantiator_labels):
12460         * glyphs-widget.c (image_instantiator_layout):
12461         * glyphs-widget.c (image_instantiator_native_layout):
12462         rename decode_domain method to governing_domain.
12463
12464         * glyphs.c:
12465         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12466         * glyphs.c (add_entry_to_device_ii_format_list):
12467         make sure we don't put an entry more than once into the list.
12468         * glyphs.c (check_instance_cache_mapper):
12469         *************************************************************
12470         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12471         HAVE BEEN GETTING.
12472         *************************************************************
12473         * glyphs.c (get_image_instantiator_governing_domain):
12474         clean up, expand on new concept of governing domain.
12475         * glyphs.c (instantiate_image_instantiator):
12476         * glyphs.c (allocate_image_instance):
12477         use governing_domain instead of cache_domain in naming.
12478         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12479         * glyphs.c (make_image_instance_1):
12480         * glyphs.c (Fmake_image_instance):
12481         allow for any domain (not just device), and process the
12482         governing domain correctly.  very big doc fix.
12483         * glyphs.c (Fimage_instance_domain):
12484         new primitive, to retrieve the governing domain of an image instance.
12485         * glyphs.c (image_instantiate):
12486         use new governing_domain stuff.  this fixes a crash you could get
12487         by instantiating certain widget glyphs in frame locales. (should
12488         signal an error instead of crashing.)
12489         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12490         * glyphs.c (Fglyphp): clean up doc.
12491         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12492         * glyphs.c (syms_of_glyphs):
12493         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12494         * glyphs.c (image_instantiator_format_create): add some comments about
12495         bogus code.
12496         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12497         for current-display-table. (Apparently Hrjove implemented in 1998 a
12498         design I wrote up in 1996, but didn't update the doc string.)
12499
12500         * glyphs.h: clean up a doc string.
12501         * glyphs.h (governing_domain):
12502         * glyphs.h (struct image_instantiator_methods):
12503         changes for governing_domain stuff.
12504
12505         * gutter.c:
12506         * gutter.c (Fgutter_specifier_p):
12507         * gutter.c (Fgutter_size_specifier_p):
12508         * gutter.c (Fgutter_visible_specifier_p):
12509         * objects.c:
12510         * objects.c (Fcolor_specifier_p):
12511         * objects.c (Ffont_specifier_p):
12512         * objects.c (Fface_boolean_specifier_p):
12513         doc strings moved to make-*-specifier.
12514
12515         * redisplay.c (add_disp_table_entry_runes_1):
12516         * redisplay.c (generate_fstring_runes):
12517         * redisplay.c (screen):
12518         add random comments and doc strings.
12519
12520         * specifier.c:
12521         * specifier.c (Fmake_specifier):
12522         major overhaul of this doc string.
12523
12524         * specifier.c (Fvalid_specifier_domain_p):
12525         comment about the bogosity of image instances being domains.
12526         * specifier.c (decode_domain):
12527         now non-static, used in glyphs.c.
12528         * specifier.c (specifier_instance):
12529         comment about the bogosity of image instances being domains.
12530         * specifier.c (Fgeneric_specifier_p):
12531         move doc string to make-generic-specifier.
12532         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12533         rebackslashify.
12534
12535         * specifier.h:
12536         * specifier.h (DOMAIN_FRAME):
12537         * specifier.h (DOMAIN_LIVE_P):
12538         * specifier.h (DOMAIN_XDEVICE):
12539         rebackslashify.
12540         add comments about problems with these macros.
12541         prototype for decode_domain.
12542
12543         * toolbar.c:
12544         * toolbar.c (Ftoolbar_specifier_p):
12545         move doc string to `make-toolbar-specifier'.
12546
12547         * window.c (window_unmap_subwindows_cache_mapper):
12548         *************************************************************
12549         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12550         HAVE BEEN GETTING.
12551         *************************************************************
12552
12553 2000-05-09  Andy Piper  <andy@xemacs.org>
12554
12555         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12556
12557         * window.c (Fset_window_configuration): reset the frame subwindow
12558         cache and re-initialize the window subwindow caches.
12559
12560         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12561
12562 2000-05-09  Ben Wing  <ben@xemacs.org>
12563
12564         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12565         DWORD.
12566
12567 2000-04-26  Mike Woolley  <mike@bulsara.com>
12568
12569         * ntheap.c: Changed recreate_heap to limit the amount reserved
12570         for the heap to that which is actually available. Also now
12571         displays a message box (with some dignostics) in the event that
12572         it still can't start.
12573
12574 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12575
12576         * callproc.c (Fold_call_process_internal): GCPRO path
12577
12578 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12579
12580         Patch by Bill Perry.
12581
12582         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12583         back data instead of #ifdef.
12584         (Fscrollbar_page_down): ditto.
12585
12586 2000-05-07  Ben Wing  <ben@xemacs.org>
12587
12588         * buffer.h:
12589         Kludge for defining Qmswindows_tstr.
12590
12591         * nt.c:
12592         * nt.c (open_input_file):
12593         * nt.c (open_output_file):
12594         * nt.c (rva_to_section):
12595         * nt.c (mswindows_executable_type):
12596         Move all memory-mapped-file routines here (some were in unexnt.c,
12597         which is bad because they are used by process-nt.c, and unexnt
12598         won't be around when portable dumping).  Synched the above routines
12599         with FSF 20.6.
12600
12601         * nt.h:
12602         Removed ifdef'd out bogus code.
12603         Fixed some prototypes.
12604
12605         * nt.h (file_data):
12606         * nt.h (OFFSET_TO_RVA):
12607         * nt.h (RVA_TO_OFFSET):
12608         * nt.h (RVA_TO_PTR):
12609         Moved the memory-mapped-file structures, macros and prototypes
12610         here, to parallel nt.c.  ntheap.h should really be removed
12611         entirely, and it's a non-portable-dumper specific file.
12612
12613         * ntheap.h (round_to_next):
12614         Moved the memory-mapped-file structures, macros and prototypes
12615         to nt.h.
12616
12617         * ntproc.c (compare_env):
12618         Moved rva_to_section and mswindows_executable_type to nt.c.
12619         Moved compare_env to process-nt.c.
12620         ntproc.c will die, one day.
12621
12622         * ntproc.c (sys_spawnve):
12623         Account for win32_ -> mswindows_.
12624
12625         * process-nt.c:
12626         * process-nt.c (struct nt_process_data):
12627         * process-nt.c (ensure_console_window_exists):
12628         * process-nt.c (compare_env):
12629         * process-nt.c (nt_create_process):
12630         * process-nt.c (nt_kill_process_by_pid):
12631         * process-nt.c (syms_of_process_nt):
12632         * process-nt.c (vars_of_process_nt):
12633         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12634         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12635         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12636         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12637         Move compare_env here from ntproc.c.
12638
12639         * process.c (Fprocess_send_region):
12640         Takes an optional fourth argument, BUFFER, which should fix some
12641         problems with call-process.
12642
12643         * syscommctrl.h:
12644         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12645
12646         * syswindows.h:
12647         Move ICC_BAR_CLASSES to syscommctrl.h.
12648         Add preliminary macros for MSWindows/Mule.  More to come.
12649
12650         * unexnt.c:
12651         * unexnt.c (unexec):
12652         open_output_file moved to nt.c.
12653
12654
12655 2000-05-05  Andy Piper  <andy@xemacs.org>
12656
12657         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12658         instance from the frame cache also since GC may catch up too late
12659         to make frame deletion sane.
12660
12661 2000-05-04  Andy Piper  <andy@xemacs.org>
12662
12663         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12664         (x_finalize_image_instance): ungcpro on deletion.
12665
12666         * glyphs.c (image_instantiator_format_create): give pointers a
12667         query geometry method so that the geometry is at least set.
12668
12669         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12670         initialize layouts if using widgets.
12671
12672 2000-05-03  Andy Piper  <andy@xemacs.org>
12673
12674         * nt.c: remove bogus reference to sysmmsystem.h
12675
12676         * gui-x.c (popup_selection_callback): fix no selection abort.
12677
12678 2000-05-02  Andy Piper  <andy@xemacs.org>
12679
12680         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12681         (mswindows_widget_instantiate): ditto.
12682
12683         * glyphs-widget.c (initialize_widget_image_instance): initialize
12684         children correctly.
12685         (widget_instantiate): cope with children and items in the same
12686         instance.
12687
12688         * glyphs.c (mark_image_instance): cope with children as a first
12689         class member.
12690         (image_instance_equal): ditto.
12691         (image_instance_hash): ditto.
12692         (image_instance_changed): ditto.
12693
12694 2000-04-30  Andy Piper  <andy@xemacs.org>
12695
12696         * glyphs.c (subwindow_query_geometry): new function. Return some
12697         defaults.
12698         (subwindow_instantiate): don't assign dimensions if none have been
12699         given.
12700         (image_instantiator_format_create): add subwindow_query_geometry.
12701         (print_image_instance): cope with layouts as widgets.
12702
12703 2000-04-29  Andy Piper  <andy@xemacs.org>
12704
12705         * frame.c (delete_frame_internal): call
12706         free_frame_subwindow_instance_cache so that all subwindows are
12707         finalized before their parent.
12708         (mark_frame): remove subwindow_cachels.
12709         (Fmake_frame): remove subwindow_cachel manipulation.
12710         (allocate_frame_core): subwindow_instance_cache is a weak list.
12711         (delete_frame_internal): set subwindow_instance_cache to nil.
12712
12713         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12714         finalization safe.
12715         (mswindows_finalize_image_instance): use the device
12716         not the domain as the domain may have died already.
12717
12718         * glyphs-x.c (x_finalize_image_instance): ditto.
12719         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12720         HEIGHT.
12721
12722         * redisplay-output.c (redisplay_unmap_subwindows): update for
12723         subwindow instance cache as a weak list.
12724         (redisplay_unmap_subwindows_maybe): ditto.
12725         (redisplay_unmap_subwindows_except_us): ditto.
12726
12727         * glyphs.c (unmap_subwindow): error checking will check the domain
12728         so don't deal with it here. Don't use cachels anymore.
12729         (map_subwindow): ditto.
12730         (update_subwindow_cachel_data): remove old accessor names.
12731         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12732         (Fresize_subwindow): don't update cachel.
12733         (mark_subwindow_cachels):
12734         (update_subwindow_cachel_data):
12735         (add_subwindow_cachel):
12736         (get_subwindow_cachel_index):
12737         (update_subwindow_cachel):
12738         (reset_subwindow_cachels):
12739         (mark_subwindow_cachels_as_not_updated): deleted.
12740         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12741         subwindow instance to the frame cache.
12742         (find_matching_subwindow): update for subwindow instance cache as
12743         a weak list.
12744         (update_widget_instances): ditto.
12745         (image_instance_type_to_mask):inlined.
12746         (free_frame_subwindow_instance_cache): new function. finalize all
12747         subwindows that are instantiated.
12748
12749         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12750         of cachel information.
12751         (IMAGE_INSTANCE_DISPLAY_X):
12752         (IMAGE_INSTANCE_DISPLAY_Y):
12753         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12754         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12755         (XIMAGE_INSTANCE_DISPLAY_X):
12756         (XIMAGE_INSTANCE_DISPLAY_Y):
12757         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12758         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12759         remove subwindow_cachel structure and function references.
12760         (image_instance_type_to_mask): inline from glyphs.c
12761
12762         * redisplay.c (redisplay_frame): remove subwindow_cachel
12763         references.
12764
12765         * frame.h (struct frame): remove subwindow_cachels.
12766         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12767
12768         * frameslots.h: add subwindow_instance_cache.
12769
12770         * window.c (replace_window): check subwindow cache of replacement.
12771         (window_unmap_subwindows_cache_mapper):
12772         (window_unmap_subwindows): new functions. Unmap all subwindows
12773         cached on this window.
12774         (mark_window_as_deleted): unmap all subwindows.
12775
12776 2000-04-27  Andy Piper  <andy@xemacs.org>
12777
12778         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12779
12780         * glyphs-widget.c (widget_layout): return something.
12781         (layout_layout): return something. Fail if not initialized.
12782         (layout_query_geometry): ditto.
12783         (image_instantiator_native_layout): new function. Initialized the
12784         native layout type.
12785         (widget_instantiate): don't do layout stuff here.
12786
12787         * glyphs.c (instantiate_image_instantiator): reorded calling or
12788         instantiate and post_instantiate with layout in between.
12789         (image_instance_layout): be more selective about deciding whether
12790         the layout has been done or not.
12791
12792         * glyphs.h (struct image_instantiator_methods): return a value
12793         from layout_method.
12794
12795 2000-04-26  Andy Piper  <andy@xemacs.org>
12796
12797         * glyphs.c (allocate_image_instance): make initial width and
12798         height unspecified. Set initialized to 0.
12799
12800         * syscommctrl.h new file. Encapsulates commctrl.h.
12801
12802         * syswindows.h new file. Encapsulates windows.h.
12803
12804         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12805         * nt.c: ditto.
12806         * console-msw.h: ditto.
12807
12808         * redisplay-tty.c (tty_output_display_block): remove layout references.
12809
12810         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12811         window handle rather than just the frame.
12812
12813         * glyphs.c (mark_image_instance): remove layout references.
12814         (print_image_instance): ditto.
12815         (image_instance_equal): ditto.
12816         (image_instance_hash): ditto.
12817         (decode_image_instance_type): ditto.
12818         (encode_image_instance_type): ditto.
12819         (image_instantiate): ditto.
12820         (allocate_glyph): ditto.
12821         (Fimage_instance_height): ditto.
12822         (Fimage_instance_width): ditto.
12823         (update_subwindow): ditto.
12824
12825         * redisplay-x.c (x_output_display_block): recode for layouts as
12826         widgets.
12827
12828         * redisplay-output.c (redisplay_output_layout): recode for layouts
12829         as widgets.
12830         (compare_runes): remove layout references.
12831
12832         * redisplay-msw.c (mswindows_output_display_block): recode for
12833         layouts as widgets.
12834
12835         * glyphs-widget.c (image_instantiator_layout): remove
12836         layout_possible_dest_types.
12837         (layout_possible_dest_types): deleted.
12838
12839         * glyphs.h (image_instance_type): remove layout references.
12840         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12841         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12842         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12843
12844 2000-04-25  Andy Piper  <andy@xemacs.org>
12845
12846         * glyphs-widget.c (image_instantiator_buttons):
12847         (image_instantiator_edit_fields):
12848         (image_instantiator_combo_box):
12849         (image_instantiator_scrollbar):
12850         (image_instantiator_progress_guage):
12851         (image_instantiator_tree_view):
12852         (image_instantiator_tab_control):
12853         (image_instantiator_labels):
12854         (image_instantiator_layout): call default post_instantiate method.
12855         (widget_post_instantiate): new function. Simply lays out the
12856         widgets.
12857
12858         * glyphs.h (struct image_instantiator_methods): add
12859         post_instantiate method.
12860
12861         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12862         method calls.
12863
12864 2000-04-23  Andy Piper  <andy@xemacs.org>
12865
12866         * glyphs.h (struct image_instantiator_methods): add
12867         decode_domain_method.
12868         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12869         derived from the domain.
12870         (IMAGE_INSTANCE_FRAME): new accessor.
12871         (XIMAGE_INSTANCE_FRAME): ditto.
12872
12873         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12874         instead of _SUBWINDOW_FRAME.
12875         (finalize_image_instance): ditto.
12876         (Fimage_instance_foreground): ditto.
12877         (Fimage_instance_background): ditto.
12878         (image_instantiate): ditto.
12879         (update_subwindow_cachel): ditto.
12880         (update_subwindow): ditto.
12881         (unmap_subwindow): ditto.
12882         (map_subwindow): ditto
12883         (subwindow_instantiate): ditto.
12884         * glyphs-msw.c (mswindows_update_widget): ditto.
12885         (mswindows_progress_gauge_instantiate): ditto.
12886         (mswindows_tab_control_update): ditto.
12887         * glyphs-x.c (x_update_widget): ditto.
12888         (x_widget_instantiate): ditto.
12889         (x_tab_control_instantiate): ditto.
12890         (x_tab_control_update): ditto.
12891         * event-msw.c (mswindows_wnd_proc): ditto
12892
12893         * glyphs-widget.c (image_instantiator_layout): use
12894         subwindow_decode_domain.
12895         (image_instantiator_buttons): ditto.
12896         (image_instantiator_edit_fields): ditto.
12897         (image_instantiator_combo_box): ditto.
12898         (image_instantiator_scrollbar): ditto.
12899         (image_instantiator_progress_guage): ditto.
12900         (image_instantiator_tree_view): ditto.
12901         (image_instantiator_tab_control): ditto.
12902         (image_instantiator_labels): ditto.
12903         (image_instantiator_layout): ditto.
12904
12905         * glyphs.c: add instance error checking to many functions.
12906         (instantiate_image_instantiator): decode device from cache_domain.
12907         (image_instantiate): partially rewrite by using
12908         decode_image_instantiator_domain to determine what domain the
12909         instance needs to be cached in.
12910         (decode_image_instantiator_domain): new function. Determine what
12911         domain the image needs to be cached in.
12912         (check_window_subwindow_cache): new error checking function.
12913         (check_instance_cache_mapper): ditto.
12914         (check_image_instance_structure): ditto.
12915         (subwindow_decode_domain): new function. Encodes a window as a
12916         subwindow's cache domain.
12917         (image_instantiator_format_create): use it for text and
12918         subwindows.
12919
12920 2000-04-21  Andy Piper  <andy@xemacs.org>
12921
12922         * glyphs.c (image_instance_device): new function.
12923         (image_instance_frame): new function.
12924         (image_instance_window): new function.
12925         (image_instance_live_p): new function.
12926
12927         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12928         cache to nil.
12929
12930         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12931         (IMAGE_INSTANCE_DOMAIN): new accessor.
12932         (XIMAGE_INSTANCE_DOMAIN): ditto.
12933
12934         * glyphs-x.c (x_finalize_image_instance): device->domain.
12935
12936         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12937         (mswindows_finalize_image_instance): ditto.
12938
12939         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12940         (gif_instantiate): ditto.
12941         (png_instantiate): ditto.
12942         (tiff_instantiate): ditto.
12943
12944         * glyphs.c (instantiate_image_instantiator): use domain rather
12945         than device.
12946         (mark_image_instance): device -> domain.
12947         (print_image_instance): ditto.
12948         (finalize_image_instance): ditto.
12949         (image_instance_equal): ditto.
12950         (allocate_image_instance): ditto.
12951         (Fcolorize_image_instance): ditto.
12952         (query_string_geometry): ditto.
12953         (image_instantiate): ditto
12954         (query_string_font): ditto.
12955         (image_instantiate): ditto.
12956         (update_subwindow): ditto.
12957         (unmap_subwindow): ditto.
12958         (map_subwindow): ditto.
12959         (subwindow_instantiate): ditto.
12960
12961         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12962         (DOMAIN_FRAME): ditto.
12963         (DOMAIN_WINDOW): ditto.
12964         (DOMAIN_LIVE_P): ditto.
12965         (XDOMAIN_DEVICE): ditto.
12966         (XDOMAIN_FRAME): ditto.
12967         (XDOMAIN_WINDOW): ditto.
12968
12969         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12970         a valid specifier domain.
12971
12972 2000-04-19  Andy Piper  <andy@xemacs.org>
12973
12974         * glyphs-widget.c (syms_of_glyphs_widget): remove
12975         widget-callback-current-channel.
12976         (vars_of_glyphs_widget): ditto.
12977         * glyphs.h: ditto
12978
12979         * gui.c (get_gui_callback): revert to previous behaviour.
12980
12981 2000-04-18  Andy Piper  <andy@xemacs.org>
12982
12983         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12984         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12985         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12986
12987         * glyphs.c (image_instance_equal): add margin_width.
12988         (image_instance_hash): ditto.
12989
12990         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12991         (layout_query_geometry): ditto.
12992         (layout_layout): ditto.
12993         (syms_of_glyphs_widget): add margin-width.
12994         (image_instantiator_layout): allow margin-width.
12995
12996         * glyphs.c (update_widget_instances): make a normal function.
12997         (syms_of_glyphs): remove Qupdate_widget_instances.
12998         * glyphs.h: ditto.
12999
13000         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13001         so that we don't corrupt ideas about the last event or
13002         command. Remove widget-callback-current-channel fiddling.
13003         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13004
13005 2000-05-01  Martin Buchholz <martin@xemacs.org>
13006
13007         * XEmacs 21.2.33 is released.
13008
13009 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13010
13011         * make-src-depend: Allow dots in header file name.
13012
13013 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13014
13015         * mule-charset.h (struct charset_lookup): Add
13016         next_allocated_1_byte_leading_byte and
13017         next_allocated_2_byte_leading_byte.
13018         * mule-charset.c: Move above two variables so that those values
13019         will be dumped.
13020
13021 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13022
13023         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13024         when string length is zero.
13025         (find_charsets_in_emchar_string): Ditto.
13026
13027 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13028
13029         * lisp.h: extern Qdialog and Qmenubar.
13030
13031         * gui-x.c: added events.h.
13032                 also fixed typo which made the file uncompilable.
13033
13034         * general.c: Added Qmenubar and Qdialog
13035
13036 2000-04-28  Ben Wing  <ben@xemacs.org>
13037
13038         * frame-msw.c (mswindows_init_frame_1):
13039         * frame-msw.c (mswindows_mark_frame):
13040         * event-msw.c (mswindows_enqueue_dispatch_event):
13041         * console-msw.h:
13042         * console-msw.h (struct mswindows_frame):
13043         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13044         there are now three hash tables for callbacks.
13045         mswindows_enqueue_dispatch_event is no longer static.
13046
13047         * dialog-x.c (maybe_run_dbox_text_callback):
13048         * dialog-x.c (dbox_descriptor_to_widget_value):
13049         switch to new cons3 form for callbacks.
13050
13051         * glyphs-msw.c (mswindows_register_gui_item):
13052         * glyphs-msw.c (mswindows_widget_instantiate):
13053         * glyphs-msw.c (add_tree_item):
13054         * glyphs-msw.c (add_tab_item):
13055         new image instance parameter, so it can be passed to callback-ex.
13056         respect :callback-ex as well as :callback.
13057
13058         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13059         add :callback-ex.
13060
13061         * glyphs.c (print_image_instance):
13062         prettify, e.g. now prints widget type.
13063
13064         * gui-x.h:
13065         certain funs have new image instance parameter.
13066
13067         * gui.c:
13068         * gui.c (get_gui_callback):
13069         * gui.c (gui_item_add_keyval_pair):
13070         * gui.c (gui_item_init):
13071         * gui.c (gui_add_item_keywords_to_plist):
13072         * gui.c (mark_gui_item):
13073         * gui.c (gui_item_hash):
13074         * gui.c (gui_item_equal):
13075         * gui.c (copy_gui_item):
13076         * gui.c (syms_of_gui):
13077         recognize callback-ex in a number of places.
13078         also, fix the annoying "can't get out of yes-no dialog" bug.
13079
13080         * gui.h:
13081         * gui.h (struct Lisp_Gui_Item):
13082         recognize callback-ex in a number of places.
13083
13084         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13085         new parameter in button_item_to_widget_value.
13086
13087         * glyphs-x.c (x_update_widget):
13088         * glyphs-x.c (x_button_instantiate):
13089         * glyphs-x.c (x_button_update):
13090         * glyphs-x.c (x_progress_gauge_instantiate):
13091         * glyphs-x.c (x_edit_field_instantiate):
13092         * glyphs-x.c (x_combo_box_instantiate):
13093         * glyphs-x.c (x_tab_control_instantiate):
13094         * glyphs-x.c (x_label_instantiate):
13095         new image instance parameter in various places.
13096
13097         * event-Xt.c:
13098         * event-Xt.c (enqueue_Xt_dispatch_event):
13099         this fun gets exported.
13100
13101         * gui-msw.c:
13102         * gui-msw.c (mswindows_handle_gui_wm_command):
13103         handle both :callback and :callback-ex, and generate our own
13104         event because it's one of the callback-ex arguments.
13105
13106         * gui-x.c:
13107         * gui-x.c (popup_selection_callback):
13108         handle both :callback and :callback-ex, and generate our own
13109         event because it's one of the callback-ex arguments.
13110         * gui-x.c (button_item_to_widget_value):
13111         * gui-x.c (gui_items_to_widget_values_1):
13112         * gui-x.c (gui_item_children_to_widget_values):
13113         * gui-x.c (gui_items_to_widget_values):
13114         new image instance parameter in various places.
13115
13116         * fns.c (Freplace_list):
13117         fix small typo in doc string.
13118
13119         * lisp.h:
13120         declare enqueue_Xt_dispatch_event.
13121
13122 2000-04-28  Ben Wing  <ben@xemacs.org>
13123
13124         * buffer.c:
13125         * buffer.c (Frecord_buffer):
13126         * buffer.c (syms_of_buffer):
13127         delete record-buffer-hook.
13128
13129         * fns.c:
13130         * fns.c (Freplace_list):
13131         * fns.c (syms_of_fns):
13132         new primitive replace-list.
13133
13134         * frameslots.h:
13135         slot for old buffer-alist.
13136
13137         * lisp.h:
13138         exfun replace-list.
13139
13140         * redisplay.c:
13141         * redisplay.c (redisplay_frame):
13142         * redisplay.c (syms_of_redisplay):
13143         * redisplay.c (vars_of_redisplay):
13144         new hook buffer-list-changed-hook.
13145         call it.
13146
13147 2000-04-27  Ben Wing  <ben@xemacs.org>
13148
13149         * extents.h: extern in_modeline_generation.
13150
13151         * redisplay.c (generate_formatted_string_db): set
13152         in_modeline_generation.
13153
13154         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13155         flags if in modeline generation.  otherwise frame-modified-tick
13156         is ticked far too often.
13157         Declare in_modeline_generation.
13158
13159 2000-04-26  Ben Wing  <ben@xemacs.org>
13160
13161         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13162         option.
13163         (vars_of_emacs): add quick-build as an error-checking option.
13164         A bit kludgy, but there doesn't seem much point in creating
13165         a real var for this.
13166
13167         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13168
13169 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13170
13171         * redisplay.h (struct display_line): Add a new variable,
13172         line_continuation.
13173
13174         * redisplay.c (create_text_block): Set dl->line_continuation if
13175         the line continues.
13176         (create_string_text_block): Ditto.
13177         (regenerate_window_incrementally): Use line_continuation instead
13178         of searching continuation glyph.
13179         (add_margin_runes): Call add_glyph_rune.
13180         (add_glyph_rune): Handle margin glyph.
13181
13182 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13183
13184         * filelock.c (fill_in_lock_file_name):
13185         ANSIfy.
13186         Check for IS_ANY_SEP instead of '/'.
13187         (lock_file_1):
13188         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13189         Never check errno without first seeing that system call failed.
13190         (unlock_file): Add GCPRO.
13191         (Flock_buffer): Fix docstring.
13192         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13193
13194 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13195
13196         * sysdep.c (get_pty_max_bytes):
13197         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13198         strings longer than 252 bytes.
13199
13200         * md5.c: Unconditionally include ANSI header <limits.h>
13201
13202         * glyphs-x.c (convert_EImage_to_XImage):
13203         * lisp-union.h (union Lisp_Object):
13204         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13205
13206 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13207
13208         * filelock.c (current_lock_owner): Remove unused variable o, p.
13209
13210 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13211
13212         * callint.c: Remove multiply defined symbol Qlet
13213         (syms_of_callint): ditto.
13214
13215 2000-04-14  Andy Piper  <andy@xemacs.org>
13216
13217         * general.c (syms_of_general): add last-command, this-command, let
13218         and funcall.
13219
13220         * lisp.h: declare various symbols.
13221
13222         * glyphs.h: declare Qwidget_callback_current_channel;
13223
13224         * glyphs-widget.c (syms_of_glyphs_widget): add
13225         Qgui_callback_current_channel.
13226         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13227
13228         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13229         widget-callback-current-channel when invoking the interactive
13230         arg. Also bind last-command and next-command when invoking the
13231         widget updates.
13232         * gui-x.c (popup_selection_callback): ditto.
13233
13234         * gui.c (get_gui_callback): massage args so that we are always
13235         calling eval. This allows us to add our own variable bindings
13236         outside.
13237
13238         * glyphs-x.c (x_button_instantiate): use
13239         gui_items_to_widget_values since this is GC safe.
13240         (x_progress_gauge_instantiate): ditto.
13241         (x_edit_field_instantiate): ditto.
13242         (x_label_instantiate): ditto.
13243
13244         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13245         (emacs_Xt_event_widget_focus_out): new function
13246         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13247         focus.
13248         (emacs_Xt_event_add_widget_actions): new function. add focus
13249         functions as actions.
13250         (init_event_Xt_late): use it.
13251
13252 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13253
13254         * event-stream.c (Fdispatch_event): Doc fix.
13255
13256 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13257
13258         * postgresql.c: Remove all references to PQsetenv*.
13259
13260         * postgresql.h: Remove references to PGsetenvHandler object.
13261         * lrecord.h (lrecord_type): Ditto.
13262
13263 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13264
13265         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13266         real_heigh and real_width members, and accessor macros for these.
13267
13268         * glyphs-msw.c (init_image_instance_geometry): New function.
13269         (init_image_instance_from_dibitmap): Use it.
13270         (mswindows_resource_instantiate): Use it.
13271         (init_image_instance_from_xbm_inline): Use it.
13272         (mswindows_initialize_image_instance_mask): Use real bitmap
13273         geometry.
13274         (mswindows_create_resized_bitmap): Ditto.
13275         (mswindows_create_resized_mask): Ditto.
13276
13277         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13278         and bitmap to their surface size.
13279
13280 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13281
13282         * process-unix.c (unix_send_process): Guard against process MIA
13283         after Faccept_process_output.
13284
13285 2000-04-11  Ben Wing  <ben@xemacs.org>
13286
13287         * eval.c (unbind_to_hairy): fix brokenness introduced by
13288         nanosecond speed improvements.
13289
13290 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13291
13292         * sunplay.c (init_device): To play sounds correctly, the device
13293         apparently needs to be initialized at least once by XEmacs.  Make
13294         it so.
13295
13296 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13297
13298         * redisplay.c (add_margin_runes): Add text image glyph
13299           handling.
13300
13301 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13302
13303         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13304         gcc is newer than 2.5.
13305
13306 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13307
13308         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13309
13310         * fns.c (size_bit_vector):
13311         * alloc.c (size_vector):
13312         (make_vector_internal):
13313         (make_bit_vector_internal):
13314         (sweep_bit_vectors_1):
13315         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13316
13317 2000-04-06  Andy Piper  <andy@xemacs.org>
13318
13319         * gmalloc.c (malloc): undo previous change.
13320         (malloc): ditto.
13321         (free): ditto.
13322         (realloc): ditto.
13323
13324 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13325
13326         * line-number.c (buffer_line_number): Revert to former version.
13327
13328 2000-04-06  Andy Piper  <andy@xemacs.org>
13329
13330         * gmalloc.c (malloc): add error checking.
13331         (malloc): ditto.
13332         (free): ditto.
13333         (realloc): ditto.
13334
13335         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13336         button_item_to_widget_value arg.
13337
13338         * glyphs-x.c (x_button_instantiate): add extra
13339         button_item_to_widget_value arg.
13340         (x_progress_gauge_instantiate): ditto.
13341         (x_edit_field_instantiate): ditto.
13342         (x_label_instantiate): ditto.
13343
13344         * gui-x.c (gui_items_to_widget_values_1): add extra
13345         button_item_to_widget_value arg.
13346         (button_item_to_widget_value): add extra menu_item_p arg.
13347
13348         * gui-x.h: change signature of button_item_to_widget_value.
13349
13350         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13351         button_item_to_widget_value arg.
13352
13353 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13354
13355         * buffer.h (struct buffer): auto_save_modified should be long.
13356
13357 2000-04-05  Andy Piper  <andy@xemacs.org>
13358
13359         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13360         type.
13361         (button_query_geometry): give a little more room so that athena
13362         buttons fit.
13363
13364 2000-04-05  Andy Piper  <andy@xemacs.org>
13365
13366         * faces.c (complex_vars_of_faces): The widget face should inherit
13367         the font of the gui-element face.
13368
13369 2000-04-04  Andy Piper  <andy@xemacs.org>
13370
13371         * glyphs-x.c (x_button_update): new function. unconditionally
13372         update a button's state when the instance is dirty.
13373         (image_instantiator_format_create_glyphs_x): add x_button_update.
13374         (x_widget_instantiate): remove old resize cruft.
13375
13376 2000-04-02  Andy Piper  <andy@xemacs.org>
13377
13378         * frame.c (change_frame_size_1): The introduction of gutters means
13379         that we need to allow 0 as a potential frame dimension.
13380
13381 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13382
13383         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13384         image glyph if allow_cursor.
13385         (add_hscroll_rune): Don't allow cursor to border glyph.
13386         (create_text_block): Ditto.
13387
13388         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13389         text not in buffer.
13390         (redisplay_output_layout): Call ensure_face_cachel_complete for
13391         text image glyph.
13392
13393
13394 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13395
13396         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13397
13398         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13399         not in buffer
13400
13401         * redisplay-tty.c (tty_output_display_block): Delete the routine
13402         for text image glyph
13403         * redisplay-x.c (x_output_display_block): ditto
13404         * redisplay-msw.c (mswindows_output_display_block): ditto
13405
13406 2000-02-02  Mike Alexander  <mta@arbortext.com>
13407
13408         Note: Some of these were committed by accident as part of other
13409         patches.
13410
13411         * regex.c (regex_compile): Avoid compiler warnings.
13412
13413         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13414
13415         * nt.h: Declare term_ntproc correctly.
13416
13417         * nt.c: Remove incorrect declaration of get_home_directory which
13418         is declared correctly in lisp.h.
13419
13420         * keymap.c (get_keyelt): Avoid compiler warnings.
13421         (raw_lookup_key_mapper): Avoid compiler warnings.
13422
13423         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13424
13425         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13426
13427         * filemode.c (mode_string): Avoid compiler warnings.
13428
13429         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13430         avoid warning.
13431
13432         * events-mod.h: Undef some things that winuser.h defines differently.
13433
13434         * data.c (Faset): Avoid compiler warnings.
13435
13436         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13437
13438 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13439
13440         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13441         Fall through to simple beep on error.
13442         Replace "extern" by real header file.
13443
13444         * linuxplay.c: Use nativesound.h
13445         (play_sound_data): Return error code. Be less verbose on error.
13446
13447         * sunplay.c: Use nativesound.h
13448         (play_sound_data): Return error code. Be less verbose on error.
13449
13450         * ntplay.c: Use nativesound.h
13451         (play_sound_data): Return fake error code
13452
13453         * sgiplay.c: Use nativesound.h
13454         (play_sound_data): Return error code
13455
13456         * hpplay.c: Use nativesound.h, partially implement
13457         new error code. Break compilation until finished.
13458         (play_sound_data): error code.
13459
13460         * nativesound.h (play_sound_file):
13461           (play_sound_data): Prototype in new header.
13462
13463 2000-03-31  Andy Piper  <andy@xemacs.org>
13464
13465         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13466         for toggle and radio buttons.
13467         (image_instantiator_buttons): use it.
13468
13469 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13470
13471         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13472         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13473         found. Scrollbar event probably belonged to some old config.
13474
13475 2000-03-31  Andy Piper  <andy@xemacs.org>
13476
13477         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13478         than 1.
13479         (initialize_widget_image_instance): default layout to
13480         LAYOUT_HORIZONTAL rather than 0.
13481         (widget_instantiate): reverse the item list at the end rather than
13482         every iteration.
13483         (layout_layout): re-code for the border text at the front of the
13484         item list rather than at the end.
13485         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13486         provided by the user.
13487         (widget_query_geometry): comment.
13488
13489 2000-03-30  Andy Piper  <andy@xemacs.org>
13490
13491         * glyphs-widget.c (image_instantiator_layout): allow standard
13492         widget keywords in layouts.
13493
13494         * gutter.c (output_gutter): cope with nil gutter contents.
13495
13496         * frame.c (Fset_frame_properties): add gutter docs.
13497
13498 2000-03-29  Andy Piper  <andy@xemacs.org>
13499
13500         * toolbar-msw.c (TBSTYLE_FLAT): add.
13501         (mswindows_output_toolbar): minor fiddling.
13502
13503 2000-03-29  Andy Piper  <andy@xemacs.org>
13504
13505         * gutter.c (output_gutter): force gutter size recalculation if
13506         what we are trying to display won't fit.
13507         (update_gutter_geometry): new function. A per-gutter version of
13508         update_frame_gutter_geometry.
13509         (update_frame_gutter_geometry): use it.
13510         (redraw_exposed_gutter): add extra debugging output.
13511
13512 2000-03-28  Mike Alexander  <mta@arbortext.com>
13513
13514         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13515         (pdump_file_unmap): Implement it on Windows
13516         (pdump_file_get): Save alocated handles for pdump_file_unmap
13517
13518 2000-03-28  Andy Piper  <andy@xemacs.org>
13519
13520         * gui.c (get_gui_callback): treat Quit specially.
13521
13522 2000-03-27  Andy Piper  <andy@xemacs.org>
13523
13524         * glyphs.c (image_instantiate): be careful to check in the same
13525         way we assigned.
13526
13527 2000-03-27  Didier Verna  <didier@xemacs.org>
13528
13529         * config.h.in: define the proper SMART_INCLUDE macro.
13530         handle renaming of `foo_h_path' to `foo_h_file'.
13531
13532         * database.c: ditto.
13533
13534         * emacs.c: ditto.
13535
13536         * linuxplay.c: ditto.
13537
13538         * terminfo.c: ditto.
13539
13540         * tooltalk.h: ditto.
13541
13542 2000-03-27  Andy Piper  <andy@xemacs.org>
13543
13544         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13545         gets updated whenever the face might have changed.
13546
13547 2000-03-26  Mike Alexander  <mta@arbortext.com>
13548
13549         * dumper.c (pdump_resource_free): Fix the comment.
13550
13551 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13552
13553         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13554
13555 2000-03-22  Mike Alexander  <mta@arbortext.com>
13556
13557         * dumper.c: Include Windows headers on Windows
13558         (pdump_resource_free): Add a body to the function
13559         (pdump_load): exe_name -> exe_path and add some comments.
13560
13561 2000-03-25  Mike Alexander  <mta@arbortext.com>
13562
13563         * gui.c (copy_gui_item_tree): Return a value in all cases
13564
13565 2000-03-21  Didier Verna  <didier@xemacs.org>
13566
13567         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13568         lwlib/config.h.in.
13569         (SMART_INCLUDE): new macro.
13570         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13571         the proper location.
13572
13573         * postgresql.c: use it.
13574
13575         * inline.c: ditto.
13576
13577 2000-03-24  Andy Piper  <andy@xemacs.org>
13578
13579         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13580         do this.
13581
13582 2000-03-24  Andy Piper  <andy@xemacs.org>
13583
13584         * redisplay-output.c (compare_runes): use image_instance_changed
13585         to detect changes. Do not depend on glyphs_changed, only depend on
13586         dirtiness.
13587          (redisplay_output_layout): add debug messages.
13588         (compare_runes): ditto.
13589
13590         * glyphs.h: declare new functions.
13591         (struct Lisp_Image_Instance): remove percent and associated
13592         accessors.
13593
13594         * gui.h: declare new copying functions.
13595
13596         * gui.c (copy_gui_item_tree): new function.
13597         (copy_gui_item): new function.
13598         (gui_item_id_hash): revert to standard hash.
13599         (gui_item_hash): ditto.
13600         (gui_item_hash_internal): deleted.
13601         (mark_gui_item): mark value.
13602         (gui_item_add_keyval_pair): add value.
13603         (gui_item_init): ditto.
13604         (gui_add_item_keywords_to_plist): ditto.
13605         (gui_item_equal): ditto.
13606         (syms_of_gui): add Q_value.
13607
13608         * glyphs-x.c (x_progress_gauge_update): use pending items and
13609         value for setting the state.
13610         (x_update_widget): don't set items from pending here.
13611
13612         * glyphs-widget.c (update_widget): update items here.
13613         (progress_gauge_set_property): use items for storing value. Put
13614         new value in pending items.
13615
13616         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13617         items for new value. Convert percent -> value.
13618         (mswindows_tab_control_update): don't update items here.
13619
13620         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13621         (update_subwindow): ditto.
13622         (image_instance_changed): new function. Compare hash values and
13623         past and present widget items.
13624         (image_instantiate): We more careful about where we instantiate
13625         things.
13626         (image_instantiate): add error checking.
13627
13628         * gutter.c (syms_of_gutter): use -hook.
13629
13630 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13631
13632         * console-tty.c (Fset_console_tty_input_coding_system): Use
13633         Qkeyboard.
13634         (Fset_console_tty_output_coding_system): Use Qterminal.
13635         (tty_init_console): Use Qkeyboard and Qterminal.
13636
13637 2000-03-21  Ben Wing  <ben@xemacs.org>
13638
13639         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13640         From Mike Alexander <mta@arbortext.com>.
13641
13642 2000-03-21  Ben Wing  <ben@xemacs.org>
13643
13644         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13645         process brokenness.  Proper implementation to come.
13646         * callproc.c:
13647         Rename call-process-internal to old-call-process-internal.
13648         New impl. in process.el.
13649
13650 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13651
13652         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13653
13654 2000-03-20  Andy Piper  <andy@xemacs.org>
13655
13656         * glyphs.c (full_list_hash): make hashes of the same elements in
13657         different orders return different values.
13658
13659 2000-03-20  Martin Buchholz <martin@xemacs.org>
13660
13661         * XEmacs 21.2.32 is released.
13662
13663 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13664
13665         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13666         (DFC_MALLOC_USE_CONVERTED_DATA):
13667         Add aliasing-safe casts to allow use with char* or unsigned char*
13668         lvalues.
13669
13670         * eldap.c (Fldap_open):
13671         (Fldap_search_basic):
13672         (Fldap_add):
13673         (Fldap_modify):
13674         Make C++-compilable.
13675         Make sure GCPRO'ed variables are initialized.
13676         Use temp variables to avoid repeated calls to Flength.
13677
13678 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13679
13680         * sysfile.h:
13681         Make sure PATH_MAX is always defined.
13682         Include limits.h for PATH_MAX.
13683         Deprecate use of MAXPATHLEN.
13684
13685 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13686
13687         * emacs.c: Add reinit_vars_of_fileio.
13688         * symsinit.h: Add reinit_vars_of_fileio.
13689         * fileio.c (reinit_vars_of_fileio): New.
13690         * fileio.c (Fmake_temp_name):
13691         Initialize temp_name random number from microseconds to make
13692         collisions even less likely.  Initialize always at process startup
13693         time.  (make-temp-name) used to return the same file name twice in
13694         a row when PDUMP.
13695         Random stylistic fiddling.
13696         Comment fixes.
13697
13698 2000-03-20  Andy Piper  <andy@xemacs.org>
13699
13700         * glyphs.c (image_instantiate): allow text glyphs to be
13701         instantiated in the minibuffer window.
13702
13703 2000-03-19  Andy Piper  <andy@xemacs.org>
13704
13705         * glyphs.c (image_instance_hash): be careful about which items we
13706         hash on.
13707
13708         * glyphs-widget.c (tab_control_set_property): record into pending
13709         items rather than the actual items.
13710
13711         * glyphs-x.c (x_update_widget): use pending items to update with.
13712
13713         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13714         to update with.
13715
13716         * glyphs.c (mark_image_instance): mark pending items.
13717
13718         * window.c (Fset_window_configuration): record the buffer.
13719         (Fselect_window): totally revert previous change which breaks many
13720         things.
13721
13722 2000-03-18  Andy Piper  <andy@xemacs.org>
13723
13724         * glyphs-msw.c (mswindows_tab_control_update): force selected
13725         item.
13726
13727         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13728         window domain cache, otherwise we get inconsistencies at
13729         startup. There is something fishy at startup which can lead to the
13730         minibuffer being the selected window when the gutter content is
13731         instantiated.
13732
13733         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13734         gcpros.
13735         (parse_gui_item_tree_children): ditto.
13736         (parse_gui_item_tree_item): ditto.
13737
13738         * glyphs.c (Fupdate_widget_instances): return something.
13739
13740 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13741
13742         * window.c (Fselect_window): Undo 2000-03-17 change.
13743
13744 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13745
13746         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13747         against v7.0 libraries.  Insta-coredump city until the postgres
13748         folks fix it.
13749
13750 2000-03-17  Andy Piper  <andy@xemacs.org>
13751
13752         * faces.c (complex_vars_of_faces): don't give the widget face an
13753         inherited background pixmap.
13754
13755         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13756         selected item.
13757
13758         * event-stream.c (Fdispatch_non_command_events): return something.
13759
13760         * gutter.c (output_gutter): use widget face.
13761         (clear_gutter): ditto.
13762
13763         * NEWS: adjust again.
13764
13765         * window.c (Fselect_window): make sure this runs to completion to
13766         avoid oddities with Fset_window_configuration.
13767         (Fcurrent_window_configuration): in general do not save the
13768         minibuffer as the selected window.
13769
13770         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13771
13772 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13773
13774         * emacs.c (Frunning_temacs_p): Revert previous patch.
13775         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13776
13777 2000-03-16  Andy Piper  <andy@xemacs.org>
13778
13779         * glyphs-x.c (x_tab_control_update): if no widget values then
13780         return.
13781
13782         * NEWS: update for new features.
13783
13784         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13785         synthetic event to the native system.
13786         (reinit_vars_of_event_Xt): set force_event_pending to
13787         emacs_Xt_force_event_pending.
13788
13789         * events.h (struct event_stream): add force_event_pending.
13790
13791         * specifier.c (recompute_one_cached_specifier_in_window): add
13792         comment.
13793
13794         * redisplay.c (redisplay_frame): don't call
13795         update_frame_subwindows. Reset subwindow cachels when
13796         subwindows_changed, removing this was an optimization too far.
13797
13798         * redisplay-output.c (compare_runes): reorganize so that we catch
13799         glyph changes when we want them. Set optimize_output when this
13800         would help layouts.
13801         (redisplay_output_layout): remove frame_really_changed, use
13802         optimize_output instead.
13803
13804         * redisplay-msw.c (mswindows_output_display_block): reset
13805         optimize_output after outputting a glyph.
13806         * redisplay-x.c (x_output_display_block): ditto.
13807         * redisplay-tty.c (tty_output_display_block): ditto.
13808
13809         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13810         functions.
13811         (gutter_specs_changed): do specific gutter positions.
13812         (top_gutter_specs_changed): new function. Only update the
13813         specified gutter specs.
13814         (bottom_gutter_specs_changed): ditto.
13815         (left_gutter_specs_changed): ditto.
13816         (right_gutter_specs_changed): ditto.
13817
13818         * gui.c (gui_item_hash_internal): new function, does a real hash.
13819         (gui_item_id_hash): use it.
13820         (gui_item_hash): hash the eval'ed gui_item.
13821
13822         * gui-x.c (popup_selection_callback): send an eval event to call
13823         Fupdate_widget_instances.
13824
13825         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13826         to call Fupdate_widget_instances.
13827
13828         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13829         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13830
13831         * glyphs.c: (update_frame_subwindows): deleted.
13832         (Fupdate_widget_instances): new function for updating the dirty
13833         state of widgets that might have changed.
13834         (syms_of_glyphs): add Qupdate_widget_instances.
13835         (full_list_hash): hash a list completely.
13836         (image_instance_hash): use it for items and properties.
13837
13838         * frame-msw.c (mswindows_size_frame_internal): remove unused
13839         variable.
13840
13841         * faces.h (struct face_cachel): fix comment.
13842
13843         * event-stream.c (Fdispatch_non_command_events): new
13844         function. Process non-command events, forcing an event cycle
13845         beforehand.
13846         (syms_of_event_stream): declare.
13847         (event_stream_force_event_pending): new function. Force an event
13848         on the native event queue so that an event cycle will occur next
13849         time we check.
13850
13851         * event-msw.c:
13852         (struct ntpipe_shove_stream):
13853         (mswindows_enqueue_dispatch_event):
13854         (mswindows_dequeue_dispatch_event):
13855         (mswindows_cancel_dispatch_event):
13856         (mswindows_pump_outstanding_events):
13857         (mswindows_drain_windows_queue):
13858         (mswindows_handle_paint):
13859         (mswindows_wnd_proc):
13860         (mswindows_key_to_emacs_keysym):
13861         (get_process_input_waitable):
13862         (emacs_mswindows_delete_stream_pair): re-indent file.
13863         (mswindows_need_event): do not process further fds if the windows
13864         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13865         fixes the 100% cpu problem.
13866         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13867
13868 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13869
13870         * alloc.h: New.
13871         * dumper.h: New.
13872         * dumper.c: New.
13873
13874         * emacs.c: Moved dump file searching to dumper.c.
13875         (Frunning_temacs_p): Fixed.
13876
13877         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13878         last_lrecord_type_index_assigned.
13879
13880 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13881
13882         * symsinit.h: Added reinit parameter to init_console_stream
13883         declaration.
13884
13885         * lisp.h: Added file parameter to pdump_load declaration.
13886
13887         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13888         support.  Added dump file searching.
13889
13890         * config.h.in: Added EMACS_PROGNAME.
13891
13892         * console-stream.c (init_console_stream): Fix reinitialisation
13893         when running from temacs.
13894
13895         * alloc.c (pdump): Add id support.
13896         (pdump_load): Add file parameter and signature/id support.
13897
13898         * Makefile.in.in: Add full pdump support.
13899
13900 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13901
13902         * postgresql.c: Update documentation to reflect latest code
13903         status.
13904         (print_result): Show tuple counts in printed representation when
13905         appropriate.
13906         (Fpq_put_nbytes): MULE-ize.
13907         (Fpq_get_line_async): Ditto.
13908
13909 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13910
13911         * postgresql.c (Fpq_lo_import): Fix return value.
13912         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13913
13914 2000-03-13  Ben Wing  <ben@xemacs.org>
13915
13916         * alloc.c (pdump_load):
13917         Fix compile warning under mswin.
13918
13919 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13920
13921         * postgresql.c: Mule-ization, bug fixes.
13922         Use PG_CODING to encapsulate coding system name changes.
13923         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13924         (pg-coding-system): Create.
13925
13926         (Fpq_conn_defaults): Mule-ize.
13927         (Fpq_connectdb): Mule-ize & bug fix.
13928         (Fpq_connect_start): Mule-ize.
13929         (Fpq_set_client_encoding): Mule-ize.
13930         (Fpq_finish): Document `DEAD' connection status.
13931         (Fpq_clear): Ditto.
13932         (Fpq_pgconn): Mule-ize.
13933         (Fpq_exec): Mule-ize & bug fix.
13934         (Fpq_send_query): Ditto.
13935         (Fpq_get_result): Ditto.
13936         (Fpq_res_status): Mule-ize.
13937         (Fpq_result_error_message): Mule-ize.
13938         (Fpq_ntuples): fix comments.
13939         (Fpq_fname): Mule-ize.
13940         (Fpq_fnumber): Mule-ize.
13941         (Fpq_ftype): fix comments.
13942         (Fpq_get_value): Mule-ize.
13943         (Fpq_cmd_status): Ditto.
13944         (Fpq_cmd_tuples): Ditto.
13945         (Fpq_oid_value): Ditto.
13946         (Fpq_notifies): Ditto.
13947         (Fpq_lo_import): Ditto.
13948         (Fpq_lo_export): Ditto.
13949         (Fpq_get_line): Ditto.
13950         (Fpq_put_line): Mule-ize and bug fix.
13951         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13952
13953 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13954
13955         * postgresql.c (vars_of_postgresql): Mule-ize.
13956         (Fpq_conn_defaults): Ditto.
13957
13958 2000-03-12  Ben Wing  <ben@xemacs.org>
13959
13960         * alloc.c (Fmake_byte_code):
13961         * alloc.c (debug_string_purity_print):
13962         * alloc.c (pdump_backtrace):
13963         * alloc.c (pdump_get_indirect_count):
13964         * alloc.c (pdump_register_sub):
13965         * alloc.c (pdump_register_object):
13966         * alloc.c (pdump_register_struct):
13967         * alloc.c (pdump_dump_data):
13968         * alloc.c (pdump_reloc_one):
13969         Minor cleanups.
13970
13971         * console-msw.c:
13972         * console-msw.c (GetConsoleHwnd):
13973         * console-msw.c (msw_hide_console):
13974         * console-msw.c (msw_show_console):
13975         * console-msw.c (msw_ensure_console_buffered):
13976         * console-msw.c (msw_output_console_string):
13977         * console-msw.c (console_type_create_mswindows):
13978
13979         a) Added functions to manipulate the console window for use with
13980         shell support.
13981
13982         b) Added support for writing text to the console, which is now
13983         used under Windows when xemacs is not being run non-interactively,
13984         to write text that would otherwise be destined for stdout because
13985         under these circumstances, text written to stdout tends to
13986         disappear and not be seen.
13987
13988         * console-msw.h:
13989         * event-Xt.c:
13990         * event-Xt.c (x_event_to_emacs_event):
13991         * event-Xt.c (describe_event_window):
13992         * events-mod.h (XEMACS_MOD_CONTROL):
13993         * events.c:
13994         * events.c (Fmake_event):
13995         * events.c (character_to_event):
13996         * events.c (event_to_character):
13997         * events.c (format_event_object):
13998         * events.c (Fevent_modifiers):
13999         * events.h:
14000         * events.h (struct key_data):
14001         * events.h (struct button_data):
14002         * events.h (struct misc_user_data):
14003         * frame-x.c (Fcde_start_drag_internal):
14004         * frame-x.c (Foffix_start_drag_internal):
14005         * gpmevent.c (Freceive_gpm_event):
14006         * keymap.c:
14007         * keymap.c (bucky_sym_to_bucky_bit):
14008         * keymap.c (control_meta_superify):
14009         * keymap.c (make_key_description):
14010         * keymap.c (keymap_lookup_directly):
14011         * keymap.c (create_bucky_submap):
14012         * keymap.c (keymap_store):
14013         * keymap.c (define_key_check_and_coerce_keysym):
14014         * keymap.c (define_key_parser):
14015         * keymap.c (define_key_alternate_name):
14016         * keymap.c (Fdefine_key):
14017         * keymap.c (raw_lookup_key_mapper):
14018         * keymap.c (struct map_keymap_unsorted_closure):
14019         * keymap.c (map_keymap_unsorted_mapper):
14020         * keymap.c (map_keymap_sort_predicate):
14021         * keymap.c (map_keymap_sorted):
14022         * keymap.c (accessible_keymaps_mapper_1):
14023         * keymap.c (where_is_recursive_mapper):
14024         * keymap.c (describe_map_mapper):
14025         * keymap.c (describe_map_sort_predicate):
14026         * keymap.c (describe_map):
14027         * keymap.c (complex_vars_of_keymap):
14028         And a number of other files, the key modifier preprocessor
14029         constants that xemacs uses have names that conflict with constants
14030         defined under MS Windows for other purposes, so they were renamed
14031         to begin with the prefix XEMACS_. The variables that hold such
14032         modifiers were changed to consistently be of type int to fix
14033         various compile warnings.
14034
14035         * console.c (complex_vars_of_console):
14036         * device.c:
14037         * device-msw.c:
14038         * device-msw.c (mswindows_finish_init_device):
14039         * device-msw.c (msw_get_workspace_coords):
14040         * device-msw.c (mswindows_device_system_metrics):
14041         and various other files, added support for a new
14042         device property called offset-workspace which returns the position
14043         of the upper left corner of the workspace area and goes along with
14044         the existing size-workspace property.
14045
14046         * dialog-msw.c:
14047         * dialog-msw.c (push_bufbyte_string_as_unicode):
14048         * dialog-msw.c (mswindows_popup_dialog_box):
14049         Added support for XEmacs-style accelerator specifications in
14050         button text.  Note: I didn't add support for this under X Windows,
14051         and somebody needs to do this.
14052
14053         * dialog.c:
14054         * dialog.c (Fpopup_dialog_box):
14055         Documented the support for accelerators that was just mentioned.
14056
14057         editfns.c (get_home_directory): Changed behavior under Windows
14058         when HOME not defined; former behavior was irretrievably broken.
14059
14060         * emacs.c:
14061         * emacs.c (main_1):
14062         * emacs.c (main):
14063         * minibuf.c (clear_echo_area_internal):
14064         * minibuf.c (echo_area_append):
14065         * print.c:
14066         * print.c (std_handle_out_external):
14067         * print.c (std_handle_out_va):
14068         * print.c (fatal):
14069         * print.c (write_string_to_stdio_stream):
14070         * print.c (output_string):
14071         * print.c (debug_print):
14072         * print.c (debug_backtrace):
14073         * print.c (debug_short_backtrace):
14074         Cleaned up the code that prints text to stdout so that this can be
14075         changed to output into a console window instead under MS Windows,
14076         as described above.
14077
14078         * eval.c:
14079         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14080         * eval.c (internal_catch):
14081         * eval.c (unwind_to_catch):
14082         * eval.c (throw_or_bomb_out):
14083         * eval.c (condition_case_1):
14084         * eval.c (signal_1):
14085         * eval.c (check_error_state_sanity):
14086         * eval.c (call_with_suspended_errors_1):
14087         * eval.c (call_with_suspended_errors):
14088         * eval.c (reinit_vars_of_eval):
14089         Added code to catch throw loops and check for a pesky bug that may
14090         be gone now.
14091
14092         * event-msw.c:
14093         * event-msw.c (key_needs_default_processing_p):
14094         * event-msw.c (mswindows_wnd_proc):
14095         * event-msw.c (mswindows_modifier_state):
14096         * event-msw.c (emacs_mswindows_quit_p):
14097         * event-msw.c (vars_of_event_mswindows):
14098         a) Added support for using the alt key to select menu items as is
14099         standard under MS Windows.  This is controlled using the variable
14100         menu-accelerator-enabled, just like under X Windows.  There is an
14101         option on the options menu to turn this support on.  I really
14102         think that it should be on by default under Windows, but I'm not
14103         going to make this change yet.
14104
14105         b)  Added support for dynamic display size changes under Windows.
14106
14107         * event-stream.c:
14108         * event-stream.c (maybe_echo_keys):
14109         * event-stream.c (Fnext_event):
14110         * event-stream.c (command_builder_find_leaf):
14111         * event-stream.c (lookup_command_event):
14112         * event-stream.c (execute_command_event):
14113         * event-stream.c (pre_command_hook):
14114         * event-stream.c (post_command_hook):
14115         * event-stream.c (syms_of_event_stream):
14116         * event-stream.c (vars_of_event_stream):
14117         * event-stream.c (complex_vars_of_event_stream):
14118         * events.h (struct command_builder):
14119
14120         a) Tried to clean up a little bit the horribly written x-specific
14121         accelerator code that crept into this file.  I moved this code
14122         into menubar-x.c where it belongs. I also needed to move the
14123         command builder structure into the file events.h because it is
14124         accessed directly by this accelerator code.  What I didn't do, but
14125         which should be done at some point, is to properly abstract this
14126         code using device methods instead of the kludgy way that it
14127         currently hooks into the event code.
14128
14129         b) Added the lisp variables this-command-properties and
14130         last-command- properties, which should be used to synchronize two
14131         adjacent commands in preference to playing games with the variable
14132         this-command, which is typically what happens.
14133
14134         c) Added some slightly nasty code to hook into the lisp support
14135         for shifted- motion-key selection.  This is actually necessary for
14136         somewhat complicated reasons, which are described in
14137         simple.el. (NB: I think the proper thing would be to have the code
14138         that calls the pre and post command hooks also call out to generic
14139         lisp functions in simple.el, where all built-in stuff could be
14140         added.  I will think about this more.)
14141
14142         * event-unixoid.c (poll_fds_for_input):
14143         * lread.c (readchar):
14144         * redisplay-tty.c (tty_clear_frame):
14145         * redisplay-x.c (x_get_gc):
14146         * signal.c (interrupt_signal):
14147         And a whole bunch of other files: fixed up places that printed
14148         directly to stderr to instead call the function stderr_out so that
14149         the changes I made under Windows work correctly.
14150
14151         * filemode.c (mode_string):
14152         Warning fixes.
14153
14154         * frame-msw.c:
14155         * frame-msw.c (mswindows_size_frame_internal):
14156         Fixed the computation of frame size and position to keep the frame
14157         within the workspace area, rather than within the physical
14158         dimensions of the screen, so that the frame doesn't overlap window
14159         manager decorations, such as the start menu and toolbar, typically
14160         at the bottom of the screen.
14161
14162         * frame.c (vars_of_frame):
14163         Changed the default frame title format under MS Windows to consist
14164         of buffername-XEmacs, which is standard under MS Windows.  I think
14165         it might be a good idea to change this everywhere because I think
14166         it is superior to the current frame title format, but this is the
14167         kind of change that is likely to cause some people to get annoyed,
14168         so I'm not making it.
14169
14170         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14171
14172         * gui-msw.c (mswindows_handle_gui_wm_command):
14173         Fixed compile warnings.
14174
14175         * gui-x.c:
14176         * gui-x.c (strdup_and_add_accel):
14177         * gui-x.c (button_item_to_widget_value):
14178         * gui-x.h:
14179         Added code to automatically put an accelerator onto the beginning
14180         of menu items that don't have one as is now the standard, and is
14181         described more later.  Also fixed things so that the menu item
14182         name can be an evaluated expression, again a new standard.
14183
14184         * gui.c:
14185         * gui.c (gui_item_add_keyval_pair):
14186         * gui.c (make_gui_item_from_keywords_internal):
14187         * gui.c (gui_add_item_keywords_to_plist):
14188         * gui.c (gui_item_accelerator):
14189         * gui.c (gui_name_accelerator):
14190         * gui.c (gui_item_included_p):
14191         * gui.c (gui_item_display_flush_left):
14192         * gui.c (gui_item_display_flush_right):
14193         * gui.c (parse_gui_item_tree_item):
14194         * gui.c (parse_gui_item_tree_children):
14195         * gui.c (parse_gui_item_tree_list):
14196         Mule-ized.  Cleanup.  GCPRO addition.
14197
14198         * line-number.c (buffer_line_number):
14199         * lisp.h:
14200         * lisp.h (EMACS_INT_MAX):
14201         Added the manifest constant EMACS_INT_MIN corresponding to the
14202         existing constant EMACS_INT_MAX.  This is partially to fix compile
14203         warnings under Windows, and partly for cleanliness.
14204
14205         * menubar-msw.c:
14206         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14207         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14208         * menubar-msw.c (displayable_menu_item):
14209         * menubar-msw.c (populate_menu_add_item):
14210         * menubar-msw.c (populate_or_checksum_helper):
14211         * menubar-msw.c (populate_menu):
14212         * menubar-msw.c (update_frame_menubar_maybe):
14213         * menubar-msw.c (prune_menubar):
14214         * menubar-msw.c (msw_char_is_accelerator):
14215         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14216         * menubar-msw.c (mswindows_handle_wm_command):
14217         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14218         * menubar-msw.c (mswindows_handle_wm_initmenu):
14219         * menubar-msw.c (mswindows_update_frame_menubars):
14220         * menubar-msw.c (mswindows_free_frame_menubars):
14221         * menubar-msw.c (mswindows_popup_menu):
14222         Fixed a bug in handling accelerators where an extra character
14223         would be displayed in the menu item.  Also generalized the
14224         function displayable_menu_item because it is now used by the
14225         dialog box code as well.  And finally, added code in the functions
14226         that create the menubar to extract a list of accelerators for the
14227         top level menubar, which is used in the event code to determine
14228         whether a particular alt-key combination should be used to invoke
14229         a menu item, or should be passed through to access the standard
14230         XEmacs keymap binding for this key combination.
14231
14232         Much needed GCPROing.
14233
14234         * menubar-x.c:
14235         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14236         * menubar-x.c (menu_item_descriptor_to_widget_value):
14237         * menubar-x.c (restore_in_menu_callback):
14238         * menubar-x.c (x_popup_menu):
14239         * menubar-x.c (menu_move_up):
14240         * menubar-x.c (menu_move_down):
14241         * menubar-x.c (menu_move_left):
14242         * menubar-x.c (menu_move_right):
14243         * menubar-x.c (menu_select_item):
14244         * menubar-x.c (command_builder_operate_menu_accelerator):
14245         * menubar-x.c (menu_accelerator_junk_on_error):
14246         * menubar-x.c (command_builder_find_menu_accelerator):
14247         * menubar-x.c (Faccelerate_menu):
14248         * menubar.h:
14249         Moved a whole bunch of code here that was previously in
14250         event-stream.c as described above.  There is also code connected
14251         to the new standard of adding an accelerator to the beginning of
14252         menu items that don't have one as described above and below.
14253
14254         * menubar.c:
14255         * menubar.c (menu_parse_submenu_keywords):
14256         * menubar.c (Fmenu_find_real_submenu):
14257         * menubar.c (Fnormalize_menu_item_name):
14258         * menubar.c (syms_of_menubar):
14259         * menubar.c (vars_of_menubar):
14260         * menubar.c (complex_vars_of_menubar):
14261
14262         a) Cleaned up a bunch of documentation and improved it.
14263
14264         b) XEmacs now automatically adds an accelerator onto the beginning
14265         of any menu items that don't have one.  I did this because there
14266         will inevitably be some menu items on the main menubar that don't
14267         have accelerators on them because the package that adds that
14268         particular menu item hasn't yet been fixed up to have accelerators
14269         in them and it looked rather strange to have some items with and
14270         some items without accelerators, especially since even in items
14271         without accelerators, you can, at least under windows, still
14272         access the item through an accelerator corresponding to the first
14273         character in the item's name.  If people don't like this behavior,
14274         I can add a variable to turn it off optionally, but I'm not sure
14275         this is a good idea because we really do need to have accelerators
14276         on all of the menu items, and if a package doesn't like the
14277         accelerators being put on the first character, then it should put
14278         the accelerators where they belong.
14279
14280         c) I made a behavior change, which is that the descriptor that
14281         specifies the text of the menu item, which formerly was just a
14282         string, can now also be an evaluated expression.  This makes this
14283         descriptor parallel with all of the others, which could also be
14284         evaluated expressions.  This also obviates the need for the
14285         keyword :label, which was previously listed in the documentation
14286         as unimplemented, and which was for the same purpose.
14287
14288         d) GCPROing.
14289
14290         * ntproc.c:
14291         * ntproc.c (new_child):
14292         * ntproc.c (sys_spawnve):
14293         * ntproc.c (find_child_console):
14294         * ntproc.c (sys_kill):
14295         Fixed compile warnings.  By the way, this file should really go
14296         away entirely, and this will happen as soon as Kirill makes his
14297         final round of process cleanups, which affect the function
14298         call-process.
14299
14300         * process-nt.c:
14301         * process-nt.c (struct nt_process_data):
14302         * process-nt.c (find_process_from_pid):
14303         * process-nt.c (send_signal_the_nt_way):
14304         * process-nt.c (enable_child_signals):
14305         * process-nt.c (find_child_console):
14306         * process-nt.c (send_signal_the_95_way):
14307         * process-nt.c (nt_finalize_process_data):
14308         * process-nt.c (ensure_console_window_exists):
14309         * process-nt.c (nt_create_process):
14310         * process-nt.c (nt_kill_child_process):
14311         * process-nt.c (nt_kill_process_by_pid):
14312         * process-nt.c (nt_open_network_stream):
14313         * process-nt.c (vars_of_process_nt):
14314         Copied over code from Emacs 20.5 to correctly send signals to sub-
14315         processes under Windows 95.  Also added code to automatically
14316         create and hide console window when a sub-process is created under
14317         Windows 95, which obviates the need for the separate runemacs.exe
14318         executable, and finally implemented some variables that were
14319         implemented in Emacs 20.5, but previously not in XEmacs.  These
14320         include mswindows- start-process-share-console and
14321         mswindows-start-process-inherit-error-mode. (Both of these only
14322         apply to Windows 95.)
14323
14324         * regex.c (regex_compile): Fixed a compile warning.
14325
14326         * select-msw.c:
14327         * select-msw.c (mswindows_own_selection):
14328         * select-msw.c (mswindows_get_foreign_selection):
14329         * select-msw.c (mswindows_disown_selection):
14330         * select-msw.c (console_type_create_select_mswindows):
14331         * select-msw.c (syms_of_select_mswindows):
14332         Cleaned up the file and implemented the device method
14333         selection_exists_p, which had accidentally been left out.  Also
14334         removed four lisp functions that were remnants from before the
14335         time when the selection code was properly device abstracted.
14336         These functions are no longer needed because there are generic
14337         equivalents, and because they were added recently and don't exist
14338         in FSF Emacs, I don't think there's any problem with just deleting
14339         them.
14340
14341         * sysdep.c:
14342         * sysdep.c (sys_subshell):
14343         Fixed a compile warning, although in this case there's probably
14344         something wrong with this code, and it ought to be looked into
14345         more thoroughly by somebody who understands it.
14346
14347         * window.c:
14348         * window.c (Fwindow_text_area_height):
14349         * window.c (Fwindow_width):
14350         * window.c (Fwindow_full_width):
14351         * window.c (Fwindow_pixel_width):
14352         * window.c (debug_print_window):
14353         * window.c (syms_of_window):
14354         Added functions window-text-area-height and window-full-width,
14355         which are functions for returning various width and height
14356         characteristics of a window. (One of these functions is necessary
14357         for making the file dialog box work correctly, and the other one
14358         was added for completeness.)  Also added a table to the
14359         documentation for window-height which describes the entire scheme
14360         for accessing width and height characteristics of a window.
14361
14362 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14363
14364         * nt.c (fstat): Added a comment for another problem with
14365         non-encapsulated [f]stat(), reported by Adrian Aichner
14366         <aichner@ecf.teradyne.com>.
14367
14368 2000-03-11  Andy Piper  <andy@xemacs.org>
14369
14370         * window.c (make_dummy_parent): initialize subwindow instance
14371         cache.
14372         (Fset_window_configuration): zero extent_modiff.
14373
14374 2000-03-10  Andy Piper  <andy@xemacs.org>
14375
14376         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14377         more changes can be triggered.
14378         (Fredisplay_frame): ditto.
14379         (Fredraw_device): ditto.
14380         (Fredisplay_device): ditto.
14381         (redisplay_frame): make non-static.
14382         (redisplay_frame): call update_frame_gutter_geometry outside of
14383         display proper.
14384
14385         * gutter.h: declare update_frame_gutter_geometry.
14386
14387         * redisplay.h: declare redisplay_frame.
14388
14389         * gutter.c (update_frame_gutter_geometry): move geometry changes
14390         in update_frame_gutters here. Geometry changes can only occur
14391         outside of redisplay.
14392         (update_frame_gutters): remove geometry change code.
14393         (Fredisplay_gutter_area): make sure that we are in display when we
14394         update and that we have flushed any size changes.
14395
14396 2000-03-11  Andy Piper  <andy@xemacs.org>
14397
14398         * alloc.c (pdump_dump_data): remove i & count shadows.
14399
14400 2000-02-27  Mike Alexander  <mta@arbortext.com>
14401
14402         * sysdep.h: Declare pdump_read_file
14403
14404         * sysdep.c (pdump_read_file): New function
14405
14406         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14407         dump data
14408
14409 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14410
14411         * lrecord.h: add `lrecord_type_pgsetenv'.
14412
14413 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14414
14415         * symsinit.h: declare (vars|syms)_of* functions.
14416         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14417
14418 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14419
14420         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14421
14422         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14423         GCCs.
14424
14425         * emacs.c (main_1): Call postgres initialization code.
14426
14427         * postgresql.h: New file.  PostgreSQL RDBMS support.
14428         * postgresql.c: New file.
14429
14430 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14431
14432         * redisplay-output.c (redisplay_output_display_block): Disable
14433         redundant code.
14434
14435 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14436
14437         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14438         (Fcanna_henkan_next): Ditto.
14439         (Fcanna_bunsetu_henkou): Ditto.
14440         (Fcanna_henkan_kakutei): Ditto.
14441         (Fcanna_henkan_end): Ditto.
14442         (Fcanna_henkan_quit): Ditto.
14443         (Fcanna_henkan_next): Set retun value correctly.
14444         (c2mu): Use unsigned char instead of signed char.
14445
14446 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14447
14448         * emacs.c (main_1): Always call syms_of_gui.
14449         * inline.c: include gui.h
14450
14451 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14452
14453         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14454         converted to Lisp_Object.
14455         (Qtop_bottom): New variable.
14456         (syms_of_redisplay): Initialize it.
14457         * redisplay.h (Vvisible_bell): Ditto.
14458         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14459         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14460         only flash top and bottom.
14461
14462 2000-03-08  Andy Piper  <andy@xemacs.org>
14463
14464         * buffer.c (Frename_buffer): record new buffer name the right way.
14465
14466 2000-03-08  Andy Piper  <andy@xemacs.org>
14467
14468         * glyphs.c (update_subwindow): increase hash depth so that widget
14469         items get picked up properly.
14470
14471         * redisplay-output.c (compare_runes): increase hash depth so that
14472         widget items get picked up properly.
14473
14474 2000-03-08  Andy Piper  <andy@xemacs.org>
14475
14476         * gutter.c (output_gutter): add some debug.
14477
14478         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14479         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14480         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14481
14482         * redisplay-output.c (compare_runes): use display_hash to
14483         determine if glyphs really are not the same.
14484
14485         * glyphs.c (update_subwindow): check display_hash to see if
14486         anything really needs to be updated. If not then do
14487         nothing. Record the display_hash after updating.
14488         (image_instance_equal): compare the image_instance face also.
14489
14490 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14491
14492         * redisplay.h: Fix comment style.
14493
14494 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14495
14496         * consle-msw.h (struct mswindows_frame):
14497         Added new member paint_pending to indicate whether a WM_PAINT
14498         magic event has been queued for this frame.
14499
14500         * event-msw.c (mswindows_drain_windows_queue):
14501         Don't queue a WM_PAINT magic event if one is already queued.
14502         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14503
14504         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14505
14506 2000-03-07  Didier Verna  <didier@xemacs.org>
14507
14508         * dired.c: #include `regex.h' after `sysfile.h'.
14509
14510 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14511
14512         * sound.c (init_nas_sound): Fix compiler warning.
14513
14514         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14515         (FREE_STRUCT_P):
14516         (MARK_STRUCT_AS_FREE):
14517         (MARK_STRUCT_AS_NOT_FREE):
14518         Make `gcc -fstrict-aliasing' work properly.
14519
14520 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14521
14522         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14523         (mswindows_delete_device): Call CoUnnitialize().
14524
14525         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14526
14527 2000-02-25    <CraigL@DyCon.com>
14528
14529         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14530         <errno.h>.
14531
14532         * sysdep.c: This extern declaration for environ prevents MinGW
14533         from finding the variable in CRTDLL.DLL.
14534
14535         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14536         windows headers.
14537         (SHGFI_EXETYPE): ..
14538         (WM_MOUSEWHEEL): ..
14539         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14540         definitions.
14541         (MMRESULT): Removed, now defined in cygwin's windows headers.
14542         (TIMECAPS): ..
14543         (uid_t,gid_t,pid_t,ssize_t): ..
14544         (_timeb): Removed, MinGW defines both _timeb and timeb.
14545         (HAVE_H_ERRNO): Added.
14546         (HAVE_TZNAME): Added, configure is not detecting this.
14547
14548 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14549
14550         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14551         * syntax.c (syntax_match): Use it.
14552
14553         * cmds.c: Import auto-fill-chars from FSF Emacs.
14554         (Vauto_fill_chars): New variables.
14555         (internal_self_insert): Check Vauto_fill_chars.
14556         (vars_of_cmds):
14557         Declare auto-fill-chars as a Lisp variable and initialize it.
14558
14559 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14560
14561         * fileio.c (Fmake_symbolic_link):
14562         (Ffile_symlink_p):
14563         Run handlers even if local machine doesn't have symlinks.
14564
14565 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14566
14567         * event-msw.c (mswindows_drain_windows_queue):
14568         Don't generate paint magic events for non-XEmacs frames.
14569
14570 2000-03-05  Andy Piper  <andy@xemacs.org>
14571
14572         * redisplay.c (redisplay_frame): generate_displayable_area and
14573         friends assumes that we are not in GC, we therefore have to make
14574         sure that this doesn't happen.
14575
14576         * gutter.c (calculate_gutter_size): generate_displayable_area
14577         assumes that we are not in GC, we therefore have to make sure that
14578         this doesn't happen.
14579
14580 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14581
14582         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14583
14584 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14585
14586         * redisplay.c (regenerate_window): Make sure we set a sane value
14587         for end_pos even if we jump out of the loop.
14588         (regenerate_window): Answer Ben's question :-).
14589         (start_end_of_last_line): Add may_error argument.
14590         (start_of_last_line):
14591         (end_of_last_line): Pass may_error = 0.
14592         (end_of_last_line_may_error): New function.
14593         (pixel_to_glyph_translation): Use it, so we don't crash in
14594         event_to_glyph.
14595
14596 2000-03-04  Andy Piper  <andy@xemacs.org>
14597
14598         * window.h (struct window): add gutter_extent_modiff.
14599
14600         * window.c (allocate_window): zero out gutter_extent_modiff.
14601
14602         * redisplay.h: declare sync_display_line_structs.
14603
14604         * redisplay.c (add_glyph_rune): add a better comment.
14605
14606         * redisplay-output.c (sync_display_line_structs): made non-static.
14607         (compare_runes): remove unneccesary glyph cachel access.
14608
14609         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14610
14611         * gutter.c (output_gutter): don't output the gutter if extent
14612         changes only involve extents in buffers. use 4 sets of display
14613         lines.
14614         (gutter_extent_signal_changed_region_maybe): new function. Mark
14615         extents in gutters as changed.
14616         (update_frame_gutters): use 4 sets of display lines.
14617         (reset_gutter_display_lines): ditto.
14618         (free_frame_gutters): ditto.
14619         (redraw_exposed_gutter): force output of gutters.
14620
14621         * frame.h (struct frame): add 4 sets of gutter display lines.
14622
14623         * extents.c: (extent_changed_for_redisplay): signal changes to
14624         extents in strings in the gutter as well as extents in buffers.
14625
14626 2000-03-02  Andy Piper  <andy@xemacs.org>
14627
14628         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14629
14630         * frame.c (Fmake_frame): make sure the gutters get initialized
14631         after the frame is visible.
14632         (set_frame_selected_window): re-arrange compilation macros a
14633         little.
14634         (change_frame_size_1): mark gutters changed.
14635
14636         * device.c (Fset_device_class): mark gutters changed.
14637
14638 2000-03-01  Andy Piper  <andy@xemacs.org>
14639
14640         * window.c (window_top_frame_gutter_height): deleted.
14641         (window_bottom_frame_gutter_height): ditto.
14642         (window_left_frame_gutter_height): ditto.
14643         (window_right_frame_gutter_height): ditto.
14644         (window_top_gutter_height): don't use them.
14645         (window_bottom_gutter_height): ditto.
14646         (window_left_gutter_width): ditto.
14647         (window_right_gutter_width): ditto.
14648         (Fsplit_window): ditto.
14649         (Fwindow_pixel_edges): don't use border dimensions here.
14650
14651         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14652         (update_scrollbar_instance): ditto.
14653
14654         * redisplay.c (generate_modeline): don't take gutters into account.
14655         (generate_modeline): ditto.
14656         (redisplay_frame): small gutter display optimization.
14657
14658         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14659
14660         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14661         gutters into account.
14662
14663         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14664         for window position and type.
14665
14666         * gutter.c (get_gutter_coords): fix for frame gutters.
14667         (update_frame_gutters): update frame geometry if the gutters have
14668         changed.
14669         (init_frame_gutters): record current gutter geometries.
14670
14671         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14672         var.
14673         (mswindows_widget_instantiate): ditto.
14674
14675         * frame.h (struct frame): add current_gutter_bounds.
14676
14677         * frame.c (change_frame_size_1): position window and minibuffer
14678         appropriately taking into account the frame gutters.
14679
14680         * frame-x.c: (x_initialize_frame_size): take into account the
14681         frame gutters.
14682
14683 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14684
14685         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14686
14687 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14688
14689         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14690
14691 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14692
14693         * file-coding.c (reset_decoding_stream): Clear previous
14694         detection state when autodetect.
14695
14696 2000-02-29  Didier Verna  <didier@xemacs.org>
14697
14698         * extents.c (set_extent_glyph_1): don't require extents to be
14699         attached.
14700
14701 2000-02-27  Andy Piper  <andy@xemacs.org>
14702
14703         * gutter.c (Fset_default_gutter_position): don't default left and
14704         right gutter visibility to t.
14705         (Fset_default_gutter_position): run
14706         default-gutter-position-changed-hook.
14707         (syms_of_gutter): add default-gutter-position-changed-hook.
14708
14709 2000-02-26  Andy Piper  <andy@xemacs.org>
14710
14711         * specifier.c (Fmake_specifier): add gutter references.
14712
14713         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14714
14715         * lisp.h: declare Fvalid_plist_p.
14716
14717         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14718         as changed.
14719         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14720         well as its visibility so that it gets reconstructed.
14721         (construct_window_gutter_spec): new function. Construct a string
14722         to be displayed in the gutter from a plist of strings. Take care
14723         to only use elements that are declared as visible.
14724         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14725         WINDOW_GUTTER.
14726         (gutter_validate): allow plists of strings in the specifier.
14727         (gutter_specs_changed): construct the real_gutter from the gutter
14728         specs using construct_window_gutter_spec.
14729         (gutter_visible_validate): gutter-visible is a new specifier type.
14730         (Fgutter_visible_specifier_p): new function for the new specifier.
14731         (syms_of_gutter): declare gutter-visible and
14732         Fgutter_visible_specifier_p.
14733         (specifier_type_create_gutter): intitalize new gutter-visible
14734         specifier.
14735         (reinit_specifier_type_create_gutter): ditto.
14736         (specifier_vars_of_gutter): use new specifier type for gutter
14737         visibility.
14738         (init_frame_gutters): construct real_gutter correctly.
14739         (Fgutter_specifier_p): beef up documentation.
14740         (Fgutter_size_specifier_p): ditto.
14741
14742         * winslots.h: add real_gutter slots.
14743
14744 2000-02-25  Andy Piper  <andy@xemacs.org>
14745
14746         * device-msw.c: Be kind to older cygwin versions. From Raymond
14747         Toy <toy@rtp.ericsson.se>.
14748
14749         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14750         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14751
14752 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14753
14754         * elhash.c (MARK_OBJ): Practice macro hygiene.
14755
14756 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14757
14758         * miscplay.c: s/__inline__/inline/g;
14759         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14760         (get_device_compdc): INLINE ==> static inline
14761         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14762         find -name '*.h' | \
14763         xargs global-replace \
14764         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14765
14766 2000-02-25  Andy Piper  <andy@xemacs.org>
14767
14768         * window.c (window_top_frame_gutter_height): new function.
14769         (window_top_window_gutter_height): ditto.
14770         (window_top_gutter_height): use them.
14771         (window_bottom_frame_gutter_height): new function.
14772         (window_bottom_window_gutter_height): ditto.
14773         (window_bottom_gutter_height): use them.
14774         (window_left_window_gutter_width): new function.
14775         (window_left_frame_gutter_width): ditto.
14776         (window_left_gutter_width): use them.
14777         (window_right_window_gutter_width): new function.
14778         (window_right_frame_gutter_width): ditto.
14779         (window_right_gutter_width): use them.
14780         (window_pixel_height): new function. calulate window pixel height
14781         with frame gutter involvement.
14782         (Fsplit_window): calculate new sizes taking frame gutters into
14783         account.
14784         (window_char_height_to_pixel_height): don't include frame gutters.
14785         (window_char_height): use window_pixel_height.
14786         (window_pixheight): rename from window_pixel_height.
14787         (change_window_height): use it.
14788         (window_pixel_height_to_char_height): don't include frame gutters.
14789         (window_char_width_to_pixel_width): ditto.
14790
14791 2000-02-25  Andy Piper  <andy@xemacs.org>
14792
14793         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14794         if it is.
14795
14796 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14797
14798         * alloc.c (staticpro):
14799         (staticpro_nodump):
14800         (dumpstruct):
14801         (dumpopaque):
14802         (pdump_wire):
14803         (pdump_wire_list):
14804         (compact_string_chars):
14805         (pdump_dump_wired):
14806         Convert:  if (foo) abort();  ==>  assert (! foo);
14807
14808         * eldap.c (Fldap_search_basic):
14809         (Fldap_add):
14810         (Fldap_modify):
14811         (Fldap_delete):
14812         Fix compiler warnings, and possible crashes if (random) return
14813         value were to be used.
14814
14815 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14816
14817         * device-msw.c: Workaround ResetDC failure.
14818
14819         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14820         applying a devmode.
14821
14822         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14823         (mswindows_text_width): Do not start printer page.
14824
14825         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14826
14827         * glyphs-msw.c: Added image methods to msprinter console and
14828         msprinter-specific image instantiation.
14829
14830 2000-02-20  Mike Alexander  <mta@arbortext.com>
14831
14832         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14833         to avoid crashes when selection-sets-clipboard is on
14834         (mswindows_own_selection): ditto
14835
14836 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14837
14838         * glyphs-msw.c:
14839         * redisplay-msw.c (get_frame_dc):
14840         (get_frame_compdc):
14841         * console-msw.h:
14842         * device-msw.c (mswindows_init_device):
14843         (mswindows_delete_device):
14844         (msprinter_init_device):
14845         (msprinter_delete_device):
14846         * frame-msw.c (mswindows_init_frame_1):
14847         (mswindows_delete_frame):
14848         (msprinter_init_frame_3):
14849         (msprinter_delete_frame): Move compatible DC to device object from
14850         frame object, for both mswindows and msprinter. Only one at a time
14851         is needed, it is a real waste to have one per frame!
14852
14853 2000-02-23  Andy Piper  <andy@xemacs.org>
14854
14855         * glyphs.c: add dynamic width and height elements.
14856         (image_instance_equal): ditto.
14857
14858         * glyphs-widget.c (widget_query_geometry): calculate width and
14859         height dynamically if required.
14860         (initialize_widget_image_instance): initialize dynamic dimensions.
14861         (widget_instantiate): pick-up dynamic dimensions.
14862
14863         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14864         dynamic determination. Add appropriate macros.
14865
14866         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14867         dimensions safe.
14868         (WINDOW_GUTTER_SIZE): ditto.
14869         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14870
14871         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14872         inline.
14873         (get_frame_dc): ditto.
14874
14875         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14876         here.
14877
14878 2000-02-23  Martin Buchholz <martin@xemacs.org>
14879
14880         * XEmacs 21.2.31 is released.
14881
14882 2000-02-22  Ben Wing <ben@xemacs.org>
14883
14884         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14885
14886 2000-02-22  Andy Piper  <andy@xemacs.org>
14887
14888         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14889
14890 2000-02-21  Mike Sperber <mike@xemacs.org>
14891
14892         * .dbxrc:
14893         * .gdbinit:
14894         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14895         variables.
14896
14897 2000-02-21  Mike Sperber <mike@xemacs.org>
14898
14899         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14900
14901 2000-02-21  Martin Buchholz <martin@xemacs.org>
14902
14903         * XEmacs 21.2.30 is released.
14904
14905 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14906
14907         Performance hacking.
14908         * *.c (syms_of_*):
14909         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14910         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14911         * emacs.c (main_1):
14912         * lisp.h (DEFUN):
14913         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14914         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14915         * symeval.h (DEFVAR_SYMVAL_FWD):
14916         * symbols.c (guts_of_unbound_marker):
14917         Make all c_readonly objects also lisp_readonly and marked for life.
14918         * lrecord.h (struct lrecord_implementation):
14919         Document flags better.
14920         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14921         * lrecord.h (DECLARE_LRECORD):
14922         * lrecord.h (XSETRECORD):
14923         * lrecord.h (RECORDP):
14924         * lrecord.h (RECORD_TYPEP):
14925         * lrecord.h (RECORD_MARKER): New.
14926         * lrecord.h (error_check_*):
14927         * lrecord.h (CONCHECK_NONRECORD):
14928         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14929         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14930         * lrecord.h (set_lheader_implementation):
14931         * lrecord.h (enum lrecord_type): New.
14932         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14933         * alloc.c (disksave_object_finalization_1):
14934         * alloc.c (mark_object):
14935         * alloc.c (lrecord_type_index):
14936         * alloc.c (tick_lcrecord_stats):
14937         * alloc.c (Fgarbage_collect):
14938         * alloc.c (init_alloc_once_early):
14939         * alloc.c (pdump_load):
14940         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14941         * alloc.c (lrecord_type_index): Delete.
14942         Make lisp object type indexes be constant.
14943           Makes (byte-compile) 5% faster.
14944         Put all marker functions into their own array.
14945           Makes (garbage-collect) 5% faster.
14946         Optimize SYMBOL_VALUE_MAGIC_P.
14947           Makes (byte-compile) 2-3% faster.
14948         * config.h.in (gc_checking_assert): New.
14949         * alloc.c: Use gc_checking_assert().
14950         * .dbxrc: Make compatible with new object type implementation.
14951         * .gdbinit: Make compatible with new object type implementation.
14952         * alloc.c: Delete all symbols defined only for debugging, such as
14953         Lisp_Type_Vector and lrecord_charset.
14954
14955 2000-02-21  Andy Piper  <andy@xemacs.org>
14956
14957         * gui-msw.c (Fmswindows_shell_execute): fix file location
14958         problems.
14959
14960         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14961         unshowing so that set_window_buffer doesn't undo
14962         kill_buffer_hook's hard work.
14963
14964         * glyphs-widget.c (tab_control_query_geometry): don't count the
14965         first item when calculating geometry.
14966
14967         * glyphs.c (map_subwindow): remove redundant code.
14968         (update_frame_subwindows): be more circumspect about when to
14969         update subwindows.
14970
14971         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14972         when items haven't changed. Update faces if faces have changed as
14973         well as just the widget face.
14974         (x_tab_control_update): Update faces if faces have changed as well
14975         as just the widget face.
14976
14977 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14978
14979         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14980         registration.
14981         (build_syscolor_string): Use mswindows_color_to_string to try to
14982         get a named color.
14983         (mswindows_device_system_metrics): Reverse the foreground and
14984         background colors so that they match the documentation.
14985
14986         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14987         they match the default Windows palette.
14988         (mswindows_color_to_string): New function.
14989
14990 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14991
14992         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14993
14994 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14995
14996         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14997         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14998
14999         * symbols.c (init_symbols_once_early): Removed obsolete
15000         DATA_SEG_BITS related kludge.
15001         (defvar_magic): Ditto.
15002
15003         * malloc.c: Removed obsolete DATA_SEG_BITS
15004         * ralloc.c: Ditto.
15005         * mem-limits.h: Ditto.
15006
15007         * Makefile.in.in: Removed obsolete HAVE_SHM
15008         * emacs.c: Ditto.
15009
15010 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15011
15012         *  device-msw.c (mswindows_delete_device): Free DDE string
15013         handles.
15014
15015 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15016
15017         * keymap.c (get_keyelt):
15018         * unexnt.c (unexec):
15019         * vm-limit.c (memory_warnings):
15020         * ntheap.c (recreate_heap):
15021         * ntheap.h (UNINIT_PTR):
15022         * select-msw.c (Fmswindows_get_clipboard):
15023         (Fmswindows_set_clipboard):
15024         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15025         * objects-msw.c:
15026         * menubar-msw.c (displayable_menu_item):
15027         * glyphs-msw.c:
15028         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15029         * sysdep.c (sys_subshell):
15030         * process-nt.c (nt_create_process):
15031         * nt.c (normalize_filename):
15032         (dostounix_filename):
15033         (unixtodos_filename):
15034         * ntproc.c (win32_executable_type):
15035         * ntplay.c (play_sound_data_1):
15036         (play_sound_file):
15037         * editfns.c (get_home_directory):
15038         * event-msw.c (struct winsock_stream):
15039         (mswindows_dde_callback):
15040         * device-msw.c (msprinter_init_device):
15041         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15042
15043         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15044         mswindows_clear_toolbar were swapped!
15045
15046         * objects-msw.c:(colormap_t):
15047         (fontmap_t):
15048         * emacs.c (struct standard_args): Fixed const jumble.
15049
15050         * glyphs-widget.c (update_widget): Fixed comparison notation.
15051
15052         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15053
15054         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15055         __declspec(noreturn) syntax.
15056
15057 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15058
15059         * eldap.c (Fldap_open):
15060         (Fldap_search_basic):
15061         (Fldap_add):
15062         (Fldap_modify):
15063         Use new coding system conversion macros.
15064
15065 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15066
15067         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15068
15069 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15070
15071         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15072         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15073
15074         * eldap.c (Qadd, Qreplace): New constant symbols
15075         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15076         interruptions by XEmacs signals
15077         Remove unnecessary calls to slow_down_interrupts and
15078         speed_up_interrupts
15079         (Fldap_search_basic): Renamed from Fldap_search_internal
15080         Added new optional parameter VERBOSE that triggers the
15081         display of progress messages
15082         Remove unnecessary calls to slow_down_interrupts and
15083         speed_up_interrupts
15084         LDAP result code analysis rewritten
15085         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15086         (syms_of_eldap): Define the new symbols and functions
15087
15088
15089 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15090
15091         * realpath.c: Determine PATH_MAX maximally portably.
15092
15093         * insdel.c (bytecount_to_charcount): Optimize.
15094         The function used to be optimized for entirely ASCII sequences.
15095         Now it is optimized for successive characters from the same
15096         charset.  This also wins big for _mostly_ ASCII sequences.
15097
15098         * fileio.c (Ffile_truename): convert return from realpath() using
15099         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15100         - Rewrite GCPROing slightly.
15101
15102         * sysdep.c (sys_open): Do filename conversion, like all other
15103         sys_* functions.  Fixes bug:
15104         (let ((file-name-coding-system 'iso-8859-2))
15105            (write-region x y latin2-name))
15106         ==> writes filename using internal encoding.
15107
15108 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15109
15110         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15111         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15112         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15113         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15114         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15115         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15116         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15117         (CONST_IF_NOT_DEBUG): Delete.
15118         * alloc.c (this_one_is_unmarkable): Delete.
15119         (mark_object): Don't check for this_one_is_unmarkable. Use the
15120         c_readonly flag instead.
15121         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15122
15123 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15124
15125         * event-msw.c (mswindows_drain_windows_queue):
15126         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15127         away redundant repaint events.
15128
15129 2000-02-17  Andy Piper  <andy@xemacs.org>
15130
15131         * redisplay.h: declare mark_redisplay_structs.
15132
15133         * redisplay.c (redisplay_window):
15134         (redisplay_frame): don't check subwindows_state_changed.
15135         (mark_redisplay): mark gutters here.
15136
15137         * glyphs.c: (instantiate_image_instantiator): always layout if we
15138         haven't done so already.
15139         (allocate_image_instance): don't mark as dirty.
15140         (update_subwindow): bind inhibit_quit.
15141
15142         * gutter.c (mark_gutters): new function.
15143
15144         * glyphs-x.c (x_update_widget): Always resize to get round a
15145         widget bug.
15146
15147         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15148         breaking absolutely everything.
15149
15150         * gutter.h: declare mark_gutters.
15151
15152 2000-02-16  Martin Buchholz <martin@xemacs.org>
15153
15154         * XEmacs 21.2.29 is released.
15155
15156 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15157
15158         * fns.c (size_bit_vector): Fix computation of the size.
15159
15160 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15161
15162         * *.[ch]: Change CONST to const globally.
15163         find -name '*.[ch]' | \
15164         xargs global-replace \
15165         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15166         - Remove vestigial references to CONST_IS_LOSING
15167
15168 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15169
15170         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15171         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15172         events instead of dispatching them directly.
15173         (mswindows_handle_paint): New function to do repainting.
15174         (mswindows_wnd_proc):
15175         (emacs_mswindows_handle_magic_event): Call above function.
15176
15177 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15178
15179         * objects-msw.c (mswindows_create_font_variant): Return the new
15180         font handle.
15181         (initialize_font_instance): Get font metrics from the underlined
15182         variant of the font to cope with the case where the underlined
15183         font has a bigger descent.
15184
15185 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15186
15187         * gui.c (gui_item_accelerator): Return the first underlined
15188         character in item name.
15189
15190 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15191
15192         * lisp.h: Added Qprinter.
15193
15194         * general.c (syms_of_general): Initialized it.
15195
15196         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15197         (get_frame_dc):
15198         (get_frame_compdc): Made inline.
15199
15200         * console.h (struct console_methods): Added eject_page method.
15201
15202         * frame.h: Added FRAME_DISPLAY_P and friends.
15203         Aligned backslahes in many macros in more readable fashion.
15204         Added page_number to struct frame, and an accessor macro
15205         for it.
15206
15207         * defice.h: Added DEVICE_DISPLAY_P and friends.
15208
15209         * device.c (Fdevice_printer_p): Used these.
15210
15211         * frame.c (allocate_frame_core): Initialize page number.
15212         (Fprint_job_page_number):
15213         (Fprint_job_eject_page): Implemented.
15214
15215         * frame-msw.c (msprinter_eject_page): Added method.
15216         (msprinter_start_page): Added.
15217
15218         * window.c (Fwindow_truncated_p): Fixed docstring.
15219         (Fwindow_last_line_visible_height): Implemented.
15220
15221 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15222
15223         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15224
15225 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15226
15227         * syntax.c (scan_words): Always advance at least one character.
15228
15229 2000-02-13  Andy Piper  <andy@xemacs.org>
15230
15231         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15232         to make sure the glyph is in the cachels.
15233
15234         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15235         global image instance flag.
15236         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15237         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15238
15239         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15240         (Fset_image_instance_property): mark layout as changed.
15241         (invalidate_glyph_geometry_maybe): mark layout as changed.
15242         (glyph_width): use new NEEDS_LAYOUT macro.
15243         (glyph_ascent): ditto.
15244         (glyph_descent): ditto.
15245         (glyph_height): ditto.
15246         (image_instance_layout): mark layout as clean after laying out.
15247         (update_subwindow): don't mark layout as clean here.
15248
15249         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15250         should no longer be needed.
15251
15252         * glyphs-x.c (x_update_widget): sanitize asserts.
15253         (x_finalize_image_instance): sanitize assignment to widgets.
15254
15255         * glyphs-widget.c (widget_instantiate): don't need to clear the
15256         layout flag here.
15257
15258 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15259
15260         * sysdep.c (getcwd): Use standard prototype.
15261         * sysdep.h (getcwd): Use standard prototype.
15262
15263         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15264         (sequence, start, end).
15265         Remove redundant type checking.
15266         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15267         view of `caller-protects') to avoid a crash where the real fix was
15268         found elsewhere.
15269
15270 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15271
15272         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15273
15274         * s/sol2.h: Remove feature macro initialization.
15275
15276         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15277         (vector_hash): New.  Code from internal_hash.
15278         * lrecord.h:
15279         Fix up allocation subsystem comments.
15280
15281         * config.h.in: Add __EXTENSIONS__ for Solaris.
15282
15283         * systime.h (EMACS_GETTIMEOFDAY): New.
15284         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15285         Remove Solaris-specific code.
15286         Use void* for the (ignored) second arg for gettimeofday().
15287
15288         * elhash.c (hash_table_hash): Implement it, finally.
15289         * elhash.c:  Use hashcode_t.
15290
15291         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15292         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15293
15294         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15295         * fns.c (size_bit_vector):
15296         * alloc.c (size_vector):
15297         (make_vector_internal):
15298         (make_bit_vector_internal):
15299         (sweep_bit_vectors_1):
15300         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15301
15302 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15303
15304         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15305         Include strings.h to avoid warnings for bzero and strcasecmp.
15306
15307 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15308
15309         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15310         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15311
15312         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15313         sequence.
15314
15315 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15316
15317         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15318         use a value field instead.
15319         (symbol_value_forward_forward): Use value field.
15320         (DEFVAR_SYMVAL_FWD): Use value field.
15321         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15322         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15323         (DEFVAR_CONST_INT): Ditto.
15324         (DEFVAR_BOOL): Ditto.
15325         (DEFVAR_CONST_BOOL): Ditto.
15326         (DEFVAR_INT_MAGIC): Ditto.
15327         (DEFVAR_BOOL_MAGIC): Ditto.
15328
15329         * symbols.c (guts_of_unbound_marker): Use value field.
15330         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15331         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15332
15333         * lisp.h: Declare dumpopaque and noninteractive1.
15334
15335         * alloc.c (dumpopaque): Added.
15336         (pdump_dump_opaquevec): Added.
15337         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15338         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15339         noninteractive.
15340
15341 2000-02-10  Andy Piper  <andy@xemacs.org>
15342
15343         * glyphs.c (image_instance_layout): if the size changes, mark it
15344         as such.
15345
15346         * redisplay-output.c (redisplay_output_layout): Update the
15347         subwindow here.
15348         (redisplay_output_subwindow): ditto.
15349
15350         * glyphs.c (update_subwindow): make sure we reset flags for
15351         layouts as well as everything else.
15352
15353         * glyphs-widget.c (layout_layout): don't need to set the instances
15354         dimensions here.
15355
15356 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15357
15358         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15359         not HAVE_DLOPEN, which is a lower-level thing.
15360
15361         * .cvsignore: Ignore gmon.out
15362
15363 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15364
15365         * .cvsignore: Ignore portable dumper xemacs.dmp file
15366
15367 2000-02-09  Andy Piper  <andy@xemacs.org>
15368
15369         * redisplay-output.c (redisplay_output_layout): be more clever
15370         about when we output based on the changed flags.
15371
15372         * glyphs.h (struct image_instantiator_methods): add update_method.
15373         (struct Lisp_Image_Instance): add changed flags. Declare new
15374         macros for manipulating them.
15375
15376         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15377         (image_instance_parent_glyph): find an image_instance's parent
15378         glyph or image_instance.
15379         (image_instance_layout): mark the size as changed.
15380         (set_image_instance_dirty_p): new function. mark an image
15381         instance, plus all of its parents, as dirty.
15382         (Fset_image_instance_property): use it.
15383         (Fglyph_animated_timeout_handler): use it.
15384         (update_subwindow): call update_widget and device methods for
15385         update_subwindow. Mark all changed flags as clean.
15386         (Fresize_subwindow): mark size as changed.
15387
15388         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15389         failures.
15390         (x_update_subwindow): only resize subwindows here.
15391         (x_update_widget): new function. Update all changed properties of
15392         a widget.
15393         (x_resize_subwindow): deleted.
15394         (x_widget_set_property): deleted.
15395         (x_progress_gauge_set_property): deleted.
15396         (x_progress_gauge_update): new function. Implement recorded
15397         changes.
15398         (x_tab_control_update): ditto.
15399         (x_tab_control_set_property): deleted.
15400         (console_type_create_glyphs_x): declare new functions.
15401         (image_instantiator_format_create_glyphs_x): ditto.
15402
15403         * glyphs-widget.c (widget_set_property): mark text changed.
15404         (update_widget): new function. Update properties of a widget.
15405         (widget_instantiate): for layouts make sure we set their
15406         children's parent correctly.
15407         (tab_control_set_property): new function. Record changes that will
15408         take place under redisplay's control.
15409         (progress_gauge_set_property): ditto.
15410         (image_instantiator_progress_guage): declare new functions.
15411         (image_instantiator_tab_control): ditto.
15412
15413         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15414         now.
15415         (mswindows_update_widget): new function. Update all properties on
15416         a widget that have changed.
15417         (mswindows_button_update): new function. Update a button's set
15418         state.
15419         (mswindows_tab_control_update): new function. Update the items in
15420         a tab.
15421         (mswindows_tab_control_set_property): deleted.
15422         (mswindows_progress_gauge_update): new function. Update the
15423         progress gauge's progress.
15424         (mswindows_widget_set_property): deleted. This is all done
15425         asynchronously now.
15426         (mswindows_progress_gauge_set_property): ditto.
15427         (console_type_create_glyphs_mswindows): declare new methods.
15428         (image_instantiator_format_create_glyphs_mswindows): ditto.
15429
15430         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15431         (msprinter_set_frame_properties): ditto.
15432
15433         * console.h (struct console_methods): Add update_widget_method.
15434
15435 2000-02-09  Andy Piper  <andy@xemacs.org>
15436
15437         * gui-msw.c (Fmswindows_shell_execute): Make
15438         mswindows-shell-execute industrial strength.
15439
15440 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15441
15442         * lrecord.h: Make macro argument `props' match member function `plist'.
15443         * fns.c (Fget):
15444         * fns.c (Fput):
15445         * fns.c (Fremprop):
15446         * fns.c (Fobject_plist):
15447         * alloc.c:
15448         * symbols.c:
15449         Object property list frobbing cleanup.
15450         - Allow any lisp object (compared with `eq'), not just symbols, as
15451           keys in object plists.
15452         - Move symbol plist frobbing into symbols.c, where it belongs.
15453         - Move string plist frobbing into alloc.c, where it belongs.
15454         - Everything's an lrecord now, so no need to test for symbolp, etc.
15455         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15456
15457         * extents.c: Reorder code to remove declarations.
15458
15459         * frame.h (store_in_alist): Remove useless declaration.
15460
15461 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15462
15463         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15464         * config.h.in: Add HAVE_XCONVERTCASE.
15465
15466 2000-02-07  Andy Piper  <andy@xemacs.org>
15467
15468         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15469         it breaks many things.
15470
15471 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15472
15473         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15474         actually can start a common comment type.
15475         * src/syntax.h (SYNTAX_END_P): ditto for end.
15476
15477 2000-02-07  Martin Buchholz <martin@xemacs.org>
15478
15479         * XEmacs 21.2.28 is released.
15480
15481 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15482
15483         * event-Xt.c (x_keysym_to_character): New.
15484         (maybe_define_x_key_as_self_inserting_character): New.
15485         (x_has_keysym): New.
15486         Auto-define all keys on the keyboard as self-insert-key.
15487
15488 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15489
15490         * menubar.c (vars_of_menubar): A small code simplification.
15491
15492         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15493
15494         * ExternalShell.c:
15495         * ExternalClient.c:
15496         * EmacsShell-sub.c:
15497         * EmacsManager.c:
15498         * EmacsFrame.c:
15499         Use consistent style for specifying X resources.
15500
15501         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15502         This makes (dontusethis-set-symbol-value-handler) actually usable.
15503
15504         * lrecord.h (lrecord_decription_type):
15505         * alloc.c (pdump_register_sub):
15506         (pdump_dump_data):
15507         (pdump_reloc_one):
15508         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15509         Comply with XEmacs coding style.
15510         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15511         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15512
15513         * keymap.c (Faccessible_keymaps):
15514         Make (accessible-keymaps map "\C-h") do the Right Thing.
15515         Make (accessible-keymaps map []) do the Right Thing.
15516         Make (accessible-keymaps map "") do the Right Thing.
15517         (check_keymap_definition_loop): New function.
15518         (keymap_store_internal): Keep luser from shooting self in foot,
15519           via (define-key ctl-x-4-map "p" global-map).
15520         Remove fullness slot from struct Lisp_Keymap, since hash tables
15521         are now reliable.
15522         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15523
15524 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15525
15526         * redisplay.c (init_redisplay): Fix small memory leak.
15527         * elhash.h:
15528         * elhash.c (pdump_reorganize_hash_table):
15529         Rename from reorganize_hash_table. Change prototype.
15530         Reuse the original memory for hentries.  Save 100k.
15531         * alloc.c (PDUMP_READ): new macro.
15532         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15533         * alloc.c: No need to #ifndef before #undef.
15534
15535         * print.c: Allow debug_print() to print readably by modifying
15536         debug_print_readably.  Use consistent variable names.
15537
15538         * .dbxrc: Try to get things to work even if stopped in a function
15539         without source available by explicitly specifying source files.
15540 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15541
15542         * unexnt.c (_start): Removed bogus code which caused loading heap
15543         from differrent executable file.
15544         Removed bogus assignment to _fmode, which caused inconsistencies.
15545
15546 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15547
15548         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15549         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15550         Do not preliminary `#define signal sigset'.
15551
15552         * systime.h: Do not prototype environ on windows nt and cygwin,
15553         this conflicts with system header.
15554
15555         * syssignal.h: Use correct define for WINDOWSNT
15556
15557         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15558         with system header.
15559
15560         * sysdep.c (near start of file): Fixed commentary and rearranged
15561         ifdefs in readable order.
15562         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15563         (start_of_text):
15564         (end_of_text):
15565         (end_of_data): Do not compile in if using PDUMP.
15566
15567         * symsinit.h: Prototyped vars_of_nt().
15568
15569         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15570         (find_child_console): Use it.
15571         (sys_kill): Use it.
15572
15573         * ntheap.h: Do not extern os_subtype.
15574
15575         * ntheap.c (cache_system_info): Do not cache unneeded:
15576         nt_major_version, nt_minor_version and os_subtype.
15577         (recreate_heap): Do not compile in when PDUMPing.
15578
15579         * nt.c (geteuid and friends): Use the new varibale
15580         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15581         (init_user_info): Removed the above mentioned hackery.
15582         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15583         stat has been fixed in the C runtime.
15584         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15585
15586         * file-coding.c (struct file_coding_dump): Do not define
15587         ucs_to_mule_table in the struct if not MULE.
15588         (struct struct lrecord_description fcd_description_1): Do not dump
15589         the above.
15590
15591         * emacs.c (main_1): Call vars_of_nt().
15592         (right before Fdump_emacs_data): Don't need lastfile if using both
15593         portabe dumper and system malloc.
15594
15595         * alloc.c (Fmemory_limit): Conditionalized out.
15596         (pdump): Use OPEN_BINARY for the portable dump file.
15597         (pdump_load): Ditto.
15598
15599 2000-02-02  Mike Alexander  <mta@arbortext.com>
15600
15601         * nt.c (convert_time): Set tm_isdst before calling mktime and
15602         avoid calling it at all if the compiler supports 64 bit integers.
15603         Also initialize utc_base_ft before using it.
15604
15605 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15606
15607         * frame.c (change_frame_size_1): Take f->internal_border_width
15608         into consideration when calculating the width of the frame.
15609
15610 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15611
15612         * window.c (frame_min_height):
15613         (frame_size_valid_p):
15614         (frame_pixsize_valid_p): Added.
15615         (check_frame_size): Generalized.
15616
15617         * window.h: Prototyped the above.
15618
15619         * lisp.h:
15620         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15621         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15622         Deleted Vwin32_* and Vbinary_process_* unused variables.
15623
15624         * device-msw.c (msprinter_init_device): Do not get printer font
15625         list; Added DEVMODE functions.
15626
15627         * frame-msw.c: Added lots of printer code.
15628
15629         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15630         general.c.
15631
15632         * console-msw.h: Added more msprinter device private slots.
15633
15634 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15635
15636         * event-msw.c (key_needs_default_processing_p): Added.
15637         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15638
15639 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15640
15641         * glyphs.c (image_instance_layout): Mark image instance as clean
15642         after layout.
15643         (glyph_dirty_p): Removed redundant function.
15644         (invalidate_glyph_geometry_maybe): Added.
15645         (update_glyph_cachel_data): Call it.
15646
15647         * glyphs.h: Prototyped it.
15648
15649         * redisplay.c (add_glyph_rune): Call it.
15650         (redisplay_window): Reset glyphs cachels when frame faces have
15651         changed, thus forcing recomputation of built-in border glyphs.
15652
15653 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15654
15655         * Makefile.in.in: Make portable dumper and purify play well together.
15656         Add imperfect, but better than nothing, support for pdump.
15657         Remove xemacs.dmp when temacs is re-generated.
15658         Don't ignore errors when dumping xemacs.
15659
15660         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15661
15662 2000-01-28  Andy Piper  <andy@xemacs.org>
15663
15664         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15665         (setup_normal_frame): ditto.
15666         (setup_frame_without_minibuffer): ditto.
15667         (setup_minibuffer_frame): ditto.
15668         (delete_frame_internal): ditto.
15669         (Fmake_frame_invisible): ditto.
15670         (Ficonify_frame): ditto.
15671
15672         * window.h: change Fset_window_buffer signature.
15673
15674         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15675         (Fset_window_buffer): allow recording of buffer if the window is
15676         the selected window.
15677         (window_loop): Use new Fset_window signature.
15678
15679 2000-01-23  Daniel Pittman  <daniel@danann.net>
15680
15681         * config.h.in: Added template for `HAVE_ATHENA_3D'
15682
15683 2000-01-29  Andy Piper  <andy@xemacs.org>
15684
15685         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15686
15687         * gutter.c (output_gutter): Don't output if the window isn't live.
15688
15689 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15690
15691         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15692         of 01/12/00: Moved SetFocus back here where it belongs.
15693
15694 2000-01-23  Andy Piper  <andy@xemacs.org>
15695
15696         * s/cygwin32.h: declare printer things.
15697
15698 2000-01-26  Andy Piper  <andy@xemacs.org>
15699
15700         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15701         Alexander.
15702
15703 2000-01-24  Andy Piper  <andy@xemacs.org>
15704
15705         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15706         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15707
15708         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15709
15710         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15711
15712         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15713
15714         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15715         (mswindows_output_display_block): Avoid local shadows.
15716
15717         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15718         (mswindows_enqueue_mouse_button_event): ditto.
15719         (mswindows_handle_gui_wm_command): remove declaration.
15720
15721         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15722         warnings.
15723
15724         * console-msw.h: Avoid shadows.
15725         (mswindows_get_toolbar_button_text):
15726         (emacs_mswindows_create_stream_pair):
15727         (emacs_mswindows_delete_stream_pair):
15728         (mswindows_handle_toolbar_wm_command): declare.
15729
15730         * device-msw.c (build_syscolor_string): Avoid shadows.
15731
15732 2000-01-23  Andy Piper  <andy@xemacs.org>
15733
15734         * glyphs-widget.c (widget_instantiate): reverse the items for
15735         layouts so that children are in the expected order.
15736
15737 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15738
15739         * ralloc.c: safe_bcopy ==> memmove
15740         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15741         * s/msdos.h: Remove BCOPY macros.
15742         * insdel.c (gap_right): Remove BCOPY conditional code.
15743         * insdel.c (gap_left): Remove BCOPY conditional code.
15744         XEmacs demands a working ANSI C compiler - hence memmove.
15745
15746         * regex.c (regex_compile): Remove accidental use of trigraphs.
15747
15748 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15749
15750         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15751         event timestamp.
15752
15753 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15754
15755         * event-msw.c (mswindows_drain_windows_queue): Added the
15756         parameter.
15757         (mswindows_need_event): Commented the call to
15758         mswindows_drain_windows_queue().
15759         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15760         only.
15761
15762         * console-msw.h: Moved a few function prototypes here from
15763         event-msw.c.
15764
15765         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15766         parameter from unsigned short to unsigned long.
15767         (Fmswindows_shell_execute): Added return value.
15768
15769 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15770
15771         * sysdep.c (init_system_name):
15772           process-unix.c (unix_canonicalized_host_name):
15773         Don't call freeaddrinfo() if getaddrinfo() fails.
15774
15775         * process-unix.c (unix_open_unix_network_stream):
15776         Moved the code to get a port # into address loop.
15777
15778 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15779
15780         * buffer.c (reinit_vars_of_buffer):
15781         The right place to initialize conversion_in_dynarr and
15782         conversion_out_dynarr.
15783
15784         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15785
15786         * process-unix.c (unix_canonicalize_host_name): Muleize.
15787         (unix_open_network_stream): Muleize.
15788
15789         * buffer.h: Fix up prototypes for ralloc.c functions.
15790
15791 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15792         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15793         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15794                 instead of gethostbyname()
15795         * process-unix.c: In unix_canonicalize_host_name() and
15796                 unix_open_network_stream(), add code to use getaddrinfo()
15797                 instead of gethostbyname().
15798
15799 2000-01-27  Daniel Pittman <daniel@danann.net>
15800
15801         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15802         libs when built with flat Athena.
15803
15804 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15805
15806         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15807         Use coding standards for function prototypes.
15808
15809 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15810
15811         * dialog-msw.c (push_lisp_string_as_unicode):
15812         * doc.c (unparesseuxify_doc_string):
15813         * dired.c (Fuser_name_completion_1):
15814         * dired.c (Fuser_name_all_completions):
15815         * dired.c (free_user_cache):
15816         * dired.c (user_name_completion):
15817         * console-x.c (get_display_arg_connection):
15818         * minibuf.c (clear_echo_area_internal):
15819         * minibuf.c (echo_area_append):
15820         * eldap.c (Fldap_open):
15821         * eldap.c (Fldap_search_internal):
15822         * frame-x.c (x_set_frame_text_value):
15823         * frame-x.c (x_set_frame_properties):
15824         * frame-x.c (x_create_widgets):
15825         * redisplay-tty.c (term_get_fkeys_1):
15826         * objects-x.c (x_parse_nearest_color):
15827         * objects-x.c (x_valid_color_name_p):
15828         * objects-x.c (x_initialize_font_instance):
15829         * objects-x.c (x_list_fonts):
15830         * objects-x.c (x_find_charset_font):
15831         * tooltalk.c (Fadd_tooltalk_message_arg):
15832         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15833         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15834         * process-unix.c (unix_create_process):
15835         * ntproc.c (sys_spawnve):
15836         * sound.c (Fplay_sound_file):
15837         * sound.c (Fplay_sound):
15838         * buffer.c (init_initial_directory):
15839         * buffer.c (init_buffer):
15840         * editfns.c (init_editfns):
15841         * editfns.c (Ftemp_directory):
15842         * editfns.c (Fuser_full_name):
15843         * editfns.c (uncache_home_directory):
15844         * editfns.c (get_home_directory):
15845         * editfns.c (Fuser_home_directory):
15846         * editfns.c (Fformat_time_string):
15847         * editfns.c (Fcurrent_time_string):
15848         * gui-x.c (button_item_to_widget_value):
15849         * database.c (Fopen_database):
15850         * event-Xt.c (x_to_emacs_keysym):
15851         * event-Xt.c (x_event_to_emacs_event):
15852         * event-Xt.c (describe_event_window):
15853         * event-msw.c (mswindows_wnd_proc):
15854         * glyphs-eimage.c (jpeg_instantiate):
15855         * glyphs-eimage.c (gif_instantiate):
15856         * glyphs-eimage.c (png_instantiate):
15857         * glyphs-eimage.c (tiff_instantiate):
15858         * glyphs-x.c (xbm_instantiate_1):
15859         * glyphs-x.c (x_xbm_instantiate):
15860         * glyphs-x.c (x_xface_instantiate):
15861         * glyphs-x.c (autodetect_instantiate):
15862         * glyphs-x.c (cursor_font_instantiate):
15863         * glyphs-x.c (x_widget_instantiate):
15864         * glyphs-x.c (x_widget_set_property):
15865         * glyphs-x.c (x_widget_property):
15866         * glyphs-x.c (BUILD_GLYPH_INST):
15867         * print.c (write_string_to_stdio_stream):
15868         * print.c (output_string):
15869         * print.c (Falternate_debugging_output):
15870         * print.c (Fexternal_debugging_output):
15871         * glyphs-msw.c (extract_xpm_color_names):
15872         * glyphs-msw.c (mswindows_xpm_instantiate):
15873         * glyphs-msw.c (bmp_instantiate):
15874         * glyphs-msw.c (resource_name_to_resource):
15875         * glyphs-msw.c (mswindows_resource_instantiate):
15876         * glyphs-msw.c (xbm_instantiate_1):
15877         * glyphs-msw.c (mswindows_xbm_instantiate):
15878         * glyphs-msw.c (mswindows_xface_instantiate):
15879         * glyphs-msw.c (mswindows_widget_instantiate):
15880         * glyphs-msw.c (add_tree_item):
15881         * glyphs-msw.c (add_tab_item):
15882         * glyphs-msw.c (mswindows_combo_box_instantiate):
15883         * glyphs-msw.c (mswindows_widget_property):
15884         * glyphs-msw.c (mswindows_combo_box_property):
15885         * glyphs-msw.c (mswindows_widget_set_property):
15886         * console.c (stuff_buffered_input):
15887         * objects-msw.c (mswindows_initialize_color_instance):
15888         * objects-msw.c (mswindows_valid_color_name_p):
15889         * objects-msw.c (mswindows_list_fonts):
15890         * objects-msw.c (mswindows_font_instance_truename):
15891         * bytecode.c (optimize_compiled_function):
15892         * select-x.c (symbol_to_x_atom):
15893         * select-x.c (x_atom_to_symbol):
15894         * select-x.c (hack_motif_clipboard_selection):
15895         * select-x.c (selection_data_to_lisp_data):
15896         * select-x.c (lisp_data_to_selection_data):
15897         * select-x.c (Fx_get_cutbuffer_internal):
15898         * select-x.c (Fx_store_cutbuffer_internal):
15899         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15900         * buffer.h (TO_INTERNAL_FORMAT): New function.
15901         * emacs.c (make_arg_list_1):
15902         * emacs.c (make_argc_argv):
15903         * emacs.c (main_1):
15904         * emacs.c (Fdump_emacs):
15905         * emacs.c (split_string_by_emchar_1):
15906         * file-coding.h:
15907         * lisp.h:
15908         * lstream.h:
15909         * symsinit.h:
15910         * device-x.c (x_init_device):
15911         * device-x.c (Fx_valid_keysym_name_p):
15912         * device-x.c (Fx_get_font_path):
15913         * device-x.c (Fx_set_font_path):
15914         * glyphs.c (bitmap_to_lisp_data):
15915         * glyphs.c (pixmap_to_lisp_data):
15916         * alloc.c (make_ext_string): Use coding system arguments.  Update
15917         all callers.
15918         * alloc.c (build_string):
15919         * callproc.c (child_setup):
15920         * callproc.c (init_callproc):
15921         * fileio.c (lisp_strerror):
15922         * fileio.c (directory_file_name):
15923         * fileio.c (Fexpand_file_name):
15924         * fileio.c (Ffile_truename):
15925         * fileio.c (Fsysnetunam):
15926         * fileio.c (Fdo_auto_save):
15927         * sysdep.c (sys_readdir):
15928         * tests.c: New file.  Allow adding C tests.
15929         Replace GET_* macros with a more comprehensible and flexible
15930         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15931         Modify all calls.
15932         Any coding system can be used to do format conversion.
15933         Eliminate enum external_data_format.
15934         Eliminate convert_to_external_format.
15935         Eliminate convert_to_internal_format.
15936         Make sure file-name, keyboard, terminal, and ctext are always
15937         defined as coding systems or aliases.  Make
15938         file-name-coding-system, terminal-coding-system, and
15939         keyboard-coding-system magical variables that are equivalent to
15940         defining the corresponding coding system aliases.
15941
15942         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15943         * file-coding.c (Fcoding_system_alias_p): New function.
15944         * file-coding.c (Fcoding_system_aliasee): New function.
15945         * file-coding.c (append_suffix_to_symbol): New function.
15946         * file-coding.c (dangling_coding_system_alias_p): New function.
15947         * file-coding.c (Ffind_coding_system):
15948         * file-coding.c (Fcopy_coding_system):
15949         * file-coding.c (encode_coding_no_conversion):
15950         * file-coding.c (syms_of_file_coding):
15951         * file-coding.c (vars_of_file_coding):
15952         Rewrite coding system alias code.
15953         Allow nested aliases, like symbolic links.
15954         Allow redefinition of coding system aliases.
15955         Prevent existence of dangling coding system aliases.
15956
15957         * dired.c (Fuser_name_completion_1):
15958         * dired.c (Fuser_name_all_completions):
15959         A crash would happen if user did QUIT in the middle of building
15960         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15961
15962         * lisp.h:
15963         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15964
15965         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15966         an unsigned char *.  Update all callers.
15967
15968 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15969
15970         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15971
15972 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15973
15974         * elhash.c (hentry_description): Use more portable definition.
15975         (resize_hash_table): Initialize new hentries using
15976         xnew_array_and_zero, thereby simplifying the code.
15977
15978         * mule-charset.c (make_charset): Make sure entire object is
15979         initialized, to avoid Purify warnings.
15980
15981         * alloc.c (resize_string): Fix unlikely crash with big strings.
15982
15983 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15984
15985         * realpath.c (xrealpath):
15986         Don't call getwd().
15987
15988 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15989
15990         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15991
15992 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15993
15994         * unexelfsgi.c (unexec): Change the way we decide which segment
15995         should be extended.
15996
15997         Assumption that .bss section should be outside the PT_LOADable
15998         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15999         it's present) is inside the 'data' segment. This would fail the
16000         test which was used to find a segment to grow and cover new
16001         heap. Instead of this assumption, I created another one - on IRIX
16002         the segment to grow should start below .bss and it's address
16003         should extent above the end of .bss. Once this segment is
16004         identified, it's grown to accommodate the new heap and new
16005         zero-length .bss section is added at the end of .data2.
16006
16007 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16008
16009         * eval.c (Feval): Wrong number of arguments should use original
16010         function, not the indirect_function version of it.
16011
16012 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16013
16014         * glyphs-x.c (x_button_instantiate): Don't add image if
16015         it is not a pixmap.
16016         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16017         is relative.
16018
16019 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16020
16021         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16022         declaration.
16023         (DEFVAR_INT_MAGIC): Ditto.
16024         (DEFVAR_BOOL_MAGIC): Ditto.
16025         * glyphs.h: Reindent backslash.
16026
16027 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16028
16029         * glyphs-widget.c (layout_query_geometry):
16030         (layout_layout): Use correct types for gheight, gwidth.
16031
16032 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16033
16034         * EmacsManager.c (QueryGeometry): Purified.
16035
16036 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16037
16038         * alloc.c (make_float): Make sure entire object is initialized, to
16039         avoid Purify warnings.
16040         (pdump_register_sub): Remove useless assignment.
16041         (pdump): Use xmalloc, not malloc.
16042         (pdump_load): Use xmalloc, not malloc.
16043
16044 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16045
16046         * callproc.c:
16047         * dired-msw.c:
16048         * fileio.c:
16049         * process-nt.c:
16050         * redisplay-msw.c:
16051         * sysdep.c: Removed redundant #include <windows.h>
16052
16053 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16054
16055         * frame.c (delete_frame_internal): Do not delete device when its
16056         implementation so declares.
16057         (delete_frame_internal): Set device selected frame to nil when
16058         last frame goes away.
16059
16060         * device-msw.c (msprinter_device_system_metrics): Implemented.
16061         (mswindows_device_system_metrics): Added 'device-dpi property.
16062
16063         * device.c: (Fdevice_printer_p): Added.
16064         Added 'offset-workspace device metric.
16065
16066         * console.h (device_metrics): Declared DM_offset_workspace.
16067
16068 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16069
16070         * fileio.c (Ffile_truename): Remove pointless and confusing
16071         initialization of elen.
16072
16073         * glyphs-widget.c: Compiler warning fixes.
16074
16075 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16076
16077         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16078         instead of a Lisp_Object as argument to make it consistent with
16079         the other LIVE_P macros.
16080         (CHECK_LIVE_PROCESS): New macro.
16081
16082         * process.c: Declare Qprocess_live_p.
16083         (Fprocess_live_p): New function.
16084         (create_process): Use PROCESS_LIVE_P.
16085         (read_process_output): Ditto.
16086         (set_process_filter): Ditto.
16087         (Fdelete_process): Ditto.
16088         (kill_buffer_processes): Ditto
16089         (process_send_signal): Use CHECK_LIVE_PROCESS.
16090         (Fprocess_input_coding_system): Check whether process is still
16091         alive (fix PR#1061).
16092         (Fprocess_output_coding_system): Ditto.
16093         (Fprocess_coding_system): Ditto.
16094         (Fset_process_input_coding_system): Ditto.
16095         (Fset_process_output_coding_system): Ditto.
16096
16097 2000-01-23  Andy Piper  <andy@xemacs.org>
16098
16099         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16100         layout and widget.
16101
16102         * glyphs.c (mark_image_instance): take into account changed
16103         image_instance format.
16104         (image_instance_equal): ditto.
16105         (image_instance_hash): ditto.
16106
16107         * glyphs-widget.c (widget_instantiate): Incorporate layout
16108         instantiation here. Delay layout of the layout until later.
16109         (layout_instantiate): deleted.
16110         (layout_query_geometry): new function. get the geometry of a
16111         layout.
16112         (layout_layout): layout a layout dynamically.
16113         (image_instantiator_widget): New function - splitting up
16114         image_instantiator_format_create_glyphs_widget for netwinder
16115         compilation.
16116         (image_instantiator_buttons):
16117         (image_instantiator_edit_fields):
16118         (image_instantiator_combo_box):
16119         (image_instantiator_scrollbar):
16120         (image_instantiator_progress_guage):
16121         (image_instantiator_tree_view):
16122         (image_instantiator_tab_control):
16123         (image_instantiator_labels):
16124         (image_instantiator_layout): ditto.
16125         (image_instantiator_format_create_glyphs_widget): Call preceding
16126         functions.
16127
16128 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16129
16130         * process.c (Fset_process_coding_system):
16131         * device-x.c (Fx_keysym_hash_table):
16132         Docstring fixes.
16133
16134         * lstream.c (Lstream_write): Return documented value, not 0.
16135
16136         * fileio.c (directory_file_name):
16137         (Fsubstitute_in_file_name):
16138         (Fsubstitute_insert_file_contents_internal):
16139         (Fwrite_region_internal):
16140         * emacs.c:
16141         * sysdep.c:
16142         * getloadavg.c:
16143         * systty.h:
16144         Remove vestigial APOLLO-conditional code.
16145
16146 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16147
16148         * getpagesize.h: Add guard macros.
16149         * libsst.h: Add guard macros.
16150         * libst.h: Add guard macros.
16151         * line-number.h: Add guard macros.
16152         * ndir.h: Add guard macros.
16153         * sysfloat.h: Add guard macros.
16154         * sysfile.h: Add guard macros.
16155         * sysproc.h: Add guard macros.
16156         * syswait.h: Add guard macros.
16157         * xintrinsic.h: Add guard macros.
16158         * xintrinsicp.h: Add guard macros.
16159         * xmmanager.h: Add guard macros.
16160         * xmmanagerp.h: Add guard macros.
16161         * xmprimitive.h: Add guard macros.
16162         * xmu.h: Add guard macros.
16163         * gpmevent.h: Add copyright statement. Add guard macros.
16164         * miscplay.h: Add guard macros.
16165         * *.h: Use consistent C-standards-approved guard macro names.
16166
16167         * opaque.c (make_opaque): Switch parameter order.
16168         * opaque.h (make_opaque): Switch parameter order.
16169         Update all callers.
16170         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16171
16172         * config.h.in (type_checking_assert): Added.
16173         (bufpos_checking_assert): Added.
16174
16175 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16176
16177         * alloc.c: Harmless pdump changes.
16178         - Use countof().
16179         - spell alignment correctly.
16180         * sysdep.c: Use countof()
16181
16182 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16183
16184         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16185         initially_selected_for_input() console method, default to 0.
16186         (semi_canonicalize_console_connection): Try to delegate to
16187         canonicalize_console_connection if no such console method.
16188         (canonicalize_console_connection): Vice versa.
16189         (print_console): Do not print nil connection.
16190
16191         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16192         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16193         (XDEVIMPF_FRAMELESS_OK): Added.
16194         (CONSOLE_INHERITS_METHOD): Added.
16195
16196         * console-msw.c (mswindows_canonicalize_console_connection):
16197         Added.
16198         (mswindows_canonicalize_device_connection): Added.
16199
16200         * console-msw.h (struct msprinter_device): Added this struct and
16201         accessor macros.
16202         (mswindows_device): Made fontlist a lisp object.
16203
16204         * device.c (semi_canonicalize_device_connection):  Try to delegate
16205         to canonicalize_device_connection if no such console method.
16206         (canonicalize_device_connection): Vice versa.
16207         (print_device): Do not print nil connection.
16208
16209         * device-msw.c (mswindows_init_device): Call InitCommonControls
16210         when have widgets.
16211         (mswindows_delete_device): Removed fontlist deallocation.
16212         (mswindows_mark_device): Added.
16213
16214         * events.c (event_equal): Added abort() at unreached code.
16215         (event_hash): Ditto.
16216
16217         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16218         fallback tags of Windows devices.
16219
16220         * general.c (syms_of_general): Initialized Qmsprinter.
16221
16222         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16223         of fallback tags of Windows devices.
16224
16225         * lisp.h: Declared Qmsprinter.
16226
16227         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16228         of strings.
16229         (mswindows_list_fonts): Ditto.
16230         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16231         that it can be used by both mswindows and msprinter devices.
16232         (initialize_font_instance): Added.
16233         (mswindows_initialize_font_instance): Use it.
16234         (msprinter_initialize_font_instance): Added.
16235
16236         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16237         and implementation flags check.
16238         (redisplay_without_hooks): Changed the call to the above.
16239         (Fredraw_device): Ditto.
16240         (Fredisplay_device): Ditto.
16241
16242         * redisplay-msw.c (get_frame_dc): Implemented.
16243         (get_frame_compdc): Implemented.
16244         (many functions): Use the two functions above to get device
16245         contexts, ether for a window or a printer.
16246
16247 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16248
16249         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16250         initialization here.
16251         (init_symbols_once_early): Call it.
16252         * emacs.c (main_1): Call it.
16253         * symsinit.h: Declare it.
16254
16255 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16256
16257         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16258         Lisp_Object.
16259         (pdump_backtrace): Ditto.
16260         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16261         (pdump_get_entry): Abort if trying to register a null pointer.
16262         (pdump_dump_data): Cleanup types when relocating.
16263         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16264         (pdump_dump_rtables): Remove bad casts.
16265         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16266         Lisp_Object instead of a EMACS_INT for the hashtable
16267         reorganization.
16268
16269 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16270
16271         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16272
16273         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16274
16275         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16276
16277         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16278
16279 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16280
16281         * faces.h (FACE_STRIKETHRU_P): Added.
16282
16283         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16284         of font variants.
16285
16286         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16287         (mswindows_set_dc_font): New function, aware of font variants,
16288         separated from mswindows_update_dc.
16289
16290         * objects-msw.h (struct mswindows_font_instance_data): Added
16291         definition.
16292
16293         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16294         cached fonts and the data structure.
16295         (mswindows_initialize_font_instance): Added creation of font data
16296         structure.
16297         (mswindows_print_font_instance): Print at least something.
16298         (mswindows_create_font_variant): Implemented.
16299         (mswindows_get_hfont): Implemented.
16300
16301 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16302
16303         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16304         prototyping problem with msvc.
16305
16306         * emacs.c (main_1): added syms_of_gui_mswindows() call
16307
16308         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16309         syms_of_gui_mswindows() function
16310
16311         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16312
16313 2000-01-18  Martin Buchholz <martin@xemacs.org>
16314
16315         * XEmacs 21.2.27 is released.
16316
16317 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16318
16319         * glyphs-eimage.c (struct tiff_error_struct):
16320         (tiff_error_func):
16321         (tiff_warning_func):
16322         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16323
16324         * unexmips.c:
16325         * unexhp9k3.c:
16326         * unexfreebsd.c:
16327         * unexec.c: Remove vestigial Lucid C code.
16328         * unexalpha.c:
16329         * unexaix.c:
16330         * termcap.c:
16331         * libsst.c: Ansify.
16332         Remove declarations of errno and strerror().
16333
16334         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16335
16336         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16337
16338 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16339
16340         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16341         Optimize.
16342
16343 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16344
16345         * md5.c:
16346         * file-coding.c:
16347         * file-coding.h:
16348         Change enum eol_type to eol_type_t.
16349
16350 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16351
16352         * gui.c (get_gui_callback): Check cons before accessing car.
16353
16354 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16355
16356         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16357         (XSETSPECIFIER_TYPE): Ditto.
16358
16359 2000-01-17  Didier Verna  <didier@xemacs.org>
16360
16361         * redisplay.c (generate_fstring_runes): compute string size in
16362         characters, not bytes.
16363
16364 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16365
16366         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16367
16368 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16369
16370         * print.c (print_error_message): Call print_prepare().
16371
16372 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16373
16374         * .dbxrc: Renamed from dbxrc.
16375
16376         * events.c (event_to_character):
16377         Use `assert (foo)' instead of `if (!foo) abort()'
16378
16379         * .gdbinit (xtype): Add documentation.
16380         * .gdbinit (check-temacs): New function.
16381         * .gdbinit (check-xemacs): New function.
16382         * dbxrc (check-xemacs): New function.
16383         * dbxrc (check-xemacs): New function.
16384
16385 2000-01-14  Andy Piper  <andy@xemacs.org>
16386
16387         * glyphs-widget.c (widget_query_geometry): Make sure that we
16388         calculate default dimensions correctly.
16389
16390 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16391
16392         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16393
16394         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16395         pdump_wire'd variable.
16396
16397         * emacs.c: (main_1): Conditionalized calls to
16398         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16399
16400 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16401
16402         * window.c (Fset_window_configuration):
16403         * sysdep.c (_start):
16404         * input-method-motif.c (res):
16405         * event-Xt.c (Xt_process_to_emacs_event):
16406         Simple compiler warning fixes.
16407
16408         * bytecode.c (funcall_compiled_function): Use the original
16409         function symbol on the backtrace list in preference to the
16410         compiled_function object in error messages.
16411
16412 2000-01-13  Andy Piper  <andy@xemacs.org>
16413
16414         * glyphs-x.c (update_widget_face): Make sure we update the widget
16415         background as well as foreground.
16416
16417 2000-01-13  Andy Piper  <andy@xemacs.org>
16418
16419         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16420         fields to subwindow.
16421         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16422         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16423         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16424         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16425
16426         * glyphs-widget.c (check_valid_tab_orientation): new function.
16427         (initialize_widget_image_instance): zero orientation and
16428         justification.
16429         (widget_instantiate): pick up orientation.
16430         (tab_control_query_geometry): return appropriate values for
16431         vertical tabs.
16432
16433         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16434         appropriate creation flags for left, right and bottom tabs.
16435
16436         * s/cygwin32.h: add tab definitions.
16437
16438 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16439
16440         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16441         frame upon hiding a subwindow.
16442         (mswindows_button_instantiate): Changed the push button style to
16443         BS_PUSHBUTTON.
16444         (mswindows_button_instantiate): Removed button BS_NOTIFY
16445         style.
16446         (mswindows_button_instantiate): Removed redundant check for
16447         a disabled gui item.
16448         (mswindows_button_instantiate): Made use of WS_TABSTOP
16449         consistent: "operable" controls (edit, button, tree, scroll) have
16450         this style, "display-only" ones (static, progress gauge) do
16451         not. This style is currently ignored by XEmacs though. Also,
16452         removed the WS_EX_CONTROLPARENT style - it is not for children,
16453         it is for their parents!
16454         (mswindows_edit_field_instantiate): Ditto.
16455         (mswindows_progress_gauge_instantiate): Ditto.
16456         (mswindows_tree_view_instantiate): Ditto.
16457         (mswindows_tab_control_instantiate): Ditto.
16458         (mswindows_scrollbar_instantiate): Ditto.
16459         (mswindows_combo_box_instantiate): Ditto.
16460         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16461         style to the "clip" window.
16462         (mswindows_button_instantiate): Removed compilation warning by
16463         equally typing terms of the ?: operator.
16464
16465 2000-01-12  Didier Verna  <didier@xemacs.org>
16466
16467         * redisplay.c (generate_fstring_runes): new parameter holding the
16468         last modeline-format extent.
16469         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16470         extent, fill the glyph block with it.
16471         (generate_fstring_runes): handle these parameters.
16472         (generate_formatted_string_db): ditto.
16473
16474         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16475         glyphs'extents in the modeline.
16476
16477 1999-01-11  Mike Woolley  <mike@bulsara.com>
16478
16479         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16480         256Mb, as a workaround for the non-starting problem many people
16481         have experienced.
16482
16483 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16484
16485         * console-tty.c (Fset_console_tty_output_coding_system):
16486         Force redrawing tty frame.
16487
16488 2000-01-10  Didier Verna  <didier@xemacs.org>
16489
16490         * redisplay.c (generate_fstring_runes): fix size computation bug.
16491
16492 2000-01-09  William M. Perry <wmperry@aventail.com>
16493
16494         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16495
16496 2000-01-09  Andy Piper  <andy@xemacs.org>
16497
16498         * glyphs-msw.c: index -> i to avoid shadows.
16499         (xbm_create_bitmap_from_data): make static.
16500         (check_valid_string_or_int): deleted.
16501         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16502
16503         * glyphs-x.c (x_update_subwindow): remove unused args.
16504
16505         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16506         back pointer - this is done in allocate_image_instance.
16507         (query_string_font): return Qnil to make the compiler happy.
16508         (unmap_subwindow): set to ~0 to make the compiler happy.
16509         (glyph_query_geometry): comment out until used.
16510         (glyph_layout): ditto.
16511
16512 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16513
16514         * insdel.c (signal_after_change): Remove extraneous unbind_to().