update.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fput_char_attribute): Convert char-refs in value of
4         `{<-|->}wrong[^*]*' to characters and put reverse links.
5         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
6         for `{<-|->}wrong[^*]*'.
7
8 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * chartab.c (Q_vulgar): New variable.
11         (Q_vulgar_of): New variable.
12         (Fput_char_attribute): Convert char-refs in value of
13         `{->|<-}vulgar' to characters and put reverse links.
14         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
15         for `{->|<-}vulgar'.
16         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
17
18 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * text-coding.c (decode_add_er_char): Must to quote prefix string
21         as regexp.
22
23 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * mule-charset.c (put_char_ccs_code_point): Store characters of
26         =ucs whose code_points >= 0xF0000.
27
28 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
31         CHISE.
32         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
33         CHISE.
34         (complex_vars_of_mule_charset): Add new coded-charset
35         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
36         builtin characters over 0xEFFFF.
37
38         * chartab.c (syms_of_chartab): Don't define symbol
39         `system-char-id' in every case.
40
41         * char-ucs.h (Qsystem_char_id): New extern variable.
42         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
43
44 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * text-coding.c (char_encode_utf8): Try to use entity-references
47         for U-000F0000 ...  U-0010FFFF.
48
49 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * text-coding.c (ER_BUF_SIZE): New macro.
52         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
53         `er_buf'.
54         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
55         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
56
57 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * chartab.c (find_char_feature_in_family): New function.
60         (Fchar_feature): Use `find_char_feature_in_family' with
61         `->identical', `<-subsumptive' and `<-denotational'.
62
63 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
64
65         * text-coding.c (char_encode_as_entity_reference): Allow prefix
66         within 8 characters; fix infinite loop.
67
68 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
69
70         * chartab.c (Q_same): New variable.
71         (Q_same_of): New variable.
72         (Fput_char_attribute): Convert char-refs in value of `{->|<-}same'
73         to characters and put reverse links.
74         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
75         for `{->|<-}same'.
76         (syms_of_chartab): Add new symbols `{->|<-}same'.
77
78 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
79
80         * chartab.c (Q_component): New variable.
81         (Q_component_of): Likewise.
82         (Fput_char_attribute): Convert char-refs in value of
83         `{->|<-}ideographic-component-forms' to characters and put reverse
84         links.
85         (syms_of_chartab): Add new symbols
86         `{->|<-}ideographic-component-forms'.
87
88 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
89
90         * chartab.c (Q_identical): New variable.
91         (Q_identical_from): New variable.
92         (Fchar_feature): Regard `->identical' as a feature to find
93         ancestors.
94         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
95         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
96         for `{->|<-}identical'.
97         (syms_of_chartab): Add new symbols `{->|<-}identical'.
98
99 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * char-ucs.h (encode_char_2): New inline function.
102         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
103
104 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * chartab.c (Fput_char_attribute): Convert char-specs to
107         characters in value of `ideographic-structure'.
108         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
109         for `{<-|->}simplified(@...)'.
110         (Fdefine_char): bTry to use predefined character's id.
111
112 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * fns.c (simplify_char_spec): Try to convert builtin chars to
115         defined chars.
116
117 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * chartab.c (Fput_char_attribute): Convert char-refs in value of
120         `<-simplified[^*]*' to characters and put reverse links.
121
122 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * chartab.c (Q_subsumptive): Renamed from Q_unified.
125         (Q_subsumptive_from): Renamed from Q_unified_from.
126         (Fchar_feature): Use `Q_subsumptive_from' instead of
127         `Q_unified_from'.
128         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
129         `Q_unified'.
130         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
131         `<-unified' to `<-subsumptive'.
132
133 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
136         inheritance itself; fix typo; stop recursive search if cyclic
137         inheritance is found.
138
139 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * chartab.c (Q_denotational): New variable.
142         (Q_denotational_from): New variable.
143         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
144         (put_char_attribute): New function.
145         (Fput_char_attribute): Use `put_char_attribute'; regard
146         `->denotational' and `<-denotational' as same as `->unified' and
147         `<-unified'.
148         (syms_of_chartab): Add new symbols `->denotational' and
149         `<-denotational'.
150
151 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
154         `Fget_char_attribute'.
155         (Fchar_variants): Likewise.
156         (get_char_table): Likewise.
157         (Fchar_feature): New function.
158         (put_char_composition): Use `Fchar_feature' instead of
159         `Fget_char_attribute'.
160         (Fput_char_attribute): Likewise; don't put the target character
161         into its `->unified' value.
162         (syms_of_chartab): Add new builtin function `char-feature'.
163
164 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
167         `Fget_char_attribute'.
168         (char_encode_utf8): Likewise.
169
170         * chartab.h: Add an EXFUN for `Fchar_feature'.
171
172 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * chartab.c (Vnext_defined_char_id): New variable.
175         (Fput_char_attribute): Accept characters in `->unified'.
176         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
177         new characters which are not related with builtin char-id ranges.
178         (vars_of_chartab): Add new variable `next-defined-char-id'.
179
180 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
181
182         * chartab.c (Q_unified): New variable.
183         (Q_unified_from): New variable.
184         (Fput_char_attribute): Add code for `->unified'.
185         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
186         XEmacs CHISE.
187
188 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * mule-charset.c (decode_ccs_conversion): New function.
191         (decode_defined_char): Use `decode_ccs_conversion'.
192         (decode_builtin_char): Likewise.
193
194 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
195
196         * char-ucs.h: Change some charset-ids of private coded-charsets.
197
198 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
201         (char_encode_as_entity_reference): Likewise.
202         (decode_coding_big5): Modify for `decode_defined_char' and
203         `DECODE_CHAR'.
204         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
205         avoid compiler warning.
206         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
207
208         * mule-charset.c (decode_defined_char): Add new argument
209         `without_inheritance'.
210         (Fdecode_char): Add new optional argument `without_inheritance'.
211         (Fdecode_builtin_char): Modify for `Fdecode_char'.
212
213         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
214         (simplify_char_spec): Likewise.
215
216         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
217         setting.
218
219         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
220         (map_char_table): Likewise.
221         (Fdefine_char): Use `Fdecode_char' without inheritance.
222         (Ffind_char): Modify for `Fdecode_char'.
223
224         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
225
226         * char-ucs.h (decode_defined_char): Add new argument
227         `without_inheritance'.
228         (DECODE_CHAR): Likewise.
229         (MAKE_CHAR): Modify for `DECODE_CHAR'.
230
231 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * chartab.c (Vchise_system_db_directory): New variable.
234         (vars_of_chartab): Add new variable `chise-system-db-directory'.
235
236 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * chartab.c: EXFUN `Fmount_char_attribute_table'.
239         (print_chartab_range): Don't define when `UTF2000' is defined.
240         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
241         `CHISE_DS_open'.
242
243 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
246         and optional argument `rehash' is specified, call
247         `open_chise_data_source_maybe' before
248         `chise_ds_foreach_char_feature_name' is called.
249
250 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * chartab.c (char_attribute_list_reset_map_func): New function
253         when HAVE_LIBCHISE is defined.
254         (Fchar_attribute_list): Add new optional argument `rehash' when
255         HAVE_LIBCHISE is defined.
256         (open_chise_data_source_maybe): Use "chise-db" instead of
257         "char-db".
258         (char_attribute_system_db_file): Likewise.
259         (Fload_char_attribute_table): Use
260         `chise_feature_foreach_char_with_value' instead of
261         `chise_char_feature_value_iterate'.
262
263 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
264
265         * chartab.c (Vchise_db_directory): New variable.
266         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
267
268 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
271         instead of HAVE_CHISE to specify using with libchise.
272
273         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
274
275         * chartab.h: Don't use HAVE_CHISE_CLIENT.
276
277         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
278         defined or HAVE_LIBCHISE_LIBCHISE is defined.
279         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
280         is defined.
281         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
282         HAVE_CHISE to specify using with libchise.
283         (syms_of_chartab): Don't define symbol `system-char-id' when
284         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
285
286 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
289         specify CHISE DB support.
290         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
291         of `char_attribute_system_db_file' to check feature DB file.
292
293         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
294         HAVE_CHISE_CLIENT to specify CHISE DB support.
295
296         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
297         specify CHISE DB support.
298         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
299         not defined.
300         (Freset_char_attribute_table): Use `chise_feature_setup_db'
301         instead of `char_attribute_system_db_file' to check feature DB
302         file.
303
304 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
307         `HAVE_CHISE_CLIENT'.
308
309 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
312         (Fsave_charset_mapping_table): Don't use
313         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
314
315         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
316         (HAVE_LIBCHISE): New macro.
317
318         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
319
320         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
321         (Fsave_char_attribute_table): Don't use
322         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
323
324 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
325
326         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
327         defined.
328         (save_uint16_byte_table): Likewise.
329         (save_byte_table): Likewise.
330         (char_table_get_db): Use `chise_ds_load_char_feature_value'
331         instead of `chise_char_load_feature_value'.
332         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
333
334 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
335
336         * chartab.h (struct Lisp_Char_Table): Delete member
337         `feature_table' if CHISE is defined.
338
339         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
340         (Fcopy_char_table): Likewise.
341         (char_table_open_db_maybe): Likewise.
342         (char_table_close_db_maybe): Likewise.
343         (char_table_get_db): Likewise.
344         (Fmount_char_attribute_table): Likewise.
345         (Fload_char_attribute_table): Likewise.
346
347 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * mule-charset.c (load_char_decoding_entry_maybe): Use
350         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
351         `chise_ccs_decode'.
352
353 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
356         instead of `chise_open_data_source'.
357         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
358         `chise_ds_close'.
359
360 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
363         instead of `chise_ds_open_feature_table'.
364         (char_table_close_db_maybe): Don't use `chise_ft_close'.
365
366 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * mule-charset.c (Fsave_charset_mapping_table): Use
369         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
370         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
371         `chise_ccs_sync' instead of `chise_ccst_close'.
372         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
373
374         * chartab.c (open_chise_data_source_maybe): Modify for
375         `chise_open_data_source'.
376         (char_table_open_db_maybe): Modify for
377         `chise_ds_open_feature_table'.
378
379 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
380
381         * mule-charset.c (load_char_decoding_entry_maybe): Use
382         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
383         `chise_ccst_close'.
384
385 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
386
387         * mule-charset.c (Fsave_charset_mapping_table): Use
388         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
389         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
390         `chise_dt_put_char' and `chise_dt_close'.
391         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
392         `chise_ccs_decode' and `chise_ccst_close' instead of
393         `chise_ds_open_decoding_table', `chise_dt_get_char' and
394         `chise_dt_close'.
395
396         * chartab.c (char_table_get_db): Use
397         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
398         (load_char_attribute_table_map_func): Modify for
399         `chise_char_feature_value_iterate'.
400         (Fload_char_attribute_table): Use
401         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
402
403 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
406
407 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
408
409         * chartab.c (put_char_table): Modify for inherited coded-charsets
410         in XEmacs CHISE.
411
412 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
413
414         * chartab.c (Fput_char_table_map_function): Fixed.
415         (word_boundary_p): Don't check charset in XEmacs CHISE.
416
417 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
418
419         * mule-charset.c (Fsave_charset_mapping_table): Use
420         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
421         instead of `chise_open_decoding_table'; refer
422         `default_chise_data_source'; use `chise_dt_close' instead of
423         `chise_close_decoding_table'.
424         (load_char_decoding_entry_maybe): Likewise.
425
426         * chartab.c (default_chise_data_source): New variable when `CHISE'
427         is defined.
428         (Fcopy_char_table): `ct->ds' is deleted.
429         (open_chise_data_source_maybe): New function.
430         (Fclose_char_data_source): New function.
431         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
432         use `chise_ds_open_feature_table' instead of
433         `chise_open_feature_table'.
434         (char_table_close_db_maybe): Use `chise_ft_close' instead of
435         `chise_close_feature_table'; `cit->ds' is deleted.
436         (syms_of_chartab): Add new builtin function
437         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
438
439         * chartab.h (default_chise_data_source): New extern variable.
440         (open_chise_data_source_maybe): New prototype.
441         (struct Lisp_Char_Table): Delete `ds'.
442
443 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
444
445         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
446         `CHISE' is defined.
447
448 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
449
450         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
451         not defined; add code for non-libchise setting.
452         (char_table_close_db_maybe): Likewise.
453         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
454         defined.
455         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
456         even if `CHISE' is not defined.
457         (Freset_char_attribute_table): Likewise.
458         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
459         `char_table_close_db_maybe' even if `CHISE' is not defined; use
460         `char_table_get_db'.
461         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
462         `char_table_close_db_maybe' even if `CHISE' is not defined.
463
464 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
465
466         * chartab.c (char_table_open_db_maybe): New function.
467         (char_table_close_db_maybe): New function.
468         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
469         (Freset_char_attribute_table): Likewise.
470         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
471         `char_table_close_db_maybe'.
472         (Fload_char_attribute_table): Likewise.
473
474 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * chartab.c: Don't include <chise.h> because it is included in
477         chartab.h.
478         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
479         defined.
480         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
481         `CHISE' is defined.
482         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
483         `CHISE' is defined.
484         (Fclose_char_attribute_table): Close `ct->feature_table' and
485         `ct->ds' when `CHISE' is defined.
486         (Freset_char_attribute_table): Likewise.
487         (load_char_attribute_maybe): Use `cit->ds' and
488         `cit->feature_table' when `CHISE' is defined.
489         (Fload_char_attribute_table): Likewise.
490
491         * chartab.h: Include <chise.h> when `CHISE' is defined.
492         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
493         when `CHISE' is defined.
494
495 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
496
497         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
498         is defined.
499         (char_table_description): Likewise.
500         (Fmake_char_table): Likewise.
501         (Fcopy_char_table): Likewise.
502         (Fmount_char_attribute_table): Likewise.
503         (Fclose_char_attribute_table): Likewise.
504         (Freset_char_attribute_table): Likewise.
505         (load_char_attribute_maybe): Likewise.
506         (Fload_char_attribute_table): Likewise.
507
508         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
509         defined.
510
511 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
512
513         * chartab.c (load_char_attribute_table_map_func): New function
514         when CHISE is defined.
515         (Qload_char_attribute_table_map_function): Don't define when CHISE
516         is defined.
517         (Fload_char_attribute_table_map_function): Likewise.
518         (Fload_char_attribute_table): Use libchise when `CHISE' is
519         defined.
520         (syms_of_chartab): Don't define
521         `load-char-attribute-table-map-function' when CHISE is defined.
522
523 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
524
525         * chartab.c: Include <chise.h> when `CHISE' is defined.
526         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
527
528 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (charset_code_point): Fix problem when searching
531         in mother CCS fails with `defined_only' mode.
532
533 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
534
535         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
536         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
537         (put_char_composition): Likewise.
538         (Fput_char_attribute): Likewise.
539         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
540
541 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
542
543         * chartab.c (Q_ucs): Deleted.
544         (Fput_char_attribute): Don't refer `->ucs'.
545         (Fdefine_char): Likewise.
546         (Ffind_char): Likewise.
547         (syms_of_chartab): Delete `->ucs'.
548
549 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
550
551         * mule-charset.c (Qmap_cns11643_2): Renamed from
552         `Qchinese_cns11643_2'.
553         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
554         `chinese-cns11643-2'.
555         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
556         `=cns11643-2'.
557
558 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * mule-charset.c (Qmap_cns11643_1): Renamed from
561         `Qchinese_cns11643_1'.
562         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
563         `chinese-cns11643-1'.
564         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
565         `=cns11643-1'.
566
567 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
568
569         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
570         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
571         `chinese-gb12345'.
572         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
573         `=gb12345'.
574
575 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
576
577         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
578         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
579         `chinese-gb2312'.
580         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
581         `=gb2312'.
582
583 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
584
585         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
586         (syms_of_mule_charset): Add new symbol `=big5' instead of
587         `chinese-big5'.
588         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
589
590 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
593         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
594         `korean-ksc5601'.
595         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
596         `=ks-x1001'.
597
598 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
599
600         * mule-charset.c (Qmap_jis_x0212): Renamed from
601         `Qjapanese_jisx0212'.
602         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
603         `japanese-jisx0212'.
604         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
605         `=jis-x0212'.
606
607 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
610         `Qjapanese_jisx0208'.
611         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
612         of `japanese-jisx0208'.
613         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
614         `=jis-x0208-1983'.
615
616 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
619         `Qjapanese_jisx0208_1978'.
620         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
621         of `japanese-jisx0208-1978'.
622         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
623         `=jis-x0208-1978'.
624
625 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
626
627         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
628         only for XEmacs CHISE.
629
630 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
631
632         * char-ucs.h: Compact non-ISO-IR charset-ids.
633         (LEADING_BYTE_UCS): Changed to -177.
634         (LEADING_BYTE_CONTROL_1): Changed to -77.
635         (LEADING_BYTE_UCS_BMP): Changed to -176.
636         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
637
638 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (Qiso_ir): New variable.
641         (Fmake_charset): Recognise new property `iso-ir'.
642         (syms_of_mule_charset): Add new symbol `iso-ir'.
643
644 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
645
646         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
647         n to -n; charset-id of non ISO-IR sets are changed to positive
648         numbers.
649
650 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
651
652         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
653         for &MCS-XXXXXXXX; values.
654
655 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
656
657         * mule.c (Vxemacs_chise_version): Renamed from
658         `Vutf_2000_version'.
659         (vars_of_mule): Add new variable `xemacs-chise-version'; define
660         `utf-2000-version' as an alias for `xemacs-chise-version'.
661
662 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
663
664         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
665         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
666         defined.
667
668         * config.h.in (CHISE): New macro.
669
670 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
671
672         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
673         of `ucs'.
674         (Qmap_ucs): New variable.
675         (syms_of_mule_charset): Add new symbol `=ucs'.
676         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
677
678         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
679         (simplify_char_spec): Likewise.
680
681         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
682
683         * char-ucs.h (Qmap_ucs): New extern variable.
684
685 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
686
687         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
688         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
689         don't define it when UTF2000 is not defined.
690         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
691         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
692         when UTF2000 is not defined.
693         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
694         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
695
696 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
699
700         * mule-charset.c (Vcharset_ucs_gb): Deleted.
701         (Qucs_gb): Deleted.
702         (syms_of_mule_charset): Delete `ucs-gb'.
703         (complex_vars_of_mule_charset): Likewise.
704
705 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
706
707         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
708
709         * mule-charset.c (Vcharset_ucs_cns): Deleted.
710         (Qucs_cns): Deleted.
711         (syms_of_mule_charset): Delete `ucs-cns'.
712         (complex_vars_of_mule_charset): Likewise.
713
714 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
717
718         * mule-charset.c (Vcharset_ucs_jis): Deleted.
719         (Qucs_jis): Deleted.
720         (syms_of_mule_charset): Delete `ucs-jis'.
721         (complex_vars_of_mule_charset): Likewise.
722
723 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
724
725         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
726
727         * mule-charset.c (Vcharset_ucs_ks): Deleted.
728         (Qucs_ks): Deleted.
729         (syms_of_mule_charset): Delete `ucs-ks'.
730         (complex_vars_of_mule_charset): Likewise.
731
732 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
735         (Qideograph_daikanwa_2): Deleted.
736         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
737         (complex_vars_of_mule_charset): Likewise.
738
739         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
740         (LEADING_BYTE_DAIKANWA_1): Deleted.
741         (LEADING_BYTE_DAIKANWA_2): Deleted.
742         (MIN_CHAR_DAIKANWA): Deleted.
743         (MAX_CHAR_DAIKANWA): Deleted.
744
745 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
746
747         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
748         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
749         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
750
751         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
752         (Vcharset_ideograph_daikanwa): Deleted.
753         (Qideograph_hanziku_{1..12}): Deleted.
754         (Qideograph_daikanwa): Deleted.
755         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
756         Vcharset_ideograph_daikanwa.
757         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
758         `ideograph-hanziku-{1..12}'.
759         (complex_vars_of_mule_charset): Likewise.
760
761 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
764
765         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
766         (Qideograph_gt_pj_{1..11}): Deleted.
767         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
768         (complex_vars_of_mule_charset): Likewise.
769
770 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * mule-charset.c (Vcharset_ucs_big5): Deleted.
773         (Vcharset_ideograph_gt): Deleted.
774         (Qucs_big5): Deleted.
775         (Qideograph_gt): Deleted.
776         (syms_of_mule_charset): Delete symbol `ucs-big5' and
777         `ideograph-gt'.
778         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
779         and `ideograph-gt'.
780
781         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
782         (LEADING_BYTE_GT): Deleted.
783         (MIN_CHAR_GT): Deleted.
784         (MAX_CHAR_GT): Deleted.
785
786 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
787
788         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
789
790 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
791
792         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
793         (save_uint16_byte_table): Likewise.
794         (save_byte_table): Likewise; convert values by it.
795         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
796         for `ideographic-structure'.
797         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
798         as the filter for `ideographic-structure'.
799
800 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * chartab.c (put_char_composition): New function.
803         (Fput_char_attribute): Use `put_char_composition'; use
804         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
805
806         * fns.c (simplify_char_spec): New function.
807         (char_ref_simplify_spec): New function.
808         (Fchar_refs_simplify_char_specs): New function.
809         (syms_of_fns): Add new builtin function
810         `char-refs-simplify-char-specs'.
811
812 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
813
814         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
815         (Qideograph_cbeta): Deleted.
816         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
817         (complex_vars_of_mule_charset): Likewise.
818
819         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
820         (MIN_CHAR_CBETA): Comment out.
821         (MAX_CHAR_CBETA): Likewise.
822
823 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
824
825         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
826         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
827         CHISE client feature.
828
829 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
830
831         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
832
833 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
834
835         * mule-charset.c (charset_lookup_description_1): Use
836         `NUM_LEADING_BYTES' in UTF-2000.
837
838 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
839
840         * char-ucs.h (GC_CHARSETP): Deleted.
841
842 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * char-ucs.h (MAX_CHAR_GT): Updated.
845
846 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
847
848         * text-coding.c: Sync with XEmacs 21.4.10.
849
850 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c (Vcharset_china3_jef): Deleted.
853         (Qchina3_jef): Deleted.
854         (syms_of_mule_charset): Don't define `china3-jef'.
855         (complex_vars_of_mule_charset): Likewise.
856
857         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
858         (MIN_CHAR_CHINA3_JEF): Comment out.
859         (MAX_CHAR_CHINA3_JEF): Comment out.
860
861 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * mule-charset.c (Vcharset_ucs_gb): New variable.
864         (Qucs_gb): New variable.
865         (syms_of_mule_charset): Add new symbol `ucs-gb'.
866         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
867
868         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
869
870 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * mule-charset.c (charset_code_point): if a coded-charset has a
873         final-byte, don't inherit the builtin range of the mother CCS.
874
875 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * mule-charset.c (charset_code_point): Fix problem about
878         inheritance.
879
880 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
881
882         * mule-charset.c (decode_builtin_char): Reorganized.
883
884 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * text-coding.c (char_encode_as_entity_reference): Modify for
887         `charset_code_point'.
888         (char_encode_shift_jis): Likewise.
889         (char_encode_big5): Likewise.
890         (char_encode_utf8): Likewise.
891         (char_encode_iso2022): Likewise.
892
893         * mule-charset.c (charset_code_point): Add new argument
894         `defined_only'.
895         (Fencode_char): Add new optional argument `defined_only'.
896
897         * chartab.c (put_char_table): Modify for `charset_code_point'.
898
899         * char-ucs.h (charset_code_point): Add new argument
900         `defined_only'.
901         (encode_char_1): Modify for `charset_code_point'.
902
903 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
906         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
907
908 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
911         (Qjis_x0208): Likewise.
912         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
913         XCHARSET_FINAL(charset).
914         (charset_code_point): Modify condition for final-byte based
915         builtin-chars.
916         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
917         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
918         in UTF-2000; specify `=jis-x0208' as the mother of
919         `japanese-jisx0208-1978', `japanese-jisx0208' and
920         `japanese-jisx0208-1990' in UTF-2000.
921
922 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
923
924         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
925
926 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * text-coding.c (decode_coding_utf16): Support UTF-16.
929         (char_encode_utf16): Fixed.
930
931 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * text-coding.c (Qutf16): New variable in MULE.
934         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
935         (Fcoding_system_type): Add `utf-16' in MULE.
936         (struct detection_state): Add a structure for utf16 in MULE.
937         (detect_coding_type): Setup st->utf16.mask in MULE.
938         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
939         MULE.
940         (reset_encoding_stream): Use `char_encode_utf16' and
941         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
942         (detect_coding_utf16): New function [incomplete].
943         (decode_coding_utf16): New function [support only UCS-2].
944         (char_encode_utf16): New function.
945         (char_finish_utf16): New function.
946         (syms_of_file_coding): Add new symbol `utf-16'; setup
947         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
948
949         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
950         UTF-2000.
951         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
952         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
953
954 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
955
956         * chartab.c (put_char_table): When a charset is specified as a
957         range in UTF-2000, don't support builtin characters.
958
959 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
960
961         * mule-charset.c (decode_defined_char): Don't refer external
962         database if Qunbound or Qnil are found.
963         (Fsave_charset_mapping_table): Don't define it if
964         HAVE_CHISE_CLIENT is not defined.
965         (Freset_charset_mapping_table): New function.
966         (load_char_decoding_entry_maybe): Store Qnil if a character is not
967         found in external database.
968         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
969         if HAVE_CHISE_CLIENT is not defined; add new builtin function
970         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
971
972 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
973
974         * text-coding.c (decode_coding_utf8): Check CCS is specified or
975         not.
976
977 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
978
979         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
980         Q_lowercase, Q_uppercase in UTF-2000.
981
982         * chartab.c (get_char_table): Add special code for the standard
983         case table to use character attribute `->downcase' and
984         `->uppercase' for case operations in UTF-2000.
985
986         * casetab.c (Qflippedcase): New variable in UTF-2000.
987         (Q_lowercase): Likewise.
988         (Q_uppercase): Likewise.
989         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
990         and `->uppercase' in UTF-2000.
991         (complex_vars_of_casetab): Assign attribute name `downcase' to
992         downcase and CANON table of Vstandard_case_table in UTF-2000;
993         assign attribute name `flippedcase' to upcase and EQV table of
994         Vstandard_case_table in UTF-2000.
995
996 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * text-coding.c (decode_add_er_char): Support isolated-chars.
999         (char_encode_as_entity_reference): Likewise.
1000
1001 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1002
1003         * emacs.c (Vutf_2000_lisp_directory): New variable.
1004         (Vconfigure_utf_2000_lisp_directory): Likewise.
1005         (complex_vars_of_emacs): Add new variable
1006         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1007
1008 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1009
1010         * char-ucs.h (DECODE_CHAR): Delete special code for
1011         `chinese-big5-1' and `chinese-big5-2'.
1012
1013         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1014         (Qbig5_2): Likewise.
1015         (decode_defined_char): Support CONVERSION_BIG5_1 and
1016         CONVERSION_BIG5_2.
1017         (decode_builtin_char): Likewise.
1018         (charset_code_point): Likewise.
1019         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1020         'conversion in UTF-2000.
1021         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1022         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1023         `chinese-big5-2' as children of `chinese-big5'.
1024
1025         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1026         (CONVERSION_BIG5_2): New macro.
1027
1028 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1029
1030         * text-coding.c (char_encode_big5): Support entity-reference.
1031
1032 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1033
1034         * text-coding.c (char_encode_as_entity_reference): New function.
1035         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1036
1037 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1038
1039         * text-coding.c (decode_coding_big5): Support entity-reference
1040         decoding feature.
1041
1042 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1043
1044         * text-coding.c (allocate_coding_system): Initialize initial
1045         charsets for CODESYS_UTF8.
1046         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1047         charset-g2 for CODESYS_UTF8.
1048         (decode_coding_utf8): Use charset-g0.
1049         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1050         to force variants to map to UCS.
1051
1052 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * text-coding.c (Qutf_8_mcs): New variable.
1055         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1056         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1057         instead of `utf-8' in UTF-2000.
1058
1059 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1060
1061         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1062         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1063         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1064         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1065         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1066         CONVERSION_96x96x96x96 are introduced.
1067         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1068         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1069         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1070
1071         * char-ucs.h (CONVERSION_94): New macro.
1072         (CONVERSION_96): New macro.
1073         (CONVERSION_94x94): New macro.
1074         (CONVERSION_96x96): New macro.
1075         (CONVERSION_94x94x94): New macro.
1076         (CONVERSION_96x96x96): New macro.
1077         (CONVERSION_94x94x94x60): New macro.
1078         (CONVERSION_94x94x94x94): New macro.
1079         (CONVERSION_96x96x96x96): New macro.
1080
1081 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1082
1083         * chartab.c (Vcharacter_variant_table): Deleted.
1084         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1085         of `Vcharacter_variant_table'.
1086         (Fput_char_attribute): Likewise.
1087         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1088         (complex_vars_of_chartab): Likewise.
1089
1090 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1091
1092         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1093
1094         * fns.c (Qideographic_structure): New variable.
1095         (Qkeyword_char): New variable.
1096         (ids_format_unit): New function.
1097         (Fideographic_structure_to_ids): New function.
1098         (syms_of_fns): Add new symbols `ideographic-structure' and
1099         `:char'; add new builtin function `ideographic-structure-to-ids'.
1100
1101         * data.c (Fchar_ref_p): New function.
1102         (syms_of_data): Add new builtin function `char-ref-p'.
1103
1104         * chartab.h: Add an EXFUN for `Ffind_char'.
1105
1106 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1107
1108         * text-coding.c (Vcharacter_composition_table): Deleted.
1109         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1110         in every UTF-2000.
1111
1112         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1113         UTF-2000.
1114         (Vcharacter_composition_table): Deleted.
1115         (Fget_composite_char): Use the implementation for external-DB
1116         support in every UTF-2000.
1117         (Fput_char_attribute): Likewise.
1118         (char_attribute_system_db_file): Don't define if external-DB
1119         feature is not available.
1120         (Fsave_char_attribute_table): Likewise.
1121         (Fmount_char_attribute_table): Likewise.
1122         (Fclose_char_attribute_table): Likewise.
1123         (Freset_char_attribute_table): Likewise.
1124         (Fload_char_attribute_table): Likewise.
1125         (syms_of_chartab): Don't define `save-char-attribute-table',
1126         `mount-char-attribute-table', `reset-char-attribute-table',
1127         `close-char-attribute-table' and `load-char-attribute-table' if
1128         external-DB feature is not available.
1129         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1130
1131 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1132
1133         * text-coding.c (Qcomposition): Add extern if external-DB feature
1134         is supported.
1135         (Vcharacter_composition_table): Don't add extern if external-DB
1136         feature is supported.
1137         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1138         character composition rule if external-DB feature is supported.
1139
1140         * chartab.c (Vcharacter_composition_table): Don't define if
1141         external-DB feature is supported.
1142         (Qcomposition): New variable.
1143         (Fget_composite_char): New implementation for external-DB support.
1144         (Fput_char_attribute): Use `composition' property of each
1145         character instead of `Vcharacter_composition_table' to store
1146         character-composition rules if external-DB feature is supported.
1147         (syms_of_chartab): Add new symbol `composition'.
1148         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1149         external-DB feature is supported.
1150
1151 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1152
1153         * chartab.c (Vchar_db_stingy_mode): New variable.
1154         (load_char_attribute_maybe): Close database if
1155         Vchar_db_stingy_mode is not NIL.
1156         (Fload_char_attribute_table_map_function): Use
1157         `get_char_id_table_0' instead of `get_char_id_table'.
1158         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1159
1160         * chartab.h (get_char_id_table_0): New inline function.
1161         (get_char_id_table): Use `get_char_id_table_0'.
1162
1163 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1164
1165         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1166         and `COMPOSE_ADD_CHAR'.
1167         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1168
1169 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1170
1171         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1172         instead of `DECODE_ADD_UCS_CHAR'.
1173         (COMPOSE_ADD_CHAR): Likewise.
1174
1175 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1176
1177         * text-coding.c (decode_flush_er_chars): New inline function.
1178         (decode_add_er_char): New function.
1179         (decode_coding_utf8): Use `decode_flush_er_chars' and
1180         `decode_add_er_char'.
1181
1182 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1183
1184         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1185         done before `decode_output_utf8_partial_char'.
1186
1187         * mule-charset.c (complex_vars_of_mule_charset): Specify
1188         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1189         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1190
1191 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1192
1193         * mule-charset.c (decode_defined_char): New function; search
1194         mother.
1195         (decode_builtin_char): Don't search mother if
1196         XCHARSET_MAX_CODE(charset) == 0.
1197         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1198         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1199         (Fdecode_char): Use `decode_defined_char' instead of
1200         `DECODE_DEFINED_CHAR'.
1201         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1202         mother of `Vcharset_ucs_jis'.
1203
1204         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1205         instead of `DECODE_DEFINED_CHAR'.
1206
1207         * char-ucs.h (decode_defined_char): Renamed from
1208         `DECODE_DEFINED_CHAR'; changed to normal function.
1209         (DECODE_CHAR): Use `decode_defined_char' instead of
1210         `DECODE_DEFINED_CHAR'.
1211
1212         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1213
1214 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1215
1216         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1217
1218         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1219         variable.
1220         (Quse_entity_reference): New variable.
1221         (Qd): New variable.
1222         (Qx): New variable.
1223         (QX): New variable.
1224         (coding_system_description): Add description for
1225         `ccs_priority_list'.
1226         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1227         (allocate_coding_system): Initialize `ccs_priority_list' in
1228         UTF-2000.
1229         (Fmake_coding_system): Add description about
1230         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1231         (codesys).
1232         (Fcoding_system_property): Accept `disable-composition' and
1233         `use-entity-reference' in UTF-2000.
1234         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1235         in UTF-2000.
1236         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1237         (decode_coding_utf8): Decode entity-reference if
1238         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1239         (char_encode_utf8): Encode non-Unicode characters as
1240         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1241         (str->codesys).
1242         (syms_of_file_coding): Add new symbols `use-entity-reference',
1243         `d', `x', `X'.
1244         (vars_of_file_coding): Add new variable
1245         `coded-charset-entity-reference-alist'.
1246         (complex_vars_of_file_coding): Declare `disable-composition' and
1247         `use-entity-reference' to be coding-system-properties in UTF-2000.
1248
1249         * file-coding.h (struct Lisp_Coding_System): Add new member
1250         `use_entity_reference' and `ccs_priority_list'.
1251         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1252         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1253         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1254
1255 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * chartab.c (save_uint8_byte_table): Don't clear the table.
1258         (save_uint16_byte_table): Likewise.
1259         (save_byte_table): Likewise.
1260         (Fmount_char_attribute_table): New function.
1261         (syms_of_chartab): Add new builtin function
1262         `mount-char-attribute-table'.
1263
1264 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265
1266         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1267         "w+" mode.
1268         (load_char_decoding_entry_maybe): Open database as read-only mode.
1269
1270         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1271         open database as "w+" mode.
1272         (load_char_attribute_maybe): Open database as read-only mode.
1273         (Fload_char_attribute_table): Likewise.
1274
1275 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1278         (char_table_description): Delete member `db_file'.
1279         (Fmake_char_table): Don't refer `ct->db_file'.
1280         (Fcopy_char_table): Likewise.
1281         (Fsave_char_attribute_table): Likewise.
1282         (Fclose_char_attribute_table): Likewise.
1283         (Freset_char_attribute_table): Likewise.
1284         (load_char_attribute_maybe): Likewise.
1285         (Fload_char_attribute_table): Likewise.
1286
1287         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1288
1289 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290
1291         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1292         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1293         `ct->db' is living.
1294         (load_char_attribute_maybe): Likewise.
1295         (Fload_char_attribute_table): Likewise.
1296
1297 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1298
1299         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1300         `ct->db_file' unconditionally.
1301
1302 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1303
1304         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1305         UTF-2000.
1306         (char_table_description): Add description for `db_file' and `db'
1307         in UTF-2000.
1308         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1309         UTF-2000.
1310         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1311         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1312         (Fclose_char_attribute_table): New function.
1313         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1314         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1315         and `cit->db'.
1316         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1317         (syms_of_chartab): Add new builtin function
1318         `Fclose_char_attribute_table'.
1319
1320 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1321
1322         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1323         `db' in UTF-2000.
1324         (load_char_attribute_maybe): Change interface.
1325         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1326
1327 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1328
1329         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1330
1331 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1332
1333         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1334         instead of `DECODE_CHAR' for mother; don't use special code for
1335         chinese-big5 to use code space of chinese-big5-1 and
1336         chinese-big5-2.
1337         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1338         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1339
1340         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1341         (MAX_CHAR_BIG5_CDP): Revival.
1342
1343 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1344
1345         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1346         the XLFD registry-encoding name of `chinese-big5'.
1347
1348 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1349
1350         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1351         (Qchinese_big5_cdp): Deleted.
1352         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1353         (complex_vars_of_mule_charset): Delete coded-charset
1354         `chinese-big5-cdp'.
1355
1356         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1357         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1358         `CHARSET_ID_OFFSET - n' for private CCS.
1359         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1360         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1361         of `MIN_LEADING_BYTE'.
1362         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1363         `(CHARSET_ID_OFFSET - 97)'.
1364         (MIN_CHAR_BIG5_CDP): Deleted.
1365         (MAX_CHAR_BIG5_CDP): Deleted.
1366
1367 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1370
1371 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372
1373         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1374         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1375         chartab.c].
1376
1377         * chartab.c (Vutf_2000_version): Moved to mule.c.
1378         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1379
1380 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1381
1382         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1383         when HAVE_CHISE_CLIENT is not defined.
1384
1385         * mule.c (vars_of_mule): Provide feature `chise' when
1386         HAVE_CHISE_CLIENT is defined.
1387
1388 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1389
1390         * config.h.in (UTF2000): Add comment.
1391         (HAVE_CHISE_CLIENT): New macro.
1392
1393 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1394
1395         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1396         CONSP.
1397         (Fput_char_attribute): Likewise.
1398         (char_attribute_system_db_file): Encode file-name of attribute.
1399         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1400         the initial value.
1401
1402 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1403
1404         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1405         (Fsave_charset_mapping_table): Use
1406         `char_attribute_system_db_file'.
1407         (load_char_decoding_entry_maybe): Likewise.
1408
1409         * chartab.h (Qsystem_char_id): New external variable.
1410         (char_attribute_system_db_file): New prototype.
1411
1412         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1413         (char_attribute_system_db_file): New function.
1414         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1415         (Freset_char_attribute_table): Likewise.
1416         (load_char_attribute_maybe): Likewise.
1417         (Fload_char_attribute_table): Likewise.
1418         (syms_of_chartab): Add new symbol `system-char-id'.
1419
1420 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1421
1422         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1423         `XCHARSET_GRAPHIC(ccs)'.
1424
1425 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1428
1429 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1430
1431         * chartab.c (Q_ucs_variants): New variable.
1432         (syms_of_chartab): Add new symbol `->ucs-variants'.
1433         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1434         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1435         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1436
1437         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1438
1439         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1440         `HAVE_DATABASE' is defined.
1441         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1442         `HAVE_DATABASE' is defined.
1443
1444 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1445
1446         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1447         attribute-table.
1448         (Freset_char_attribute_table): New function.
1449         (syms_of_chartab): Add new builtin function
1450         `reset-char-attribute-table'.
1451
1452 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1453
1454         * chartab.c (load_char_attribute_maybe): Don't make directories.
1455
1456 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1457
1458         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1459
1460         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1461         for decoding-table.
1462
1463 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1464
1465         * mule-charset.c (Fsave_charset_mapping_table): Use
1466         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1467
1468         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1469         instead of `XCHARSET_CHARS'.
1470
1471 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1472
1473         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1474         (XCHARSET_BYTE_SIZE): Likewise.
1475
1476         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1477         mule-charset.c].
1478         (XCHARSET_BYTE_SIZE): Likewise.
1479
1480 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1481
1482         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1483         data-directory to store database.
1484         (Fsave_char_attribute_table): Likewise.
1485         (load_char_attribute_maybe): Likewise.
1486         (Fload_char_attribute_table): Likewise.
1487
1488 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1489
1490         * mule-charset.c (Fsave_charset_mapping_table): New function.
1491         (syms_of_mule_charset): Add new builtin function
1492         `save-charset-mapping-table'.
1493
1494 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1495
1496         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1497         (get_ccs_octet_table): New inline function.
1498         (put_ccs_octet_table): Likewise.
1499         (decoding_table_put_char): Use `get_ccs_octet_table' and
1500         `put_ccs_octet_table'.
1501         (decoding_table_remove_char): Use `decoding_table_put_char'.
1502         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1503
1504         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1505         into encoding_table.
1506         (make_charset): Use Qunbound instead Qnil as initial value of
1507         decoding_table.
1508
1509 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1510
1511         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1512         element is Qunloaded.
1513         (map_over_uint16_byte_table): Likewise.
1514         (map_over_byte_table): Likewise.
1515         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1516         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1517         database support, load encoding-table of the specified
1518         coded-charset if it is not loaded yet.
1519         (save_uint8_byte_table): New function of UTF-2000 with external
1520         database support.
1521         (save_uint16_byte_table): Likewise.
1522         (save_byte_table): Likewise.
1523         (Fput_char_attribute): Don't store value into external database
1524         even if the external database feature is supported in UTF-2000;
1525         set `attribute' as name of char-table if the external database
1526         feature is supported.
1527         (Fsave_char_attribute_table): New function in UTF-2000.
1528         (syms_of_chartab): Add new builtin function
1529         `save-char-attribute-table' in UTF-2000.
1530
1531 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1532
1533         * chartab.c (char_attribute_table_to_put): New variable in
1534         UTF-2000.
1535         (Qput_char_table_map_function): Likewise.
1536         (value_to_put): Likewise.
1537         (Fput_char_table_map_function): New function in UTF-2000.
1538         (put_char_table): Use `Fmap_char_attribute' for
1539         CHARTAB_RANGE_CHARSET in UTF-2000.
1540         (Fput_char_attribute): Store symbol instead of string in
1541         `XCHAR_TABLE_NAME (table)'.
1542         (load_char_attribute_maybe): Likewise.
1543         (syms_of_chartab): Add new symbol/function
1544         `put-char-table-map-function'.
1545
1546 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1547
1548         * database.h: Add new EXFUN for `Fmap_database'.
1549
1550         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1551         (syms_of_database): Likewise.
1552
1553         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1554         UTF-2000.
1555         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1556         (XCHAR_TABLE_UNLOADED): Likewise.
1557
1558         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1559         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1560         HAVE_DATABASE is defined.
1561         (char_attribute_table_to_load): New variable of UTF-2000 with
1562         external database support.
1563         (Qload_char_attribute_table_map_function): Likewise.
1564         (Fload_char_attribute_table_map_function): New function of
1565         UTF-2000 with external database support.
1566         (Fload_char_attribute_table): New function of UTF-2000.
1567         (Fmap_char_attribute): Call Fload_char_attribute_table if
1568         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1569         (syms_of_chartab): Add new symbol and function
1570         `load-char-attribute-table-map-function' in UTF-2000 with external
1571         database support; add new function `load-char-attribute-table' in
1572         UTF-2000.
1573
1574 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * chartab.h (load_char_attribute_maybe): New prototype for
1577         UTF-2000 with DATABASE support.
1578         (get_char_id_table): Use `load_char_attribute_maybe' if
1579         HAVE_DATABASE is defined.
1580
1581         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1582         with DATABASE support.
1583
1584 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * chartab.c (Fput_char_attribute): Use S-expression as key of
1587         external database.
1588
1589         * chartab.h (get_char_id_table): Use S-expression as key of
1590         external database.
1591
1592 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593
1594         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1595         if an element is not loaded, load the corresponding attributes
1596         from an external database.
1597         (map_over_uint16_byte_table): Likewise.
1598         (map_over_byte_table): Likewise.
1599         (map_char_table): Modify for `map_over_uint8_byte_table',
1600         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1601         element is not loaded, load the corresponding attributes from an
1602         external database.
1603         (Fput_char_attribute): Change initial values to Qunloaded.
1604
1605         * chartab.h (get_char_id_table): If a character attribute is not
1606         loaded and the attribute value is not found in an external
1607         database, store Qunbound as the attribute value.
1608
1609 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1610
1611         * chartab.c (BT_UINT8_unloaded): New macro.
1612         (UINT8_VALUE_P): Accept Qunloaded.
1613         (UINT8_ENCODE): Likewise.
1614         (UINT8_DECODE): Likewise.
1615         (BT_UINT16_unloaded): New macro.
1616         (UINT16_VALUE_P): Accept Qunloaded.
1617         (UINT16_ENCODE): Likewise.
1618         (UINT16_DECODE): Likewise.
1619         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1620         BT_UINT16_unloaded.
1621         (mark_char_table): Mark `ct->name' in UTF-2000.
1622         (char_table_description): Add `name' in UTF-2000.
1623         (Fmake_char_table): Initialize `ct->name'.
1624         (Fcopy_char_table): Copy `ct->name'.
1625         (Fput_char_attribute): Store value into an external database if
1626         HAVE_DATABASE is defined.
1627
1628         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1629         UTF-2000.
1630         (CHAR_TABLE_NAME): New macro in UTF-2000.
1631         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1632         (get_char_id_table): Try to read an external database if Qunloaded
1633         is stored in a table.
1634
1635         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1636         Qunloaded.
1637
1638 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1639
1640         * database.h: Add EXFUN definitions for Fopen_database,
1641         Fput_database, Fget_database and Fclose_database.
1642
1643         * data.c (Qunloaded): New variable in UTF-2000.
1644
1645         * lisp.h (Qunloaded): New variable in UTF-2000.
1646
1647 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * mule-charset.c (put_char_ccs_code_point): Modify for
1650         `decoding_table_remove_char' and `decoding_table_put_char'.
1651         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1652
1653         * char-ucs.h (decoding_table_remove_char): Change arguments to
1654         hide decoding_table vector.
1655         (decoding_table_put_char): Likewise.
1656
1657 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * mule-charset.c (decoding_table_remove_char): Moved to
1660         char-ucs.h.
1661         (decoding_table_put_char): Likewise.
1662
1663         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1664         from mule-charset.c].
1665         (decoding_table_remove_char): New inline function [moved from
1666         mule-charset.c].
1667         (decoding_table_put_char): Likewise.
1668
1669 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1672         extension.
1673
1674 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1675
1676         * mule-charset.c (decode_builtin_char): Support mother charsets.
1677
1678 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1679
1680         * mule-charset.c (Q94x94x60): New variable.
1681         (charset_code_point): Support conversion `94x94x60'.
1682         (Fmake_charset): Likewise.
1683         (syms_of_mule_charset): Add new symbol `94x94x60'.
1684
1685         * char-ucs.h (CONVERSION_94x94x60): New macro.
1686
1687 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1688
1689         * mule-charset.c (charset_code_point): Unify code about
1690         `code-offset'.
1691
1692 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1693
1694         * mule-charset.c (charset_code_point): Merge code about builtin
1695         characters into code about mother charsets; don't use
1696         `range_charset_code_point'.
1697         (range_charset_code_point): Deleted.
1698
1699 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * mule-charset.c (Qcode_offset): New variable.
1702         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1703         `max-code'; accept new property `code-offset'.
1704         (syms_of_mule_charset): Add new symbol `code-offset'.
1705
1706 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1707
1708         * mule-charset.c (range_charset_code_point): Fixed.
1709
1710 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1711
1712         * mule-charset.c (decode_builtin_char): Change semantics of
1713         code-offset of coded-charset.
1714         (charset_code_point): Likewise.
1715         (range_charset_code_point): Likewise.
1716         (complex_vars_of_mule_charset): Modify for the change.
1717
1718 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1719
1720         * mule-charset.c (Fencode_char): Reverse arguments.
1721
1722         * mule-charset.c (charset_code_point): Fixed.
1723
1724 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * mule-charset.c (Vcharset_mojikyo): Deleted.
1727         (Vcharset_mojikyo_2022_1): Deleted.
1728         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1729         (Qmin_code): New variable in UTF-2000.
1730         (Qmax_code): Likewise.
1731         (Qmother): Likewise.
1732         (Qconversion): Likewise.
1733         (Q94x60): Likewise.
1734         (Qmojikyo): Deleted.
1735         (Qmojikyo_2022_1): Deleted.
1736         (Qmojikyo_pj_{1..22}): Deleted.
1737         (mark_charset): Mark `cs->mother'.
1738         (charset_description): Add description for `mother'.
1739         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1740         new arguments `mother' and `conversion'; use
1741         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1742         (charset_code_point): Moved from char-ucs.h; support `mother'
1743         charset feature.
1744         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1745         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1746         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1747         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1748         allow 2 as the value of `graphic' in UTF-2000; add new properties
1749         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1750         require `final' in UTF-2000; modify for `make_charset'.
1751         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1752         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1753         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1754         (Fencode_char): New function.
1755         (syms_of_mule_charset): Add new builtin function `encode-char' in
1756         UTF-2000; add new symbols `min-code', `max-code', `mother',
1757         `conversion' and `94x60'; delete symbols `mojikyo',
1758         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1759         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1760         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1761         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1762
1763         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1764         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1765
1766         * char-ucs.h (Vcharset_mojikyo): Deleted.
1767         (Vcharset_mojikyo_2022_1): Deleted.
1768         (LEADING_BYTE_MOJIKYO): Deleted.
1769         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1770         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1771         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1772         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1773         add new member `mother'; add new member `conversion'.
1774         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1775         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1776         (CHARSET_MOTHER): New macro.
1777         (CHARSET_CONVERSION): New macro.
1778         (CONVERSION_IDENTICAL): New macro.
1779         (CONVERSION_94x60): New macro.
1780         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1781         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1782         (XCHARSET_MOTHER): New macro.
1783         (XCHARSET_CONVERSION): New macro.
1784         (MIN_CHAR_MOJIKYO): Deleted.
1785         (MAX_CHAR_MOJIKYO): Deleted.
1786         (DECODE_MOJIKYO_2022): Deleted.
1787         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1788         (charset_code_point): Changed to non-inline function.
1789         (encode_char_1): Use `charset_code_point'.
1790         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1791
1792 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793
1794         * lread.c (read_compiled_function): Fix prototype.
1795         (read_vector): Likewise.
1796
1797 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * lrecord.h (struct lrecord_header): Delete `older'.
1800         (set_lheader_implementation): Delete code for `older'.
1801         (set_lheader_older_implementation): Deleted.
1802         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1803         (OLDER_RECORD_P): Deleted.
1804         (OLDER_RECORD_HEADER_P): Deleted.
1805         (alloc_older_lcrecord): Deleted.
1806         (alloc_older_lcrecord_type): Deleted.
1807
1808         * alloc.c (all_older_lcrecords): Deleted.
1809         (alloc_older_lcrecord): Deleted.
1810         (disksave_object_finalization_1): Delete code for older objects.
1811         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1812         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1813
1814 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1817         instead of `make_older_vector'.
1818         (put_char_ccs_code_point): Likewise.
1819         (mark_charset): Mark `cs->decoding_table'.
1820         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1821
1822         * lisp.h (make_older_vector): Deleted.
1823         (make_vector_newer): Deleted.
1824
1825         * config.h.in (HAVE_GGC): Deleted.
1826
1827         * alloc.c (make_older_vector): Deleted.
1828         (make_vector_newer_1): Deleted.
1829         (make_vector_newer): Deleted.
1830
1831 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1834         (Qideograph_daikanwa_2): New variable.
1835         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1836         (complex_vars_of_mule_charset): Add new coded-charset
1837         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1838         `LEADING_BYTE_DAIKANWA'.
1839
1840         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1841         (LEADING_BYTE_DAIKANWA_1): New macro.
1842         (LEADING_BYTE_DAIKANWA_2): New macro.
1843         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1844
1845 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * mule-charset.c (complex_vars_of_mule_charset): Change
1848         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1849         the second revised version.
1850
1851 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * mule-charset.c (Vcharset_ucs_smp): New variable.
1854         (Vcharset_ucs_sip): New variable.
1855         (Qucs_smp): New variable.
1856         (Qucs_sip): New variable.
1857         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1858         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1859         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1860         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1861         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1862         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1863
1864         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1865         (LEADING_BYTE_UCS_SIP): New macro.
1866         (MIN_CHAR_SMP): New macro.
1867         (MAX_CHAR_SMP): New macro.
1868         (MIN_CHAR_SIP): New macro.
1869         (MAX_CHAR_SIP): New macro.
1870
1871 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1872
1873         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1874         utf-2000.
1875
1876 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1879         value; don't store value into `encoding_table' of `Lisp_Charset'.
1880         (mark_charset): `encoding_table' was deleted.
1881         (charset_description): Likewise.
1882         (make_charset): Likewise.
1883         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1884         `put_char_ccs_code_point'.
1885
1886         * chartab.h (Fput_char_attribute): New EXFUN.
1887
1888         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1889         is unified with normal symbol space.
1890         (Fget_char_attribute): Likewise.
1891         (Fput_char_attribute): Likewise; behavior of
1892         `put_char_ccs_code_point' is changed.
1893
1894         * char-ucs.h: Include "elhash.h".
1895         (Vchar_attribute_hash_table): New external variable.
1896         (struct Lisp_Charset): Delete `encoding_table'.
1897         (CHARSET_ENCODING_TABLE): New implementation; refer
1898         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1899         `Lisp_Charset'.
1900
1901 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1904         (cs) == 0.
1905
1906 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1909         `chinese-big5'.
1910
1911 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1912
1913         * chartab.c (uint8_byte_table_description): New constant.
1914         (uint8-byte-table): Use `uint8_byte_table_description'.
1915         (uint16_byte_table_description): New constant.
1916         (uint16-byte-table): Use `uint16_byte_table_description'.
1917
1918 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919
1920         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1921         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1922
1923 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924
1925         * mule-charset.c (Vcharset_ucs_ks): New variable.
1926         (Qucs_ks): New variable.
1927         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1928         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1929
1930         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1931
1932 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1935         (Fdecode_char): Likewise.
1936
1937         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1938         chartab.h.
1939         (Fdefine_char): Modify for Fdecode_char.
1940         (Ffind_char): Likewise.
1941
1942         * mule-charset.c (Fdecode_char): Add new optional argument
1943         `defined-only'.
1944         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1945
1946 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1947
1948         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1949         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1950         (allocate_coding_system): Initialize initial-charsets of
1951         CODESYS_BIG5 in XEmacs UTF-2000.
1952         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1953         CODESYS_BIG5 in XEmacs UTF-2000.
1954         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1955         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1956
1957         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1958         variables.
1959         (Qideograph_hanziku_{1 .. 12}): Likewise.
1960         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1961         .. 12}'.
1962         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1963         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1964         `ideograph-hanziku-{1 .. 12}'.
1965
1966         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1967         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1968         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1969         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1970         (DECODE_DEFINED_CHAR): New inline function.
1971         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1972
1973 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * mule-charset.c (Vcharset_china3_jef): Renamed from
1976         `Vcharset_japanese_jef_china3'.
1977         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1978         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1979         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1980         (syms_of_mule_charset): Rename `china3-jef' from
1981         `japanese-jef-china3'.
1982         (complex_vars_of_mule_charset): Likewise; rename
1983         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1984
1985         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1986         `LEADING_BYTE_JEF_CHINA3'.
1987         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1988         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1989
1990 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1991
1992         * mule-charset.c (encode_builtin_char_1): Comment out special code
1993         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1994
1995         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1996         (MAX_CHAR_MOJIKYO_0): Comment out.
1997         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1998         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1999         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2000         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2001
2002 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2003
2004         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2005         (Qideograph_cbeta): New variable.
2006         (encode_builtin_char_1): Comment out special code for
2007         coded-charset `mojikyo' and `japanese-jef-china3'.
2008         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2009         (complex_vars_of_mule_charset): Add new coded-charset
2010         `ideograph-cbeta'.
2011
2012         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2013         (MIN_CHAR_CBETA): New macro.
2014         (MAX_CHAR_CBETA): New macro.
2015
2016 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2017
2018         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2019         (LEADING_BYTE_JEF_CHINA3): New macro.
2020         (MIN_CHAR_JEF_CHINA3): New macro.
2021         (MAX_CHAR_JEF_CHINA3): Likewise.
2022         (DECODE_CHAR): Fixed.
2023
2024 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2025
2026         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2027         (Qjapanese_jef_china3): New variable.
2028         (encode_builtin_char_1): Support `japanese-jef-china3'.
2029         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2030         (complex_vars_of_mule_charset): Add new coded-charset
2031         `japanese-jef-china3'.
2032
2033 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2034
2035         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2036         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2037         94^4, 96^3, 96^4, 128^n and 256^n set.
2038         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2039         (map_char_table): Likewise.
2040
2041 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2042
2043         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2044         UTF-2000.
2045
2046 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * chartab.h (get_char_id_table): New inline function.
2049
2050         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2051         function.
2052
2053 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * chartab.h (decode_char_table_range): New prototype in XEmacs
2056         UTF-2000.
2057         (put_char_id_table): New inline function in XEmacs UTF-2000.
2058
2059         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2060         function.
2061         (decode_char_table_range): Delete static declaration in XEmacs
2062         UTF-2000.
2063
2064 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * chartab.c (put_char_id_table): Use `put_char_table'.
2067
2068 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069
2070         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2071         (map_over_uint16_byte_table): Likewise.
2072         (map_over_byte_table): Likewise.
2073         (map_char_table): Modify for `map_over_uint8_byte_table',
2074         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2075         UTF-2000.
2076
2077 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * chartab.c (struct map_char_table_for_charset_arg): New
2080         structure.
2081         (map_char_table_for_charset_fun): New function.
2082         (map_char_table): Use `map_char_table' for encoding_table of
2083         `range->charset'.
2084
2085 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2086
2087         * chartab.c (map_char_table): Check a character is found in
2088         range->charset instead of non default value is defined in
2089         char-table when range is CHARTAB_RANGE_ROW.
2090
2091 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2092
2093         * chartab.c (map_char_id_table): Deleted.
2094         (Fmap_char_attribute): Use `map_char_table' instead of
2095         `map_char_id_table'.
2096
2097 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098
2099         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2100         UTF-2000.
2101         (update_syntax_table): Deleted in XEmacs UTF-2000.
2102
2103         * syntax.c (find_defun_start): Use `syntax_table' instead of
2104         `mirror_syntax_table' in XEmacs UTF-2000.
2105         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2106         UTF-2000.
2107         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2108         XEmacs UTF-2000.
2109         (Fmatching_paren): Likewise.
2110         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2111         in XEmacs UTF-2000.
2112         (find_start_of_comment): Likewise.
2113         (find_end_of_comment): Likewise.
2114         (Fforward_comment): Likewise.
2115         (scan_lists): Likewise.
2116         (char_quoted): Likewise.
2117         (Fbackward_prefix_chars): Likewise.
2118         (scan_sexps_forward): Likewise.
2119         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2120         (update_syntax_table): Likewise.
2121
2122         * search.c (skip_chars): Use `syntax_table' instead of
2123         `mirror_syntax_table' in XEmacs UTF-2000.
2124         (wordify): Likewise.
2125         (Freplace_match): Likewise.
2126
2127         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2128         `mirror_syntax_table' in XEmacs UTF-2000.
2129         (WORDCHAR_P_UNSAFE): Likewise.
2130         (re_match_2_internal): Likewise.
2131
2132         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2133         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2134
2135         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2136         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2137
2138         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2139         XEmacs UTF-2000.
2140
2141         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2142         UTF-2000.
2143         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2144         (char_table_description): Delete `mirror_table' in XEmacs
2145         UTF-2000.
2146         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2147         UTF-2000.
2148         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2149         (Fcopy_char_table): Likewise.
2150         (put_char_table): Don't call `update_syntax_table' in XEmacs
2151         UTF-2000.
2152
2153         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2154         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2155         (casify_region_internal): Likewise.
2156
2157         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2158
2159         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2160         `mirror_syntax_table' in XEmacs UTF-2000.
2161
2162         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2163         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2164         (Fexpand_abbrev): Likewise.
2165
2166 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2169
2170 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2171
2172         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2173         (map_over_uint16_byte_table): Likewise.
2174         (map_over_byte_table): Likewise.
2175         (get_char_id_table): Refer `cit->default_value'.
2176         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2177         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2178         of character-id ranges.
2179         (mark_char_table): Mark `ct->default_value'.
2180         (char_table_description): Add `default_value'.
2181         (fill_char_table): Use `default_value'.
2182         (decode_char_table_range): Decode `nil' as
2183         `CHARTAB_RANGE_DEFAULT'.
2184         (get_char_id_table): Refer `cit->default_value'.
2185         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2186         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2187         temporary hack; check value of char-table is bound or not.
2188         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2189
2190         * chartab.h (struct Lisp_Char_Table): Add new member
2191         `default_value' in XEmacs UTF-2000.
2192         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2193         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2194         UTF-2000.
2195
2196 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * chartab.h (Lisp_Char_ID_Table): Deleted.
2199
2200         * chartab.c (char_table_description): Fix typo.
2201         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2202         `Lisp_Char_ID_Table'.
2203
2204 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2205
2206         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2207         `CHAR_ID_TABLE_P'.
2208
2209         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2210         `CHAR_ID_TABLE_P'.
2211
2212         * chartab.h (XCHAR_ID_TABLE): Deleted.
2213         (XSETCHAR_ID_TABLE): Deleted.
2214         (CHAR_ID_TABLE_P): Deleted.
2215
2216         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2217         `CHAR_ID_TABLE_P'.
2218         (Fget_composite_char): Likewise.
2219         (put_char_table): Likewise.
2220         (add_char_attribute_alist_mapper): Fixed.
2221         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2222         `CHAR_ID_TABLE_P'.
2223         (Fget_char_attribute): Likewise.
2224         (Fget_char_attribute): Likewise.
2225         (Fmap_char_attribute): Likewise.
2226
2227         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2228         `CHAR_ID_TABLE_P'.
2229         (encode_char_1): Likewise.
2230
2231 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2232
2233         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2234         `XCHAR_ID_TABLE'.
2235
2236         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2237         instead of `XCHAR_ID_TABLE'.
2238         (remove_char_ccs): Likewise.
2239
2240         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2241         `XCHAR_ID_TABLE'.
2242         (Fget_composite_char): Likewise.
2243         (Fchar_variants): Likewise.
2244         (put_char_table): Likewise.
2245         (add_char_attribute_alist_mapper): Likewise.
2246         (Fchar_attribute_alist): Likewise.
2247         (Fget_char_attribute): Likewise.
2248         (Fput_char_attribute): Likewise.
2249         (Fmap_char_attribute): Likewise.
2250         (Fmap_char_attribute): Likewise.
2251
2252         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2253         `XCHAR_ID_TABLE'.
2254         (encode_char_1): Likewise.
2255
2256 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2259         `Lisp_Char_ID_Table'.
2260         (mark_char_id_table): Deleted.
2261         (print_char_id_table): Likewise.
2262         (char_id_table_equal): Likewise.
2263         (char_id_table_hash): Likewise.
2264         (char_id_table_description): Likewise.
2265         (char_id_table): Likewise.
2266         (make_char_id_table): Use `Fmake_char_table' and
2267         `fill_char_table'.
2268         (get_char_id_table): Use `Lisp_Char_Table' instead of
2269         `Lisp_Char_ID_Table'.
2270         (put_char_id_table): Likewise.
2271         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2272         `XCHAR_ID_TABLE'.
2273         (Fremove_char_attribute): Likewise.
2274         (syms_of_chartab): Don't define type `char-id-table'.
2275
2276         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2277         (char_id_table): Likewise.
2278         (GC_CHAR_ID_TABLE_P): Likewise.
2279         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2280         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2281         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2282         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2283         (get_char_id_table): Use `Lisp_Char_Table' instead of
2284         `Lisp_Char_ID_Table'.
2285         (put_char_id_table_0): Likewise.
2286         (put_char_id_table): Likewise.
2287
2288 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2289
2290         * chartab.h: Lisp_Byte_Table related codes are moved from
2291         chartab.h.
2292
2293         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2294
2295 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2296
2297         * chartab.h: Don't include "chartab.h".
2298         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2299         (Lisp_Char_ID_Table): Likewise.
2300         (char_id_table): Likewise.
2301         (XCHAR_ID_TABLE): Likewise.
2302         (XSETCHAR_ID_TABLE): Likewise.
2303         (CHAR_ID_TABLE_P): Likewise.
2304         (GC_CHAR_ID_TABLE_P): Likewise.
2305         (get_char_id_table): Likewise.
2306
2307         * char-ucs.h: Include "chartab.h".
2308         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2309         (Lisp_Char_ID_Table): Likewise.
2310         (char_id_table): Likewise.
2311         (XCHAR_ID_TABLE): Likewise.
2312         (XSETCHAR_ID_TABLE): Likewise.
2313         (CHAR_ID_TABLE_P): Likewise.
2314         (GC_CHAR_ID_TABLE_P): Likewise.
2315         (get_char_id_table): Likewise.
2316
2317 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2318
2319         * chartab.c (copy_uint8_byte_table): New function.
2320         (copy_uint16_byte_table): New function.
2321         (copy_byte_table): New function.
2322         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2323         characters to call.
2324         (map_over_uint16_byte_table): Likewise.
2325         (map_over_byte_table): Likewise.
2326         (get_byte_table): Move prototype to chartab.h.
2327         (put_byte_table): Likewise.
2328         (put_char_id_table_0): Moved to chartab.h.
2329         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2330         (char_table_entry_equal): Likewise.
2331         (char_table_entry_hash): Likewise.
2332         (char_table_entry_description): Likewise.
2333         (char_table_entry): Likewise.
2334         (make_char_table_entry): Likewise.
2335         (copy_char_table_entry): Likewise.
2336         (get_non_ascii_char_table_value): Likewise.
2337         (map_over_charset_ascii): Likewise.
2338         (map_over_charset_control_1): Likewise.
2339         (map_over_charset_row): Likewise.
2340         (map_over_other_charset): Likewise.
2341         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2342         (print_char_table): Likewise.
2343         (char_table_equal): Likewise.
2344         (char_table_hash): Likewise.
2345         (char_table_description): Likewise.
2346         (fill_char_table): Likewise.
2347         (Fcopy_char_table): Likewise.
2348         (get_char_table): Likewise.
2349         (Fget_range_char_table): Likewise.
2350         (put_char_table): Likewise.
2351         (map_char_table): Likewise.
2352         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2353         UTF-2000.
2354
2355 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2358         `Vauto_fill_chars' in XEmacs UTF-2000.
2359
2360         * chartab.h (get_byte_table): New prototype [moved from
2361         chartab.c].
2362         (put_byte_table): Likewise [moved from chartab.c].
2363         (put_char_id_table_0): New inline function [moved from chartab.c].
2364         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2365         (Lisp_Char_Table_Entry): Likewise.
2366         (char_table_entry): Likewise.
2367         (XCHAR_TABLE_ENTRY): Likewise.
2368         (XSETCHAR_TABLE_ENTRY): Likewise.
2369         (CHAR_TABLE_ENTRYP): Likewise.
2370         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2371         (NUM_ASCII_CHARS): Likewise.
2372         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2373         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2374
2375 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2376
2377         * chartab.c (get_char_id_table): Change interface.
2378         (put_char_id_table_0): New function.
2379         (put_char_id_table): Change interface; new implementation.
2380         (Fget_composite_char): Modify for interface change of
2381         `get_char_id_table'.
2382         (Fchar_variants): Likewise.
2383         (add_char_attribute_alist_mapper): Likewise.
2384         (Fchar_attribute_alist): Likewise.
2385         (Fget_char_attribute): Likewise.
2386         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2387         as same as character as the first argument like `put-char-table';
2388         modify for interface change of `put_char_id_table'.
2389         (Fremove_char_attribute): Modify for interface change of
2390         `put_char_id_table'.
2391
2392 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2393
2394         * text-coding.c: Sync up with XEmacs 21.2.41.
2395         (COMPOSE_ADD_CHAR): Modify for interface change of
2396         `get_char_id_table'.
2397
2398         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2399         change of `put_char_id_table'.
2400         (remove_char_ccs): Likewise.
2401
2402         * chartab.h (put_char_id_table): Change interface.
2403
2404         * char-ucs.h (get_char_id_table): Change interface.
2405         (charset_code_point): Modify for interface change of
2406         `get_char_id_table'.
2407         (encode_char_1): Likewise.
2408
2409 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2410
2411         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2412         argument `ccs'.
2413         (map_over_uint16_byte_table): Likewise.
2414         (map_over_byte_table): Likewise.
2415         (map_char_id_table): Add new argument `range' like
2416         `map_char_table'.
2417         (Fmap_char_attribute): Add new argument `range' like
2418         `Fmap_char_table'.
2419
2420 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2421
2422         * chartab.c (map_over_uint8_byte_table): Change interface of
2423         mapping function to use struct chartab_range instead of Emchar.
2424         (map_over_uint16_byte_table): Likewise.
2425         (map_over_byte_table): Likewise.
2426         (map_char_id_table): Likewise.
2427         (struct slow_map_char_id_table_arg): Deleted.
2428         (slow_map_char_id_table_fun): Deleted.
2429         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2430         function `slow_map_char_table_fun' instead of struct
2431         `slow_map_char_id_table_arg' and function
2432         `slow_map_char_id_table_fun'.
2433
2434 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2435
2436         * mule-charset.c: Move char-it-table related codes to chartab.c.
2437         (Vutf_2000_version): Moved to chartab.c.
2438         (Fdefine_char): Likewise.
2439         (Ffind_char): Likewise.
2440         (syms_of_mule_charset): Move types `uint8-byte-table',
2441         `uint16-byte-table', `byte-table' and `char-id-table' to
2442         chartab.c; move functions `char_attribute_list,
2443         `find_char_attribute_table, `char_attribute_alist,
2444         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2445         `map_char_attribute, `define_char, `find_char, `char_variants and
2446         `get_composite_char to chartab.c; move symbols `=>ucs',
2447         `->decomposition', `compat', `isolated', `initial', `medial',
2448         `final', `vertical', `noBreak', `fraction', `super', `sub',
2449         `circle', `square', `wide', `narrow', `small' and `font' to
2450         chartab.c.
2451         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2452         setting codes for `Vcharacter_composition_table' and
2453         `Vcharacter_variant_table' to chartab.c.
2454         (complex_vars_of_mule_charset): Move setting code for
2455         `Vchar_attribute_hash_table' to chartab.c.
2456
2457         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2458         (make_char_id_table): New prototype.
2459         (put_char_id_table): Likewise.
2460         (Fget_char_attribute): Likewise.
2461
2462         * chartab.c: Move char-id-table related code from mule-charset.c.
2463         (Vutf_2000_version): Moved from mule-charset.c.
2464
2465         * char-ucs.h (Qucs): New external variable.
2466         (put_char_ccs_code_point): New prototype.
2467         (remove_char_ccs): Likewise.
2468
2469 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2470
2471         * mule-charset.c (Vcharset_ucs_jis): New variable.
2472         (Qucs_jis): Likewise.
2473         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2474         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2475
2476         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2477
2478 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2479
2480         * mule-charset.c (map_over_uint8_byte_table): New function.
2481         (map_over_uint16_byte_table): Likewise.
2482         (map_over_byte_table): Likewise.
2483         (map_char_id_table): Likewise.
2484         (slow_map_char_id_table_fun): Likewise.
2485         (Fmap_char_attribute): Likewise.
2486         (syms_of_mule_charset): Add new function `map-char-attribute'.
2487
2488 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2489
2490         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2491         (syms_of_mule_charset): Add new function `find-char'.
2492
2493 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2494
2495         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2496         XEmacs UTF-2000.
2497         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2498         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2499         XEmacs UTF-2000.
2500         (complex_vars_of_mule_charset): Add new coded-charset
2501         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2502         `ideograph-gt-pj-*'.
2503
2504         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2505
2506 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2507
2508         * mule-charset.c (encode_builtin_char_1): Purge codes about
2509         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2510         {MIN|MAX}_CHAR_HEBREW.
2511         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2512         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2513
2514         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2515         (MAX_CHAR_GREEK): Purged.
2516         (MIN_CHAR_CYRILLIC): Purged.
2517         (MAX_CHAR_CYRILLIC): Purged.
2518         (MIN_CHAR_HEBREW): Commented out.
2519         (MAX_CHAR_HEBREW): Likewise.
2520
2521 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2522
2523         * mule-charset.c (Qto_ucs): New variable.
2524         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2525         (Fdefine_char): Likewise.
2526         (syms_of_mule_charset): Add new symbol `=>ucs'.
2527
2528 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2529
2530         * mule-charset.c (Fdecode_char): Fixed.
2531
2532 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2533
2534         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2535         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2536         "tcvn5712-1".
2537
2538 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2539
2540         * mule-charset.c (Vcharset_ucs_big5): New variable.
2541         (Qucs_big5): Likewise.
2542         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2543         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2544
2545         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2546
2547 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2548
2549         * mule-charset.c (decode_builtin_char): Check Big5 code range
2550         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2551
2552 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553
2554         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2555         (Qchinese_gb12345): Likewise.
2556         (Fdecode_builtin_char): Fixed.
2557         (syms_of_mule_charset): Add `chinese-gb12345'.
2558         (complex_vars_of_mule_charset): Add coded-charset
2559         `chinese-gb12345'.
2560
2561         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2562         (LEADING_BYTE_CHINESE_GB12345): New macro.
2563
2564 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2565
2566         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2567         and `latin-viscii-upper' for `latin-viscii'.
2568
2569 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * mule-charset.c (Fdecode_builtin_char): Comment out
2572         regularization code for ISO-IR GR representation.
2573
2574 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * mule-charset.c (decode_builtin_char): New function; renamed from
2577         `make_builtin_char'; return -1 instead of signal.
2578         (Fdecode_builtin_char): Use `decode_builtin_char'.
2579
2580         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2581         `make_builtin_char'.
2582         (DECODE_CHAR): Use `decode_builtin_char' instead of
2583         `make_builtin_char'; use mapping table of `chinese-big5' for
2584         `chinese-big5-{1,2}'.
2585
2586 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587
2588         * text-coding.c (char_encode_big5): New function.
2589         (char_finish_big5): Likewise.
2590         (reset_encoding_stream): Use `char_encode_big5' and
2591         `char_finish_big5' for CODESYS_BIG5.
2592         (mule_encode): Don't use `encode_coding_big5'.
2593         (encode_coding_big5): Deleted.
2594
2595 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2598         0x81- in XEmacs UTF-2000.
2599         (detect_coding_big5): Likewise.
2600
2601 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2602
2603         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2604         generate character-id if the CCS property does not have
2605         corresponding predefined character.
2606         (make_builtin_char): Return -1 if corresponding predefined
2607         character is not found.
2608         (Fdecode_char): Return nil if corresponding character is not
2609         found.
2610         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2611         don't map to builtin ucs space.
2612
2613 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2616         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2617
2618 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619
2620         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2621         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2622         (Qideograph_gt): Likewise.
2623         (Qideograph_gt_pj_{1..11}): Likewise.
2624         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2625         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2626         `ideograph-gt-pj-11'.
2627         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2628         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2629         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2630
2631         * char-ucs.h (LEADING_BYTE_GT): New macro.
2632         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2633         (MIN_CHAR_GT): Likewise.
2634         (MAX_CHAR_GT): Likewise.
2635
2636 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637
2638         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2639         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2640
2641         * doprnt.c (unsigned_int_converters): Add `c'.
2642         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2643
2644         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2645         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2646         `MIN_CHAR_MOJIKYO'.
2647         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2648         (MAX_CHAR_MOJIKYO_0): New macro.
2649         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2650
2651 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2652
2653         * mule-charset.c (Fdefine_char): Delete cemented out code.
2654         (encode_builtin_char_1): Modify for new allocation of builtin
2655         Mojikyo characters.
2656
2657         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2658
2659 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2660
2661         * mule-charset.c (Vcharset_ucs_cns): New variable.
2662         (Qucs_cns): New variable.
2663         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2664         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2665
2666 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2667
2668         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2669
2670 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2671
2672         * search.c (search_buffer): Make `charset_base_code' as
2673         character-id >> 6 to eliminate the corresponding last byte in
2674         UTF-8 representation [I'm not sure it is right thing].
2675         (boyer_moore): Likewise.
2676
2677 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2678
2679         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2680         representation in MULE.
2681
2682 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2683
2684         * text-coding.c (Fmake_coding_system): Use
2685         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2686         `EXTERNAL_PROPERTY_LIST_LOOP'.
2687
2688 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689
2690         * text-coding.c (decode_output_utf8_partial_char): New function.
2691         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2692
2693 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2694
2695         * text-coding.c (decode_coding_utf8): Output original byte
2696         sequence if it is broken; change order of conditions.
2697
2698         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2699         of conditions.
2700
2701         * mb-multibyte.h (BYTE_ASCII_P):
2702         Use bit ops for char-signedness safety.
2703         (BYTE_C0_P): Use bit ops for char-signedness safety.
2704         (BYTE_C1_P): Use bit ops for char-signedness safety.
2705
2706         * character.h: (XCHAR_OR_CHAR_INT):
2707         Always use inline function.
2708         Remove redundant type checking assert() - XINT will abort quite
2709         nicely.
2710
2711 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * text-coding.c: (Fencode_shift_jis_char):
2714         (Fencode_big5_char):
2715         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2716         Replace 0 with '\0' when working with bytes.
2717         Replace initial "(" with "\(" in docstrings.
2718
2719         (Fmake_coding_system):
2720         When type is ccl and value is vector, register it with a proper
2721         symbol.  And checks whether the given ccl program is valid.
2722         (mule_decode): When calling ccl_driver, if src indicates
2723         NULL pointer, set an empty string instead.
2724         (mule_encode): Likewise.
2725
2726         (detect_eol_type):
2727         (detect_coding_sjis):
2728         (decode_coding_sjis):
2729         (detect_coding_big5):
2730         (decode_coding_big5):
2731         (detect_coding_ucs4):
2732         (decode_coding_ucs4):
2733         (detect_coding_utf8):
2734         (decode_coding_utf8):
2735         (detect_coding_iso2022):
2736         (decode_coding_iso2022):
2737         (decode_coding_no_conversion):
2738         (mule_decode):
2739         Make all detecting and decoding functions take an Extbyte * arg.
2740         (text_encode_generic):
2741         (encode_coding_big5):
2742         (encode_coding_no_conversion):
2743         (mule_encode):
2744         Make all encoding functions take a Bufbyte * arg.
2745         Use size_t instead of unsigned int for memory sizes.
2746         Only cast to unsigned char whenever dereferencing Extbyte *.
2747
2748         (struct lrecord_description fcd_description_1): Use countof.
2749         (complex_vars_of_file_coding):
2750         Use countof instead of sizeof.
2751         Use CHECK_NATNUM instead of CHECK_INT.
2752
2753 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2754
2755         * mule-charset.c (Fget_char_attribute): Add new optional argument
2756         `default-value'.
2757         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2758         (remove_char_ccs): Likewise.
2759
2760 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * text-coding.c (char_encode_shift_jis): New implementation in
2763         UTF-2000.
2764         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2765         ...)'.
2766
2767         * mule-charset.c (Vcharset_chinese_big5): New variable in
2768         UTF-2000.
2769         (Qchinese_big5): New variable in UTF-2000.
2770         (BIG5_SAME_ROW): New macro in UTF-2000.
2771         (make_builtin_char): Use builtin characters of
2772         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2773         characters of `Vcharset_chinese_big5'.
2774         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2775         (complex_vars_of_mule_charset): Add new coded-charset
2776         `chinese-big5' in UTF-2000.
2777
2778         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2779         (Vcharset_chinese_big5): New external variable declaration.
2780         (Vcharset_japanese_jisx0208_1990): Likewise.
2781
2782 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2783
2784         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2785         function.
2786         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2787
2788 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2789
2790         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2791         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2792         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2793         `mojikyo-pj-*'.
2794
2795 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2796
2797         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2798
2799 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2800
2801         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2802         to 0.17.
2803
2804 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2805
2806         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2807         for `CHARSET_BY_ATTRIBUTES'.
2808         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2809         `CHARSET_BY_ATTRIBUTES'.
2810
2811         * text-coding.c (struct decoding_stream): Rename member `CH' to
2812         `CPOS'.
2813         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2814         (decode_coding_sjis): Likewise.
2815         (decode_coding_big5): Likewise.
2816         (decode_coding_ucs4): Likewise.
2817         (decode_coding_utf8): Likewise.
2818         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2819         `CHARSET_BY_ATTRIBUTES'.
2820         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2821         `str->counter'; decode 3, 4 bytes sets.
2822         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2823         sets.
2824         (decode_coding_no_conversion): Use `str->cpos' instead of
2825         `str->ch'.
2826
2827         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2828         (Qmojikyo_2022_1): New variable.
2829         (make_charset): Don't use `CHARSET_TYPE_*'.
2830         (range_charset_code_point): Support coded-charset
2831         `mojikyo-2022-1'.
2832         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2833         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2834         `CHARSET_BY_ATTRIBUTES'.
2835         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2836         `CHARSET_BY_ATTRIBUTES'.
2837         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2838         (complex_vars_of_mule_charset): Add new coded-charset
2839         `mojikyo-2022-1'.
2840
2841         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2842         interface; changed to inline function.
2843
2844         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2845         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2846         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2847         (CHARSET_TYPE_94): Deleted.
2848         (CHARSET_TYPE_94X94): Deleted.
2849         (CHARSET_TYPE_96): Deleted.
2850         (CHARSET_TYPE_96X96): Deleted.
2851         (CHARSET_TYPE_128): Deleted.
2852         (CHARSET_TYPE_128X128): Deleted.
2853         (CHARSET_TYPE_256): Deleted.
2854         (CHARSET_TYPE_256X256): Deleted.
2855         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2856         to inline function.
2857         (DECODE_MOJIKYO_2022): New inline function.
2858         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2859         `Vcharset_mojikyo_2022_1'.
2860
2861 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2862
2863         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2864         instead of `EQ'.
2865         (put_byte_table): Likewise.
2866         (char_id_table_equal): Use `get_byte_table' [new implementation].
2867
2868 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * mule-charset.c: Include <limits.h> in UTF-2000.
2871         (BT_UINT8_MIN): New macro in UTF-2000.
2872         (BT_UINT8_MAX): New macro in UTF-2000.
2873         (BT_UINT8_t): New macro in UTF-2000.
2874         (BT_UINT8_nil): New macro in UTF-2000.
2875         (BT_UINT8_unbound): New macro in UTF-2000.
2876         (INT_UINT8_P): New inline function in UTF-2000.
2877         (UINT8_VALUE_P): New inline function in UTF-2000.
2878         (UINT8_ENCODE): New inline function in UTF-2000.
2879         (UINT8_DECODE): New inline function in UTF-2000.
2880         (mark_uint8_byte_table): New function in UTF-2000.
2881         (print_uint8_byte_table): New function in UTF-2000.
2882         (uint8_byte_table_equal): New function in UTF-2000.
2883         (uint8_byte_table_hash): New function in UTF-2000.
2884         (make_uint8_byte_table): New function in UTF-2000.
2885         (uint8_byte_table_same_value_p): New function in UTF-2000.
2886         (BT_UINT16_MIN): New macro in UTF-2000.
2887         (BT_UINT16_MAX): New macro in UTF-2000.
2888         (BT_UINT16_t): New macro in UTF-2000.
2889         (BT_UINT16_nil): New macro in UTF-2000.
2890         (BT_UINT16_unbound): New macro in UTF-2000.
2891         (INT_UINT16_P): New inline function in UTF-2000.
2892         (UINT16_VALUE_P): New inline function in UTF-2000.
2893         (UINT16_ENCODE): New inline function in UTF-2000.
2894         (UINT16_DECODE): New inline function in UTF-2000.
2895         (UINT8_TO_UINT16): New inline function in UTF-2000.
2896         (mark_uint16_byte_table): New function in UTF-2000.
2897         (print_uint16_byte_table): New function in UTF-2000.
2898         (uint16_byte_table_equal): New function in UTF-2000.
2899         (uint16_byte_table_hash): New function in UTF-2000.
2900         (make_uint16_byte_table): New function in UTF-2000.
2901         (uint16_byte_table_same_value_p): New function in UTF-2000.
2902         (print_byte_table): New function in UTF-2000.
2903         (byte-table): Use `print_byte_table' as printer.
2904         (make_byte_table): Delete second argument `older'.
2905         (byte_table_same_value_p): New function in UTF-2000.
2906         (copy_byte_table): Deleted.
2907         (get_byte_table): New function in UTF-2000.
2908         (put_byte_table): New function in UTF-2000.
2909         (print_char_id_table): New function in UTF-2000.
2910         (char-id-table): Use `print_char_id_table' as printer.
2911         (make_char_id_table): Delete second argument `older'.
2912         (get_char_id_table): Use `get_byte_table [new implementation].
2913         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2914         implementation].
2915         (Ffind_char_attribute_table): New function in UTF-2000.
2916         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2917         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2918         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2919         (syms_of_mule_charset): Add new function
2920         `find-char-attribute-table' in UTF-2000.
2921
2922         * lrecord.h (enum lrecord_type): Add
2923         `lrecord_type_uint16_byte_table' and
2924         `lrecord_type_uint8_byte_table'.
2925
2926         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2927         (Lisp_Uint8_Byte_Table): New type.
2928         (XUINT8_BYTE_TABLE): New macro.
2929         (XSETUINT8_BYTE_TABLE): New macro.
2930         (UINT8_BYTE_TABLE_P): New macro.
2931         (GC_UINT8_BYTE_TABLE_P): New macro.
2932         (struct Lisp_Uint16_Byte_Table): New structure.
2933         (Lisp_Uint16_Byte_Table): New type.
2934         (XUINT16_BYTE_TABLE): New macro.
2935         (XSETUINT16_BYTE_TABLE): New macro.
2936         (UINT16_BYTE_TABLE_P): New macro.
2937         (GC_UINT16_BYTE_TABLE_P): New macro.
2938
2939 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2940
2941         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2942         (Vcharacter_ideographic_strokes_table): Deleted.
2943         (Vcharacter_total_strokes_table): Deleted.
2944         (Vcharacter_morohashi_daikanwa_table): Deleted.
2945         (Vcharacter_decomposition_table): Deleted.
2946         (Qname): Deleted because it is duplicated.
2947         (Qideographic_radical): Deleted.
2948         (Qideographic_strokes): Deleted.
2949         (Qtotal_strokes): Deleted.
2950         (Qmorohashi_daikanwa): Deleted.
2951         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2952         `ideographic-radical', `ideographic-strokes', `total-strokes',
2953         `morohashi-daikanwa' and `->decomposition'.
2954         (Fget_char_attribute): Likewise.
2955         (Fput_char_attribute): Likewise; use `make-vector' instead of
2956         `make_older_vector' for `->decomposition' value.
2957         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2958         `ideograph-daikanwa'.
2959         (syms_of_mule_charset): Delete builtin symbols `name',
2960         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2961         `morohashi-daikanwa'.
2962         (vars_of_mule_charset): Don't setup
2963         `Vcharacter_ideographic_radical_table',
2964         `Vcharacter_ideographic_strokes_table',
2965         `Vcharacter_total_strokes_table',
2966         `Vcharacter_morohashi_daikanwa_table' and
2967         `Vcharacter_decomposition_table'.
2968
2969 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2970
2971         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2972         `make_older_vector', `make_vector_newer_1' and
2973         `make_vector_newer'.
2974
2975         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2976         `make_older_vector' and `make_vector_newer'.
2977
2978         * config.h.in (HAVE_GGC): New macro.
2979
2980 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2981
2982         * mule-charset.c (struct char_attribute_list_closure): New
2983         structure in UTF-2000.
2984         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2985         (Fchar_attribute_list): Likewise.
2986         (Fset_charset_mapping_table): Use `make_vector_newer'.
2987         (Fdecode_builtin_char): New function in UTF-2000.
2988         (syms_of_mule_charset): Add new function `char-attribute-list' and
2989         `decode-builtin-char' in UTF-2000.
2990
2991         * lisp.h (make_vector_newer): New prototype.
2992
2993         * alloc.c (make_vector_newer_1): New function.
2994         (make_vector_newer): New function.
2995
2996 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2999         50100)'.
3000
3001 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3004         (Vcharacter_attribute_table): Deleted.
3005         (Vcharacter_name_table): Deleted.
3006         (put_char_attribute): Deleted.
3007         (remove_char_attribute): Deleted.
3008         (struct char_attribute_alist_closure): New structure.
3009         (add_char_attribute_alist_mapper): New function.
3010         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3011         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3012         (Fget_char_attribute): Likewise.
3013         (Fput_char_attribute): Likewise.
3014         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3015         of `remove_char_attribute'.
3016         (Fdefine_char): Return character.
3017         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3018         and `Vcharacter_name_table'.
3019         (complex_vars_of_mule_charset): Likewise
3020         `Vchar_attribute_hash_table'.
3021
3022 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3023
3024         * character.h (CHARC_CHARSET): New macro.
3025         (CHARC_CHARSET_ID): New macro.
3026         (CHARC_CODE_POINT): New macro.
3027         (CHARC_COLUMNS): New macro.
3028         (CHARC_TO_CHAR): New inline function.
3029         (CHARC_EQ): New inline function.
3030         (CHARC_ASCII_EQ): New inline function.
3031         (CHARC_IS_SPACE): New inline function.
3032         (ASCII_TO_CHARC): New inline function.
3033
3034         * char-ucs.h (encode_char_2): Deleted.
3035         (ENCODE_CHAR): Use `encode_char_1' again.
3036         (breakup_char_1): Likewise.
3037         (CHAR_TO_CHARC): New inline function.
3038
3039         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3040
3041 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3042
3043         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3044         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3045         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3046         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3047         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3048         `CHARC_IS_SPACE'.
3049         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3050
3051         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3052         `CHARC_CODE_POINT'.
3053         (x_output_display_block): Use `CHARC_CHARSET' and
3054         `CHARC_ASCII_EQ'.
3055
3056         * redisplay-tty.c (tty_output_display_block): Use
3057         `CHARC_ASCII_EQ'.
3058         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3059
3060         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3061
3062         * insdel.c (find_charsets_in_charc_string): Use
3063         `CHARC_CHARSET_ID'.
3064         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3065         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3066         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3067         (convert_charc_string_into_malloced_string): Likewise.
3068
3069 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3070
3071         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3072         instead of <Emchar_dynarr *> for buf; use
3073         `convert_bufbyte_string_into_charc_dynarr' instead of
3074         `convert_bufbyte_string_into_emchar_dynarr'; use
3075         `find_charsets_in_charc_string' instead of
3076         `find_charsets_in_emchar_string'.
3077
3078         * redisplay.h:
3079         - Include "character.h".
3080         (struct rune): New member `cglyph'; delete member `chr'.
3081
3082         * redisplay.c (redisplay_text_width_charc_string): New function;
3083         delete `redisplay_text_width_emchar_string'.
3084         (rtw_charc_dynarr): New variable; renamed from
3085         `rtw_emchar_dynarr'.
3086         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3087         `rtw_emchar_dynarr'; use
3088         `convert_bufbyte_string_into_charc_dynarr' instead of
3089         `convert_bufbyte_string_into_emchar_dynarr'; use
3090         `redisplay_text_width_charc_string' instead of
3091         `redisplay_text_width_emchar_string'.
3092         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3093         instead of `rtw_emchar_dynarr'; use
3094         `convert_bufbyte_string_into_charc_dynarr' instead of
3095         `convert_bufbyte_string_into_emchar_dynarr'.
3096         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3097         `redisplay_text_width_charc_string' instead of
3098         `redisplay_text_width_emchar_string'.
3099         (create_text_block): Modify for <struct rune> change.
3100         (generate_formatted_string_db): Likewise.
3101         (create_string_text_block): Likewise.
3102         (pixel_to_glyph_translation): Likewise.
3103
3104         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3105         instead of <const Emchar *>.
3106         (x_text_width): Likewise.
3107         (x_output_display_block): Use <Charc_dynarr *> instead
3108         <Emchar_dynarr *>; modify for <structure rune> change.
3109         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3110         *>.
3111
3112         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3113         <const Emchar *>; use `charc_string_displayed_columns' instead of
3114         `emchar_string_displayed_columns'.
3115         (tty_output_display_block): Use <Charc_dynarr *> instead of
3116         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3117         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3118         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3119         `tty_output_emchar_dynarr_dynarr'.
3120         (tty_output_charc_dynarr): New function; delete
3121         `tty_output_charc_dynarr'.
3122
3123         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3124         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3125         <Emchar_dynarr *> for buf; use
3126         `convert_bufbyte_string_into_charc_dynarr' instead of
3127         `convert_bufbyte_string_into_emchar_dynarr'.
3128
3129         * frame.c (title_string_charc_dynarr): New variable; renamed from
3130         `title_string_emchar_dynarr'.
3131         (generate_title_string): Use `title_string_charc_dynarr' instead
3132         of `title_string_emchar_dynarr'; use
3133         `convert_charc_string_into_malloced_string' instead of
3134         `convert_emchar_string_into_malloced_string'.
3135         (init_frame): Use `title_string_charc_dynarr' instead of
3136         `title_string_emchar_dynarr'.
3137
3138         * console.h:
3139         - Include "character.h".
3140         (struct console_methods): Use <const Charc *> instead of <const
3141         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3142         <Emchar_dynarr *> in output_string_method.
3143
3144         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3145         <Emchar_dynarr *>.
3146
3147         * console-stream.c (stream_text_width): Use <const Charc *>
3148         instead of <const Emchar *>.
3149
3150         * character.h (Charc_dynarr): New type.
3151
3152         * char-ucs.h (structure Charc): New structure; define new type
3153         `Charc'.
3154
3155         * char-lb.h (DECODE_CHAR): New inline function.
3156         (encode_char_1): New inline function.
3157         (ENCODE_CHAR): New macro.
3158         (structure Charc): New structure; define new type `Charc'.
3159
3160         * char-1byte.h (Vcharset_control_1): New macro.
3161         (Vcharset_latin_iso8859_1): New macro.
3162         (DECODE_CHAR): New inline function.
3163         (encode_char_1): New inline function.
3164         (ENCODE_CHAR): New macro.
3165         (structure Charc): New structure; define new type `Charc'.
3166
3167         * insdel.c (find_charsets_in_charc_string): New function; delete
3168         `find_charsets_in_emchar_string'.
3169         (charc_string_displayed_columns): New function; delete
3170         `emchar_string_displayed_columns'.
3171         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3172         `convert_bufbyte_string_into_emchar_dynarr'.
3173         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3174         `convert_charc_string_into_bufbyte_dynarr'.
3175         (convert_charc_string_into_malloced_string): New function; delete
3176         `convert_charc_string_into_malloced_string'.
3177
3178         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3179         `find_charsets_in_emchar_string'.
3180         (charc_string_displayed_columns): New prototype; delete
3181         `emchar_string_displayed_columns'.
3182         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3183         `convert_charc_string_into_bufbyte_dynarr'.
3184         (convert_charc_string_into_malloced_string): New prototype; delete
3185         `convert_charc_string_into_malloced_string'.
3186
3187 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3188
3189         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3190
3191 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3192
3193         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3194
3195         * char-ucs.h: Use <short> for <Charset_ID>.
3196
3197         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3198         <Charset_ID>.
3199
3200 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201
3202         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3203         to 0.16.
3204
3205 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3206
3207         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3208         variable.
3209         (Qmorohashi_daikanwa): New variable.
3210         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3211         for `morohashi-daikanwa' attribute.
3212         (Fget_char_attribute): Likewise.
3213         (Fput_char_attribute): Likewise.
3214         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3215         has the same value of `ideograph-daikanwa'.
3216         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3217         (vars_of_mule_charset): Setup
3218         `Vcharacter_morohashi_daikanwa_table'.
3219
3220 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3221
3222         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3223         attributes.
3224         (add_charset_to_list_mapper): Add `key' instead of
3225         `XCHARSET_NAME (value)' to return aliases.
3226
3227 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3228
3229         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3230         variable.
3231         (Vcharacter_ideographic_strokes_table): New variable.
3232         (Qideographic_radical): New variable.
3233         (Qideographic_strokes): New variable.
3234         (Fchar_attribute_alist): Use
3235         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3236         attribute; use `Vcharacter_ideographic_strokes_table' for
3237         `ideographic-strokes' attribute.
3238         (Fget_char_attribute): Likewise.
3239         (Fput_char_attribute): Likewise.
3240         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3241         `ideographic-strokes'.
3242         (vars_of_mule_charset): Setup
3243         `Vcharacter_ideographic_radical_table' and
3244         `Vcharacter_ideographic_strokes_table'.
3245
3246 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3247
3248         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3249         (Qtotal_strokes): New variable.
3250         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3251         `total-strokes' attribute.
3252         (Fget_char_attribute): Likewise.
3253         (Fput_char_attribute): Likewise.
3254         (syms_of_mule_charset): Add new symbol `total-strokes'.
3255         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3256
3257 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3258
3259         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3260         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3261         are found.
3262         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3263         `->decomposition' attribute.
3264         (Fput_char_attribute): Likewise.
3265         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3266
3267 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3268
3269         * mule-charset.c (decoding_table_check_elements): New function.
3270         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3271
3272 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3273
3274         * mule-charset.c (Fset_charset_mapping_table): Use
3275         `put_char_ccs_code_point'.
3276
3277 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3278
3279         * mule-charset.c (decoding_table_put_char): New inline function.
3280         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3281
3282 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3283
3284         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3285         (XCHARSET_BYTE_SIZE): New macro.
3286         (decoding_table_remove_char): New inline function.
3287         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3288         `decoding_table_remove_char'.
3289         (remove_char_ccs): Use `decoding_table_remove_char'.
3290         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3291
3292 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3293
3294         * mule-charset.c (Vcharacter_name_table): New variable.
3295         (Qname): New variable.
3296         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3297         attribute.
3298         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3299         `Vcharacter_name_table' for `name' attribute.
3300         (Fremove_char_attribute): Use function `remove_char_ccs'.
3301         (put_char_ccs_code_point): New function.
3302         (remove_char_ccs): New function.
3303         (syms_of_mule_charset): Add new symbol `name'.
3304         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3305
3306 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3307
3308         * mule-charset.c (make_byte_table): Add new argument `older'.
3309         (make_char_id_table): Likewise.
3310         (copy_char_id_table): Comment out because it is not used.
3311         (put_char_id_table): Modify for `make_byte_table'.
3312         (Fput_char_attribute): Make encoding_table as older object;
3313         inherit older bit of `Vcharacter_composition_table'.
3314         (mark_charset): Don't mark `cs->encoding_table'.
3315         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3316         normal object; make `Vcharacter_composition_table' as an older
3317         object; delete staticpro for `Vcharacter_composition_table'; make
3318         `Vcharacter_variant_table' as a normal object.
3319
3320         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3321         (mark_object): Don't check older object in UTF-2000.
3322
3323         * lrecord.h (struct lrecord_header): Add new member `older' in
3324         UTF-2000.
3325         (set_lheader_implementation): Setup `SLI_header->older' in
3326         UTF-2000.
3327         (set_lheader_older_implementation): New macro in UTF-2000.
3328         (OLDER_RECORD_P): New macro in UTF-2000.
3329         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3330         (alloc_older_lcrecord): New prototype in UTF-2000.
3331         (alloc_older_lcrecord_type): New macro in UTF-2000.
3332
3333 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3334
3335         * mule-charset.c (byte_table_description): Use
3336         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3337         (char_id_table_description): Delete bogus `, 1'.
3338         (Fget_char_attribute): Refer encoding_table of each coded-charset
3339         to get value of coded-charset attribute of a character.
3340         (Fput_char_attribute): Use `make_older_vector' instead of
3341         `make_vector'; use encoding_table of each coded-charset to store
3342         value of coded-charset attribute of a character.
3343         (Fremove_char_attribute): Use encoding_table of each coded-charset
3344         to store value of coded-charset attribute of a character.
3345         (mark_charset): Mark `cs->encoding_table'; don't mark
3346         `cs->decoding_table'.
3347         (charset_description): Add description of new member
3348         `encoding_table'.
3349         (make_charset): Initialize `encoding_table'.
3350
3351         * char-ucs.h (struct Lisp_Charset): Add new member
3352         `encoding_table'.
3353         (CHARSET_ENCODING_TABLE): New macro.
3354         (XCHARSET_ENCODING_TABLE): New macro.
3355         (charset_code_point): New implementation.
3356         (encode_char_1): Likewise.
3357
3358         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3359         (disksave_object_finalization_1): Call finalizers of
3360         `all_older_lcrecords' in UTF-2000.
3361         (make_older_vector): New function in UTF-2000.
3362         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3363         UTF-2000.
3364
3365         * lisp.h (make_older_vector): New prototype in UTF-2000.
3366
3367 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3368
3369         * lrecord.h (enum lrecord_type): Rename
3370         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3371
3372         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3373         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3374         `get_char_code_table'.
3375
3376         * mule-charset.c (mark_char_id_table): Renamed from
3377         `mark_char_code_table'.
3378         (char_id_table_equal): Renamed from `char_code_table_equal'.
3379         (char_id_table_hash): Renamed from `char_code_table_hash'.
3380         (make_char_id_table): Renamed from `make_char_code_table'.
3381         (copy_char_id_table): Renamed from `copy_char_code_table'.
3382         (get_char_id_table): Renamed from `get_char_code_table'.
3383         (put_char_id_table): Renamed from `put_char_code_table'.
3384         (to_char_id): Renamed from `to_char_code'.
3385
3386         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3387         `Lisp_Char_Code_Table'.
3388         (char_id_table): Renamed from `char_code_table'.
3389         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3390         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3391         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3392         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3393         (get_char_id_table): Renamed from `get_char_code_table'.
3394
3395 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3396
3397         * lrecord.h (enum lrecord_type): Rename
3398         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3399
3400         * mule-charset.c (mark_byte_table): Renamed from
3401         `mark_char_byte_table'.
3402         (byte_table_equal): Renamed from `char_byte_table_equal'.
3403         (byte_table_hash): Renamed from `byte_table_hash'.
3404         (make_byte_table): Renamed from `make_byte_table'.
3405         (copy_byte_table): Renamed from `copy_char_byte_table'.
3406
3407         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3408         `Lisp_Char_Byte_Table'.
3409         (byte_table): Renamed from `char_byte_table'.
3410         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3411         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3412         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3413         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3414
3415 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3416
3417         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3418         (dfc_convert_to_internal_format): Likewise.
3419         
3420         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3421         * text-coding.c (Fcoding_system_alias_p): New function.
3422         * text-coding.c (Fcoding_system_aliasee): New function.
3423         * text-coding.c (append_suffix_to_symbol): New function.
3424         * text-coding.c (dangling_coding_system_alias_p): New function.
3425         * text-coding.c (Ffind_coding_system):
3426         * text-coding.c (Fcopy_coding_system):
3427         * text-coding.c (encode_coding_no_conversion):
3428         * text-coding.c (syms_of_file_coding):
3429         * text-coding.c (vars_of_file_coding):
3430         Rewrite coding system alias code.
3431         Allow nested aliases, like symbolic links.
3432         Allow redefinition of coding system aliases.
3433         Prevent existence of dangling coding system aliases.
3434         Eliminate convert_to_external_format.
3435         Eliminate convert_to_internal_format.
3436         
3437         * text-coding.c: Change enum eol_type to eol_type_t.
3438
3439 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3440
3441         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3442         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3443
3444         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3445         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3446
3447 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3448
3449         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3450         `ideograph-daikanwa'.
3451
3452         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3453         (Vcharset_ucs_bmp): Likewise.
3454         (Vcharset_mojikyo): Add new extern variable definition.
3455         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3456         (Vcharset_latin_iso8859_3): Likewise.
3457         (Vcharset_latin_iso8859_4): Likewise.
3458         (Vcharset_latin_iso8859_9): Likewise.
3459         (Vcharset_latin_viscii_lower): Likewise.
3460         (Vcharset_latin_viscii_upper): Likewise.
3461         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3462         `mojikyo' code-point is used to decode.
3463         (encode_char_2): New function [to convert `mojikyo' code-point to
3464         Mojikyo font encoding].
3465         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3466         (breakup_char_1): Likewise.
3467         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3468
3469 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3470
3471         * text-coding.c (Fmake_coding_system): Add document about
3472         `disable-composition' property.
3473
3474 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3475
3476         * text-coding.c (Qdisable_composition): New variable; delete
3477         `Qcomposite'.
3478         (Fmake_coding_system): Add new property `disable-composite';
3479         delete property `composite'.
3480         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3481         instead of `!CODING_SYSTEM_COMPOSITE'.
3482         (syms_of_file_coding): Add new symbol `disable-composition';
3483         delete symbol `composite'.
3484
3485         * file-coding.h (struct Lisp_Coding_System): Add
3486         `disable_composition'; delete `enable_composition'.
3487         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3488         `CODING_SYSTEM_COMPOSITE'.
3489         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3490         `XCODING_SYSTEM_COMPOSITE'.
3491
3492 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3493
3494         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3495         to 0.15.
3496
3497 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3498
3499         * text-coding.c (Qcomposite): New variable.
3500         (Fmake_coding_system): Add new property `composite'.
3501         (struct decoding_stream): Add `combined_char_count',
3502         `combined_chars' and `combining_table' in UTF-2000.
3503         (COMPOSE_FLUSH_CHARS): New macro.
3504         (COMPOSE_ADD_CHAR): New macro.
3505         (reset_decoding_stream): Reset `str->combined_char_count' and
3506         `str->combining_table' in UTF-2000.
3507         (decode_coding_iso2022): Modify for character-decomposition.
3508         (syms_of_file_coding): Add new symbol `composite'.
3509
3510 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3511
3512         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3513         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3514         of `Vcharacter_composition_table' if `->decomposition' property
3515         has only 1 element.
3516         (Qlatin_tcvn5712): New variable.
3517         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3518         (complex_vars_of_mule_charset): Add new coded-charset
3519         `latin-tcvn5712'.
3520
3521         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3522
3523 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3524
3525         * file-coding.h (struct Lisp_Coding_System): Add
3526         `enable_composition'.
3527         (CODING_SYSTEM_COMPOSITE): New macro.
3528         (XCODING_SYSTEM_COMPOSITE): New macro.
3529
3530 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3531
3532         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3533
3534 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3535
3536         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3537         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3538
3539 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3540
3541         * mule-charset.c (Vcharset_mojikyo): New variable.
3542         (Fdefine_char): Don't use coded-charset which does not have
3543         non-builtin character range to allocate character-id.
3544         (Qmojikyo): New variable.
3545         (syms_of_mule_charset): Add new symbol `mojikyo'.
3546         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3547
3548         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3549         (LEADING_BYTE_MOJIKYO): New macro.
3550         (MIN_CHAR_MOJIKYO): New macro.
3551         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3552         (MAX_CHAR_MOJIKYO): New macro.
3553
3554 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3555
3556         * mule-charset.c (remove_char_attribute): Fixed.
3557
3558 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3559
3560         * mule-charset.c (remove_char_attribute): New function.
3561         (Fremove_char_attribute): New function.
3562         (encode_builtin_char_1): Comment out builtin-support for
3563         greek-iso8859-7 and cyrillic-iso8859-5.
3564         (Fdecode_char): Check `code' is an integer.
3565         (syms_of_mule_charset): Add `remove-char-attribute'.
3566         (MIN_CHAR_GREEK): Deleted.
3567         (MAX_CHAR_GREEK): Likewise.
3568         (MIN_CHAR_CYRILLIC): Likewise.
3569         (MAX_CHAR_CYRILLIC): Likewise.
3570         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3571         MAX_CHAR_GREEK for `greek-iso8859-7'.
3572
3573         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3574         (MAX_CHAR_GREEK): Likewise.
3575         (MIN_CHAR_CYRILLIC): Likewise.
3576         (MAX_CHAR_CYRILLIC): Likewise.
3577
3578 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3579
3580         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3581         format is used without `ucs' property.
3582         (Fdecode_char): Fix problem with GR representation.
3583         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3584         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3585
3586 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3587
3588         * mule-charset.c (make_builtin_char): New function.
3589         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3590         (Fset_charset_mapping_table): Modify for new representation of
3591         code-point.
3592         (Fdecode_char): New function.
3593         (syms_of_mule_charset): Add new builtin function `decode-char' in
3594         UTF-2000.
3595
3596         * char-ucs.h (make_builtin_char): New prototype.
3597         (DECODE_CHAR): New inline function.
3598         (MAKE_CHAR): Use `DECODE_CHAR'.
3599
3600 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3601
3602         * text-coding.c (parse_charset_conversion_specs): Use
3603         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3604         `XCHARSET_TYPE'.
3605         (iso2022_designate): Likewise.
3606
3607         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3608         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3609
3610         * mule-charset.c (Vcharset_ucs): New variable.
3611         (print_charset): Change design; use `CHARSET_CHARS' and
3612         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3613         (make_charset): Change signature to specify `chars' and
3614         `dimension' instead of `type'.
3615         (range_charset_code_point): Modify for 256^n-set.
3616         (encode_builtin_char_1): Encode as `ucs' in default.
3617         (Fmake_charset): Modify for `make_charset'.
3618         (Fmake_reverse_direction_charset): Likewise.
3619         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3620         UTF-2000.
3621         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3622         for `make_charset'.
3623
3624         * char-ucs.h (Vcharset_ucs): New variable.
3625         (LEADING_BYTE_UCS): New macro.
3626         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3627         and `chars' to `unsigned short' from `unsigned int'.
3628         (CHARSET_TYPE): Deleted.
3629         (XCHARSET_TYPE): Deleted.
3630
3631 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3632
3633         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3634
3635         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3636         (ENCODE_CHAR): New macro.
3637
3638 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3639
3640         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3641         to 0.14 (Kawachi-Katakami).
3642
3643 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3644
3645         * text-coding.c (char_encode_shift_jis): Modify for
3646         `charset_code_point'.
3647         (char_encode_iso2022): Likewise.
3648
3649         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3650         (integer) instead of list of <Lisp_Object>s (integers) as the
3651         format of code-point of a coded-charset.
3652         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3653         (encode_builtin_char_1): New function; delete
3654         `split_builtin_char'.
3655         (charset_code_point): Return <int> instead of <Lisp_Object>.
3656         (Fsplit_char): Don't use `SPLIT_CHAR'.
3657
3658         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3659         prototype for `split_builtin_char'.
3660         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3661         (charset_code_point): Likewise.
3662         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3663         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3664
3665 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3666
3667         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3668         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3669
3670 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3671
3672         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3673
3674         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3675         (MAX_CHAR_OBS_94x94): Deleted.
3676
3677 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3678
3679         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3680
3681         * char-ucs.h (MAX_CHAR_BMP): New macro.
3682
3683 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3684
3685         * text-coding.c: Sync with r21-2-24.
3686
3687 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3688
3689         * file-coding.c: Modify for UTF-2000.
3690
3691 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3692
3693         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3694         to 0.13 (Takaida).
3695
3696 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3697
3698         * mule-charset.c (split_builtin_char): Delete builtin support for
3699         `katakana-jisx0201'.
3700         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3701         BMP area in builtin representation.
3702
3703         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3704         `Vcharset_katakana_jisx0201'.
3705
3706 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3707
3708         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3709         (Qisolated): New variable.
3710         (Qinitial): New variable.
3711         (Qmedial): New variable.
3712         (Qfinal): New variable.
3713         (Qvertical): New variable.
3714         (Qsmall): New variable.
3715         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3716         `Qvertical' and `Qsmall'.
3717         (Qmojikyo_pj_[1 .. 21]): New variable.
3718         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3719         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3720         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3721         .. 21]'.
3722
3723 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3724
3725         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3726         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3727         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3728
3729 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3730
3731         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3732         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3733         BMP.
3734         (Qjapanese_jisx0208_1990): New variable.
3735         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3736         (complex_vars_of_mule_charset): Add new coded-charset
3737         `japanese-jisx0208-1990'.
3738
3739         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3740         (MIN_CHAR_JIS_X0208_1990): New macro.
3741         (MAX_CHAR_JIS_X0208_1990): New macro.
3742
3743 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3744
3745         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3746         coded-charset is not found.
3747
3748 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3749
3750         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3751         (Fdefine_char): Use `Fmake_char'.
3752
3753 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3754
3755         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3756         (Vcharset_hiragana_jisx0208): Deleted.
3757         (Vcharset_katakana_jisx0208): Deleted.
3758         (Qideograph_daikanwa): New variable.
3759         (Qhiragana_jisx0208): Deleted.
3760         (Qkatakana_jisx0208): Deleted.
3761         (split_builtin_char): Split `ideograph-daikanwa'.
3762         (Fsplit_char): New implementation for UTF-2000.
3763         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3764         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3765         (complex_vars_of_mule_charset): Add new coded-charset
3766         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3767         `katakana-jisx0208'.
3768
3769         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3770         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3771         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3772         (MIN_CHAR_DAIKANWA): New macro.
3773         (MAX_CHAR_DAIKANWA): New macro.
3774
3775 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3776
3777         * data.c (Fstring_to_number): Don't recognize floating point if
3778         base is not 10.
3779
3780 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3781
3782         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3783
3784 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3785
3786         * mule-charset.c (Qsquare): New variable.
3787         (to_char_code): Add `Qsquare'.
3788         (syms_of_mule_charset): Add new symbol `square'.
3789
3790 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3791
3792         * mule-charset.c (Qcircle): New variable.
3793         (to_char_code): Add `Qcircle'.
3794         (syms_of_mule_charset): Add new symbol `circle'.
3795
3796 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3797
3798         * mule-charset.c (Qfont): New variable.
3799         (to_char_code): Add `Qfont'.
3800         (syms_of_mule_charset): Add new symbol `font'.
3801
3802 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3803
3804         * mule-charset.c (Qsub): New variable.
3805         (to_char_code): Add `Qsub'.
3806         (syms_of_mule_charset): Add new symbol `sub'.
3807
3808 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3809
3810         * mule-charset.c (Fput_char_attribute): Convert each element of
3811         VALUE to GL position if ATTRIBUTE is a GR-set,
3812
3813 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3814
3815         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3816         coded-charset is a GR-set.
3817
3818 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3819
3820         * mule-charset.c (Fput_char_attribute): Check each element of
3821         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3822
3823 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3824
3825         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3826         UTF-2000.
3827         (Qethiopic_ucs): New variable in UTF-2000.
3828         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3829         (complex_vars_of_mule_charset): Add new coded-charset
3830         `ethiopic-ucs' in UTF-2000.
3831
3832         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3833         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3834         9)'.
3835         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3836         10)'.
3837         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3838
3839 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3840
3841         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3842         `ascii'.
3843
3844 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3845
3846         * mule-charset.c (Vcharacter_variant_table): New variable.
3847         (Q_ucs): New variable.
3848         (Fchar_variants): New function.
3849         (Fput_char_attribute): Register `->ucs' value to
3850         `Vcharacter_variant_table'.
3851         (syms_of_mule_charset): Add new function `char-variants' and new
3852         symbol `->ucs'.
3853         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3854
3855 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3856
3857         * mule-charset.c (get_char_code_table): Allow negative character
3858         code.
3859         (put_char_code_table): Likewise.
3860         (Vcharacter_composition_table): New variable.
3861         (Q_decomposition): New variable.
3862         (Qwide): New variable.
3863         (Qnarrow): New variable.
3864         (Qcompat): New variable.
3865         (QnoBreak): New variable.
3866         (Qsuper): New variable.
3867         (Qfraction): New variable.
3868         (to_char_code): New function.
3869         (Fget_composite_char): New function.
3870         (Fput_char_attribute): Register `->decomposition' value to
3871         `Vcharacter_composition_table'.
3872         (syms_of_mule_charset): Add new function `get-composite-char', new
3873         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3874         `super' and `fraction'.
3875         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3876
3877 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3878
3879         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3880         character; copy the return value.
3881
3882 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3883
3884         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3885
3886         * mule-charset.c (range_charset_code_point): Must use make_int.
3887         (split_builtin_char): New function.
3888
3889 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3890
3891         * mule-charset.c (char_byte_table): Change name from
3892         "char-code-table" to "char-byte-table".
3893         (mark_char_code_table): New function.
3894         (char_code_table_equal): New function.
3895         (char_code_table_hash): New function.
3896         (char_code_table_description): New constant.
3897         (char_code_table): New type.
3898         (make_char_code_table): New function.
3899         (copy_char_code_table): New function.
3900         (get_char_code_table): Modify for `char_code_table' type.
3901         (put_char_code_table): Likewise.
3902         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3903         (Kashiwara).
3904
3905         * char-ucs.h (char_code_table): New type.
3906         (XCHAR_CODE_TABLE): New macro.
3907         (XSETCHAR_CODE_TABLE): New macro.
3908         (CHAR_CODE_TABLE_P): New macro.
3909         (GC_CHAR_CODE_TABLE_P): New macro.
3910         (struct Lisp_Char_Code_Table): New structure.
3911
3912 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3913
3914         * mule-charset.c (Fmake_charset): Setup byte_offset for
3915         {94|96}^n-set.
3916
3917 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3918
3919         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3920         character.
3921
3922 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3923
3924         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3925         is found.
3926
3927 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3928
3929         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3930         charset, it is regarded as a charset.
3931         (put_char_attribute): New function in UTF-2000.
3932         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3933         charset, mapping-table of the charset is modified.
3934         (Fdefine_char): New function in UTF-2000.
3935         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3936         `Fput_char_attribute'.
3937         (syms_of_mule_charset): Add new function `define-char' and new
3938         symbol `ucs' in UTF-2000.
3939         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3940
3941 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3942
3943         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3944         non-UTF-2000 configuration.
3945
3946 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3947
3948         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3949         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3950
3951         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3952         deleted.
3953         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3954         (Fset_charset_mapping_table): Likewise.
3955
3956         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3957         (CHARSET_ENCODING_TABLE): Delete.
3958         (XCHARSET_ENCODING_TABLE): Delete.
3959         (charset_code_point): New interface.
3960
3961 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3962
3963         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3964         instead of `charset_get_byte1' and `charset_get_byte2'.
3965
3966         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3967         (charset_get_byte2): Deleted.
3968
3969 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3970
3971         * char-ucs.h (SPLIT_CHAR): New inline function.
3972         (breakup_char_1): Use `SPLIT_CHAR'.
3973
3974         * mule-charset.c (range_charset_code_point): New function.
3975         (charset_code_point): New function.
3976
3977         * char-ucs.h (range_charset_code_point): New interface.
3978         (breakup_char_1): Use `range_charset_code_point'.
3979
3980 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3981
3982         * mule-charset.c (Fmake_charset): Delete unused local variable
3983         `code_offset'.
3984
3985         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3986         (breakup_char_1): Find a charset and code-point in
3987         `Vcharacter_attribute_table'.
3988
3989 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3992         to 0.10 (Yao).
3993
3994 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3995
3996         * mule-charset.c (Vcharacter_attribute_table): New variable.
3997         (Fchar_attribute_alist): New function.
3998         (Fget_char_attribute): New function.
3999         (Fput_char_attribute): New function.
4000         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4001         too.
4002         (syms_of_mule_charset): Add new function `char-attribute-alist',
4003         `get-char-attribute' and `put-char-attribute'.
4004         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4005
4006 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4007
4008         * mule-charset.c (Fmake_charset): Just use
4009         `get_unallocated_leading_byte'.
4010
4011         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4012         sets; don't use final-byte based number for private sets.
4013
4014 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4015
4016         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4017         integer.
4018
4019 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4020
4021         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4022         to 0.9.
4023
4024 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4025
4026         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4027         of `CHAR_LEADING_BYTE' in UTF-2000.
4028
4029         * insdel.c (find_charsets_in_bufbyte_string): Use
4030         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4031         (find_charsets_in_emchar_string): Likewise.
4032
4033         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4034         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4035
4036         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4037         (CHAR_CHARSET_ID): New macro.
4038
4039 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4040
4041         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4042         charset-id - MIN_LEADING_BYTE.
4043         (put_char_table): Likewise.
4044
4045 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4046
4047         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4048         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4049         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4050         (CHARSET_ID_OFFSET): New macro.
4051         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4052         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4053         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4054         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4055         4).
4056         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4057         5).
4058         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4059         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4060         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4061         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4062         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4063
4064 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4065
4066         * mule-charset.c (next_allocated_leading_byte): New variable in
4067         UTF-2000.
4068         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4069         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4070         (get_unallocated_leading_byte): Simply use
4071         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4072         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4073         UTF-2000.
4074
4075         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4076         (MAX_LEADING_BYTE_PRIVATE): New macro.
4077         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4078         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4079
4080 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4081
4082         * mule-charset.c (Fmake_charset): Allocate final-byte based
4083         charset-id for 94-set, 96-set and 94x94-set.
4084
4085 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4086
4087         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4088         ambiguous `else'.
4089         (Fmake_charset): Likewise.
4090         (complex_vars_of_mule_charset): Modify the font registry of
4091         `ucs-bmp' not to match `Ethiopic-Unicode'.
4092
4093 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4094
4095         * mule-charset.c (complex_vars_of_mule_charset): Add font
4096         registory of `ucs-bmp'.
4097
4098 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4099
4100         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4101         coded-charsets in `default-coded-charset-priority-list' when
4102         breaking up a character.
4103
4104         * mule-charset.c (Vcharset_latin_viscii): New variable.
4105         (Qlatin_viscii): New variable.
4106         (make_charset): Don't use `decoding_table'.
4107         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4108         byte_offset.
4109         (Fset_charset_mapping_table): New implementation.
4110         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4111         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4112         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4113         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4114         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4115         charset `latin_viscii'.
4116
4117         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4118         (CHARSET_TYPE_94X94): Change to 1 from 2.
4119         (CHARSET_TYPE_96): Change to 2 from 1.
4120         (CHARSET_TYPE_128): New macro.
4121         (CHARSET_TYPE_128X128): Change to 5 from 4.
4122         (CHARSET_TYPE_256): New macro.
4123         (CHARSET_TYPE_256X256): Change to 7 from 5.
4124         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4125
4126 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4127
4128         * text-coding.c (char_encode_shift_jis): Refer
4129         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4130         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4131
4132         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4133         (char_byte_table_equal): New function in UTF-2000.
4134         (char_byte_table_hash): New function in UTF-2000.
4135         (char_byte_table_description): New constant in UTF-2000.
4136         (char_byte_table): New type in UTF-2000.
4137         (make_char_byte_table): New function in UTF-2000.
4138         (copy_char_byte_table): New function in UTF-2000.
4139         (make_char_code_table): New macro in UTF-2000.
4140         (get_char_code_table): New function in UTF-2000.
4141         (put_char_code_table): New function in UTF-2000.
4142         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4143         (charset_description): Add setting in UTF-2000.
4144         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4145         `CHARSET_TO_BYTE1_TABLE(cs)'.
4146         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4147         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4148         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4149         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4150         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4151         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4152         `CHARSET_TO_BYTE2_TABLE(cs)'.
4153
4154         * char-ucs.h (char_byte_table): New type.
4155         (XCHAR_BYTE_TABLE): New macro.
4156         (XSETCHAR_BYTE_TABLE): New macro.
4157         (CHAR_BYTE_TABLE_P): New macro.
4158         (GC_CHAR_BYTE_TABLE_P): New macro.
4159         (struct Lisp_Char_Byte_Table): New structure.
4160         (get_char_code_table): New interface.
4161         (Emchar_to_byte_table): Deleted.
4162         (get_byte_from_character_table): Deleted.
4163         (struct Lisp_Charset): Add `encoding_table'; delete
4164         `to_byte1_table' and `to_byte2_table'.
4165         (CHARSET_ENCODING_TABLE): New macro.
4166         (CHARSET_TO_BYTE1_TABLE): Deleted.
4167         (CHARSET_TO_BYTE2_TABLE): Deleted.
4168         (XCHARSET_ENCODING_TABLE): New macro.
4169         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4170         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4171
4172 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4173
4174         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4175         `vietnamese-viscii-*'.
4176
4177 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4178
4179         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4180         (Qvietnamese_viscii_upper): New variable.
4181         (Fdefine_charset_alias): New function.
4182         (syms_of_mule_charset): Add new function `define-charset-alias'.
4183         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4184         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4185         `latin-viscii-*'.
4186
4187 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4188
4189         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4190         (MAX_CHAR_OBS_94x94): New macro.
4191         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4192         for 94x94 sets.
4193
4194         * mule-charset.c (put_byte_from_character_table): Change unit size
4195         from 128 to 256.
4196         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4197         not defined.
4198         (Fmake_reverse_direction_charset): Modify dummy argument of
4199         `make_charset' for non-UTF-2000 environment.
4200
4201 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4202
4203         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4204
4205         * mule-charset.c (destroy_byte_from_character_table): New macro.
4206         (latin_jisx0201_to_ucs): Deleted.
4207         (latin_iso8859_2_to_ucs): Deleted.
4208         (latin_iso8859_3_to_ucs): Deleted.
4209         (latin_iso8859_4_to_ucs): Deleted.
4210         (latin_iso8859_9_to_ucs): Deleted.
4211         (latin_viscii_lower_to_ucs): Deleted.
4212         (latin_viscii_upper_to_ucs): Deleted.
4213         (mark_charset): Mark `cs->decoding_table'.
4214         (Fcharset_mapping_table): Fix DOC-string.
4215         (Fset_charset_mapping_table): New function.
4216         (syms_of_mule_charset): Add nwe function
4217         `set-charset-mapping-table'.
4218         (complex_vars_of_mule_charset): Don't setup and use
4219         `latin_*_to_ucs'.
4220
4221 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4222
4223         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4224         charset.
4225
4226 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4227
4228         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4229         (Vcharset_katakana_jisx0208): New variable.
4230         (Qhiragana_jisx0208): New variable.
4231         (Qkatakana_jisx0208): New variable.
4232         (make_charset): Add new argument `byte_offset'.
4233         (charset_get_byte1): Modify for new coded-charset definition; use
4234         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4235         `XCHARSET_BYTE_OFFSET'.
4236         (Fmake_charset): Modify for `make_charset'.
4237         (Fmake_reverse_direction_charset): Likewise.
4238         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4239         `katakana-jisx0208'.
4240         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4241         `.'  in font registry of charset `katakana-jisx0201',
4242         `latin-jisx0201', `vietnamese-viscii-lower' and
4243         `vietnamese-viscii-upper'; modify DOC-string of charset
4244         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4245         registry of charset `japanese-jisx0208' not to use font for JIS
4246         X0208:1990; add new charset `hiragana-jisx0208' and
4247         `katakana-jisx0208'.
4248
4249         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4250         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4251         (struct Lisp_Charset): Add `byte_offset'.
4252         (CHARSET_BYTE_OFFSET): New macro.
4253         (XCHARSET_UCS_MIN): New macro.
4254         (XCHARSET_UCS_MAX): New macro.
4255         (XCHARSET_CODE_OFFSET): New macro.
4256         (XCHARSET_BYTE_OFFSET): New macro.
4257         (MIN_CHAR_HIRAGANA): New macro.
4258         (MAX_CHAR_HIRAGANA): New macro.
4259         (MIN_CHAR_KATAKANA): New macro.
4260         (MAX_CHAR_KATAKANA): New macro.
4261         (MAKE_CHAR): Modify for new coded-charset definition; use
4262         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4263         `XCHARSET_BYTE_OFFSET'.
4264
4265 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4266
4267         * mule-charset.c (CHAR96): Deleted.
4268         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4269         <Lisp_Object>.
4270         (latin_iso8859_2_to_ucs): Likewise.
4271         (latin_iso8859_3_to_ucs): Likewise.
4272         (latin_iso8859_4_to_ucs): Likewise.
4273         (latin_iso8859_9_to_ucs): Likewise.
4274         (latin_viscii_lower_to_ucs): Likewise.
4275         (latin_viscii_upper_to_ucs): Likewise.
4276         (latin_tcvn5712_to_ucs): Commented out.
4277         (make_charset): Change type of argument `decoding_table' from
4278         <Emchar*> to <Lisp_Object> [vector of characters].
4279         (Fmake_charset): Modify for `make_charset'.
4280         (Fmake_reverse_direction_charset): Likewise.
4281         (Fcharset_mapping_table): New function in UTF-2000.
4282         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4283         UTF-2000.
4284         (complex_vars_of_mule_charset): Modify for type change of
4285         `*_to_ucs'; modify for `make_charset'.
4286
4287         * char-ucs.h (struct Lisp_Charset): Change type of
4288         `decoding_table' from <Emchar*> to <Lisp_Object>.
4289         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4290
4291 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4292
4293         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4294         error with non-UTF-2000-Mule.
4295
4296 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4297
4298         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4299         in lisp again].
4300         (Vcharset_chinese_cns11643_4): Likewise.
4301         (Vcharset_chinese_cns11643_5): Likewise.
4302         (Vcharset_chinese_cns11643_6): Likewise.
4303         (Vcharset_chinese_cns11643_7): Likewise.
4304         (Qchinese_cns11643_3): Likewise.
4305         (Qchinese_cns11643_4): Likewise.
4306         (Qchinese_cns11643_5): Likewise.
4307         (Qchinese_cns11643_6): Likewise.
4308         (Qchinese_cns11643_7): Likewise.
4309         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4310         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4311         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4312         (complex_vars_of_mule_charset): Likewise.
4313
4314 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4317         96-set.
4318         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4319         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4320
4321 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4322
4323         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4324         0xFF60.
4325         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4326         (breakup_char_1): Likewise.
4327
4328         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4329         one of them includes the specified character.
4330
4331 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4332
4333         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4334
4335 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4336
4337         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4338
4339 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4340
4341         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4342         definition for non-UTF-2000 Mule.
4343         (latin_iso8859_3_to_ucs): Likewise.
4344         (latin_iso8859_4_to_ucs): Likewise.
4345         (latin_iso8859_9_to_ucs): Likewise.
4346         (latin_jisx0201_to_ucs): Likewise.
4347         (MIN_CHAR_THAI): Likewise.
4348         (MAX_CHAR_THAI): Likewise.
4349         (MIN_CHAR_GREEK): Likewise.
4350         (MAX_CHAR_GREEK): Likewise.
4351         (MIN_CHAR_HEBREW): Likewise.
4352         (MAX_CHAR_HEBREW): Likewise.
4353         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4354         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4355         (MIN_CHAR_CYRILLIC): Likewise.
4356         (MAX_CHAR_CYRILLIC): Likewise.
4357
4358 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4359
4360         * char-ucs.h (breakup_char_1): Use
4361         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4362         thai-tis620 and katakana-jisx0201 area.
4363
4364 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4365
4366         * char-ucs.h (breakup_char_1): Use
4367         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4368         area.
4369
4370         * text-coding.c (reset_encoding_stream): Fixed.
4371         (char_encode_ucs4): Delete `& 255'.
4372
4373         * char-ucs.h (breakup_char_1): Use
4374         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4375
4376 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4377
4378         * file-coding.c (Fmake_coding_system): Don't set up
4379         `codesys->fixed.size'.
4380         (encode_coding_no_conversion): Don't refer
4381         `str->codesys->fixed.size'.
4382
4383 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4384
4385         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4386         (latin_a_char_to_byte1): Deleted.
4387         (latin_a_char_to_byte2): Deleted.
4388
4389 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4390
4391         * mule-charset.c (make_charset): Add new argument `ucs_min',
4392         `ucs_max' and `code_offset'.
4393         (charset_get_byte1): New implementation [delete specific charset
4394         depended implementations].
4395         (Fmake_charset): Modify for `make_charset'.
4396         (Fmake_reverse_direction_charset): Likewise.
4397         (complex_vars_of_mule_charset): Likewise.
4398
4399         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4400         `code_offset'.
4401         (CHARSET_UCS_MIN): New macro.
4402         (CHARSET_UCS_MAX): New macro.
4403         (CHARSET_CODE_OFFSET): New macro.
4404         (MAKE_CHAR): Delete charset depended definitions [except
4405         katakana-jisx0201].
4406
4407 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * char-ucs.h (breakup_char_1): Use
4410         `Vdefault_coded_charset_priority_list' for C0-Controls,
4411         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4412
4413 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4414
4415         * char-ucs.h (charset_get_byte1): New function.
4416         (XCHARSET_GET_BYTE1): Deleted.
4417         (charset_get_byte2): New function.
4418         (XCHARSET_GET_BYTE2): Deleted.
4419         (Vdefault_coded_charset_priority_list): New external variable.
4420         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4421         `Vdefault_preferred_coded_charset_list'.
4422
4423         * mule-charset.c (charset_get_byte1): New function.
4424         (charset_get_byte2): New function.
4425         (Vdefault_coded_charset_priority_list): New variable.
4426         (vars_of_mule_charset): Add new variable
4427         `default-coded-charset-priority-list'.
4428
4429 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4430
4431         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4432         (XCHARSET_GET_BYTE2): New inline function.
4433         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4434         `XCHARSET_GET_BYTE2'.
4435
4436 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4437
4438         * mule-charset.c (make_charset): Initialize
4439         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4440         NULL if table is not defined.
4441
4442 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4443
4444         * text-coding.c (char_encode_shift_jis): Use
4445         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4446         `ucs_to_latin_jisx0201'.
4447
4448         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4449         (ucs_to_latin_iso8859_2): Deleted.
4450         (ucs_to_latin_iso8859_3): Deleted.
4451         (ucs_to_latin_iso8859_4): Deleted.
4452         (ucs_to_latin_iso8859_9): Deleted.
4453         (ucs_to_latin_viscii_lower): Deleted.
4454         (ucs_to_latin_viscii_upper): Deleted.
4455         (ucs_to_latin_tcvn5712): Deleted.
4456         (make_charset): Add new argument `decoding_table'; set up
4457         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4458         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4459         `decoding_table' is defined in UTF-2000.
4460         (Fmake_charset): Modify for `make_charset'.
4461         (Fmake_reverse_direction_charset): Likewise.
4462         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4463         and `GENERATE_96_SET'.
4464
4465         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4466         (ucs_to_latin_jisx0201): Deleted.
4467         (latin_iso8859_2_to_ucs): Deleted.
4468         (ucs_to_latin_iso8859_2): Deleted.
4469         (latin_iso8859_3_to_ucs): Deleted.
4470         (ucs_to_latin_iso8859_3): Deleted.
4471         (latin_iso8859_4_to_ucs): Deleted.
4472         (ucs_to_latin_iso8859_4): Deleted.
4473         (latin_iso8859_9_to_ucs): Deleted.
4474         (ucs_to_latin_iso8859_9): Deleted.
4475         (latin_viscii_lower_to_ucs): Deleted.
4476         (ucs_to_latin_viscii_lower): Deleted.
4477         (latin_viscii_upper_to_ucs): Deleted.
4478         (ucs_to_latin_viscii_upper): Deleted.
4479         (struct Lisp_Charset): Renamed `encoding_table' to
4480         `to_byte1_table'; add `to_byte2_table'.
4481         (CHARSET_DECODING_TABLE): New macro.
4482         (CHARSET_TO_BYTE1_TABLE): New macro.
4483         (CHARSET_TO_BYTE2_TABLE): New macro.
4484         (XCHARSET_DECODING_TABLE): New macro.
4485         (XCHARSET_TO_BYTE1_TABLE): New macro.
4486         (XCHARSET_TO_BYTE2_TABLE): New macro.
4487         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4488         tables.
4489         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4490         don't use `ucs_to_*' tables.
4491
4492 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4493
4494         * text-coding.c (Fmake_coding_system): Don't set up
4495         `codesys->fixed.size'.
4496         (encode_coding_no_conversion): Use `if' instead of `switch'.
4497
4498         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4499
4500 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4501
4502         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4503         (Fmake_charset): Modify for `make_charset'.
4504         (Fmake_reverse_direction_charset): Likewise.
4505         (complex_vars_of_mule_charset): Likewise.
4506
4507 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4508
4509         * text-coding.c (char_encode_shift_jis): Use table
4510         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4511
4512 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * text-coding.c (text_encode_generic): Use `if' instead of
4515         `switch'.
4516         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4517         decode JIS-Latin.
4518
4519 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4520
4521         * text-coding.c (encode_coding_sjis): Deleted.
4522         (char_encode_shift_jis): New function.
4523         (char_finish_shift_jis): New function.
4524         (reset_encoding_stream): Set up `encode_char' and `finish' for
4525         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4526         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4527         (char_encode_utf8): Treat `eol_type'.
4528
4529 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4530
4531         * file-coding.c (decode_coding_iso2022): Use
4532         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4533
4534 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4535
4536         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4537         to 0.7 (Hirano).
4538
4539 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4540
4541         * char-lb.h (CHAR_COLUMNS): New macro.
4542
4543 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4544
4545         * text-coding.c (char_encode_ucs4): New function.
4546         (char_finish_ucs4): New function.
4547         (encode_coding_ucs4): Deleted.
4548         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4549         (text_encode_generic): Delete local variable `charset' and `half'.
4550         (ucs_to_mule_table): Deleted.
4551         (mule_to_ucs_table): Deleted.
4552         (Fset_ucs_char): Deleted.
4553         (ucs_to_char): Deleted.
4554         (Fucs_char): Deleted.
4555         (Fset_char_ucs): Deleted.
4556         (Fchar_ucs): Deleted.
4557         (decode_ucs4): Deleted.
4558         (mule_char_to_ucs4): Deleted.
4559         (encode_ucs4): Deleted.
4560         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4561         (decode_coding_utf8): Likewise.
4562         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4563         (char_encode_iso2022): Fixed.
4564         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4565         `Fset_char_ucs' and `Fchar_ucs'.
4566         (complex_vars_of_file_coding): Don't initialize
4567         `ucs_to_mule_table'.
4568
4569         * objects-tty.c (tty_initialize_font_instance): Don't use
4570         `XCHARSET_COLUMNS'.
4571
4572         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4573         UTF-2000.
4574
4575         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4576         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4577
4578         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4579         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4580         (emchar_string_displayed_columns): Likewise.
4581
4582         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4583         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4584         (string_column_at_point): Likewise.
4585         (Fmove_to_column): Likewise.
4586
4587         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4588         `encoding_table' and `decoding_table'.
4589         (CHARSET_REP_BYTES): Deleted.
4590         (XCHARSET_REP_BYTES): Deleted.
4591         (XCHARSET_COLUMNS): Deleted.
4592         (CHAR_COLUMNS): New macro.
4593         (lookup_composite_char): Deleted unconditionally.
4594         (composite_char_string): Likewise.
4595
4596 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4597
4598         * char-ucs.h (Emchar_to_byte_table): New type.
4599         (get_byte_from_character_table): New function interface.
4600         (Vcharset_latin_jisx0201): New variable.
4601         (latin_jisx0201_to_ucs): New variable.
4602         (ucs_to_latin_jisx0201): New variable.
4603         (Vcharset_latin_iso8859_2): New variable.
4604         (latin_iso8859_2_to_ucs): New variable.
4605         (ucs_to_latin_iso8859_2): New variable.
4606         (Vcharset_latin_iso8859_3): New variable.
4607         (latin_iso8859_3_to_ucs): New variable.
4608         (ucs_to_latin_iso8859_3): New variable.
4609         (Vcharset_latin_iso8859_4): New variable.
4610         (latin_iso8859_4_to_ucs): New variable.
4611         (ucs_to_latin_iso8859_4): New variable.
4612         (Vcharset_latin_iso8859_9): New variable.
4613         (latin_iso8859_9_to_ucs): New variable.
4614         (ucs_to_latin_iso8859_9): New variable.
4615         (Vcharset_latin_viscii_lower): New variable.
4616         (latin_viscii_lower_to_ucs): New variable.
4617         (ucs_to_latin_viscii_lower): New variable.
4618         (Vcharset_latin_viscii_upper): New variable.
4619         (latin_viscii_upper_to_ucs): New variable.
4620         (ucs_to_latin_viscii_upper): New variable.
4621         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4622         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4623         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4624         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4625         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4626         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4627         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4628         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4629         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4630         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4631
4632         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4633         (Vcharset_latin_viscii_upper): New variable.
4634         (make_byte_from_character_table): New function.
4635         (put_byte_from_character_table): New function.
4636         (get_byte_from_character_table): New function.
4637         (CHAR96): New macro.
4638         (ucs_to_latin_jisx0201): New variable.
4639         (latin_jisx0201_to_ucs): New variable.
4640         (ucs_to_latin_iso8859_2): New variable.
4641         (latin_iso8859_2_to_ucs): New variable.
4642         (ucs_to_latin_iso8859_3): New variable.
4643         (latin_iso8859_3_to_ucs): New variable.
4644         (ucs_to_latin_iso8859_4): New variable.
4645         (latin_iso8859_4_to_ucs): New variable.
4646         (ucs_to_latin_iso8859_9): New variable.
4647         (latin_iso8859_9_to_ucs): New variable.
4648         (ucs_to_latin_viscii_lower): New variable.
4649         (latin_viscii_lower_to_ucs): New variable.
4650         (ucs_to_latin_viscii_upper): New variable.
4651         (latin_viscii_upper_to_ucs): New variable.
4652         (ucs_to_latin_tcvn5712): New variable.
4653         (latin_tcvn5712_to_ucs): New variable.
4654         (Qlatin_viscii_lower): New variable.
4655         (Qlatin_viscii_upper): New variable.
4656         (syms_of_mule_charset): Set up new symbol
4657         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4658         (complex_vars_of_mule_charset): Set up new charset
4659         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4660         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4661         `ucs_to_<CHARSET>' tables.
4662
4663 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4664
4665         * text-coding.c: New file.
4666
4667 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4668
4669         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4670
4671         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4672         (MAKE_CHAR): Modify for `ucs-bmp'.
4673         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4674         non-MULE characters of BMP.
4675
4676 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4677
4678         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4679         to 0.6.
4680
4681 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4682
4683         * lstream.h:
4684         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4685         - Include character.h for `CHAR_ASCII_P'.
4686
4687         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4688
4689         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4690         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4691
4692         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4693         (BYTE_C0_P): Likewise.
4694         (BYTE_C1_P): Likewise.
4695         (Lstream_get_emchar_1): Likewise.
4696         (Lstream_fput_emchar): Likewise.
4697         (Lstream_funget_emchar): Likewise.
4698         (copy_internal_to_external): Likewise.
4699         (copy_external_to_internal): Likewise.
4700
4701         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4702         (BYTE_C0_P): Likewise.
4703         (BYTE_C1_P): Likewise.
4704         (Lstream_get_emchar_1): Likewise.
4705         (Lstream_fput_emchar): Likewise.
4706         (Lstream_funget_emchar): Likewise.
4707         (copy_internal_to_external): Likewise.
4708         (copy_external_to_internal): Likewise.
4709
4710         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4711         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4712
4713         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4714         (BYTE_ASCII_P): Moved to mb-1byte.h.
4715
4716 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4717
4718         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4719
4720         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4721         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4722         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4723         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4724         (VALIDATE_CHARPTR_FORWARD): Likewise.
4725         (simple_charptr_emchar): Moved to mb-multibyte.h.
4726         (simple_set_charptr_emchar): Likewise.
4727         (simple_charptr_copy_char): Likewise.
4728         (non_ascii_charptr_emchar): Likewise.
4729         (non_ascii_set_charptr_emchar): Likewise.
4730         (non_ascii_charptr_copy_char): Likewise.
4731         (charptr_emchar): Moved to mb-*byte.h.
4732         (set_charptr_emchar): Likewise.
4733         (charptr_copy_char): Likewise.
4734
4735         * mb-1byte.h, mb-multibyte.h: New files.
4736
4737 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4738
4739         * mb-utf-8.h (MULTIBYTE): New macro.
4740         (MAX_EMCHAR_LEN): Moved from buffer.h.
4741         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4742
4743         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4744
4745         * mb-lb.h, multibyte.h: New files.
4746
4747         * char-1byte.h (Charset_ID): Moved from buffer.h.
4748         (MIN_LEADING_BYTE): Likewise.
4749         (LEADING_BYTE_ASCII): Likewise.
4750         (NUM_LEADING_BYTES): Likewise.
4751         (CHARSETP): Likewise.
4752         (CHARSET_BY_LEADING_BYTE): Likewise.
4753         (XCHARSET_LEADING_BYTE): Likewise.
4754         (XCHARSET_GRAPHIC): Likewise.
4755         (XCHARSET_COLUMNS): Likewise.
4756         (XCHARSET_DIMENSION): Likewise.
4757         (CHAR_CHARSET): Likewise.
4758         (CHAR_LEADING_BYTE): Likewise.
4759         (BREAKUP_CHAR): Likewise.
4760         (Vcharset_ascii): Likewise.
4761
4762         * buffer.h: Include multibyte.h unconditionally.
4763         (VALID_CHARPTR_P): Moved to multibyte.h.
4764         (ASSERT_VALID_CHARPTR): Likewise.
4765         (REAL_INC_CHARPTR): Likewise.
4766         (REAL_INC_CHARBYTIND): Likewise.
4767         (REAL_DEC_CHARPTR): Likewise.
4768         (INC_CHARPTR): Likewise.
4769         (INC_CHARBYTIND): Likewise.
4770         (DEC_CHARPTR): Likewise.
4771         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4772         (VALIDATE_CHARPTR_FORWARD): Likewise.
4773         (charptr_n_addr): Likewise.
4774         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4775         (simple_charptr_emchar): Moved to multibyte.h.
4776         (simple_set_charptr_emchar): Likewise.
4777         (simple_charptr_copy_char): Likewise.
4778         (non_ascii_charptr_emchar): Likewise.
4779         (non_ascii_set_charptr_emchar): Likewise.
4780         (non_ascii_charptr_copy_char): Likewise.
4781         (charptr_emchar): Likewise.
4782         (set_charptr_emchar): Likewise.
4783         (charptr_copy_char): Likewise.
4784         (charptr_emchar_n): Likewise.
4785         (Charset_ID): Moved to char-1byte.h.
4786         (Vcharset_ascii): Likewise.
4787         (CHAR_CHARSET): Likewise.
4788         (CHAR_LEADING_BYTE): Likewise.
4789         (LEADING_BYTE_ASCII): Likewise.
4790         (NUM_LEADING_BYTES): Likewise.
4791         (MIN_LEADING_BYTE): Likewise.
4792         (CHARSETP): Likewise.
4793         (CHARSET_BY_LEADING_BYTE): Likewise.
4794         (XCHARSET_LEADING_BYTE): Likewise.
4795         (XCHARSET_GRAPHIC): Likewise.
4796         (XCHARSET_COLUMNS): Likewise.
4797         (XCHARSET_DIMENSION): Likewise.
4798         (BREAKUP_CHAR): Likewise.
4799
4800 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4801
4802         * character.h: Add document about interface for characters.
4803
4804         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4805         (MAKE_CHAR): Delete comment about
4806         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4807         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4808         (BREAKUP_CHAR): Modify name of arguments.
4809         (CHAR_CHARSET): Modify name of argument.
4810
4811         * buffer.h: Delete document about Emchar accessors.
4812
4813 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4814
4815         * character.h (CHAR_INTP): Moved from buffer.h
4816         (CHAR_OR_CHAR_INTP): Likewise.
4817         (XCHAR_OR_CHAR_INT): Likewise.
4818         (CHECK_CHAR_COERCE_INT): Likewise.
4819
4820         * buffer.h (CHAR_INTP): Moved to character.h
4821         (CHAR_OR_CHAR_INTP): Likewise.
4822         (XCHAR_OR_CHAR_INT): Likewise.
4823         (CHECK_CHAR_COERCE_INT): Likewise.
4824
4825 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4826
4827         * character.h:
4828         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4829         - Include char-1byte.h, char-lb.h or char-ucs.h.
4830
4831         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4832
4833         * buffer.h: Include character unconditionally.
4834         (valid_char_p): Moved to char-*.h.
4835         (non_ascii_valid_char_p): Moved to char-lb.h.
4836
4837         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4838
4839 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4840
4841         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4842         in UTF-2000 because it is not ported yet and not to use
4843         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4844         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4845         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4846
4847         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4848         (CHAR_ASCII_P): Moved from character.h.
4849
4850         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4851         (CHAR_ASCII_P): Likewise.
4852         (CHAR_FIELD1_MASK): Deleted.
4853         (CHAR_FIELD2_MASK): Deleted.
4854         (CHAR_FIELD3_MASK): Deleted.
4855         (MAX_CHAR_BASIC_LATIN): New macro.
4856         (CHAR_FIELD1): Deleted.
4857         (CHAR_FIELD2_INTERNAL): Deleted.
4858         (CHAR_FIELD3_INTERNAL): Deleted.
4859         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4860         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4861         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4862         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4863         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4864         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4865         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4866         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4867         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4868         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4869         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4870         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4871         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4872         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4873         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4874         (MIN_CHAR_COMPOSITION): Deleted.
4875         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4876         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4877
4878 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4879
4880         * buffer.h: Include mb-utf-8.h in UTF-2000.
4881
4882         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4883
4884         * mb-utf-8.h: New file.
4885
4886 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4887
4888         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4889         instead of `int'.
4890
4891         * mule-charset.h, buffer.h (Charset_ID): New type.
4892
4893 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4894
4895         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4896         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4897         instead of `MULE_CHAR_PRIVATE_OFFSET',
4898         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4899         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4900         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4901
4902         * character.h (Vcharset_japanese_jisx0212): New variable
4903         definition.
4904
4905 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4906
4907         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4908         (charset_by_attributes): Delete array about direction.
4909         (latin_a_char_to_charset): New variable in UTF-2000.
4910         (latin_a_char_to_byte1): New variable in UTF-2000.
4911         (latin_a_char_to_byte2): New variable in UTF-2000.
4912         (Qucs_bmp): New variable.
4913         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4914         `Bufbyte'.
4915         (next_allocated_2_byte_leading_byte): Likewise.
4916         (non_ascii_set_charptr_emchar): Likewise.
4917         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4918         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4919         `charset_by_attributes'.
4920         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4921         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4922         and `CHARSET_BY_LEADING_BYTE'.
4923         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4924         `utf-2000-version' to `vars_of_mule_charset'.
4925         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4926         define `leading-code-private-11' in UTF-2000; move setting of
4927         `utf-2000-version' from `syms_of_mule_charset'.
4928         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4929         UTF-2000.
4930
4931         * character.h (Charset_ID): New type.
4932         (LEADING_BYTE_UCS_BMP): New macro.
4933         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4934         (CHARSET_ID_OFFSET_94): New macro.
4935         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4936         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4937         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4938         final-byte.
4939         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4940         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4941         (CHARSET_ID_OFFSET_96): New macro.
4942         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4943         CHARSET_ID_OFFSET_96 and final-byte.
4944         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4945         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4946         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4947         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4948         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4949         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4950         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4951         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4952         (LEADING_BYTE_THAI_TIS620): Likewise.
4953         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4954         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4955         (CHARSET_ID_OFFSET_94x94): New macro.
4956         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4957         CHARSET_ID_OFFSET_94x94 and final-byte.
4958         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4959         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4960         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4961         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4962         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4963         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4964         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4965         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4966         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4967         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4968         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4969         (CHARSET_TYPE_128X128): New macro.
4970         (CHARSET_TYPE_256X256): New macro.
4971         (XCHARSET_PRIVATE_P): Delete unconditionally.
4972         (charset_by_attributes): Delete array about direction.
4973         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4974         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4975         (MIN_CHAR_94): New macro.
4976         (MAX_CHAR_94): New macro.
4977         (MIN_CHAR_96): New macro.
4978         (MAX_CHAR_96): New macro.
4979         (MIN_CHAR_94x94): New macro.
4980         (MAX_CHAR_94x94): New macro.
4981         (MIN_CHAR_96x96): New macro.
4982         (MAX_CHAR_96x96): New macro.
4983         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4984         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4985         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4986         - 32)'.
4987         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4988         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4989         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4990         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4991         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4992         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4993         `XCHARSET_LEADING_BYTE' to make code-point.
4994         (latin_a_char_to_charset): New variable.
4995         (latin_a_char_to_byte1): New variable.
4996         (latin_a_char_to_byte2): New variable.
4997         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4998         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4999         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5000
5001         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5002         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5003         (find_charsets_in_emchar_string): Likewise.
5004         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5005
5006         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5007         `int'.
5008         (decode_coding_iso2022): Likewise.
5009
5010         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5011         of `unsigned char'.
5012
5013         * redisplay.c (redisplay_text_width_emchar_string): Use
5014         `Charset_ID' instead of `unsigned char'.
5015         (redisplay_frame_text_width_string): Likewise.
5016
5017         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5018         `unsigned char'.
5019
5020         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5021         instead of `unsigned char'.
5022         (face_cachel_charset_font_metric_info): Likewise.
5023
5024         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5025         (get_non_ascii_char_table_value): Likewise.
5026         (get_char_table): Likewise.
5027         (put_char_table): Likewise.
5028         (map_over_other_charset): Likewise.
5029         (map_char_table): Likewise.
5030
5031         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5032         instead of `unsigned char'.
5033
5034 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5035
5036         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5037         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5038
5039         * mule-charset.c (leading_code_private_11): Don't define in
5040         UTF-2000.
5041
5042         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5043         in UTF-2000 because it is not ported yet and not to use
5044         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5045
5046 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5047
5048         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5049
5050 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5051
5052         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5053         in UTF-2000.
5054
5055         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5056         of unsigned char to store leading-byte.
5057
5058         * chartab.c (get_non_ascii_char_table_value): Don't use
5059         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5060
5061         * file-coding.c (encode_coding_big5): Delete bogus implementation
5062         in UTF2000.
5063
5064         * character.h (LEADING_BYTE_*): Delete definition for
5065         non-UTF-2000.
5066         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5067         (LEADING_BYTE_PREFIX_P): Deleted.
5068         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5069         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5070         (BUFBYTE_LEADING_BYTE_P): Deleted.
5071         (CHARSET_PRIVATE_P): Deleted unconditionally.
5072         (rep_bytes_by_first_byte): Deleted unconditionally.
5073         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5074         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5075         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5076         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5077         (CHAR_FIELD2): Deleted.
5078         (CHAR_FIELD3): Deleted.
5079         (MAKE_CHAR): Delete definition for non-UTF-2000.
5080         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5081         (breakup_char_1): New implementation.
5082         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5083         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5084
5085 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5086
5087         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5088         condition.
5089
5090 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5091
5092         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5093         (CHARSET_PRIVATE_P): Likewise.
5094         (XCHARSET_PRIVATE_P): Likewise.
5095         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5096
5097         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5098         UTF2000.
5099         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5100
5101 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5102
5103         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5104         (NUM_LEADING_BYTES): Changed from 128 to 256.
5105         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5106         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5107         UTF2000.
5108         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5109
5110         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5111         UTF2000.
5112         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5113         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5114         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5115         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5116         (Qchinese_cns11643_3): New variable in UTF2000.
5117         (Qchinese_cns11643_4): New variable in UTF2000.
5118         (Qchinese_cns11643_5): New variable in UTF2000.
5119         (Qchinese_cns11643_6): New variable in UTF2000.
5120         (Qchinese_cns11643_7): New variable in UTF2000.
5121         (syms_of_mule_charset): Define `chinese-cns11643-3',
5122         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5123         and `chinese-cns11643-7' in UTF2000.
5124         (vars_of_mule_charset): Initialize
5125         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5126         + 1 in UTF2000.
5127         (complex_vars_of_mule_charset): Setup charset
5128         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5129         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5130
5131 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5132
5133         * mule-charset.c: Move setting for `leading-code-private-11' from
5134         `syms_of_mule_charset' to `vars_of_mule_charset'.
5135
5136 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5137
5138         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5139         and `NUM_LEADING_BYTES' in assert.
5140
5141 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5142
5143         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5144         instead of 128.
5145         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5146         `NUM_LEADING_BYTES' instead of 128.
5147
5148 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5149
5150         * mule-charset.h (charset_by_leading_byte): Use
5151         `NUM_LEADING_BYTES' instead of 128.
5152         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5153
5154         * mule-charset.c (charset_by_leading_byte): Use
5155         `NUM_LEADING_BYTES' instead of 128.
5156         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5157
5158         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5159         128.
5160
5161 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5162
5163         * mule-charset.c (syms_of_mule_charset): Update to
5164         0.4 (Shin-Imamiya).
5165
5166 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5167
5168         * file-coding.c (encode_coding_sjis): New implementation for
5169         UTF2000.  (decode_coding_sjis): Ditto.
5170
5171 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5172
5173         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5174         Don't define in UTF2000.
5175
5176         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5177         defined.
5178
5179         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5180         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5181         MULE.
5182
5183 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5184
5185         * config.h.in (CHAR_IS_UCS4): New macro.
5186
5187         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5188         conventional MULE representation.
5189         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5190
5191         * mule-charset.h: Reverted to original.
5192
5193         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5194         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5195         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5196
5197         * character.h: New file.
5198
5199         * file-coding.c (Fmake_coding_system): Set 1 to
5200         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5201         defined.
5202         (encode_coding_no_conversion): New implementation for UTF2000.
5203
5204         * file-coding.h (struct Lisp_Coding_System): Add new member
5205         `fixed.size'.
5206
5207 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5208
5209         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5210         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5211         (encode_coding_iso2022): New implementation for UTF2000.
5212
5213 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5214
5215         * mule-canna.c (c2mu): New implementation for UTF2000.
5216         (m2c): Likewise.
5217
5218 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5219
5220         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5221
5222 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5223
5224         * file-coding.c (reset_encoding_stream): Set 0 to
5225         `str->iso2022.current_char_boundary' in UTF2000.
5226         (encode_utf8): Don't define in UTF2000.
5227         (encode_coding_utf8): New implementation for UTF-8 representation
5228         of UTF2000.
5229         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5230
5231 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5232
5233         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5234
5235         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5236         UTF2000.
5237         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5238
5239         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5240
5241         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5242         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5243         as UTF-8 in UTF2000.
5244         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5245         (non_ascii_valid_char_p): Don't define in UTF2000.
5246         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5247         (Lstream_get_emchar_1): Likewise.
5248         (utf-2000-version): New variable in UTF2000.
5249
5250         * lread.c (read_escape): Add new reader `u'.
5251
5252         * insdel.c (three_to_one_table): Don't define in UTF2000.
5253         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5254         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5255         UTF2000.
5256         (bytind_to_bufpos_func): Likewise.
5257         (buffer_mule_signal_inserted_region): Likewise.
5258         (vars_of_insdel): Don't initialize `three_to_one_table'.
5259         (init_buffer_text): Use `buf->text->mule_size' instead of
5260         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5261         UTF2000.
5262
5263         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5264         UTF-8 representation in UTF2000.
5265         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5266         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5267         (decode_coding_iso2022): Don't define local variable `lb' in
5268         UTF2000; don't use LEADING_BYTE in UTF2000; use
5269         `DECODE_ADD_UCS_CHAR' in UTF2000.
5270         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5271
5272         * config.h.in (UTF2000): New macro.
5273
5274         * buffer.h (struct buffer_text): Add new member `mule_size' and
5275         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5276         (valid_char_p): Return always 1 in UTF2000.
5277         (MAX_EMCHAR_LEN): 6 in UTF2000.
5278         (three_to_one_table): Don't define in UTF2000.
5279         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5280         UTF2000.
5281         (real_bytind_to_bufpos): Likewise.
5282
5283         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5284
5285 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5286
5287         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5288         representation change.
5289         (Vutf_2000_version): New variable.
5290         (leading_code_private_11): New variable.
5291         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5292         `leading-code-private-11'.
5293
5294         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5295         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5296         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5297         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5298         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5299         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5300         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5301         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5302         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5303         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5304         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5305         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5306         (MIN_CHAR_GREEK): New macro.
5307         (MAX_CHAR_GREEK): New macro.
5308         (MIN_CHAR_CYRILLIC): New macro.
5309         (MAX_CHAR_CYRILLIC): New macro.
5310         (MIN_CHAR_HEBREW): New macro.
5311         (MAX_CHAR_HEBREW): New macro.
5312         (MIN_CHAR_THAI): New macro.
5313         (MAX_CHAR_THAI): New macro.
5314         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5315         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5316         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5317         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5318         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5319         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5320         (CHAR_FIELD2): New inline function.
5321         (CHAR_FIELD3): New inline function.
5322         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5323         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5324         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5325         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5326         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5327         (MIN_CHAR_COMPOSITION): Likewise.
5328         (CHAR_LEADING_BYTE): Modified for character representation change.
5329         (MAKE_CHAR): Likewise.
5330
5331         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5332         (Vcharset_greek_iso8859_7): Likewise.
5333         (Vcharset_cyrillic_iso8859_5): Likewise.
5334         (Vcharset_hebrew_iso8859_8): Likewise.
5335         (Vcharset_thai_tis620): Likewise.
5336         (Vcharset_katakana_jisx0201): Likewise.
5337
5338 2003-09-03  Vin Shelton <acs@xemacs.org>
5339
5340         * XEmacs 21.4.14 is released
5341
5342 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5343
5344         * config.h.in (REGEX_MALLOC): Make it configure'able.
5345
5346 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5347
5348         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5349         linking.
5350         * sysdll.c (dll_init):
5351         * sysdll.c (dll_open):
5352         * sysdll.c (dll_close):
5353         * sysdll.c (dll_function):
5354         * sysdll.c (dll_variable):
5355         * sysdll.c (dll_error):
5356         Add support for loading bundles using Darwin/MacOSX
5357         native API.
5358
5359 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5360
5361         * process.c (start-process-internal): Document coding systems.
5362
5363 2003-07-30  Jerry James  <james@xemacs.org>
5364
5365         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5366
5367 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5368
5369         * event-msw.c (mswindows_enqueue_mouse_button_event):
5370         * event-msw.c (mswindows_wnd_proc):
5371           enqueue button event when scrollwheel event isn't handled by 
5372           mswindows_handle_mousewheel_event, such as when the scrollbars
5373           are not showing.
5374
5375 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5376
5377         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5378
5379 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5380
5381         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5382
5383 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5384
5385         * regex.c (re_match_2_internal): Fix matching degenerate word
5386         boundaries.
5387
5388 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5389
5390         * XEmacs 21.4.13 is released
5391
5392 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5393
5394         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5395         * lisp.h (<inttypes.h>):
5396         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5397         the definition.
5398
5399 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5400
5401         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5402         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5403         Result: "temacs can only be run in -batch mode."
5404         Fix: Check xemacs executable candidate for directory-ness.
5405
5406 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5407
5408         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5409           they conflict with <sys/types.h>.
5410
5411 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5412
5413         * database.c: Berkeley DB wants __STDC__ to be defined.
5414
5415 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5416
5417         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5418
5419 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5420
5421         * process-unix.c (unix_send_process): Fix C++ compile error.
5422
5423 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5424
5425         * Added .dylib as an acceptable shared library file extension
5426         * to support MacOSX.
5427
5428 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5429
5430         * EmacsFrameP.h (EmacsFramePart):
5431         Kludge to allow compiling with Motif1, but linking with Motif2.
5432
5433 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5434
5435         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5436
5437
5438 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5439
5440         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5441
5442 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5443
5444         * sysdll.c: Included lisp.h to define needed alloca_array.
5445
5446 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5447
5448         Make XEmacs redisplay 10 times faster.
5449         If, that is, you're using a slow X connection and MoveOpaque.
5450         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5451         Use compress_motion = TRUE.
5452         * EmacsFrame.c (emacsFrameClassRec): 
5453         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5454         * EmacsManager.c (emacsManagerClassRec):
5455         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5456
5457 2003-01-30  Vin Shelton  <acs@xemacs.org>
5458
5459         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5460
5461 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5462
5463         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5464         Patch by Martin Buchholz.
5465
5466 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5467
5468         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5469         Thanks to icc for warning and Martin Buchholz for reporting.
5470
5471 2003-01-29  Vin Shelton <acs@xemacs.org>
5472
5473         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5474
5475         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5476         remember to multiply by the element size.
5477
5478 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5479
5480         * XEmacs 21.4.12 "Portable Code" is released.
5481
5482 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5483
5484         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5485         * s/cygwin.sc: new linker file.
5486
5487 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5488
5489         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5490
5491         * redisplay-x.c (x_output_string): Use X11-specified types.
5492         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5493         * emacs.c (__free_hook): Use typeof with Intel compiler.
5494         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5495
5496 2003-01-08  Andy Piper  <andy@xemacs.org>
5497
5498         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5499         reserve size during unexec().
5500
5501 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5502
5503         * process-unix.c (unix_create_process): Don't let outchannel block.
5504
5505 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5506
5507         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5508         Needed for IsBadReadPtr().
5509
5510 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5511
5512         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5513
5514 2002-12-14  Ben Wing  <ben@xemacs.org>
5515
5516         * callint.c: Declaration error.
5517         * dumper.c (pdump):
5518         * dumper.c (pdump_load): Warning fix.
5519         * process.c: GCPRO error.
5520         * glyphs.c (unmap_subwindow):
5521         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5522         * event-stream.c (maybe_kbd_translate): Wrong argument to
5523         character_to_event().
5524
5525         * alloc.c (garbage_collect_1):
5526         * emacs.c:
5527         * emacs.c (debug_can_access_memory):
5528         * emacs.c (fatal_error_signal):
5529         * emacs.c (mswindows_handle_hardware_exceptions):
5530         * emacs.c (main_1):
5531         * emacs.c (main):
5532         * emacs.c (assert_failed):
5533         * emacs.c (syms_of_emacs):
5534         * lisp.h:
5535         * print.c:
5536         * print.c (std_handle_out_va):
5537         * print.c (write_string_to_stdio_stream):
5538         * print.c (write_fmt_string):
5539         * print.c (printing_badness):
5540         * print.c (printing_major_badness):
5541         * print.c (print_internal):
5542         * print.c (debug_print_no_newline):
5543         * print.c (debug_backtrace):
5544         Be more defensive in handling bad values when printing.  Add code
5545         from trunk involving inhibit_non_essential_printing_operations.
5546         When going down or in debug_print(), don't do external conversion
5547         and such and try really, really hard when printing to avoid core
5548         dumping.  Add force-debugging-signal, debug_break().
5549
5550 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5551
5552         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5553         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5554
5555 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5556
5557         * database.c: Fix open_database. Berkeley DB API has changed in
5558         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5559
5560 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5561
5562         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5563
5564 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5565
5566         * event-Xt.c (Xt_timeout):
5567         (Xt_timeout_callback):
5568         (emacs_Xt_add_timeout):
5569         (emacs_Xt_remove_timeout):
5570         (Xt_timeout_to_emacs_event):
5571         Turn completed_timeouts from a stack into a queue.  Fixes
5572         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5573
5574 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5575
5576         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5577         * emacs.c (main): Assert that mmap'd allocation is disabled.
5578
5579 2002-10-14  Andy Piper  <andy@xemacs.org>
5580
5581         * glyphs-widget.c (layout_query_geometry): add in fiddle
5582         factor. Include border text in width layout calculation.
5583         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5584
5585 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5586
5587         * XEmacs 21.4.10 "Military Intelligence" is released.
5588
5589 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5590
5591         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5592         using the NAS private array SoundFileInfo that no longer exists in
5593         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5594         and earlier.  This is broken for some versions between 1.5a and
5595         1.5f.
5596
5597 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5598
5599         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5600
5601         * emacs.c (shut_down_emacs): Improve crash message.
5602
5603 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5604
5605         * file-coding.c (determine_real_coding_system): Check for coding
5606         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5607         shebangs and Python PEP 263.
5608
5609 2002-10-08  Andy Piper  <andy@xemacs.org>
5610
5611         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5612         if static sizes haven't been set.
5613
5614 2002-08-30  Mike Alexander  <mta@arbortext.com>
5615
5616         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5617         to close a socket.
5618
5619 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5620
5621         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5622
5623 2002-09-20  Mike Sperber <mike@xemacs.org>
5624
5625         (This partially gets back my patch from 2002-07-20 without the
5626         bug.)
5627         * callproc.c (child_setup): Remove Ben's comment noting confusion
5628         over the file descriptors >= 3: close_process_descs() doesn't
5629         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5630         * process-unix.c (unix_create_process): Call
5631         begin_dont_check_for_quit to inhibit unwanted interaction (and
5632         thus breaking of X event synchronicity) in the child.
5633
5634 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5635
5636         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5637         widget.
5638
5639 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5640
5641         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5642         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5643         the xemacs process did not exit, but looped infinitely here.  This
5644         fixes that problem.
5645
5646 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5647
5648         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5649         (find_context): Improve comments.
5650
5651         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5652         (re_match_2): An XCHAR_TABLE operation was missing.
5653
5654         Many of the following changes were inspired by Andy Piper's (now
5655         obsolete) patch to make syntax-table text property lookup optional.
5656
5657         [Documentation]
5658
5659         * syntax.h (top level): Document semantics of syntax flags.
5660         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5661         * syntax.c, syntax.h (top level): Document syntax cache better in
5662         comments.
5663
5664         [Instrument syntax caching (temporary change)]
5665
5666         * syntax.h (enum syntax_cache_statistics_functions, struct
5667         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5668         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5669         * syntax.c (scan_words, Fforward_comment, scan_lists,
5670         Fbackward_prefix_characters):
5671         * font-lock.c (find_context):
5672         Use them to instrument syntax caching. 
5673         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5674         syntax_cache_statistics_function_names): New type and variables.
5675         * syntax.c (update_syntax_cache): Update and report statistics.
5676
5677         [Major syntax cache optimizations]
5678
5679         syntax.c (lookup_syntax_properties): Default off.
5680
5681         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5682         * syntax.c (update_syntax_cache):
5683         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5684
5685         [Minor syntax cache optimizations and code clarifications]
5686
5687         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5688         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5689         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5690         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5691         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5692         (Code clarification.)
5693
5694         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5695         scan_lists): Compute code from syncode, use Boolean macros instead
5696         of redundant masking operations.  (Code clarification; any decent
5697         compiler can do this optimization.)
5698
5699         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5700         for clarity.
5701
5702         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5703         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5704         use F*_single_property_change instead of F*_extent_change.
5705         Currently F*_single_property_change is _much_ less efficient.
5706
5707         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5708         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5709         syntax_cache.object properly, don't leave Qt or Qnil.
5710         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5711         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5712         tests for Qt or Qnil.
5713
5714 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5715
5716         * redisplay.c (point_in_line_start_cache): 
5717         * extents.c (print_extent_1):
5718         Fix warnings.
5719
5720         * extents.c (Fset_extent_property): Document `syntax-table' property.
5721
5722         * extents.h (Fnext_single_property_change): EXFUN it.
5723
5724 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5725
5726         * search.c (clear_unused_search_regs): New static function.
5727         (search_buffer): 
5728         (simple_search): 
5729         (boyer_moore):
5730         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5731         Minor clarifications in comments.
5732
5733         * regex.c (re_match_2_internal): Ensure no stale submatches.
5734
5735 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5736
5737         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5738
5739 2002-08-29  Jerry James  <james@xemacs.org>
5740
5741         * lisp.h: structrures -> structures.
5742
5743 2002-06-03  Andy Piper  <andy@xemacs.org>
5744
5745         * frame.c (frame_conversion_internal): add conversion appropriate
5746         for setting frame dimensions in pixels.
5747
5748         * console.h (struct console_methods): add device-specific widget
5749         layout functions.
5750
5751         * emacs.c (main_1): initialize glyph vars.
5752
5753         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5754         (handle_focus_event_2): new function. Allow focus to
5755         be set to a particular window and widget.
5756         (enqueue_focus_event): new function. Create a
5757         synthetic focus event.
5758         (emacs_Xt_handle_magic_event): call
5759         handle_focus_event_2.
5760
5761         * frame.c (Fset_frame_pixel_height): new function. Allow
5762         pixel-based sizing. Does the right thing on character-oriented
5763         displays.
5764         (Fset_frame_pixel_width): ditto.
5765         (Fset_frame_pixel_size): ditto.
5766         (syms_of_frame): declare.
5767
5768         * general-slots.h: add :vertically-justify and
5769         :horizontally-justify.
5770
5771         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5772         (mswindows_widget_border_width): new function.
5773         (mswindows_combo_box_instantiate): set border widths.
5774         (console_type_create_glyphs_mswindows): declare.
5775
5776         * glyphs-widget.c:
5777         (check_valid_justification): allow vertical and horizontal
5778         justification.
5779         (widget_border_width): new function. Call device methods.
5780         (widget_instance_border_width): ditto.
5781         (logical_unit_height): new function. Determine the height of a
5782         logical-unit. Logical units are intended to provide grid-like
5783         layout for subcontrols in a layout. If the layout is
5784         :vertically-justify top then subcontrols will be positioned on
5785         logical-unit boundaries, thus allowing adjacent subcontrols to
5786         line up.
5787         (widget_logical_unit_height): ditto for widgets.
5788         (redisplay_widget): misc cleanup.
5789         (widget_spacing): new function. Call device specific
5790         methods. Intended to be the default gap between adjacent widgets.
5791         (widget_query_geometry): use new spacing functions to determine
5792         appropriate geometry.
5793         (initialize_widget_image_instance): initialize horizontal and
5794         vertical justification.
5795         (widget_instantiate): use logica-units where appropriate for
5796         sizing large widgets.
5797         (button_query_geometry): use widget_instance_border_width.
5798         (tree_view_query_geometry): ditto.
5799         (tab_control_query_geometry): ditto.
5800         (edit_field_query_geometry): new function.
5801         (layout_update): pick up :justify, :horizontally-justify and
5802         :vertically-justify none of which worked previously. :justify is
5803         used as a fallback for both horizontal and vertical justification.
5804         (layout_query_geometry): use logical units to size appropriately.
5805         (layout_layout): ditto.
5806         (Fwidget_logical_to_character_width): new function. Allow users to
5807         convert from logical units to characters so that frame sizes can
5808         be set appropriately.
5809         (Fwidget_logical_to_character_height): ditto.
5810         (syms_of_glyphs_widget): declare.
5811         (image_instantiator_edit_fields): add edit_field_query_geometry.
5812         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5813         :horizontally-justify.
5814         (specifier_vars_of_glyphs_widget): new function. Declare
5815         Vwidget_border_width which is not yet used.
5816
5817         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5818         (x_widget_border_width): new function.
5819         (x_widget_instantiate): create a sensible name for widgets.
5820         (console_type_create_glyphs_x): declare x_widget_border_width.
5821
5822         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5823         (struct Lisp_Image_Instance): add :vertically-justify and
5824         :horizontally-justify.
5825         (LAYOUT_JUSTIFY_TOP): new.
5826         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5827         (ROUND_UP): new macro. Round argument up to next integral
5828         interval.
5829
5830         * redisplay-output.c (redisplay_output_layout): misc formatting.
5831
5832         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5833
5834 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5835
5836         * XEmacs 21.4.9 "Informed Management" is released.
5837
5838 2002-08-19  Andy Piper  <andy@xemacs.org>
5839
5840         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5841         win32 format.
5842
5843         * realpath.c (xrealpath): normalize drive spec also so that dir
5844         sep chars are not mixed on cygwin.
5845
5846 2002-08-06  Jerry James  <james@xemacs.org>
5847
5848         * window.c (Fsplit_window): Count only half of the divider width
5849         against the left window when splitting horizontally. 
5850
5851 2002-06-24  Andy Piper  <andy@xemacs.org>
5852
5853         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5854         toolbar was cleared.
5855
5856         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5857         function. Split out from mswindows_output_frame_toolbars.
5858         (mswindows_output_frame_toolbars): move clear pieces to
5859         mswindows_output_frame_toolbars.
5860
5861         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5862         out from gtk_output_frame_toolbars.
5863         (gtk_output_frame_toolbars): move clear pieces to
5864         gtk_clear_frame_toolbars.
5865
5866         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5867         the frame is cleared. How this ever worked before is a mystery.
5868         (x_output_frame_toolbars): Only output toolbars.
5869         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5870
5871         * gutter.c (update_gutter_geometry):
5872         Mark frame layout changed.
5873         (update_frame_gutter_geometry, update_frame_gutters):
5874         Respect frame_layout_changed.
5875
5876         * console.h (struct console_methods): add
5877         clear_frame_toolbars_method.
5878
5879         * redisplay.c (redisplay_frame): call
5880         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5881
5882         * toolbar.h: declare update_frame_toolbars_geometry.
5883
5884         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5885         out from update_frame_toolbars.  Call clear_frame_toolbars.
5886         (update_frame_toolbars): only output, do not change geometry.
5887
5888         * redisplay.c: add frame_layout_changed.
5889
5890         * redisplay.h: add frame_layout_changed.
5891         (CLASS_RESET_CHANGED_FLAGS): set it.
5892         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5893         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5894         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5895
5896         * device.h (struct device): add frame_layout_changed.
5897         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5898
5899         * frame.h (struct frame): add frame_layout_changed.
5900         (MARK_FRAME_LAYOUT_CHANGED): new.
5901
5902 2002-06-30  Mike Alexander  <mta@arbortext.com>
5903
5904         * event-msw.c (mswindows_need_event): Don't wait for a new message
5905         if the queue is not empty.  Suggested by Paul Moore.
5906
5907 2002-06-12  Andy Piper  <andy@xemacs.org>
5908
5909         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5910         for printing on accurately.
5911
5912 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5913
5914         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5915         WM_ACTIVATE message. Make sure that the frame is visible if the
5916         window is visible. This seemss to fix the problem where XEmacs
5917         appears to freeze after switching desktops with certain virtual
5918         window managers.
5919         (debug_output_mswin_message): Added code to output message
5920         parameters for WM_WINDOWPOSCHANGED, 
5921         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5922
5923 2002-05-25  Andy Piper  <andy@xemacs.org>
5924
5925         * select-x.c (vars_of_select_x): Fix docstring of
5926         x-selection-strict-motif-ownership
5927
5928 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5929
5930         * keymap.c (get_keymap):
5931         Add comment about do_autoload GCPROs own args.
5932
5933 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5934
5935         * bytecode.c (execute_optimized_program): check_opcode ifdef
5936         ERROR_CHECK_BYTE_CODE.
5937
5938 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5939
5940         Thanks to Ben Wing and Michael Sperber.
5941
5942         * eval.c (Fcommand_execute):
5943         (Feval):
5944         (Ffuncall):
5945         (Fmacroexpand_internal):
5946         (function_argcount):
5947         callint.c (Fcall_interactively):
5948         Add comment about do_autoload GCPROs own args.
5949
5950         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5951
5952         * eval.c (Ffuncall): Extra braces to placate GCC.
5953
5954 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5955
5956         * backtrace.h (grow_specpdl):
5957         (SPECPDL_RESERVE):
5958         * EmacsFrame.c (EmacsFrameSetValues):
5959         * eval.c (grow_specpdl):
5960         * ExternalShell.c (hack_event_masks_1):
5961         * glyphs-x.c (convert_EImage_to_XImage): 
5962         (x_finalize_image_instance):
5963         * ralloc.c (page_size):
5964         (r_alloc_sbrk):
5965         * xgccache.c (gc_cache_hash):
5966         Fix unsigned comparison warnings.
5967
5968 2002-07-29  Jerry James  <james@xemacs.org>
5969
5970         * lread.c (locate_file): Any nonnegative return value indicates
5971         success if MODE is nonnegative.
5972
5973 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5974
5975         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5976         argument. 
5977
5978 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5979
5980         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5981
5982         * dumper.c (pdump_get_indirect_count):
5983         (pdump_scan_by_alignment):
5984         (pdump_dump_root_struct_ptrs):
5985         (pdump_dump_rtables):
5986         (pdump_dump_root_objects):
5987         (pdump):
5988         * nas.c (WaveOpenDataForReading):
5989         * fns.c (print_bit_vector):
5990         * font-lock.c (SINGLE_SYNTAX_STYLE):
5991         * glyphs.c (check_for_ignored_expose):
5992         (find_matching_subwindow):
5993         * glyphs-eimage.c:
5994         * imgproc.c (get_histogram):
5995         * redisplay.c (point_in_line_start_cache):
5996         * redisplay-output.c (redisplay_unmap_subwindows):
5997         * symbols.c (defsymbol_massage_name_1):
5998         (defkeyword_massage_name):
5999         (deferror_massage_name_and_message):
6000         * redisplay-x.c (x_output_string): 
6001         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6002         * frame.h (struct frame):
6003         * filelock.c (current_lock_owner):
6004         * doprnt.c (emacs_doprnt_1):
6005         * lisp.h (struct Lisp_Bit_Vector):
6006         (DO_REALLOC):
6007         Fix warnings.
6008
6009 2002-02-13  Ben Wing  <ben@xemacs.org>
6010
6011         * event-stream.c (reset_key_echo):
6012         * event-stream.c (reset_this_command_keys):
6013         * event-stream.c (execute_command_event):
6014         If console is dead as a result of C-x 5 0, then post-command stuff
6015         needs to be careful and do only non-console-specific stuff.
6016
6017 2002-07-01  Mike Sperber <mike@xemacs.org>
6018
6019         * process-unix.c (unix_send_process): Mark coding_outstream as
6020         non-open upon SIGPIPE.
6021
6022         * event-stream.c (Fnext_event): Reorder switch cases to something
6023         that makes sense.
6024
6025 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6026
6027         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6028         Don't bogusly reinitialize ascii_character property.
6029
6030 2002-07-08  Mike Sperber <mike@xemacs.org>
6031
6032         * process.c (Fstart_process_internal): Do error checking before we
6033         fork off the child, so the child can't muck with the state of the
6034         parent.
6035
6036 2002-07-08  Mike Sperber <mike@xemacs.org>
6037
6038         * ralloc.c (init_ralloc): Allocate properly for pdump.
6039
6040 2002-06-12  Andy Piper  <andy@xemacs.org>
6041
6042         * glyphs.c (query_string_geometry): check the string.
6043
6044         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6045         widget names.
6046
6047 2002-06-17  Jerry James  <james@xemacs.org>
6048
6049         * sysdll.c: Remove RTLD_GLOBAL initialization.
6050         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6051
6052 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6053
6054         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6055
6056 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6057
6058         * sysdep.c (sys_rename): Make sys_rename work for the case where
6059         Windows rename sets errno to EACCES if target file exists.
6060
6061 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6062
6063         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6064         Fix detection of metric units to work on Win95
6065
6066 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6067
6068         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6069
6070 2002-04-25  Andy Piper  <andy@xemacs.org>
6071
6072         * redisplay.c (create_text_block): Remove extra comment trailer.
6073
6074 2002-04-24  Andy Piper  <andy@xemacs.org>
6075
6076         * redisplay.c (create_text_block): Don't actually add propagation
6077         data if the line ends after we have added a glyph.
6078
6079 2002-04-22  Andy Piper  <andy@xemacs.org>
6080
6081         * extents.c (extent_fragment_update): check for glyphs we have
6082         previously displayed.
6083         * extents.c (print_extent_1): warning removal.
6084         * extents.h: change prototype.
6085         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6086         widths correctly for wide glyphs.
6087         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6088         * redisplay.c (prop_type): add PROP_GLYPH.
6089         * redisplay.c (struct prop_block): add glyph type
6090         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6091         to the propagation data.
6092         * redisplay.c (create_text_block): if there is a glyph in the
6093         propagation data use it to salt extent_fragment_update.
6094         * redisplay.c (create_string_text_block): ditto.
6095
6096 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6097
6098         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6099         * redisplay-output.c (compare_runes): Compare them.
6100         * redisplay.c: Update copyright date.
6101         * redisplay.c (pos_data): Add need_baseline_computation field.
6102         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6103         need_baseline_computation; zero yoffset. Set max_pixmap_height
6104         for all pixmaps, not just automatically positioned ones.
6105         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6106         * redisplay.c (calculate_baseline): New, compute textual baseline.
6107         * redisplay.c (add_glyph_rune): Call them.
6108         * redisplay.c (create_text_block): Likewise.
6109         * redisplay.c (create_overlay_glyph_block): Likewise.
6110         * redisplay.c (add_margin_runes): Likewise.
6111         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6112
6113         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6114         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6115         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6116         * redisplay-msw.c (mswindows_output_string): Likewise.
6117         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6118         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6119         * redisplay-x.c (x_output_display_block): Likewise.
6120
6121 2002-03-28  Ben Wing  <ben@xemacs.org>
6122
6123         * redisplay.c: Fixed bug in redisplay
6124         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6125         and down of the lines, since they're bigger than the line
6126         size. (It was seen most obviously when there's a horizontal scroll
6127         bar, e.g. do C-h a glyph or something like that.) The problem was
6128         that the glyph-contrib-p setting on glyphs was ignored even if it
6129         was set properly, which it wasn't until now.
6130
6131 2002-04-24  Andy Piper  <andy@xemacs.org>
6132
6133         * lisp.h (Dynarr_end): Fix definition.
6134
6135 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6136
6137         * redisplay.c (mark_redisplay): Remove call to
6138         update_frame_window_mirror.
6139
6140 2001-11-15  Andy Piper  <andy@xemacs.org>
6141
6142         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6143         cygwin (again).
6144
6145 2002-02-13  Andy Piper  <andy@xemacs.org>
6146
6147         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6148         we did in fact enqueue the XM_MAPFRAME event.
6149
6150 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6151
6152         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6153         to fix problem switching between virtual desktops under virtuawin
6154         virtual window manager.
6155
6156 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6157
6158         * event-msw.c: Typo fix.
6159         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6160         magic XM_MAPFRAME event has been sent.
6161
6162 2001-11-23  Andy Piper  <andy@xemacs.org>
6163
6164         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6165
6166 2001-11-21  Andy Piper  <andy@xemacs.org>
6167
6168         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6169         mouse events outside the frame.
6170
6171 2002-03-20  Andy Piper  <andy@xemacs.org>
6172
6173         * menubar-msw.c (mswindows_popup_menu): warning removal.
6174         * dialog-msw.c (dialog_popped_down): ditto.
6175
6176 2001-12-11  Andy Piper  <andy@xemacs.org>
6177
6178         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6179         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6180         popup_up_p.
6181         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6182         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6183         * menubar-msw.c (mswindows_popup_menu): ditto.
6184
6185 2001-10-29  Andy Piper  <andy@xemacs.org>
6186
6187         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6188         cancels.
6189
6190 2002-01-03  Andy Piper  <andy@xemacs.org>
6191
6192         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6193         letters.
6194         (xrealpath): ditto.
6195
6196 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6197
6198         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6199         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6200         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6201         Detect and handle case where machine is set up for metric units
6202
6203 2002-04-02  Andy Piper  <andy@xemacs.org>
6204
6205         * dired-msw.c (mswindows_get_files): 
6206         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6207         completely handled by XEmacs. Suggested by Thomas Vogler
6208         <mail@thomas-vogler.de>.
6209
6210 2001-11-14  Andy Piper  <andy@xemacs.org>
6211
6212         * nt.c (REG_ROOT): change registry key to XEmacs.
6213
6214 2002-04-27  Andy Piper  <andy@xemacs.org>
6215
6216         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6217
6218 2002-04-26  Andy Piper  <andy@xemacs.org>
6219
6220         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6221         behavior.
6222
6223 2002-03-14  Mike Alexander  <mta@arbortext.com>
6224
6225         * event-msw.c (mswindows_unwait_process): New, remove process from
6226         wait list
6227         * process-nt.c (nt_finalize_process_data): Call
6228         mswindows_unwait_process
6229         * console-msw.h: Declare mswindows_unwait_process
6230
6231 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6232
6233         * editfns.c (Fdecode_time):
6234         (Fformat_time_string):
6235         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6236         (make_time): Warning elimination (change arg name).
6237
6238 2001-11-24  Andy Piper  <andy@xemacs.org>
6239
6240         * window.c (Fsplit_window): Doc return type.
6241
6242 2002-04-01  Andy Piper  <andy@xemacs.org>
6243
6244         * emacs.c (Fkill_emacs): Only output message box in interactive
6245         mode.
6246
6247 2002-04-26  Andy Piper  <andy@xemacs.org>
6248  
6249         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6250         cygwin.
6251
6252 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6253
6254         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6255         bit platform.
6256
6257 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6258
6259         * XEmacs 21.4.8 "Honest Recruiter" is released.
6260
6261 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6262
6263         Supersedes 2002-04-17 patch.
6264
6265         * process.h (PROCESS_LIVE_P): Use the process status as
6266         evidence of health, not the state of the input stream.
6267         (PROCESS_READABLE_P): Say if the process is readable
6268         from. (It may be dead nonetheless.)
6269         (CHECK_READABLE_PROCESS): Test for that condition.
6270
6271         * process.c (create_process): Use PROCESS_READABLE_P.
6272         (read_process_output, set_process_filter): Likewise.
6273
6274         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6275         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6276
6277         This code is #if 0'd, this is not the time to add new functions:
6278
6279         * process.c (Fprocess_readable_p): Report readability status.
6280         * process.c (Qprocess_readable_p): New, associated symbol...
6281         * process.c (syms_of_process): ... initialize it.
6282
6283 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6284
6285         * XEmacs 21.4.7 "Economic Science" is released.
6286
6287 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6288
6289         * process.h (PROCESS_LIVE_P): Use the process status as
6290         evidence of health, not the state of the input stream.
6291
6292 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6293
6294         * sysdep.c (sys_siglist): change "signum" to "signal"
6295
6296 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6297
6298         * s/darwin.h: New file.
6299         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6300         
6301 2002-04-23  Andreas Jaeger  <aj@suse.de>
6302
6303         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6304         which use lib64 for 64-bit libs.
6305         (START_FILES): Likewise.
6306
6307 2002-02-11  Mike Sperber  <mike@xemacs.org>
6308
6309         * device-x.c: 
6310         (x_IO_error_handler):
6311         (x_init_device): Temporarily keep device in static variable
6312         `device_being_initialized' so we can recover gracefully from
6313         internal XOpenDevice failure.  (XOpenDevice is documented to
6314         return NULL on failure, but sometimes calls the IO error handler
6315         instead.)
6316
6317 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6318
6319         * dired.c (Ffile_name_all_completions): Change documentation --
6320         remove reference to completion-ignored-extensions.
6321         * dired.c (vars_of_dired): Change documentation for
6322         completion-ignored-extensions -- remove reference to
6323         file-name-all-completions.
6324
6325 2002-03-06  Jerry James  <james@xemacs.org>
6326
6327         * emodules.c (emodules_load): Fix multiple loading of same module.
6328
6329 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6330         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6331         RTLD_LAZY to avoid incorrect symbol binding when using nested
6332         shared libraries on Solaris.
6333
6334 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6335
6336         * fileio.c (Ffind_file_name_handler): Improve docstring.
6337
6338 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6339
6340         * fns.c (Fmapconcat): Improve docstring.
6341
6342 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6343
6344         * device-gtk.c: Add prototype for
6345         emacs_gtk_selection_clear_event_handle.
6346         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6347         selection.  Setup signal handler for "selection_clear_event"
6348         (emacs_gtk_selection_clear_event_handle).
6349
6350         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6351         other applications owning the clipboard (based on
6352         x_handle_selection_clear).
6353
6354 2001-12-23  William M. Perry  <wmperry@gnu.org>
6355
6356         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6357         
6358 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6359
6360         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6361
6362 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6363
6364         * XEmacs 21.4.6 "Common Lisp" is released.
6365
6366 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6367
6368         * search.c (Freplace_match): Add missing sub-expression functionality.
6369
6370         * buffer.c (decode_buffer): Add a check for pointer type to
6371         decode_buffer, before gcc's CSE optimization reorders a
6372         dereference in front of the allow_string test.
6373
6374 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6375
6376         * window.c (window_loop): Fix bug that sometimes prevented
6377         window_loop() from iterating across multiple devices.  Also, at
6378         Ben's request, changed infloop-detecting code to abort() instead
6379         of silently terminating window_loop().
6380
6381 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6382
6383         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6384         * editfns.c (make_time): New function.
6385         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6386         * lisp.h (make_time): Prototype and comment it.
6387         * dired.c (wasteful_word_to_lisp): Deprecate.
6388         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6389
6390 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6391
6392         * fileio.c (auto_save_1): Use current coding system, not
6393         escape-quoted.
6394
6395 2001-11-13  Ben Wing  <ben@xemacs.org>
6396
6397         * window.c:
6398         * window.c (window_truncation_on):
6399         * window.c (syms_of_window):
6400         truncate-partial-width-windows should respect the buffer being
6401         displayed, like other redisplay vars.
6402
6403 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6404
6405         * event-stream.c (Fread_key_sequence): save current buffer.
6406
6407 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6408
6409         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6410
6411 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6412
6413         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6414
6415 2001-10-26  Mike Alexander  <mta@arbortext.com>
6416
6417         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6418
6419 2001-10-25  Andy Piper  <andy@xemacs.org>
6420
6421         * ChangeLog:
6422         * dialog-msw.c (handle_directory_proc): new function.
6423          (handle_directory_dialog_box): new fucntion.
6424          (handle_file_dialog_box): use new directory dialog support.
6425          (mswindows_make_dialog_box_internal): ditto.
6426         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6427         handling.
6428         (mswindows_find_frame): make global.
6429         * fileio.c (Fexpand_file_name): build fix.
6430         * general-slots.h: add Qdirectory.
6431         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6432         handling.
6433         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6434         cygwin not leaving win32 paths unchanged.
6435         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6436         cygwin runtime to do path conversion.
6437         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6438         (syms_of_win32): add new function.
6439         * window.c (window_loop): build fix.
6440
6441 2001-10-15  Andy Piper  <andy@xemacs.org>
6442
6443         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6444
6445 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6446
6447         * XEmacs 21.4.5 "Civil Service" is released.
6448
6449 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6450
6451         * glyphs-x.c: Force buffer-tab highlight update when moving the
6452         buffer, avoiding an ugly black border, used for keyboard focus
6453         indication, on a widget that can never have keyboard focus, the
6454         buffer tab.
6455
6456 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6457
6458         * process-unix.c (unix_open_multicast_group): Remove too much
6459         conversion between host and network byte order.
6460
6461 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6462
6463         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6464         before replacing them.
6465
6466         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6467         operation.
6468
6469         * src/window.c (undedicate_windows): Use it.
6470         * src/window.h: Add prototype.
6471
6472 2001-09-17  Ben Wing  <ben@xemacs.org>
6473
6474         * fileio.c (normalize_filename):
6475         * fileio.c (Fexpand_file_name):
6476         Fix various C++ compile errors in Andy's recent code.
6477         
6478         * callint.c (Fcall_interactively):
6479         * editfns.c (Ftemp_directory):
6480         * editfns.c (Fuser_full_name):
6481         * emacs.c (argmatch):
6482         * lread.c (locate_file_map_suffixes):
6483         * redisplay-x.c (x_ring_bell):
6484         Fix sign-compare warnings.
6485         
6486 2001-09-08  Andy Piper  <andy@xemacs.org>
6487
6488         * fileio.c (normalize_filename): copied from nt.c
6489         * (Ffile_name_directory): enable win32 paths under cygwin.
6490         * (Ffile_name_nondirectory): ditto.
6491         * (directory_file_name): ditto.
6492         * (Fexpand_file_name): ditto.
6493         * (Ffile_truename): ditto.
6494         * (Fsubstitute_in_file_name): ditto.
6495         * (Ffile_name_absolute_p): ditto.
6496         * (Ffile_readable_p): ditto.
6497
6498 2001-09-08  Andy Piper  <andy@xemacs.org>
6499
6500         * device-msw.c (mswindows_finish_init_device): remove dde
6501         initialization.
6502         * device-msw.c (mswindows_init_dde): factor out from
6503         mswindows_finish_init_device()
6504         * device-msw.c (init_mswindows_very_early): new function
6505         initialize but don't enable dde.
6506         * emacs.c (main_1): call init_mswindows_very_early.
6507         * event-msw.c:
6508         * event-msw.c (mswindows_dde_callback): only execute when we are
6509         ready.
6510         * symsinit.h: declare init_mswindows_very_early.
6511
6512 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6513
6514         [sjt: This has been in 21.5 for months with no complaints.]
6515
6516         * console.h (struct console_methods): Added flags member.
6517         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6518         (CONMETH_IMPL_FLAG):
6519         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6520         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6521
6522         * device.c (window_system_pixelated_geometry): Use the above macros.
6523
6524         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6525         implememntation flag.
6526         * device.h (DEVICE_DISPLAY_P): Use it.
6527
6528         * frame.c (delete_frame_internal): Use the above macro.
6529
6530         * redisplay.c (redisplay_device): Use it.
6531         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6532         (redisplay_frame): Ditto.
6533
6534         * device-msw.c (mswindows_device_implementation_flags): Removed.
6535         (msprinter_device_implementation_flags): Removed.
6536         (console_type_create_device_mswindows): Removed references to
6537         implementation_flags methods, set implementation flags here.
6538         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6539
6540         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6541         (console_type_create_device_gtk): Removed method declaration.
6542         Added commented out statement which semantically matches the
6543         commented out statement in the above removed method.
6544
6545 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6546
6547         The attached patch fixes a few warnings. 
6548
6549         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6550         * src/frame-gtk.c: guard against GNOME calls in GTK only
6551         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6552         * src/select-gtk.c: prototype lisp_to_time
6553
6554 2001-06-08  Ben Wing  <ben@xemacs.org>
6555
6556         ------ gc-in-window-procedure fixes ------
6557         
6558         * alloc.c:
6559         * alloc.c (struct post_gc_action):
6560         * alloc.c (register_post_gc_action):
6561         * alloc.c (run_post_gc_actions):
6562         * alloc.c (garbage_collect_1):
6563         Create "post-gc actions", to avoid those dreaded "GC during window
6564         procedure" problems.
6565
6566         * event-msw.c:
6567         Abort, clean and simple, when GC in window procedure.  We want
6568         to flush these puppies out.
6569
6570         * glyphs-msw.c:
6571         * glyphs-msw.c (finalize_destroy_window):
6572         * glyphs-msw.c (mswindows_finalize_image_instance):
6573         Use a post-gc action when destroying subwindows.
6574
6575         * lisp.h:
6576         Declare register_post_gc_action().
6577
6578         * scrollbar-msw.c:
6579         * scrollbar-msw.c (unshow_that_mofo):
6580         Use a post-gc action when unshowing scrollbar windows, if in gc.
6581
6582         * redisplay.c (mark_redisplay):
6583         Add comment about the utter evilness of what's going down here.
6584
6585         ------ cygwin setitimer fixes ------
6586         
6587         * Makefile.in.in (sheap_objs):
6588         * Makefile.in.in (profile_objs):
6589         * Makefile.in.in (objs):
6590         Compile profile.c only when HAVE_SETITIMER.
6591         
6592         * nt.c (mswindows_sigset):
6593         * nt.c (mswindows_sighold):
6594         * nt.c (mswindows_sigrelse):
6595         * nt.c (mswindows_sigpause):
6596         * nt.c (mswindows_raise):
6597         * nt.c (close_file_data):
6598         Style fixes.
6599         
6600         * nt.c:
6601         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6602         
6603         * profile.c:
6604         * profile.c (Fstart_profiling):
6605         * profile.c (Fstop_profiling):
6606         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6607         instead of just plain setitimer().
6608         
6609         * signal.c:
6610         * signal.c (set_one_shot_timer):
6611         * signal.c (alarm):
6612         Define qxe_setitimer() as an encapsulation around setitimer() --
6613         call setitimer() directly unless Cygwin or MS Win, in which case
6614         we use our simulated version in win32.c.
6615         
6616         * systime.h:
6617         * systime.h (struct itimerval):
6618         * systime.h (ITIMER_REAL):
6619         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6620         comment about "qxe" and the policy regarding encapsulation.
6621
6622         * win32.c:
6623         * win32.c (setitimer_helper_proc):
6624         * win32.c (setitimer_helper_period):
6625         * win32.c (setitimer_helper):
6626         * win32.c (mswindows_setitimer):
6627         Move setitimer() emulation here, so Cygwin can use it.
6628         Rename a couple of functions and variables to be longer and more
6629         descriptive.  In setitimer_helper_proc(), send the signal
6630         using either mswindows_raise() or (on Cygwin) kill().  If for
6631         some reason we are still getting lockups, we'll change the kill()
6632         to directly invoke the signal handlers.
6633
6634         ------ windows shell fixes ------
6635         
6636         * callproc.c:
6637         * ntproc.c:
6638         Comments about how these two files must die.
6639
6640         * callproc.c (init_callproc):
6641         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6642         not just COMSPEC. (more correct and closer to FSF.) Don't
6643         force a value for SHELL into the environment. (Comments added
6644         to explain why not.)
6645         
6646         * nt.c (init_user_info):
6647         Don't shove a fabricated SHELL into the environment.  See above.
6648
6649 2001-06-01  Ben Wing  <ben@xemacs.org>
6650
6651         * Makefile.in.in (ldflags):
6652         eliminate that pesky "defaulting to 00401000" warning.
6653         * nt.h:
6654         eliminate warnings.
6655
6656 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6657
6658         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6659         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6660
6661 2001-04-24  Jerry James <james@xemacs.org>
6662
6663         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6664         correct order.
6665
6666 2001-06-01  Ben Wing  <ben@xemacs.org>
6667
6668         * event-msw.c (debug_mswin_messages):
6669         conditionalize the messages that were causing compile errors.
6670         (if only macros could generate #ifdef statements ...)
6671
6672 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6673
6674         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6675
6676 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6677
6678         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6679
6680 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6681
6682         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6683         * process-unix.c (unix_canonicalize_host_name):
6684         sysdep.c (init_system_name):
6685         Use it to conditionally support IPv6 canonicalization.
6686
6687 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6688
6689         * event-msw.c:
6690         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6691
6692 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6693
6694         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6695         attempt is made to scroll when no scroll bar is available.
6696
6697 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6698
6699         * input-method-motif.c (XIM_delete_frame): New callback.
6700         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6701         got deleted from 21.4.3.)
6702
6703 2001-06-01  Ben Wing  <ben@xemacs.org>
6704
6705         * nt.c (mswindows_utime):
6706         * nt.c (close_file_data):
6707         fix off-by-one-indirection error.
6708
6709 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6710
6711         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6712         because set_file_times() now takes Lisp_Object path, instead of
6713         char*.
6714         * nt.c: Include buffer.h.
6715         * nt.c (convert_from_time_t): New.
6716         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6717         not set mtime correctly.
6718         * nt.h: Declare mswindows_utime().
6719         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6720         path, instead of char*.
6721         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6722
6723 2001-05-30  Ben Wing  <ben@xemacs.org>
6724
6725         For 21.4:
6726
6727         (Stephen, just take all event-msw.c patches.  This includes
6728         the "iconify" fix below.)
6729
6730         * event-msw.c:
6731         * event-msw.c (mswindows_dequeue_dispatch_event):
6732         * event-msw.c (assert):
6733         * event-msw.c (emacs_mswindows_quit_p):
6734         * event-msw.c (debug_mswin_messages):
6735         * event-msw.c (debug_output_mswin_message):
6736         * event-msw.c (vars_of_event_mswindows):
6737         Fix yet more problems with C-g handling.
6738         Implement debug-mswindows-events.
6739         
6740 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6741
6742         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6743         
6744 2001-05-23  Ben Wing  <ben@xemacs.org>
6745
6746         * event-msw.c (winsock_writer):
6747         * event-msw.c (winsock_closer):
6748         prior kludgy code was clobbering the buffer, thinking it was
6749         "unused" space to store an unneeded return value; instead, use
6750         the variable we've already got staring us in the face.
6751
6752 2001-05-17  Andy Piper  <andy@xemacs.org>
6753
6754         * sysfile.h: don't assume that file attributes are boolean
6755
6756 2001-05-23  Ben Wing  <ben@xemacs.org>
6757
6758         * device-msw.c (msprinter_init_device):
6759         signal an error rather than crash with an unavailable network
6760         printer (from Mike Alexander).
6761         
6762         * event-msw.c:
6763         * event-msw.c (struct winsock_stream):
6764         * event-msw.c (winsock_writer):
6765         * event-msw.c (winsock_closer):
6766         * event-msw.c (make_winsock_stream_1):
6767         cleanup headers.  fix (hopefully) an error with data corruption
6768         when sending to a network connection.
6769
6770         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6771         to handle the ~user prefix by (a) always assuming we're referencing
6772         ourselves and not even verifying the user -- hence any file with
6773         a tilde as its first char is invalid! (b) if there wasn't a slash
6774         following the filename, the pointer was set *past* the end of
6775         file and we started reading from uninitialized memory.  Now we
6776         simply treat these as files, always.
6777
6778         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6779         
6780 2001-05-19  Ben Wing  <ben@xemacs.org>
6781
6782         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6783
6784         * process-nt.c:
6785         * process-nt.c (vars_of_process_nt):
6786         remove unused mswindows-quote-process-args.  rec for 21.4.
6787         
6788 2001-05-12  Ben Wing  <ben@xemacs.org>
6789
6790         * event-msw.c (mswindows_dde_callback):
6791         * event-msw.c (mswindows_wnd_proc):
6792         eliminate cygwin warnings.
6793
6794 2001-05-06  Ben Wing  <ben@xemacs.org>
6795
6796         * console-msw.h:
6797         * device-msw.c:
6798         * device-msw.c (print_dialog_worker):
6799         * device-msw.c (mswindows_handle_print_dialog_box):
6800         * device-msw.c (syms_of_device_mswindows):
6801         * dialog-msw.c (mswindows_make_dialog_box_internal):
6802         * general-slots.h:
6803         implement printing the selection when it's selected.
6804
6805 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6806
6807         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6808
6809 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6810
6811         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6812         EMACS_INT is signed.
6813
6814 2001-04-15  Michael Lausch  <mla@1012surf.net>
6815
6816         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6817         gtk_widget_request_size() to give scrollbar >0 width for
6818         GTK >1.2.8.
6819
6820 2001-05-30  William M. Perry  <wmperry@gnu.org>
6821
6822         * event-gtk.c: Check for buttons as modifier keys.
6823
6824 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6825
6826         * s\mingw32.h:
6827         Properly find MinGW's <process.h> inside Cygwin's restructured
6828         include directories.  Don't try to include <cygwin/version.h>
6829         since we are dropping support for MinGW in versions of Cygwin
6830         earlier than b21.
6831         * nt.c:
6832         Drop support for MinGW in versions of Cygwin before b21.
6833         * sysdep.c:
6834         Properly find MinGW's <process.h> inside Cygwin's restructured
6835         include directories.
6836         * syswindows.h:
6837         Drop support for MinGW in versions of Cygwin before b21.
6838         * unexcw.c:
6839         Even though a.out.h is no longer detected by configure, allow
6840         MinGW to use it until we figure out how to do the job with Win32.
6841
6842 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6843
6844         * syntax.c (find_start_of_comment):
6845         Fix `unbalanced parentheses' bug when dealing with mixed comment
6846         styles in c++/java/etc. mode
6847
6848 2001-05-29  Mike Alexander  <mta@arbortext.com>
6849
6850         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6851         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6852
6853 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6854
6855         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6856
6857 2001-03-31  Mike Sperber <mike@xemacs.org>
6858
6859         * search.c (Freplace_match): Support FSF-style specification of
6860         match subexpression when applied to a buffer.
6861
6862 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6863
6864         * event-stream.c (is_scrollbar_event): add missing semicolon
6865
6866 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6867
6868         * Makefile.in.in: Use TAR macro instead of hardcoding
6869           tar.  Allows use of GNU tar instead of system tar
6870
6871 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6872
6873         * event-stream.c (is_scrollbar_event): add missing semicolon
6874
6875 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6876
6877         * XEmacs 21.4.3 "Academic Rigor" is released.
6878
6879 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6880
6881         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6882
6883 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6884
6885         * buffer.c (Vcase_fold_search): Remove obsolete
6886           comment about non ASCII case-fold-search.  This
6887           bug has been fixed by case-table changes.
6888
6889 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6890
6891         * event-msw.c: Restore include of events-mod.h.
6892
6893 2001-04-22   zhaoway  <zw@debian.org>
6894
6895         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6896         !HAVE_SCROLLBARS.
6897
6898 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6899
6900         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6901
6902 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6903
6904         * mule-charset.c (Fmake_charset): Add missing else.
6905
6906 2001-04-23  Ben Wing  <ben@xemacs.org>
6907
6908         * event-msw.c (FAKE_MOD_QUIT):
6909         * event-msw.c (mswindows_dequeue_dispatch_event):
6910         * event-msw.c (mswindows_wnd_proc):
6911         * event-msw.c (emacs_mswindows_quit_p):
6912         Get critical quit working.
6913
6914 2001-05-05  Ben Wing  <ben@xemacs.org>
6915
6916         * console-msw.h:
6917         * device-msw.c:
6918         * device-msw.c (mswindows_get_default_margin):
6919         * frame-msw.c (mswindows_size_frame_internal):
6920         * frame-msw.c (msprinter_init_frame_1):
6921         * frame-msw.c (vars_of_frame_mswindows):
6922         Change top/bottom margin defaults to 0.5 inches.
6923
6924 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6925
6926         Fix link error with gcc 3.0 on Linux.
6927         * terminfo.c (UP): Remove.
6928         * terminfo.c (BC): Remove.
6929         * terminfo.c (PC): Remove.
6930         They weren't used, and in any case, these symbols should be
6931         defined in the *library*.
6932
6933 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6934
6935         * s/aix4.h: Fix crash with xlc -O3.
6936         Improve comment explaining how -O3 works.
6937
6938 2001-04-15  Ben Wing  <ben@xemacs.org>
6939
6940         * event-stream.c:
6941         * event-stream.c (Fnext_event):
6942         * event-stream.c (is_scrollbar_event):
6943         * event-stream.c (execute_command_event):
6944         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6945         crash' problem.  His fix introduces other problems.  We filter
6946         out scrollbar events specifically, making them somewhat invisible
6947         to command-building, and not appearing in `this-command-keys'.
6948         More work is still needed (see comments in event-stream.c), but
6949         this fixes all the major problems.
6950
6951 2001-04-20  Ben Wing  <ben@xemacs.org>
6952
6953         * .cvsignore: Added stuff for Windows.
6954
6955 2001-04-28  Ben Wing  <ben@xemacs.org>
6956
6957         * buffer.c (Ferase_buffer):
6958         * editfns.c (buffer_insert1):
6959         * editfns.c (Finsert_before_markers):
6960         * editfns.c (Finsert_string):
6961         * editfns.c (Finsert_char):
6962         * editfns.c (Fdelete_region):
6963         * editfns.c (Fwiden):
6964         * editfns.c (Fnarrow_to_region):
6965         remove bogus lines setting zmacs_region_stays to 0.
6966         
6967 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6968
6969         * process-unix.c (unix_open_network_stream): If connect() fails
6970         invalidate file descriptor after closing it.
6971
6972 2001-03-08  Mike Alexander  <mta@arbortext.com>
6973
6974         * event-msw.c (mswindows_need_event_in_modal_loop):
6975         Don't dispatch a message if we didn't get one.
6976         (mswindows_need_event):
6977         Terminate the correct process when one exits instead of the first
6978         one on Vprocess_list and look for process termination when in
6979         mswindows_protect_modal_loop.
6980
6981 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6982
6983         * XEmacs 21.4.1 "Copyleft" is released.
6984
6985 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6986
6987         * input-method-motif.c (XIM_delete_frame): New callback.
6988         (XIM_init_frame): Register it.
6989
6990 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6991
6992         * XEmacs 21.4.0 "Solid Vapor" is released.
6993
6994 2001-04-15  Ben Wing  <ben@xemacs.org>
6995
6996         * cmdloop.c (call_command_loop):
6997         Fix braino in bit-rotting code.
6998         
6999 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7000
7001         * extents.c (Fset_extent_endpoints): Force creation of extent info
7002         in buffer_or_string.
7003
7004         * extents.c (process_extents_for_insertion_mapper): Correctly
7005         check for open-open zero-length extents.
7006
7007 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7008
7009         * lisp.h: New typedefs Memory_count, Element_count.
7010         * regex.c:
7011         * regex.h:
7012         Sign-compare warning elimination: several unsigned -> signed.
7013         Based on work by Ben Wing <ben@xemacs.org>.
7014
7015 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7016
7017         * XEmacs 21.2.47 "Zephir" is released.
7018
7019 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7020
7021         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7022
7023 2001-04-03  Mike Sperber <mike@xemacs.org>
7024
7025         * search.c: Revert previous patch due because of release.
7026
7027 2001-03-30  Ben Wing  <ben@xemacs.org>
7028
7029         * s\cygwin32.h:
7030         Add missing killpg prototype.
7031
7032         * elhash.c:
7033         Add a comment about fixing problems when a new entry is added
7034         while mapping.
7035
7036         * frame-msw.c (mswindows_init_frame_1):
7037         Fix compile warnings.
7038
7039         * menubar.c (vars_of_menubar):
7040         Provide `menu-accelerator-support' to indicate that we properly
7041         support %_ in menu specifications, so that package code can
7042         conditionalize on this (and remove %_ from menu specifications
7043         on older versions).
7044
7045         * event-msw.c:
7046         * scrollbar-msw.c:
7047         * scrollbar-msw.c (can_scroll):
7048         * scrollbar-msw.h:
7049         Fix handling of mouse wheel under Windows to follow standards --
7050         now scrolls window under pointer, not selected window.
7051
7052 2001-03-31  Mike Sperber <mike@xemacs.org>
7053
7054         * search.c (Freplace_match): Support FSF-style specification of
7055         match subexpression when applied to a buffer.
7056
7057 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7058
7059         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7060         function to modify KEYMAP, so map over a copy of the hash table.
7061
7062 2001-03-21  Martin Buchholz <martin@xemacs.org>
7063
7064         * XEmacs 21.2.46 "Urania" is released.
7065
7066 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7067
7068         * realpath.c (xrealpath): Make file-truename work with symlinks to
7069         /cygdrive paths on cygwin. Always lowercase drive-letters on
7070         native windows.
7071         (cygwin_readlink): Don't try to find canonical filename unless
7072         file exists.
7073
7074 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7075
7076         * ChangeLog: Log GTK merge.
7077
7078         * dumper.c:
7079         * select-x.c:
7080         * specifier.c:
7081         * symeval.h:
7082         Revert gratuitous whitespace changes from GTK merge.
7083
7084         * emacs.c: Document end of complex #ifdef @ l. 1495.
7085
7086
7087 2001-03-12  Andy Piper  <andy@xemacs.org>
7088
7089         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7090         have to do likewise.
7091
7092 2001-03-12  Andy Piper  <andy@xemacs.org>
7093
7094         * sysdep.c: we only support mingw now.
7095
7096 2001-03-09  Andy Piper  <andy@xemacs.org>
7097
7098         * unexcw.c (copy_executable_and_dump_data_section): making approx
7099         overrun a warning only.
7100
7101 2001-03-10  William M. Perry  <wmperry@aventail.com>
7102
7103         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7104         satisfy Stephen's identical-after-cpp plea.
7105
7106 2001-03-02  Ben Wing  <ben@xemacs.org>
7107
7108         * cmds.c:
7109         * cmds.c (Fforward_char):
7110         * syntax.c:
7111         * window.c:
7112
7113         Augment documentation of the most common motion commands to make
7114         note of the shifted-motion support.
7115         
7116 2001-03-02  Ben Wing  <ben@xemacs.org>
7117
7118         * nt.c (mswindows_fstat):
7119         * nt.c (mswindows_stat):
7120         * search.c (boyer_moore):
7121         Fix compile warnings under Windows.
7122         
7123         * sysdep.c (sys_readdir):
7124         Fix buggy filename-conversion code under Mule.
7125
7126 2001-03-09  William M. Perry  <wmperry@aventail.com>
7127
7128         * Makefile.in.in:
7129         * config.h.in:
7130         * console.c:
7131         * console.h:
7132         * device.c:
7133         * device.h:
7134         * dragdrop.c:
7135         * emacs.c:
7136         * event-stream.c:
7137         * events.c:
7138         * events.h:
7139         * faces.c:
7140         * frame.h:
7141         * general-slots.h:
7142         * glyphs.c:
7143         * gutter.c:
7144         * inline.c:
7145         * lisp.h:
7146         * lrecord.h:
7147         * make-src-depend:
7148         * redisplay-output.c:
7149         * redisplay.c:
7150         * symsinit.h:
7151         * sysfile.h:
7152         * toolbar.c:
7153         * window.c:
7154         The Great GTK Merge.
7155
7156         * ChangeLog.GTK:
7157         * console-gtk.c:
7158         * console-gtk.h:
7159         * device-gtk.c:
7160         * emacs-marshals.c:
7161         * emacs-widget-accessors.c:
7162         * event-gtk.c:
7163         * frame-gtk.c:
7164         * gccache-gtk.c:
7165         * gccache-gtk.h:
7166         * glade.c:
7167         * glyphs-gtk.c:
7168         * glyphs-gtk.h:
7169         * gtk-glue.c:
7170         * gtk-xemacs.c:
7171         * gtk-xemacs.h:
7172         * gui-gtk.c:
7173         * gui-gtk.h:
7174         * menubar-gtk.c:
7175         * native-gtk-toolbar.c:
7176         * objects-gtk.c:
7177         * objects-gtk.h:
7178         * redisplay-gtk.c:
7179         * scrollbar-gtk.c:
7180         * scrollbar-gtk.h:
7181         * select-gtk.c:
7182         * toolbar-gtk.c:
7183         * ui-byhand.c:
7184         * ui-gtk.c:
7185         * ui-gtk.h:
7186         The Great GTK Merge: new files.
7187
7188 2001-02-26  Ben Wing  <ben@xemacs.org>
7189
7190         Reapplied Lstream change.
7191
7192 2001-02-26  Ben Wing  <ben@xemacs.org>
7193
7194         Undid the last change, since it is more controversial than I
7195         thought.  It should be back in at some point soon.
7196         
7197 2001-02-25  Ben Wing  <ben@xemacs.org>
7198
7199         * buffer.c:
7200         * callproc.c (Fold_call_process_internal):
7201         * event-msw.c (ntpipe_slurp_reader):
7202         * event-msw.c (ntpipe_shove_writer):
7203         * event-msw.c (winsock_reader):
7204         * event-msw.c (winsock_writer):
7205         * file-coding.c:
7206         * file-coding.c (detect_eol_type):
7207         * file-coding.c (detect_coding_type):
7208         * file-coding.c (determine_real_coding_system):
7209         * file-coding.c (Fdetect_coding_region):
7210         * file-coding.c (decoding_reader):
7211         * file-coding.c (decoding_writer):
7212         * file-coding.c (mule_decode):
7213         * file-coding.c (Fdecode_coding_region):
7214         * file-coding.c (encoding_reader):
7215         * file-coding.c (encoding_writer):
7216         * file-coding.c (mule_encode):
7217         * file-coding.c (Fencode_coding_region):
7218         * file-coding.c (detect_coding_sjis):
7219         * file-coding.c (decode_coding_sjis):
7220         * file-coding.c (encode_coding_sjis):
7221         * file-coding.c (detect_coding_big5):
7222         * file-coding.c (decode_coding_big5):
7223         * file-coding.c (encode_coding_big5):
7224         * file-coding.c (detect_coding_ucs4):
7225         * file-coding.c (decode_coding_ucs4):
7226         * file-coding.c (encode_coding_ucs4):
7227         * file-coding.c (detect_coding_utf8):
7228         * file-coding.c (decode_coding_utf8):
7229         * file-coding.c (encode_coding_utf8):
7230         * file-coding.c (detect_coding_iso2022):
7231         * file-coding.c (decode_coding_iso2022):
7232         * file-coding.c (encode_coding_iso2022):
7233         * file-coding.c (decode_coding_no_conversion):
7234         * file-coding.c (encode_coding_no_conversion):
7235         * glyphs-x.c (write_lisp_string_to_temp_file):
7236         * gpmevent.c (tty_get_foreign_selection):
7237         * lisp.h:
7238         * lstream.c:
7239         * lstream.c (Lstream_flush_out):
7240         * lstream.c (Lstream_adding):
7241         * lstream.c (Lstream_write_1):
7242         * lstream.c (Lstream_write):
7243         * lstream.c (Lstream_raw_read):
7244         * lstream.c (Lstream_read_more):
7245         * lstream.c (Lstream_read):
7246         * lstream.c (Lstream_unread):
7247         * lstream.c (Lstream_fputc):
7248         * lstream.c (stdio_reader):
7249         * lstream.c (stdio_writer):
7250         * lstream.c (filedesc_reader):
7251         * lstream.c (filedesc_writer):
7252         * lstream.c (lisp_string_reader):
7253         * lstream.c (struct fixed_buffer_stream):
7254         * lstream.c (make_fixed_buffer_input_stream):
7255         * lstream.c (make_fixed_buffer_output_stream):
7256         * lstream.c (fixed_buffer_reader):
7257         * lstream.c (fixed_buffer_writer):
7258         * lstream.c (struct resizing_buffer_stream):
7259         * lstream.c (resizing_buffer_writer):
7260         * lstream.c (dynarr_writer):
7261         * lstream.c (lisp_buffer_reader):
7262         * lstream.c (lisp_buffer_writer):
7263         * lstream.h:
7264         * lstream.h (lstream_implementation):
7265         * lstream.h (struct lstream):
7266         * md5.c (Fmd5):
7267         * process-nt.c (nt_send_process):
7268         * process-unix.c (unix_send_process):
7269         
7270         Correct Lstream lossage due to mixing of signed and unsigned
7271         quantities.  All Lstream uses of size_t and ssize_t are now a
7272         single signed data type Lstream_data_count.  This fixes problems
7273         under Windows with sending large quantities of data to a process,
7274         and may well fix other subtle bugs.
7275
7276 2001-02-23  Martin Buchholz <martin@xemacs.org>
7277
7278         * XEmacs 21.2.45 "Thelxepeia" is released.
7279
7280 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7281
7282         * lisp-union.h (XSETINT): 
7283         (XSETCHAR):
7284         (XSETOBJ): 
7285         Reverse previous change of 2001-02-06.
7286
7287 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7288
7289         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7290         buffers.
7291         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7292         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7293         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7294         * regex.c (POS_AS_IN_BUFFER): removed
7295         * regex.c (re_search_2):
7296         * regex.c (re_match_2):
7297         Don't use an offset of 1 when calculating buffer positions, since
7298         `BI_BUF_BEGV' does it already.
7299
7300 2001-02-18  Wim Dumon  <wim@easics.be>
7301
7302         * insdel.c (prepare_to_modify_buffer): Also check for
7303         supersession when clash-detection is enabled. 
7304
7305 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7306
7307         * regex.c (re_match_2_internal):
7308         Convert temp characters from 'const unsigned char' to 're_char'.
7309         Fix crashing bug with extended characters under mule.
7310         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7311         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7312         font-lock, pdump, and new syntax-table code.
7313         * syntax.c (find_start_of_comment):
7314         (find_end_of_comment):
7315         (forward-comment):
7316         Fix crashing bugs involving moving beyond end of buffer.
7317         * syntax.c (find_start_of_comment):
7318         Fixed logic to allow proper detection of cases where the same
7319         character is used to end both a two-char comment start and a
7320         two-char comment end sequence. Fixes `(forward-comment -1)'.
7321         * syntax.c (find_start_of_comment):
7322         Return position just past last comment-end character for all cases
7323         (previously was only done for two-char comment-end sequences).
7324         * syntax.c (forward-comment):
7325         Take value returned from `find_end_of_comment', rather than
7326         incrementing it.
7327         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7328         Properly deal with BUFFERP (syntax_cache.object)
7329
7330 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7331
7332         * alloc.c (Fgarbage_collect): 
7333         * alloc.c (make_bit_vector_from_byte_vector):
7334         -Wsign-compare-correctness.
7335
7336 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7337
7338         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7339         (XSETCHAR): Likewise.
7340         (XSETOBJ): Likewise.
7341
7342 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7343
7344         * mule-canna.c (canna-func-delete_previous): 
7345         Rename to canna-func-delete-previous.
7346
7347 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7348
7349         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7350
7351 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7352
7353         * font-lock.c (find_context): Fix C++ compile errors introduced by
7354         recent patch
7355
7356 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7357
7358         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7359         pragma, but earlier ones barf on the same pragma.
7360
7361 2001-02-06  Mike Sperber <mike@xemacs.org>
7362
7363         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7364         `configure-mule-lisp-directory'.
7365
7366 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7367
7368         Make sure dump-id.c is compiled in the same way as other .c's.
7369         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7370         * dump-id.h: Remove.
7371         * emacs.c: Move dump-id.h into dumper.h.
7372         * dumper.h: Move dump-id.h into dumper.h.
7373         * Makefile.in.in:
7374         Use standard .c.o rule for building dump-id.o.
7375         Remove preprocessor flags from link command.
7376         Add dump-id.o to ${otherobjs} if PDUMP.
7377
7378 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7379
7380         Port FSF 20.7 syntax table improvements.
7381         * syntax.c.
7382         * syntax.h.
7383
7384         Fixups for new syntax table stuff.
7385         * dired.c: Include syntax.c.
7386         (Fdirectory_files): Initialize regex_match_object and
7387         regex_emacs_buffer.
7388         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7389         and Fget_char_property.
7390
7391         Use ported FSF 20.7 syntax table improvements.
7392         * font-lock.c.
7393         * regex.c.
7394         * search.c.
7395         
7396 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7397
7398         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7399         Unixware's enum boolean from sys/types.h.
7400
7401 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7402
7403         Fix support for building with latest Purify.
7404         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7405         (PURIFY_FLAGS): Likewise.
7406
7407 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7408
7409         * fileio.c (lisp_string_set_file_times): New.
7410         * fileio.c (Fcopy_file): Use it.
7411         Fixes bug:
7412         (copy-file filename non-ascii-filename t t)
7413         ==> No such file or directory, non-ascii-filename
7414
7415 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7416
7417         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7418         USHRT_MAX seems clearer than ~0 anyways.
7419
7420 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7421
7422         dumper improvements.  Inspired by Olivier.
7423         * dumper.c (pdump_max_align): New.
7424         * dumper.c (pdump_add_entry): Use pdump_max_align.
7425         * dumper.c (pdump_get_entry_list): Likewise.
7426         * dumper.c (pdump_scan_by_alignment): Likewise.
7427         Don't iterate through unnecessary alignments.
7428         * dumper.c (pdump_file_get): No need to align result of malloc().
7429         * dumper.c (pdump_mallocadr): Remove.  
7430         The result of malloc() is guaranteed to be maximally aligned.
7431         * dumper.c: s/elmt/elt/g;
7432         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7433         * dumper.c (pdump_alert_undump_object): Likewise.
7434         * dumper.c (pdump_align_table): 
7435         Don't support alignments > 64.
7436         Store ALIGNOF's, not shift counts, in table.
7437
7438 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7439
7440         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7441         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7442         * systime.h: Use HAVE_UTIME.
7443         * sysdep.c (struct utimbuf): Remove.
7444         * sysdep.c (set_file_times): Prefer utime() to utimes().
7445         * config.h.in (HAVE_UTIME): New.
7446         * config.h.in (HAVE_UTIME_H): Remove.
7447         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7448
7449 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7450
7451         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7452
7453 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7454
7455         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7456
7457 2001-02-08  Martin Buchholz <martin@xemacs.org>
7458
7459         * XEmacs 21.2.44 "Thalia" is released.
7460
7461 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7462
7463         Fixes crashes in kill-emacs on some systems.
7464         * process-unix.c (unix_kill_child_process):
7465         It's OK for kill() to fail with ESRCH.
7466
7467 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7468
7469         Contortions to make .gdbinit tricks work on most systems.
7470         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7471         * alloc.c (dbg_valmask): Make non-const.
7472         * alloc.c (dbg_typemask): Make non-const.
7473         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7474         * alloc.c (dbg_valbits): Make non-const.
7475         * alloc.c (dbg_gctypebits): Make non-const.
7476         * .gdbinit (decode_object): Make it work with AIX cc.
7477
7478 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7479
7480         * elhash.c (make_general_lisp_hash_table):
7481         Use simpler and more efficient calloc to clear entries.
7482
7483 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7484
7485         * window.c (window_scroll): Work around an AIX C compiler bug.
7486         Fixes 'scroll-up' does nothing problem with xlC.
7487
7488 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7489
7490         * .gdbinit: Remove obsolete comment.
7491
7492 2001-01-31  Mike Alexander  <mta@arbortext.com>
7493
7494         * select.c (Fown_selection_internal): Set owned_p for device
7495         method correctly.
7496
7497 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7498
7499         Port to g++ 2.97.
7500         "not" cannot be used as a macro name as it is an operator in C++
7501         * config.h.in: Stop #defining `not'.
7502         * chartab.c (check_category_char): not ==> not_p
7503         * chartab.h: Likewise.
7504         * regex.c (re_match_2_internal): Likewise.
7505
7506 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7507
7508         * lisp-disunion.h: Fix up comments.
7509
7510 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7511
7512         * keymap.c (define_key_check_and_coerce_keysym):
7513         (syms_of_keymap):
7514         Support mouse-6 and mouse-7 bindings in the obvious way.
7515
7516 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7517
7518         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7519
7520 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7521
7522         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7523         Previous patch missed DEFVAR_INT_MAGIC.
7524         Make sure future DEFVAR_foo use correct types.
7525         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7526         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7527         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7528         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7529         * (DEFVAR_INT): Likewise.
7530         * redisplay.c (vertical_clip): Should be of type Fixnum.
7531         * redisplay.c (horizontal_clip): Likewise.
7532         * lisp.h (dump_add_opaque_int): New.
7533         (dump_add_opaque_fixnum): New.
7534
7535 2001-01-29  Andy Piper  <andy@xemacs.org>
7536
7537         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7538         since they can be eval'ed
7539
7540 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7541
7542         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7543         Oops, XEmacs redefines `class'.  Use `typename' instead.
7544
7545 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7546
7547         * dumper.c: Fix C++ compile errors.
7548
7549 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7550
7551         * tparam.c: Use correct prototypes.
7552
7553 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7554
7555         * sysproc.h: #include util.h for NetBSD's openpty.
7556
7557 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7558
7559         More 64-bit correctness.
7560         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7561         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7562         Fix up comments.
7563         This finally finishes the 64-bit SGI port.
7564         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7565         * symbols.c: Fix up comments and type casts.
7566         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7567         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7568         * symeval.h (Fixnum): New type.
7569         * symeval.h (symbol_value_type): Fix up comment.
7570
7571         * commands.h:
7572         * nt.c:
7573         * emacs.c:
7574         * data.c:
7575         * redisplay.c:
7576         * abbrev.c:
7577         * dired-msw.c:
7578         * event-Xt.c:
7579         * eldap.c:
7580         * window.c:
7581         * sound.c:
7582         * event-stream.c:
7583         * eval.c:
7584         * buffer.c:
7585         * mule-canna.c: A million DEFVAR_INTs here...
7586         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7587         * extents.c:
7588         * cmdloop.c:
7589         * lisp.h:
7590         * select-x.c:
7591         * console-x.h:
7592         * event-msw.c:
7593         * mule-wnnfns.c:
7594         * hpplay.c:
7595         * ralloc.c:
7596         * alloc.c:
7597         * keymap.c:
7598         * profile.c:
7599         s/int/Fixnum/g in DEFVAR_INT declarations.
7600
7601 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7602
7603         Port pdump to SGI alignment-sensitive environment.
7604         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7605         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7606         properly aligned.
7607         Define and use aligned reading and writing macros.
7608         Use buffered stdio instead of posix i/o for faster dumping.
7609         Eliminate kludgy 256 byte space for header.
7610         Read and write from dump file using structs for alignment safety.
7611         * dumper.c (pdump_align_stream): New.
7612         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7613         * dumper.c (PDUMP_READ_ALIGNED): New.
7614         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7615         * dumper.c (pdump_static_Lisp_Object): New struct.
7616         * dumper.c (pdump_static_pointer): New struct.
7617         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7618         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7619         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7620         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7621
7622         * dumper.c (pdump_backtrace):
7623         * dumper.c (pdump_get_indirect_count):
7624         * dumper.c (pdump_register_object):
7625         * dumper.c (pdump_register_struct):
7626         * dumper.c (pdump_reloc_one):
7627         * dumper.c (pdump_scan_by_alignment):
7628         * dumper.c (pdump_dump_from_root_struct_ptrs):
7629         * dumper.c (pdump_dump_opaques):
7630         * dumper.c (pdump_dump_rtables):
7631         * dumper.c (pdump_dump_from_root_objects):
7632         * dumper.c (pdump):
7633         * dumper.c (pdump_load_finish):
7634         Use aligned reading and writing.
7635
7636         * dumper.c (pdump_free): Make static.
7637         * dumper.c (pdump_hFile): Likewise.
7638         * dumper.c (pdump_hMap): Likewise.
7639
7640 2001-01-26  Martin Buchholz <martin@xemacs.org>
7641
7642         * XEmacs 21.2.43 "Terspichore" is released.
7643
7644 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7645
7646         Type fiddling for window_config.saved_windows_count
7647         * window.c (struct window_config): 
7648         Make saved_windows_count member unsigned.
7649         * window.c (sizeof_window_config_for_n_windows): 
7650         Make parameter unsigned.
7651         * window.c (mark_window_config):
7652         * window.c (window_config_equal):
7653         * window.c (free_window_configuration):
7654         * window.c (Fset_window_configuration):
7655         * window.c (count_windows):
7656         * window.c (Fcurrent_window_configuration):
7657         * window.c (reinit_vars_of_window):
7658         Update all callers and users.
7659
7660 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7661
7662         Alignment correctness for flexible arrays.
7663         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7664         Make alignment-correct. Add interesting comments.
7665         * alloc.c (size_vector):
7666         * alloc.c (make_vector_internal):
7667         * alloc.c (make_bit_vector_internal):
7668         * alloc.c (sweep_bit_vectors_1):
7669         * fns.c (size_bit_vector):
7670         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7671         * window.c (sizeof_window_config_for_n_windows): 
7672         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7673
7674 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7675
7676         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7677
7678 2001-01-23  Andy Piper  <andy@xemacs.org>
7679
7680         * select.c (Fown_selection_internal): pass owned_p
7681
7682         * select-msw.c (mswindows_own_selection): New Signature.
7683
7684         * console.h (struct console_methods): add owned_p to
7685         _own_selection.
7686
7687         * select-x.c (x_own_selection): pass owned_p
7688         (hack_motif_clipboard_selection): use owned_p
7689         (vars_of_select_x): new variable -
7690         x_selection_strict_motif_ownership.
7691
7692 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7693
7694         * specifier.h (specifier_data_offset): Remove pointless parens.
7695         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7696
7697 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7698
7699         Make Lisp_Object sizeof methods be alignment-correct.
7700         pdump must restore objects to the same alignment as the C compiler
7701         assumes.  It really matters on SGIs.
7702         * lstream.c (aligned_sizeof_lstream): New.
7703         (sizeof_lstream): Use aligned_sizeof_lstream.
7704         (Lstream_new): Likewise.
7705         * opaque.c (aligned_sizeof_opaque): New.
7706         (sizeof_opaque): Use aligned_sizeof_opaque.
7707         (make_opaque): Likewise.
7708         * specifier.c (aligned_sizeof_specifier): New.
7709         (sizeof_specifier): Use aligned_sizeof_specifier.
7710         (make_specifier_internal): Likewise.
7711
7712 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7713
7714         * lstream.h (struct lstream): Use max_align_t for trailing data.
7715         * specifier.h (struct Lisp_Specifier): Likewise.
7716
7717 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7718
7719         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7720         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7721         (CCL_SUSPEND): Likewise.
7722         (CCL_INVALID_CMD): Likewise.
7723         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7724         (ccl_driver): Likewise.
7725         (CCL_WRITE_CHAR): Macro hygiene.
7726         (CCL_WRITE_STRING): Macro hygiene.
7727
7728 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7729
7730         Port "portable" dumper to SunOS 4 and HP-UX.
7731         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7732         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7733         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7734
7735 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7736
7737         * lisp.h (ALIGNOF): A better definition for C++.
7738
7739 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7740
7741         Macro hygiene.
7742         Fix printf warnings: int format, long int arg.
7743         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7744         (PUSH_FAILURE_POINT): Use correct printf formats.
7745         (POP_FAILURE_POINT): Use correct printf formats.  
7746         Use do {...} while (0)
7747
7748 2001-01-20  Martin Buchholz <martin@xemacs.org>
7749
7750         * XEmacs 21.2.42 "Poseidon" is released.
7751
7752 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7753
7754         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7755
7756 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7757
7758         De-kludgify FIXED_TYPE free list frobbing.
7759         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7760         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7761         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7762         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7763         * alloc.c (LRECORD_FREE_P): New.
7764         * alloc.c (MARK_LRECORD_AS_FREE): New.
7765         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7766         * alloc.c (STRUCT_FREE_P): Deleted.
7767         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7768         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7769         * alloc.c (STRING_CHARS_FREE_P): New.
7770         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7771         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7772         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7773         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7774         * alloc.c (resize_string): Use new definitions.
7775         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7776         * alloc.c (verify_string_chars_integrity): Use new definitions.
7777         * alloc.c (compact_string_chars): Use new definitions.
7778         * alloc.c: Update monster comments.
7779         * lrecord.h (lrecord_type): Add some new lrecord types for
7780         alloc.c's use.
7781
7782 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7783
7784         Improve alignment hackery.
7785         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7786         (max_align_t): Moved from opaque.h - general purpose.
7787         (ALIGN_PTR): Use size_t, not long.
7788         * opaque.h (max_align_t): Move to lisp.h.
7789
7790 2001-01-18  Norbert Koch  <nk@LF.net>
7791
7792         * gui.h: Fix and add prototypes to fix build problems.
7793
7794 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7795
7796         temacs is going away, so `dump-temacs' is now a bad name.
7797         * .dbxrc (dump-temacs): Rename to `dmp'.
7798         * .gdbinit (dump-temacs): Rename to `dmp'.
7799
7800 2001-01-17  Andy Piper  <andy@xemacs.org>
7801
7802         * glyphs.c (print_image_instance): comment to make martin happy.
7803
7804         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7805         change.
7806
7807         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7808         activation.
7809         (mswindows_tab_control_redisplay): warning suppression.
7810
7811         * glyphs-widget.c (widget_update): re-write to cope with updated
7812         items.
7813         (widget_instantiate): use new gui_item functions.
7814         (tab_control_update): deleted.
7815         (progress_gauge_update): deleted.
7816         (image_instantiator_progress_guage): take out update reference.
7817         (image_instantiator_tree_view): ditto.
7818         (image_instantiator_tab_control): ditto.
7819
7820         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7821         Right the new way.
7822         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7823         return whether anything was changed.
7824         (update_gui_item_keywords): as it sounds.
7825
7826         * gui.h: declare widget_gui_parse_item_keywords.
7827
7828         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7829         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7830
7831 2001-01-17  Martin Buchholz <martin@xemacs.org>
7832
7833         * XEmacs 21.2.41 "Polyhymnia" is released.
7834
7835 2001-01-16  Didier Verna  <didier@xemacs.org>
7836
7837         * glyphs.c (image_instantiate): don't use fallbacks when
7838         instantiating a face's background pixmap by inheritance.
7839
7840 2001-01-14  Mike Sperber <mike@xemacs.org>
7841
7842         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7843         Conditionalize accordingly.
7844
7845 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7846
7847         * dumper.c (pdump_file_get): Fix a compiler warning.
7848
7849 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7850
7851         Make Purify happy when pdumping.
7852         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7853         iniitalizing all bits of new lisp object memory.
7854         * symbols.c (Fmake_local_variable): Likewise.
7855         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7856         * symbols.c (Fdefvaralias): Likewise.
7857         * mule-charset.c (vars_of_mule_charset): Likewise.
7858
7859 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7860         Add the `-nd' flag when running pre-dump operations under the debugger.
7861         * .dbxrc (run-temacs): Add `-nd'.
7862         * .dbxrc (update-elc): Likewise.
7863         * .dbxrc (dump-temacs): Likewise.
7864         * .gdbinit (run-temacs): Likewise.
7865         * .gdbinit (check-temacs): Likewise.
7866         * .gdbinit (update-elc): Likewise.
7867         * .gdbinit (dump-temacs): Likewise.
7868
7869 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7870
7871         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7872         export OBJECT_MODE=64
7873         configure --pdump --use-union-type=no
7874         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7875         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7876
7877         * miscplay.c (sndcnv8U_2mono):
7878         Avoid two uses of `++' in the same expression.
7879         Suppresses a GCC warning.
7880
7881 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7882
7883         Make sure future compilers don't miscompile alloc.c.
7884         * alloc.c:
7885         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7886         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7887
7888 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7889
7890         * dumper.c: A little post-pdump-rename comment fixup.
7891
7892 2001-01-09  Jerry James  <james@eecs.ku.edu>
7893
7894         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7895
7896 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7897
7898         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7899         script:
7900         #!/bin/sh
7901         replace_symbol () {
7902           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7903         }
7904
7905         replace_symbol pdump_wire_lists pdump_weak_object_chains
7906         replace_symbol pdump_wire_list dump_add_weak_object_chain
7907
7908         replace_symbol pdump_wires pdump_root_objects
7909         replace_symbol pdump_wire dump_add_root_object
7910
7911         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7912         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7913
7914         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7915         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7916         replace_symbol dumpstructinfo pdump_root_struct_ptr
7917         replace_symbol dumpstruct dump_add_root_struct_ptr
7918
7919         replace_symbol dumpopaque dump_add_opaque
7920         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7921         replace_symbol dumpopaqueinfos pdump_opaques
7922         replace_symbol dumpopaqueinfo pdump_opaque
7923
7924         replace_symbol nb_structdump nb_root_struct_ptrs
7925         replace_symbol nb_opaquedump nb_opaques
7926
7927         replace_symbol align_table pdump_align_table
7928         replace_symbol dump_header pdump_header
7929
7930         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7931         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7932
7933
7934 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7935
7936         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7937         optimizing bytecount_to_charcount().
7938
7939 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7940
7941         * config.h.in:
7942         (HAVE_DLFCN_H): Removed.
7943         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7944
7945 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7946
7947         Portable dumper maintainability improvements.
7948         * alloc.c (staticpro):
7949         * alloc.c (staticpro_nodump):
7950         * alloc.c (garbage_collect_1):
7951         * alloc.c (reinit_alloc_once_early):
7952         * alloc.c (init_alloc_once_early):
7953         * alloc.c: Move dumper functions to alloc.c.
7954         * dumper.c (pdump_backtrace):
7955         * dumper.c (pdump_dump_structs):
7956         * dumper.c (pdump_dump_opaques):
7957         * dumper.c (pdump_dump_rtables):
7958         * dumper.c (pdump_dump_wired):
7959         * dumper.c (pdump):
7960         * dumper.c (pdump_load_check):
7961         * dumper.c (pdump_load_finish):
7962         * dumper.c (pdump_file_unmap):
7963         * dumper.c (pdump_file_get):
7964         * dumper.c (pdump_resource_free):
7965         * dumper.c (pdump_resource_get):
7966         * dumper.c (pdump_file_free):
7967         * dumper.c (pdump_file_try):
7968         * dumper.c (pdump_load):
7969         Remove fixed size limits on staticpro(), staticpro_nodump(),
7970         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7971         Remove custom code for dumping lrecord_implementations_table - use
7972         dumpopaque instead.
7973         Remove (most of the) custom code for dumping staticpros - dump it
7974         like any other dynarr.
7975
7976         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7977         * dumper.c: Moved functions from alloc.c.
7978         * alloc.c (dumpstruct): Moved to dumper.c.
7979         * alloc.c (dumpopaque): Likewise.
7980         * alloc.c (pdump_wire): Likewise.
7981         * alloc.c (pdump_wire_list): Likewise.
7982
7983         * lisp.h (Dynarr_sizeof): New.
7984         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7985         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7986         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7987
7988         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7989         * lisp.h (dumpopaque): ditto.
7990         * lisp.h (pdump_wire): ditto.
7991         * lisp.h (pdump_wire_list): ditto.
7992
7993 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7994
7995         * make-src-depend (PrintPatternDeps):
7996         Use `sort' to make output independent of perl version.
7997
7998 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7999
8000         Port to Netbsd 1.5.
8001         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8002         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8003
8004 2001-01-03  Didier Verna  <didier@xemacs.org>
8005
8006         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8007         that `focus_frame' is alive before thinking of calling
8008         `redisplay_redraw_cursor' on it.
8009
8010 2001-01-08  Martin Buchholz <martin@xemacs.org>
8011
8012         * XEmacs 21.2.40 is released.
8013
8014 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8015
8016         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8017
8018 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8019
8020         * alloc.c (dbg_valmask): Make const.
8021         * alloc.c (dbg_typemask): Make const.
8022         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8023         * alloc.c (dbg_valbits): Make const.
8024         * alloc.c (dbg_gctypebits): Make const.
8025
8026 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8027
8028         * redisplay-x.c (x_bevel_area):
8029         redisplay.h (struct rune):
8030         Typo fixes in comments.
8031
8032 2001-01-05  Andy Piper  <andy@xemacs.org>
8033
8034         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8035         adjustment.
8036
8037         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8038
8039 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8040
8041         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8042
8043         * mule-ccl.c (stack_idx_of_map_multiple):
8044         Non const global data must not be initialized!
8045         Found by MIYASHITA Hisashi.
8046
8047 2001-01-02  Andy Piper  <andy@xemacs.org>
8048
8049         * frame.c (change_frame_size): make sure frame size is always
8050         marked as changed.
8051
8052         * glyphs.c (image_instance_layout): minor code reuse.
8053
8054         * window.c (Fcurrent_window_configuration): revert previous
8055         change.
8056
8057 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8058
8059         * glyphs.h:
8060         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8061
8062 2000-12-31  Andy Piper  <andy@xemacs.org>
8063
8064         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8065         when widget gets unmapped.
8066
8067         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8068         function. Make sure widgets losing focus don't just drop it.
8069         (handle_focus_event_1): record the widget with focus.
8070
8071 2000-12-31  Andy Piper  <andy@xemacs.org>
8072
8073         * window.c (allocate_window): use
8074         make_image_instance_cache_hash_table.
8075         (make_dummy_parent): ditto.
8076         (Fset_window_configuration): ditto.
8077
8078         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8079
8080         * glyphs.c (process_image_string_instantiator): use
8081         INSTANTIATOR_TYPE.
8082         (get_image_instantiator_governing_domain): ditto.
8083         (normalize_image_instantiator): ditto.
8084         (instantiate_image_instantiator): ditto.
8085         (make_image_instance_1): ditto.
8086         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8087         (instantiator_eq_equal): new function for use with instance hash
8088         tables.
8089         (instantiator_eq_hash): ditto.
8090         (make_image_instance_cache_hash_table): create a suitable hash
8091         table for storing image instances.
8092
8093         * elhash.h (hash_table_weakness): new internal weakness type
8094         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8095         declare new functions.
8096
8097         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8098         another weakness type for glyphs.
8099         (make_standard_lisp_hash_table): new function split out from
8100         make_general_lisp_hash_table.
8101         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8102         (hash_table_instantiate): ditto.
8103         (Fmake_hash_table): ditto.
8104
8105 2000-12-31  Martin Buchholz <martin@xemacs.org>
8106
8107         * XEmacs 21.2.39 is released.
8108
8109 2000-12-29  Andy Piper  <andy@xemacs.org>
8110
8111         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8112
8113         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8114         the frame has changed so that we pick up geometry changes such as
8115         menubar visibility.
8116
8117 2000-12-28  Andy Piper  <andy@xemacs.org>
8118
8119         * lastfile.c (my_ebss): make a char array so we can pad the
8120         bss. Fixes cygwin unexec.
8121
8122         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8123
8124 2000-12-26  Andy Piper  <andy@xemacs.org>
8125
8126         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8127         comments and try and be more precise about a non-/SIGIO world.
8128         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8129         SIGIO.
8130
8131         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8132         we don't normalize to zero width or height.
8133
8134 2000-12-24  Andy Piper  <andy@xemacs.org>
8135
8136         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8137
8138 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8139
8140         * s/sco5.h: SCO 5 has pty support.
8141
8142 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8143
8144         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8145         input-method-xlib.c contains whole contents of input-method-xfs.c,
8146         so we can use input-method-xlib.c's code for USE_XFONTSET
8147         using #ifdefs.
8148         * input-method-xfs.c: removed.
8149
8150 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8151
8152         * file-coding.h (enum coding_category_type): reorder enumerators to
8153         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8154         (now one greater than largest real coding_category_type enumerator).
8155         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8156         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8157         Fcoding_category_list, Fset_coding_priority_list,
8158         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8159         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8160
8161 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8162
8163         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8164         * redisplay-output.c (redisplay_output_window): Clear top of window
8165         when face is changed.
8166         * redisplay-x.c (x_redraw_exposed_window): Call
8167         redisplay_clear_top_of_window.
8168         * redisplay.h: Publish redisplay_clear_top_of_window.
8169
8170 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8171
8172         * buffer.c (Fkill_buffer): Map over all devices.
8173         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8174         (list_windows): New function.
8175         (list_all_windows): Ditto.
8176         (Freplace_buffer_in_windows): Use them.
8177
8178 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8179
8180         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8181         (Fopen_database): Use `db_create' instead of `db_open'.
8182         (syms_of_database): Initialize Qqueue.
8183
8184 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8185
8186         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8187         buffer_local_face_property.
8188         * buffer.h (struct buffer): New member buffer_local_face_property.
8189         * window.c (Fset_window_buffer):  Mark window's face as changed
8190         when buffer has buffer local face.
8191         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8192         * objects.c (color_after_change): Set buffer_local_face_property
8193         when locale of face specifier is buffer.
8194         * objects.c (font_after_change): Ditto.
8195         * objects.c (face_boolean_after_change): Ditto.
8196         * glyphs.c (image_after_change): Ditto.
8197
8198 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8199
8200         * nt.c (mswindows_fstat): Report file permissions, volume serial
8201         number, etc. Code adapted from FSF Emacs 20.7.
8202
8203 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8204
8205         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8206         of stat when we don't have symbolic links, to make sure
8207         mswindows_stat is called on mswindows.
8208
8209 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8210
8211         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8212
8213 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8214
8215         * doprnt.c (emacs_doprnt_1): More printing fixes.
8216         Make printing of numbers compatible with libc and FSF Emacs.
8217         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8218         Use the system printf to do most of the hard work of formatting,
8219         instead of doprnt_1().
8220         Calculate memory to allocate for format string.
8221         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8222         (doprnt_1): Cleaner code and documentation.
8223
8224 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8225
8226         * Makefile.in.in: Use the loop variable to install headers.
8227
8228 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8229
8230         * window.c (Fsplit_window): Don't invalidate face cache.
8231
8232 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8233
8234         * minibuf.c (Fall_completions): Undo the previous change
8235         which removed checking elements start with space.
8236
8237 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8238
8239         * mule-canna.c: Didier suppression.
8240
8241 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8242
8243         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8244         (warning suppression).  Add English comment translations.
8245
8246 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8247
8248         * unexelfsgi.c (unexec): Better test for mmap failure.
8249
8250 2000-12-05  Martin Buchholz <martin@xemacs.org>
8251
8252         * XEmacs 21.2.38 is released.
8253
8254 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8255
8256         * redisplay.c (bar-cursor): Make a user variable.
8257
8258         * symsinit.h: Add init_postgresql_from_environment.
8259
8260 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8261
8262         * regex.c: Convert to clean C.
8263
8264 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8265
8266         * realpath.c:
8267         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8268         initialization.
8269         (sys_readlink): renamed to system_readlink to avoid conflict with
8270         the other sys_readlink.
8271
8272 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8273
8274         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8275
8276 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8277
8278         * postgresql.c (init_postgresql_from_environment): new function.
8279         (vars_of_postgresql): Move code initializing Lisp variables out and
8280         into init_postgresql_from_environment.
8281         emacs.c (main_1): Call init_postgresql_from_environment if and only
8282         if running a dumped XEmacs.
8283
8284 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8285
8286         * buffer.c: Make find-file-compare-truenames default to true on
8287         windows.
8288
8289         * realpath.c (win32_abs_start):
8290         (cygwin_readlink):
8291         (win32_readlink): New functions.
8292         (xrealpath): Return really real filenames on windows.
8293
8294         * fileio.c (Ffile_truename): Make file-truename work on windows.
8295
8296 2000-11-29  Didier Verna  <didier@xemacs.org>
8297
8298         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8299         * faces.c (update_face_cachel_data): use it.
8300         * faces.c (add_face_cachel): use it. Complete background pixmap
8301         frobbing in face cache if `update_face_cachel_data' has not done so.
8302
8303 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8304
8305         * search.c (string_match_1): Don't set last_thing_searched
8306         when search failed.
8307
8308 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8309
8310         * buffer.c: Include casetab.h
8311         (common_init_complex_vars_of_buffer): Use new case-table object.
8312         * buffer.h: Include casetab.h
8313         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8314         (DOWNCASE_TABLE_OF): Ditto.
8315         * bufslots.h: Remove char-tables and add case-table.
8316         * casetab.c: Include casetab.h
8317         (CASE_TABLE_P): Removed.
8318         (mark_case_table): New function.
8319         (allocate_case_table): New function.
8320         (Fcase_table_p): Use new case-table.
8321         (case_table_char): New function.
8322         (Fget_case_table): Ditto.
8323         (Fput_case_table): Ditto.
8324         (Fput_case_table_pair): Ditto.
8325         (Fcopy_case_table): Ditto.
8326         (Fcurrent_case_table): Return case-table.
8327         (Fstandard_case_table): Return case-table.
8328         (Fset_case_table): Fix doc-string.
8329         (set_case_table): Use case-table
8330         (syms_of_casetab): DEFSUBR new functions.
8331         (complex_vars_of_casetab): Set up standard case-table.
8332         * casetab.h: New file.
8333         * editfns.c: Include casetab.h
8334         (Fcompare_buffer_substrings): Use case-table.
8335         * inline.c: Include casetab.h
8336         * lisp.h: Remove bogus extern.
8337         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8338         * search.c: Include casetab.h
8339         (TRANSLATE_ASCII): Removed.
8340         (TRANSLATE): Unconditionally translate character.
8341         (looking_at_1): Use case-table.
8342         (string_match_1): Ditto.
8343         (fast_string_match): Ditto.
8344         (search_command): Ditto.
8345         (search_buffer): Separate boyer_moore.  Check whether
8346         boyer_moore is possible.
8347         (simple_search): New function.
8348         (boyer_moore): Separated from search_buffer. Translate char.
8349
8350 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8351
8352         * regex.c (RE_TR_ASCII): Removed.
8353         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8354         (PATFETCH): Call PATFETCH_RAW.
8355         (PATFETCH_RAW): Fetch Emchar.
8356         (PATUNFETCH): Decrement charptr.
8357         (GET_BUFFER_SPACE): Rename b to buf_end.
8358         (BUF_PUSH): Ditto.
8359         (BUF_PUSH_2): Ditto.
8360         (BUF_PUSH_3): Ditto.
8361         (EXTEND_BUFFER): Ditto.
8362         (SET_LIST_BIT): Ditto.
8363         (regex_compile): Ditto.  Translate non ASCII char.
8364         (compile_range): Ditto.
8365         (re_search_2): Ditto.
8366         (re_match_2_internal): Compare Emchar.
8367         (bcmp_translate): Ditto.
8368
8369 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8370
8371         * lisp.h (basic char/int typedefs):  comment improvement.
8372
8373 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8374
8375         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8376         unstomp inhibit_site_lisp.  Improve comments.
8377
8378 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8379
8380         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8381
8382 2000-11-28  Andy Piper  <andy@xemacs.org>
8383
8384         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8385         clipped display for windows in the gutter also.
8386         (redisplay_display_boxes_in_window_p): change semantics of return
8387         codes to be more intuitive.
8388
8389         * gutter.h: declare display_boxes_in_gutter_p.
8390
8391         * gutter.c (display_boxes_in_gutter_p): new function for
8392         redisplay.
8393
8394 2000-11-22  Andy Piper  <andy@xemacs.org>
8395
8396         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8397         autodetect domain.
8398
8399 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8400
8401         * callproc.c (Fold_call_process_internal):
8402         * gpm.c (Freceive_gpm_event):
8403         (tty_get_foreign_selection): Might be just warning supression.
8404         * fileio.c (Fwrite_region_internal):
8405         (Fset_visited_file_modtime):
8406         * keymap.c (event_matches_key_specifier_p):
8407         Initialize GCPROed variable.
8408
8409         * menubar-x.c (command_builder_find_menu_accelerator):
8410         Initialize before use.
8411
8412 2000-11-23  Andy Piper  <andy@xemacs.org>
8413
8414         * unexcw.c (unexec): make the resulting executable executable.
8415
8416 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8417
8418         * doc.c (get_doc_string):
8419         Use size_t, not int, for result of XSTRING_LENGTH.
8420
8421         * cmds.c (Fdelete_char):
8422         * cmds.c (Fpoint_at_eol):
8423         * cmds.c (Fself_insert_command):
8424         Use EMACS_INT, not int, for result of XINT.
8425         Someday, someone will want to insert more than 2**31 identical characters.
8426
8427         * cmds.c (Fdelete_char):
8428         * cmds.c (Fdelete_backward_char):
8429         * syntax.c (Fforward_word):
8430         * syntax.c (Fforward_comment):
8431         Make COUNT argument optional, for consistency with forward-char et al.
8432
8433 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8434
8435         * lisp.h:
8436         * print.c (long_to_string):
8437         Return a useful value: the pointer at end of data written.
8438
8439         * doprnt.c:
8440         Use `static const char * const' for constant strings.
8441         (union printf_arg): Delete `i', `ui' members.
8442         (get_doprnt_args):
8443         (emacs_doprnt_1):
8444         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8445         Do all printf-ing via the `l' specifier.
8446         Use EMACS_INT instead of int.
8447         Optimize.
8448
8449 2000-11-20  Didier Verna  <didier@xemacs.org>
8450
8451         * faces.c (update_face_cachel_data): don't frob the background
8452         pixmap when the window is being created. The face is needed but
8453         does not exist yet.
8454
8455 2000-11-20  Andy Piper  <andy@xemacs.org>
8456
8457         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8458         messing with a debug environment.
8459
8460 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8461
8462         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8463
8464 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8465
8466         * casetab.c (Fcase_table_p): Fix compile error and crash.
8467
8468 2000-11-18  Philip Aston  <philipa@mail.com>
8469
8470         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8471
8472 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8473
8474         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8475         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8476
8477 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8478
8479         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8480         * unexelf.c: Use HAVE_ELF_H.
8481         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8482         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8483         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8484         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8485         for testing.
8486         So this is an unexelfsgi.c from a different line of development.
8487
8488 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8489
8490         * regex.c (RE_TR_ASCII): New function.
8491         (RE_TRANSLATE): Call it.
8492
8493 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8494
8495         * buffer.h (TRT_TABLE_OF): Remove assert.
8496         (IN_TRT_TABLE_DOMAIN): Removed.
8497
8498 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8499
8500         * free-hook.c (log_gcpro):
8501         (show_gcprohist): Add support for GCPRO5.
8502
8503 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8504
8505         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8506
8507 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8508
8509         * symeval.h: Declare flush_all_buffer_local_cache.
8510
8511         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8512         (flush_buffer_local_cache): Added.
8513         (flush_all_buffer_local_cache): Added.
8514
8515         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8516
8517         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8518         (pdump_dump_data): Ditto.
8519         (pdump_reloc_one): Ditto.
8520         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8521         before dumping.
8522
8523
8524 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8525
8526         * buffer.c: Remove if 0'ed entry.
8527         * buffer.h: Rewrite TRT to use char-table.
8528         * bufslots.h: Remove mirror tables.
8529         * casetab.c: Remove mirror tables.
8530         (CASE_TABLE_P): New macro.
8531         (Fcase_table_p): Element of a case table is string or char-table.
8532         (make_mirror_trt_table): Removed.
8533         (set_case_table): Setup char-table from strings for backward
8534         compatibility.
8535         * dired.c (Fdirectory_files):
8536         * dired-msw.c: (mswindows_get_files):
8537         * lisp.h: Change prototype of re_pattern_buffer.
8538         * regex.c: (RE_TRANSLATE): New macro.
8539         (TRANSLATE_P): Ditto.
8540         Change translate to type RE_TRANSLATE_TYPE.
8541         * regex.h: Define RE_TRANSLATE_TYPE
8542         * search.c (TRANSLATE): New macro.
8543         (TRANSLATE_ASCII): New macro.
8544         Translate table is changed to Lisp_Object.
8545         (signal_failure): Inhibit return.
8546
8547 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8548
8549         * device-msw.c:
8550         * eldap.c:
8551         * event-Xt.c:
8552         * event-stream.c:
8553         * print.c:
8554         Do UNGCPRO before return.
8555
8556 2000-11-14  Martin Buchholz <martin@xemacs.org>
8557
8558         * XEmacs 21.2.37 is released.
8559
8560 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8561
8562         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8563         Add comments about discarded return value.
8564
8565 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8566
8567         * callint.c:
8568         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8569
8570 2000-10-27  Andy Piper  <andy@xemacs.org>
8571
8572         * gutter.c (Fset_default_gutter_position): default left and right
8573         gutters to visible.
8574         (calculate_gutter_size): calculate resonable heuristic for left
8575         and right gutter sizes.
8576         (specifier_vars_of_gutter): change left and right gutter sizes to
8577         autodetect.
8578         (calculate_gutter_size_from_display_lines): new function.
8579         (output_gutter): check for resizing on left and right gutters.
8580         (clear_gutter): don't special case top and left gutters.
8581         (specifier_vars_of_gutter): use new signature for
8582         set_specifier_caching.
8583
8584         * glyphs-x.c (x_redisplay_widget): spelling fix.
8585         * glyphs.c (specifier_vars_of_glyphs):
8586         * menubar.c (specifier_vars_of_menubar):
8587         * redisplay.c (specifier_vars_of_redisplay):
8588         * toolbar.c (specifier_vars_of_toolbar):
8589         * window.c (specifier_vars_of_window):
8590         * scrollbar.c (specifier_vars_of_scrollbar):
8591         (complex_vars_of_scrollbar): use new signature for
8592         set_specifier_caching.
8593
8594         * specifier.c (set_specifier_caching): include recompute flag.
8595         (recompute_one_cached_specifier_in_window): always recompute if
8596         flag set.
8597         (recompute_one_cached_specifier_in_frame): ditto.
8598
8599         * specifier.h (struct specifier_caching): add recompute flag.
8600
8601 2000-10-24  Andy Piper  <andy@xemacs.org>
8602
8603         * unexcw.c (copy_executable_and_dump_data_section): add new
8604         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8605         5.0 happy.
8606
8607 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8608
8609         * console-x.h (x_device): New member modifier_release_time.
8610         * event-Xt.c (x_handle_sticky_modifiers):
8611         Bound interval modifier keys are sticky.
8612         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8613         * events.h: extern it.
8614
8615 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8616
8617         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8618
8619 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8620
8621         * event-stream.c (execute_command_event): Preserve current_events
8622         and the like when event is misc-user-event.
8623         Inhibit quit during the call to maybe_echo_keys.
8624
8625 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8626
8627         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8628         symlink when buffer is killed.
8629         (inhibit_clash_detection): New variable.
8630
8631 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8632
8633         * console.c (Fset_input_method): Trigger redisplay on tty.
8634
8635 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8636
8637         * process.c (Fprocess_status): Revert to previous behavior:
8638         (process-status "nosuchprocess") ==> nil
8639
8640 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8641
8642         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8643         Work around another GCC 2.95.2 optimizer bug.
8644
8645 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8646
8647         * process.c (Fget_process): Use LIST_LOOP_2.
8648         (kill_buffer_processes): Use LIST_LOOP_2.
8649
8650         * minibuf.c (Fall_completions):
8651         Delete old non-functional code for FSF fourth argument.
8652
8653         * frame.c (frame_matches_frame_spec):
8654         Renamed from `frame_matches_frametype'.  Update all callers.
8655         (device_matches_device_spec):
8656         Renamed from 'device_matches_console_spec'.  Update all callers.
8657
8658         * doc.c (Fsubstitute_command_keys):
8659         Remove buffer overflow crash.  Small code cleanups.
8660
8661         * casetab.c (check_case_table): Simpler code.
8662
8663         * window.c (Freplace_buffer_in_windows):
8664         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8665         (and similar implementation) as Fdelete_windows_on.
8666         Update all callers.
8667
8668         * alloc.c (Fmake_list):
8669         * alloc.c (make_vector):
8670         * alloc.c (Fmake_vector):
8671         * alloc.c (make_bit_vector):
8672         * alloc.c (Fmake_bit_vector):
8673         * alloc.c (Fbit_vector):
8674         * alloc.c (Fmake_string):
8675         * alloc.c (Fpurecopy):
8676         * alloc.c (Fmemory_limit):
8677         * buffer.c:
8678         * buffer.c (Fget_buffer):
8679         * buffer.c (Fkill_buffer):
8680         * buffer.c (complex_vars_of_buffer):
8681         * bytecode.c (Fcompiled_function_stack_depth):
8682         * callint.c (Fprefix_numeric_value):
8683         * event-stream.c:
8684         * event-stream.c (Fread_key_sequence):
8685         * casetab.c:
8686         * casetab.c (Fcase_table_p):
8687         * casetab.c (check_case_table):
8688         * casetab.c (Fset_case_table):
8689         * casetab.c (Fset_standard_case_table):
8690         * chartab.c:
8691         * chartab.c (Fchar_table_type):
8692         * chartab.c (Freset_char_table):
8693         * chartab.c (Fget_char_table):
8694         * chartab.c (Fget_range_char_table):
8695         * chartab.c (Fput_char_table):
8696         * chartab.c (Fmap_char_table):
8697         * chartab.c (Fcategory_table_p):
8698         * chartab.c (Fcheck_category_at):
8699         * chartab.c (Fchar_in_category_p):
8700         * chartab.c (Fcategory_table):
8701         * chartab.c (Fcopy_category_table):
8702         * chartab.c (Fset_category_table):
8703         * chartab.c (Fcategory_designator_p):
8704         * chartab.c (Fcategory_table_value_p):
8705         * cmds.c (Fdelete_char):
8706         * cmds.c (Fdelete_backward_char):
8707         * cmds.c (Fself_insert_command):
8708         * cmds.c (Fself_insert_internal):
8709         * console.c (Fvalid_console_type_p):
8710         * console.c (Fcdfw_console):
8711         * console.c (Fconsole_type):
8712         * console.c (Fconsole_name):
8713         * console.c (Fconsole_device_list):
8714         * console.c (Fconsole_on_window_system_p):
8715         * data.c:
8716         * data.c (Feq):
8717         * data.c (Fold_eq):
8718         * data.c (Fsubr_interactive):
8719         * data.c (Fchar_to_int):
8720         * data.c (Fint_to_char):
8721         * data.c (Fsetcar):
8722         * data.c (Fsetcdr):
8723         * data.c (Fnumber_to_string):
8724         * data.c (Fstring_to_number):
8725         * data.c (Frem):
8726         * database.c (mark_database):
8727         * database.c (finalize_database):
8728         * database.c (Fdatabase_live_p):
8729         * database.c (Fdatabasep):
8730         * device-x.c (Fx_get_resource):
8731         * device.c (Fdfw_device):
8732         * dired.c:
8733         * dired.c (Ffile_name_completion):
8734         * dired.c (Ffile_name_all_completions):
8735         * dired.c (Fuser_name_completion):
8736         * dired.c (Fuser_name_completion_1):
8737         * dired.c (Fuser_name_all_completions):
8738         * doc.c (Fdocumentation):
8739         * doc.c (Fdocumentation_property):
8740         * doc.c (Fsubstitute_command_keys):
8741         * editfns.c:
8742         * editfns.c (Fchar_to_string):
8743         * editfns.c (Fstring_to_char):
8744         * editfns.c (Ftemp_directory):
8745         * editfns.c (Finsert_char):
8746         * editfns.c (Fbuffer_substring_no_properties):
8747         * editfns.c (Fnarrow_to_region):
8748         * editfns.c (Fchar_equal):
8749         * editfns.c (Fchar_Equal):
8750         * editfns.c (Ftranspose_regions):
8751         * emacs.c (Fdump_emacs):
8752         * eval.c (Fthrow):
8753         * eval.c (Fcommand_execute):
8754         * eval.c (Fautoload):
8755         * eval.c (Fbacktrace):
8756         * eval.c (Fbacktrace_frame):
8757         * events.c:
8758         * events.c (Fcopy_event):
8759         * events.c (Fcharacter_to_event):
8760         * events.c (Fevent_button):
8761         * events.c (Fevent_process):
8762         * extents.c:
8763         * extents.c (Fnext_extent_change):
8764         * extents.c (Fextent_property):
8765         * faces.c (Ffacep):
8766         * faces.c (Fmake_face):
8767         * file-coding.c:
8768         * file-coding.c (Fencode_shift_jis_char):
8769         * file-coding.c (Fencode_big5_char):
8770         * fileio.c (Ffile_name_directory):
8771         * fileio.c (Ffile_name_nondirectory):
8772         * fileio.c (Ffile_name_as_directory):
8773         * fileio.c (Fdirectory_file_name):
8774         * fileio.c (Ffile_truename):
8775         * fileio.c (Fsubstitute_in_file_name):
8776         * fileio.c (Ffile_modes):
8777         * fileio.c (Fset_file_modes):
8778         * fileio.c (Fset_default_file_modes):
8779         * fileio.c (Fverify_visited_file_modtime):
8780         * floatfns.c (Facos):
8781         * floatfns.c (Fasin):
8782         * floatfns.c (Fatan):
8783         * floatfns.c (Fcos):
8784         * floatfns.c (Fsin):
8785         * floatfns.c (Ftan):
8786         * floatfns.c (Fbessel_j0):
8787         * floatfns.c (Fbessel_j1):
8788         * floatfns.c (Fbessel_jn):
8789         * floatfns.c (Fbessel_y0):
8790         * floatfns.c (Fbessel_y1):
8791         * floatfns.c (Fbessel_yn):
8792         * floatfns.c (Ferf):
8793         * floatfns.c (Ferfc):
8794         * floatfns.c (Flog_gamma):
8795         * floatfns.c (Fexp):
8796         * floatfns.c (Fexpt):
8797         * floatfns.c (Flog):
8798         * floatfns.c (Flog10):
8799         * floatfns.c (Fsqrt):
8800         * floatfns.c (Fcube_root):
8801         * floatfns.c (Facosh):
8802         * floatfns.c (Fasinh):
8803         * floatfns.c (Fatanh):
8804         * floatfns.c (Fcosh):
8805         * floatfns.c (Fsinh):
8806         * floatfns.c (Ftanh):
8807         * floatfns.c (Fabs):
8808         * floatfns.c (Ffloat):
8809         * floatfns.c (Flogb):
8810         * floatfns.c (Fceiling):
8811         * floatfns.c (Ffloor):
8812         * floatfns.c (Fround):
8813         * floatfns.c (Ftruncate):
8814         * floatfns.c (Ffceiling):
8815         * floatfns.c (Fffloor):
8816         * floatfns.c (Ffround):
8817         * floatfns.c (Fftruncate):
8818         * fns.c (Fstring_equal):
8819         * fns.c (Fstring_lessp):
8820         * fns.c (concat2):
8821         * fns.c (concat3):
8822         * fns.c (vconcat2):
8823         * fns.c (vconcat3):
8824         * fns.c (Fsubstring):
8825         * fns.c (Fassoc):
8826         * fns.c (Fold_assoc):
8827         * fns.c (assoc_no_quit):
8828         * fns.c (Fassq):
8829         * fns.c (Fold_assq):
8830         * fns.c (assq_no_quit):
8831         * fns.c (Frassoc):
8832         * fns.c (Fold_rassoc):
8833         * fns.c (Frassq):
8834         * fns.c (Fold_rassq):
8835         * fns.c (rassq_no_quit):
8836         * fns.c (Fremassoc):
8837         * fns.c (remassoc_no_quit):
8838         * fns.c (Fremassq):
8839         * fns.c (remassq_no_quit):
8840         * fns.c (Fremrassoc):
8841         * fns.c (Fremrassq):
8842         * fns.c (remrassq_no_quit):
8843         * fns.c (Fsort):
8844         * fns.c (Fplist_get):
8845         * fns.c (Fplist_put):
8846         * fns.c (Fplist_remprop):
8847         * fns.c (Fplist_member):
8848         * fns.c (Flax_plist_get):
8849         * fns.c (Flax_plist_put):
8850         * fns.c (Flax_plist_remprop):
8851         * fns.c (Flax_plist_member):
8852         * fns.c (Fequal):
8853         * fns.c (Fold_equal):
8854         * fns.c (Frequire):
8855         * fns.c (Fbase64_encode_region):
8856         * fns.c (Fbase64_encode_string):
8857         * fns.c (Fbase64_decode_region):
8858         * frame.c:
8859         * frame.c (frame_matches_frame_spec):
8860         * frame.c (device_matches_device_spec):
8861         * frame.c (next_frame):
8862         * frame.c (previous_frame):
8863         * frame.c (Fnext_frame):
8864         * frame.c (Fprevious_frame):
8865         * frame.c (Fframe_property):
8866         * frame.c (Fset_frame_height):
8867         * frame.c (Fset_frame_size):
8868         * frame.h:
8869         * glyphs.c:
8870         * glyphs.c (if):
8871         * glyphs.c (decode_error_behavior_flag):
8872         * glyphs.c (Fmake_image_instance):
8873         * indent.c (Findent_to):
8874         * intl.c (Fignore_defer_gettext):
8875         * keymap.c (Fkeymapp):
8876         * keymap.c (Flookup_key):
8877         * lread.c:
8878         * lread.c (Fload_internal):
8879         * lread.c (Feval_buffer):
8880         * lread.c (Feval_region):
8881         * macros.c (Fexecute_kbd_macro):
8882         * marker.c (set_marker_internal):
8883         * marker.c (Fset_marker):
8884         * marker.c (set_marker_restricted):
8885         * marker.c (Fcopy_marker):
8886         * marker.c (noseeum_copy_marker):
8887         * menubar.c:
8888         * menubar.c (Fpopup_menu):
8889         * minibuf.c:
8890         * mule-charset.c (Fcharset_name):
8891         * mule-charset.c (Fchar_charset):
8892         * mule-charset.c (Fchar_octet):
8893         * mule-charset.c (Fsplit_char):
8894         * mule-wnnfns.c (Fwnn_open):
8895         * mule-wnnfns.c (Fwnn_dict_comment):
8896         * mule-wnnfns.c (Fwnn_quit_henkan):
8897         * mule-wnnfns.c (Fwnn_word_toroku):
8898         * mule-wnnfns.c (Fwnn_word_sakujo):
8899         * mule-wnnfns.c (Fwnn_word_use):
8900         * mule-wnnfns.c (Fwnn_hindo_set):
8901         * objects.c:
8902         * objects.c (Fmake_color_instance):
8903         * objects.c (Fmake_font_instance):
8904         * print.c (Fwrite_char):
8905         * process.c:
8906         * process.c (mark_process):
8907         * process.c (print_process):
8908         * process.c (get_process_from_usid):
8909         * process.c (Fprocessp):
8910         * process.c (Fprocess_live_p):
8911         * process.c (Fget_process):
8912         * process.c (Fget_buffer_process):
8913         * process.c (get_process):
8914         * process.c (Fprocess_id):
8915         * process.c (Fprocess_name):
8916         * process.c (Fprocess_command):
8917         * process.c (init_process_io_handles):
8918         * process.c (start_process_unwind):
8919         * process.c (Fstart_process_internal):
8920         * process.c (Fopen_multicast_group_internal):
8921         * process.c (Fset_process_window_size):
8922         * process.c (read_process_output):
8923         * process.c (send_process):
8924         * process.c (Fprocess_tty_name):
8925         * process.c (Fset_process_buffer):
8926         * process.c (Fprocess_buffer):
8927         * process.c (Fprocess_mark):
8928         * process.c (set_process_filter):
8929         * process.c (Fset_process_filter):
8930         * process.c (Fprocess_filter):
8931         * process.c (Fprocess_send_region):
8932         * process.c (Fprocess_send_string):
8933         * process.c (exec_sentinel):
8934         * process.c (Fset_process_sentinel):
8935         * process.c (Fprocess_sentinel):
8936         * process.c (status_notify):
8937         * process.c (Fprocess_status):
8938         * process.c (Fprocess_exit_status):
8939         * process.c (process_send_signal):
8940         * process.c (Fprocess_send_eof):
8941         * process.c (deactivate_process):
8942         * process.c (remove_process):
8943         * process.c (Fdelete_process):
8944         * process.c (kill_buffer_processes):
8945         * process.c (Fprocess_kill_without_query):
8946         * process.c (Fprocess_kill_without_query_p):
8947         * rangetab.c:
8948         * rangetab.c (Fget_range_table):
8949         * rangetab.c (Fput_range_table):
8950         * rangetab.c (Fremove_range_table):
8951         * rangetab.c (Fclear_range_table):
8952         * search.c:
8953         * search.c (Fskip_chars_forward):
8954         * search.c (Fskip_chars_backward):
8955         * search.c (Fskip_syntax_forward):
8956         * search.c (Fskip_syntax_backward):
8957         * search.c (search_command):
8958         * search.c (Freplace_match):
8959         * search.c (Fregexp_quote):
8960         * select.c (Fown_selection_internal):
8961         * select.c (Fselection_owner_p):
8962         * select.c (Fselection_exists_p):
8963         * select.c (Fget_selection_internal):
8964         * specifier.c:
8965         * symbols.c:
8966         * symbols.c (Fintern):
8967         * symbols.c (Fintern_soft):
8968         * symbols.c (Funintern):
8969         * symbols.c (Fapropos_internal):
8970         * symbols.c (Fset_default):
8971         * syntax.c:
8972         * syntax.c (Fsyntax_table_p):
8973         * syntax.c (Fcopy_syntax_table):
8974         * syntax.c (Fset_syntax_table):
8975         * syntax.c (Fchar_syntax):
8976         * syntax.c (syntax_match):
8977         * syntax.c (Fmatching_paren):
8978         * syntax.c (Fforward_word):
8979         * syntax.c (scan_lists):
8980         * syntax.c (Fscan_lists):
8981         * syntax.c (Fscan_sexps):
8982         * syntax.c (Fparse_partial_sexp):
8983         * toolbar.c (Fcheck_toolbar_button_syntax):
8984         * tooltalk.doc:
8985         * window.c:
8986         * window.c (Fwindowp):
8987         * window.c (Fwindow_live_p):
8988         * window.c (Fwindow_point):
8989         * window.c (Fdelete_window):
8990         * window.c (Fnext_window):
8991         * window.c (Fprevious_window):
8992         * window.c (Fother_window):
8993         * window.c (window_loop):
8994         * window.c (Fget_lru_window):
8995         * window.c (Fsplit_window):
8996         * window.c (Fenlarge_window):
8997         * window.c (Fenlarge_window_pixels):
8998         * window.c (Fshrink_window):
8999         * window.c (Fshrink_window_pixels):
9000         * window.c (change_window_height):
9001         * window.c (Fwindow_configuration_p):
9002         * window.c (Fcurrent_window_configuration):
9003         * window.h:
9004         * casefiddle.c (casify_object):
9005         * casefiddle.c (Fupcase):
9006         * casefiddle.c (Fdowncase):
9007         * casefiddle.c (Fcapitalize):
9008         * casefiddle.c (Fupcase_initials):
9009         * casefiddle.c (casify_region_internal):
9010         * casefiddle.c (casify_region):
9011         * casefiddle.c (Fupcase_region):
9012         * casefiddle.c (Fdowncase_region):
9013         * casefiddle.c (Fcapitalize_region):
9014         * casefiddle.c (Fupcase_initials_region):
9015         * casefiddle.c (Fupcase_word):
9016         * casefiddle.c (Fdowncase_word):
9017         * casefiddle.c (Fcapitalize_word):
9018         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9019         Replace 0 with '\0' when working with bytes.
9020         Replace initial "(" with "\(" in docstrings.
9021
9022 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9023
9024         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9025
9026         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9027
9028 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9029
9030         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9031
9032 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9033
9034         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9035         correctly.
9036
9037 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9038
9039         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9040         (inhibit_auto_save_session): New variable.
9041         (vars_of_fileio): Declare and initialize them.
9042         * fileio.c (Fdo_auto_save): Don't create session file if
9043         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9044
9045 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9046
9047         * sgiplay.c (play_internal): C++ compilability.
9048         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9049         * callproc.c (Fold_call_process_internal):
9050         Remove unused vars `env', `first'.
9051         * scrollbar.c (update_scrollbar_instance):
9052         #### unused var `current_window'.
9053         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9054         etc. within #ifdef NOT_YET.
9055         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9056         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9057         * specifier.c (specifier_instance):
9058         #### unused var `tag'.
9059         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9060
9061 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9062
9063         * fns.c (Fbutlast):
9064         * fns.c (list_sort):
9065         * fns.c (Ffillarray):
9066         * fns.c (bytecode_nconc2):
9067         * fns.c (Fnconc):
9068         * fns.c (mapcar1):
9069         * fns.c (Fmapconcat):
9070         Be pedantically 64-bit correct.  For the time when someone will
9071         want to have a list with length > 2**32.
9072
9073         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9074         Work around MIPSpro compiler bug.
9075
9076         * process-unix.c (unix_kill_child_process): Add snarky comment.
9077         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9078
9079         * config.h.in: Oops, _getpt ==> _getpty
9080
9081 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9082
9083         * config.h.in:
9084         * regex.c:
9085         Use void*, not char*, as return type of alloca().
9086
9087         * alloc.c (free_marker): Side effect inside assert expression!
9088
9089 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9090
9091         * mule-charset.c (Fset_charset_ccl_program): To check
9092         if the given ccl program is valid, use setup_ccl_program()
9093         instead of CHECK_VECTOR().
9094         (Fmake_charset): Likewise.
9095
9096 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9097
9098         * faces.c (get_extent_fragment_face_cache_index):
9099         Fix cachel.merged_faces memory leak.
9100
9101 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9102
9103         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9104         Reset MSB of octets obtained by DECODE_SJIS
9105         because of the incompatibility with Emacs.
9106         (ccl_driver)<CCL_ENCODE_SJIS>:
9107         Set MSB of octets before passing them to
9108         ENCODE_SJIS because of the incompatibility
9109         with Emacs.
9110
9111 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9112
9113         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9114         (DECLARE_LRECORD): Undo the last change.
9115         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9116
9117 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9118
9119         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9120         the implementation to lrecord_implementations_table.
9121
9122 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9123
9124         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9125         initial value of `lrecord_type_##c_name' and
9126         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9127         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9128         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9129         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9130         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9131
9132 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9133
9134         * miscplay.c (sndcnv8S_2mono):
9135         (sndcnv2monounsigned):
9136         (sndcnvULaw_2linear):
9137         (sndcnv16swap):
9138         Remove implementation-defined behavior.
9139
9140 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9141
9142         * input-method-xlib.c: Warning suppression.
9143
9144 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9145
9146         * mule-ccl.c: Sync up with Emacs 21.0.90.
9147         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9148         Do nothing.
9149         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9150         Likewise.
9151         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9152         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9153         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9154         leading char belongs to official 2-dimensional charset.
9155         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9156         write the given character as is.  Otherwise,
9157         if it is a multibyte char, convert it by
9158         non_ascii_set_charptr_emchar, then write it.
9159         (CCL_WRITE_STRING): Likewise.
9160         (ccl_get_compiled_code): New function.
9161         (setup_ccl_program): When ccl_prog is invalid,
9162         return -1.
9163         (Fregister_code_conversion_map): New function.
9164         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9165
9166         * mule-ccl.h: Sync up with Emacs 21.0.90.
9167         (Fregister_ccl_program): export it.
9168
9169         * redisplay-msw.c (separate_textual_runs):
9170         If ccl program is not valid, don't do ccl conversion.
9171
9172         * redisplay-x.c (separate_textual_runs): Ditto.
9173
9174         * file-coding.c (Fmake_coding_system):
9175         When type is ccl and value is vector, register it
9176         with a proper symbol.  And checks whether the
9177         given ccl program is valid.
9178         (mule_decode): When calling ccl_driver, if src indicates
9179         NULL pointer, set an empty string instead.
9180         (mule_encode): Likewise.
9181
9182 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9183
9184         The following large batch of changes gets us back to a state of
9185         C++ compilability.  Extbyte is now a char, which means that
9186         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9187
9188         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9189
9190         * sound.c (Fplay_sound): Type correctness.
9191
9192         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9193         (x_get_window_property): Type correctness.
9194         (receive_incremental_selection): unsigned char ==> Extbyte
9195         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9196         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9197         (Fx_store_cutbuffer_internal): Type correctness.
9198
9199         * process-unix.c (try_to_initialize_subtty): Type correctness.
9200
9201         * objects-x.c (x_print_color_instance): Type correctness.
9202         (x_print_font_instance): Type correctness.
9203         (x_list_fonts): SExtbyte ==> Extbyte.
9204         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9205         (x_find_charset_font): SExtbyte ==> Extbyte.
9206         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9207         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9208         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9209         Use bufbyte_strcmp.
9210
9211         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9212         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9213         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9214         (BYTE_C0_P): Use bit ops for char-signedness safety.
9215         (BYTE_C1_P): Use bit ops for char-signedness safety.
9216         (CHARSET_BY_LEADING_BYTE):
9217         (CHARSET_BY_ATTRIBUTES):
9218         Always use inline function.
9219         Use type_checking_assert.
9220         Hide chlook.
9221
9222         * mule-charset.c (non_ascii_charptr_copy_char):
9223         Modify to work with both ASCII and non-ASCII characters.
9224         Improve docs and variable names.
9225         Replace over-clever fall-through switch with a simple loop.
9226         (Lstream_get_emchar_1):
9227         Replace over-clever fall-through switch with a simple loop.
9228
9229         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9230         Warning suppression.
9231
9232         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9233         the return value of Lstream_getc, which could be EOF as well.
9234
9235         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9236
9237         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9238         APIs can be used on Extbytes without casts.  Risky!
9239         (SExtbyte): Remove.
9240         (UExtbyte): Remove.
9241
9242         * input-method-xlib.c (XIM_init_device):
9243         Use Xlib.h instead of IntrinsicP.h.
9244         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9245         which will break in X11R7.
9246         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9247         to call XRegisterIMInstantiateCallback with correct types.
9248
9249         * gui-x.c (button_item_to_widget_value): Type correctness.
9250
9251         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9252
9253         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9254         (xbm_instantiate_1): Type correctness.
9255         (BUILD_GLYPH_INST):  Type correctness.
9256
9257         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9258
9259         * file-coding.c:
9260         (decode_coding_sjis):
9261         (decode_coding_big5):
9262         (decode_coding_ucs4):
9263         (decode_coding_utf8):
9264         (decode_coding_iso2022):
9265         (decode_coding_no_conversion):
9266         Make all decoding functions take an Extbyte * arg.
9267         (encode_coding_sjis):
9268         (encode_coding_big5):
9269         (encode_coding_ucs4):
9270         (encode_coding_utf8):
9271         (encode_coding_iso2022):
9272         (encode_coding_no_conversion):
9273         Make all encoding functions take a Bufbyte * arg.
9274         Use size_t instead of unsigned int for memory sizes.
9275         Only cast to unsigned char whenever dereferencing Extbyte *.
9276
9277         * doc.c (unparesseuxify_doc_string): Type correctness.
9278
9279         * console-x.c (split_up_display_spec):
9280         Rewrite without using details of internal string representation.
9281         (x_semi_canonicalize_device_connection): Type correctness.
9282
9283         * config.h.in:
9284         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9285         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9286         (HAVE_XFREE386): Removed.
9287
9288         * buffer.h (DEC_CHARPTR): `const' correctness.
9289         (bufbyte_strcmp): New.
9290         (bufbyte_memcmp): New.
9291
9292         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9293
9294         * buffer.h (XCHAR_OR_CHAR_INT):
9295         Always use inline function.
9296         Remove redundant type checking assert() - XINT will abort quite nicely.
9297
9298 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9299
9300         * search.c (Freplace_match): Set newtext to an empty string.
9301
9302 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9303
9304         * s/decosf1-3.h: Remove #include of stropts.h
9305         * s/ptx.h: Remove #include of stropts.h
9306         * s/usg5-4.h: Remove #include of stropts.h
9307         * sysproc.h:
9308         * config.h.in:
9309         Use stropts.h, not sys/stropts.h.
9310         Use strtio.h, not sys/strtio.h.
9311
9312 2000-10-04  Martin Buchholz <martin@xemacs.org>
9313
9314         * XEmacs 21.2.36 is released.
9315
9316 2000-09-21  Andy Piper  <andy@xemacs.org>
9317
9318         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9319         changes still involve copying the widget tree.
9320         (update_widget_face): make sure a change is register in the widget
9321         tree. Call update_tab_widget_face appropriately.
9322         (update_tab_widget_face): ditto.
9323         (x_tab_control_redisplay): make sure non-structural changes still
9324         involve copying the widget tree.
9325
9326 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9327
9328         * lread.c (locate_file): Check the path element is non-nil.
9329
9330 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9331
9332         * lisp.h: Warning suppression for SCO compilers.
9333
9334         * redisplay-tty.c (reset_tty_modes): Fix crash.
9335         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9336
9337 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9338
9339         Big signal/process handling overhaul.  Bugs fixed:
9340         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9341         M-x comint-kill-subjob should work for both values nil and t of
9342         process-connection-type. It was broken on most platforms.
9343         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9344         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9345         * process-unix.c: Signal/Process handling overhaul.
9346         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9347         (allocate_pty): Use all available modern methods of allocating
9348         ptys, falling back to old style BSD allocation as a last resort.
9349         Use allegedly more secure Unix98 pty allocation by default.
9350         (allocate_pty_the_old_fashioned_way): New. the last resort.
9351         (unix_create_process): Push ptem, ldterm, ttcompat where
9352         available.  Autoconfiscate.
9353         (try_to_initialize_subtty): New.
9354         (unix_kill_child_process): Proper signal handling for ptys on most
9355         platforms, using special knowledge of AIX, BSD, etc...
9356         (unix_create_process): Always disconnect_controlling_terminal() for
9357         subprocesses, whether using ptys or not.
9358         * process.h: Remove old getpt-dependent PTY code.
9359         * process.c (Fprocess_send_signal): New, obvious generic function.
9360         (decode_signal): New.
9361         (Finterrupt_process):
9362         (Fkill_process):
9363         (Fquit_process):
9364         (Fstop_process):
9365         (Fcontinue_process):
9366         (Fsignal_process): Use decode_signal.
9367         (process_send_signal):
9368         Many docstring corrections.
9369         Allow any signal to be sent to a process object.
9370         * config.h.in: Add symbols for big signal/process overhaul.
9371         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9372         * sysproc.h: Include process-related headers, where available:
9373         sys/stropts.h sys/strtio.h pty.h libutil.h
9374         * s/irix4-0.h:
9375         * s/irix5-0.h:
9376         * s/cygwin32.h:
9377         * s/gnu.h:
9378         * s/linux.h:
9379         * s/hpux.h:
9380         * s/aix3-1.h:
9381         Remove old S&M pty stuff.
9382         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9383         * systty.h: Simplify cpp hackery, improve comments.
9384         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9385
9386         * editfns.c (Fformat_time_string):
9387         Be a little more paranoid with the return value of ctime.
9388
9389         * fileio.c (check_executable):
9390         (check_writable):
9391         Use symbolic constants X_OK, W_OK.
9392
9393         * console-x.c (split_up_display_spec): Fix a warning.
9394
9395 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9396
9397         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9398         * ntproc.c (sys_spawnve): make_string ==> build_string
9399         Small clarity improvements.
9400
9401 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9402
9403         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9404
9405         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9406
9407         * config.h.in (HAVE_STRCASECMP): Remove.
9408
9409 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9410
9411         * redisplay-output.c (redisplay_output_pixmap):
9412         Cleaner and possibly more 64-bit correct code.
9413
9414 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9415
9416         * dumper.c (pdump_load_finish): move restoration of
9417         `noninteractive1' to emacs.c (main_1).
9418         * emacs.c (main_1): protect LISP-visible command-line flags
9419         from pdump_load().
9420
9421 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9422
9423         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9424         DUMP_TARGET instead of literal program names.
9425
9426 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9427
9428         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9429
9430 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9431
9432         * *: Spelling mega-patch
9433
9434 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9435
9436         * fns.c (bad_bad_turtle):
9437         Delete "Eek!" comment, since we fixed the bug to which it refers.
9438
9439 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9440
9441         * alloca.c: Replace REGISTER with register.
9442
9443 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9444
9445         * file-coding.c (ucs_to_char): Use countof.
9446
9447 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9448
9449         * file-coding.c: (ucs_to_char):
9450         (complex_vars_of_file_coding):
9451         Use countof instead of sizeof.
9452         Use CHECK_NATNUM instead of CHECK_INT.
9453
9454         * sysdep.c (strcasecmp): Remove.
9455         * device-x.c (ascii_strcasecmp): New.
9456         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9457         Avoid using non-standard non-portable strcasecmp.
9458
9459 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9460
9461         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9462         * font-lock.c: remove reference to emacsfns.h.
9463         * search.c: small doc improvement.
9464         * event-Xt.c: correct file names in comments.
9465         * console-x.h Correct file names in comments.
9466         * frame.c: Correct file names in comments.
9467         * event-stream.c: remove Energize from comments.
9468
9469 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9470
9471         * symeval.h (DEFERROR_STANDARD):
9472         (DEFERROR):
9473         (DEFSYMBOL):
9474         (DEFSYMBOL_NO_DUMP):
9475         (DEFSYMBOL_MULTIWORD_PREDICATE):
9476         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9477         (DEFKEYWORD):
9478         The construct &##name is not sensible C.
9479         Fixes compilation errors with Unixware native compiler.
9480
9481 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9482
9483         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9484         (next_frame_internal): Removed.  We now just have next_frame.
9485         (next_frame):
9486         Write a simpler and cleaner one-pass algorithm.
9487         Remove called_from_delete_device arg and #ifdefed-out code.
9488         (previous_frame):
9489         Renamed from prev_frame.  Update callers.
9490         Cleaned up to have an analogous implementation to next_frame.
9491         (other_visible_frames_internal): Remove the
9492         called_from_delete_device bogus arg, and hence, remove this
9493         function.  Just use other_visible_frames().
9494
9495         * window.c (Fnext_window):
9496         Prettify docstring.
9497         Since next_frame() is guaranteed to return a frame, remove check
9498         for nil inserted in previous patch.
9499         (Fprevious_window):
9500         Prettify docstring.
9501         Make code look more like Fnext_window.
9502         (window_loop):
9503         Respect the `console' arg when iterating through windows.
9504         Fixes bug: (get-buffer-window buffer t device) not respecting
9505         the `device' arg.
9506         This function needs more work, as others have pointed out.
9507
9508         * frame.h: Rename prev_frame to previous_frame.
9509         device_matches_console_spec no longer takes a `frame' arg.
9510
9511         * s/gnu.h:
9512         * s/linux.h:
9513         * s/hpux.h:
9514         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9515         From "Golubev I. N." <gin@mo.msk.ru>.
9516
9517         * make-src-depend: Fix typo.
9518
9519 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9520
9521         * window.c (Fnext_window):
9522         next_frame() might return nil, not a frame.
9523         Fixes this crash:
9524         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9525
9526         * frame.c (next_frame_internal):
9527         We've passed a frame if we've passed its device.
9528         Fixes this crash:
9529         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9530 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9531
9532 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9533
9534         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9535         Allow option to suppress accelerators in menu/dialog items.
9536         (populate_or_checksum_helper): Pass dialog title through above.
9537
9538 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9539
9540         * event-msw.c (mswindows_key_to_emacs_keysym):
9541         Add "pause" key, fix "menu" key.
9542
9543 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9544
9545         * eval.c (reinit_vars_of_eval):
9546         Increase max_lisp_eval_depth to 1000,
9547         required for thai-xtis.el to byte-compile under some circumstances.
9548
9549 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9550
9551         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9552         From Kenichi Handa.
9553
9554 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9555
9556         * make-src-depend: Make the generated Makefiles smaller.
9557
9558         * s/hpux.h (SETUP_SLAVE_PTY):
9559         Provide a %d in the format string for the errno argument.
9560
9561         * editfns.c (Ftemp_directory):
9562         Warning fix.
9563         Avoid buffer overrun on very long file name.
9564
9565         * input-method-xlib.c (XIM_init_device):
9566         6th parameter of XRegisterIMInstantiateCallback has different
9567         pointer types on different OSes, so simply cast to (void *).
9568
9569         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9570
9571         * sysdll.c (dll_open):
9572         shl_load will hang hard if passed a NULL filename.
9573         Simply return NULL for compatibility with dlopen.
9574         * sysdll.c: Conform to XEmacs coding standards.
9575
9576         * sysdep.c (get_pty_max_bytes):
9577         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9578
9579 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9580
9581         * tooltalk.c: Add #include <syssignal.h>
9582
9583 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9584
9585         * s/hpux.h: Don't use undefined function sigunblock().
9586
9587 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9588
9589         * config.h.in: Add HAVE_BALLOON_HELP.
9590         * emacs.c: Use HAVE_BALLOON_HELP.
9591         * Makefile.in.in (x_objs):
9592         Make Balloon Help conditional on finding shape.h.
9593
9594 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9595
9596         * syntax.c (regex_emacs_buffer_p): New variable.
9597         * syntax.h (regex_emacs_buffer_p): extern.
9598         * search.c (looking_at_1):
9599         (string_match_1):
9600         (fast_string_match):
9601         (search_buffer): Set regex_emacs_buffer_p.
9602         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9603         when before_dot, at_dot, after_dot.
9604
9605 2000-08-23  Andy Piper  <andy@xemacs.org>
9606
9607         * gui-x.c (popup_selection_callback): Only set action_occurred
9608         when we really have an image instance.
9609         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9610
9611 2000-08-23  Andy Piper  <andy@xemacs.org>
9612
9613         * gui-msw.c (mswindows_handle_gui_wm_command): set
9614         action_occurred.
9615         * gui-x.c (popup_selection_callback): ditto.
9616
9617         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9618         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9619         (struct Lisp_Image_Instance): add action_occurred flag.
9620
9621         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9622         (image_instance_changed): ditto.
9623         (reset_frame_subwindow_instance_cache): only unmap windows - do
9624         not remove them from the cache also.
9625
9626         * glyphs-widget.c (tab_control_update): better debug.
9627         (progress_gauge_update): ditto.
9628         (layout_update): ditto.
9629         (layout_instantiate): ditto.
9630         (tab_control_order_only_changed): cope with null pending items.
9631
9632         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9633         debug. Force selection of an item when an action occurred. Cope
9634         with null pending_items.
9635         (mswindows_progress_gauge_redisplay): better debug.
9636         * glyphs-x.c (x_tab_control_redisplay): ditto.
9637
9638         * redisplay.c (redisplay_frame): reset the frame cache if the
9639         frame is garbaged.
9640
9641         * window.c (Fset_window_configuration): potentially re-enable
9642         frame cache reset.
9643         (window_unmap_subwindows): need to finalize instances here since
9644         it is only used in mark_window_as_deleted.
9645
9646 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9647
9648         * nas.c (SndOpenDataForReading):
9649         nas.c (WaveOpenDataForReading):
9650         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9651         Somehow escaped from the 2000-08-14 patch.
9652
9653 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9654
9655         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9656         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9657
9658 2000-08-21  Andy Piper  <andy@xemacs.org>
9659
9660         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9661         window if it is not already displayed.
9662
9663         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9664         it is not already displayed.
9665
9666         * window.c (Fset_window_configuration): don't reset the frame
9667         cache.
9668
9669         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9670         instances from the frame cache if we are actually finalizing them.
9671         (reset_frame_subwindow_instance_cache): reset frame cache only
9672         after unmapping everything.
9673         (map_subwindow): set displayed flag after mapping.
9674
9675 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9676
9677         * data.c (indirect_function):
9678         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9679
9680         * eval.c (function_argcount):
9681         Use original function when signaling errors.
9682
9683 2000-08-18  Andy Piper  <andy@xemacs.org>
9684
9685         * frame.c (delete_frame_internal): use new
9686         free_frame_subwindow_instances name.
9687
9688         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9689         (add_tab_item): make return type correct.
9690         (mswindows_tab_control_instantiate): assert index of tab.
9691         (mswindows_tab_control_redisplay): Re-code to use
9692         gui_item_equal_sans_selected and gui_item_list_find_selected.
9693
9694         * glyphs-widget.c (tab_control_update): Correct comment.
9695
9696         * window.c (window_unmap_subwindows): use new
9697         unmap_subwindow_instance_cache_mapper.
9698         (window_unmap_subwindows_cache_mapper): deleted.
9699         (Fset_window_configuration): comparisons should now be with
9700         EQ. Preserve the subwindow instance cache across configuration
9701         changes.
9702         (allocate_window): ditto.
9703         (make_dummy_parent): ditto.
9704
9705         * glyphs.c (free_frame_subwindow_instances): rename from
9706         free_frame_subwindow_instance_cache. finalize all instances rather
9707         than just those in the display cache.
9708         (finalize_all_subwindow_instances): walk windows unmapping and
9709         finalizing subwindows.
9710         (unmap_subwindow_instance_cache_mapper): moved from
9711         window.c. Allow finalization as well as unmapping.
9712
9713         * gui.c (gui_item_list_find_selected): new function.
9714
9715         * gui.h (gui_item_list_find_selected): declare.
9716
9717         * glyphs-x.c (x_tab_control_redisplay): pick tab
9718         explicitly. Re-code to use gui_item_equal_sans_selected and
9719         gui_item_list_find_selected.
9720
9721         * glyphs-x.h: add lwlib-utils.h
9722
9723         * buffer.c (Frecord_buffer): undo previous change.
9724
9725 2000-08-09  Vin Shelton  <acs@xemacs.org>
9726
9727         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9728         possible.  Create temporary files more securely.  The patch was
9729         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9730         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9731         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9732         for details.
9733
9734 2000-08-07  Ben Wing  <ben@xemacs.org>
9735
9736         * getloadavg.c: remove duplicate (and windows-breaking)
9737         includes of fcntl.h and sys/file.h.
9738
9739         * nt.c: remove duplicate getloadavg() definition.
9740
9741         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9742         encodings.
9743
9744 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9745
9746         * eval.c (function_argcount): If function needs to be autoloaded
9747         actually use the loaded definition.
9748         GCPRO function.
9749
9750 2000-08-05  Ben Wing  <ben@xemacs.org>
9751
9752         * getloadavg.c: add prototype for getloadavg().  remove
9753         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9754         of the code).  remove duplicate header includes.
9755
9756         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9757
9758         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9759         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9760         useful load average.
9761
9762         * alloc.c (reinit_alloc_once_early): removed references to
9763         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9764         the lisp vars are the only things referencing the malloc_sbrk_*
9765         vars, and they were already if 0'd out.  these vars only exist
9766         in the older malloc.c, which is basically unused, and they're
9767         only for informational purposes.
9768
9769         * m\*.h: removed useless VIRT_ADDR_VARIES.
9770
9771         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9772
9773 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9774
9775         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9776         color if the image is a mono pixmap.
9777
9778 2000-07-30  Ben Wing  <ben@xemacs.org>
9779
9780         * Makefile.in.in (release):
9781         Remove stray @.
9782
9783         * buffer.c (directory_is_current_directory):
9784         * dired-msw.c (mswindows_get_files):
9785         * dired.c:
9786         * dired.c (Fdirectory_files):
9787         * dired.c (file_name_completion_stat):
9788         * dired.c (Ffile_attributes):
9789         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9790         preprocessor tricks, to avoid problems on some machines
9791         (e.g. SCO).
9792
9793         * callproc.c (egetenv): GC docs.
9794
9795         * console-msw.h:
9796         * console-msw.h (struct mswindows_dialog_id):
9797         * lrecord.h (lrecord_type):
9798         New object for use with MSW dialogs.
9799
9800         * console.h (struct console_methods):
9801         New enable/disable frame methods, for proper modal dialogs.
9802
9803         * device-msw.c (msprinter_default_printer): Fix to follow
9804         proper Mule conventions.
9805
9806         * device-msw.c:
9807         * device-msw.c (signal_open_printer_error):
9808         * device-msw.c (msprinter_init_device):
9809         * device-msw.c (ensure_not_printing):
9810         * device-msw.c (plist_get_margin):
9811         * device-msw.c (Fmsprinter_select_settings):
9812         * device-msw.c (finalize_devmode):
9813         * device-msw.c (Fmsprinter_settings_despecialize):
9814         * device-msw.c (signal_enum_priner_error):
9815         * extents.c (decode_extent):
9816         * extents.c (decode_map_extents_flags):
9817         * extents.c (decode_extent_at_flag):
9818         * extents.c (Fextent_at):
9819         * extents.c (Fextents_at):
9820         * extents.c (symbol_to_glyph_layout):
9821         [[[[2]]]] Use structured errors.
9822
9823         * dialog-msw.c:
9824         * dialog-msw.c (mswindows_is_dialog_msg):
9825         * dialog-msw.c (mark_mswindows_dialog_id):
9826         * dialog-msw.c (dialog_proc):
9827         * dialog-msw.c (handle_question_dialog_box):
9828         * dialog-msw.c (syms_of_dialog_mswindows):
9829         Define new object to clean up marking; use it as a dialog identifier.
9830         Call new delete-dialog-box-hook.
9831
9832         * dialog-x.c (dbox_selection_callback):
9833         * dialog-x.c (dbox_descriptor_to_widget_value):
9834         * dialog-x.c (x_make_dialog_box_internal):
9835         Call new delete-dialog-box-hook.
9836         Return an id.
9837
9838         * dialog.c:
9839         * dialog.c (syms_of_dialog):
9840         * dialog.c (vars_of_dialog):
9841         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9842
9843         * eval.c:
9844         * eval.c (signal_call_debugger):
9845         when noninteractive, output stack traces on the console instead
9846         of in a (never-seen) buffer.
9847
9848         * eval.c (signal_type_error):
9849         * eval.c (invalid_argument_2):
9850         * lisp.h:
9851         new funs for use w/structured errors.
9852
9853         * event-Xt.c:
9854         * event-Xt.c (x_to_emacs_keysym):
9855         * event-Xt.c (describe_event):
9856         * event-Xt.c (emacs_Xt_event_handler):
9857         * event-Xt.c (vars_of_event_Xt):
9858         * event-msw.c:
9859         * event-msw.c (mswindows_wnd_proc):
9860         * event-msw.c (vars_of_event_mswindows):
9861         rename {x,mswindows}-debug-events to debug-{}-events for
9862         consistency with other debug-foo variables.
9863
9864         * event-stream.c:
9865         document next-event more clearly.
9866
9867         * fileio.c (Ffile_name_directory):
9868         * fileio.c (Ffile_name_nondirectory):
9869         * fileio.c (Funhandled_file_name_directory):
9870         * fileio.c (file_name_as_directory):
9871         * fileio.c (Ffile_name_as_directory):
9872         * fileio.c (directory_file_name):
9873         * fileio.c (Fdirectory_file_name):
9874         * fileio.c (Fmake_temp_name):
9875         * fileio.c (Ffile_truename):
9876         * fileio.c (Fsubstitute_in_file_name):
9877         * fileio.c (expand_and_dir_to_file):
9878         * fileio.c (barf_or_query_if_file_exists):
9879         * fileio.c (check_executable):
9880         * fileio.c (Ffile_exists_p):
9881         * fileio.c (Ffile_writable_p):
9882         * fileio.c (Ffile_directory_p):
9883         * fileio.c (Ffile_regular_p):
9884         * fileio.c (Ffile_modes):
9885         * fileio.c (Ffile_newer_than_file_p):
9886         * fileio.c (Fverify_visited_file_modtime):
9887         * fileio.c (Fset_visited_file_modtime):
9888         * fileio.c (auto_save_1):
9889         (1). (2).
9890         fix up gcpro's.
9891
9892         * frame-msw.c:
9893         * frame-msw.c (mswindows_init_frame_1):
9894         * frame-msw.c (mswindows_enable_frame):
9895         * frame-msw.c (error_frame_unsizable):
9896         * frame-msw.c (msprinter_init_frame_1):
9897         * frame-msw.c (msprinter_init_frame_3):
9898         * frame-msw.c (console_type_create_frame_mswindows):
9899         (2).
9900         implement new enable/disable frame methods.
9901
9902         * frame-x.c:
9903         * frame-x.c (x_enable_frame):
9904         * frame-x.c (console_type_create_frame_x):
9905         implement new enable/disable frame methods.
9906
9907         * frame.c:
9908         * frame.c (Fdisable_frame):
9909         * frame.c (syms_of_frame):
9910         * frame.h (struct frame):
9911         implement new enable/disable frame methods/functions.
9912
9913         * general-slots.h:
9914         add initial-focus.
9915
9916         * glyphs-msw.c (mswindows_widget_instantiate):
9917         comment that initial-focus should be implemented.
9918
9919         * glyphs-widget.c:
9920         * glyphs-widget.c (check_valid_instantiator):
9921         * glyphs-widget.c (check_valid_orientation):
9922         * glyphs-widget.c (check_valid_tab_orientation):
9923         * glyphs-widget.c (check_valid_justification):
9924         * glyphs-widget.c (check_valid_border):
9925         * glyphs-widget.c (check_valid_callback):
9926         * glyphs-widget.c (check_valid_int_or_function):
9927         * glyphs-widget.c (check_valid_string_or_vector):
9928         * glyphs-widget.c (check_valid_item_list_1):
9929         * glyphs-widget.c (widget_validate):
9930         * glyphs-widget.c (combo_box_validate):
9931         * glyphs-widget.c (widget_instantiate):
9932         * glyphs-widget.c (syms_of_glyphs_widget):
9933         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9934         * glyphs-widget.c (image_instantiator_combo_box):
9935         * glyphs-widget.c (image_instantiator_scrollbar):
9936         * glyphs-widget.c (image_instantiator_tab_control):
9937         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9938         (2).
9939         support (unimplemented) keyword initial-focus.
9940         reindent long macros.
9941
9942         * glyphs-x.c (x_redisplay_widget):
9943         * glyphs-x.c (x_button_instantiate):
9944         * glyphs-x.c (x_button_redisplay):
9945         * glyphs-x.c (x_progress_gauge_instantiate):
9946         * glyphs-x.c (x_edit_field_instantiate):
9947         * glyphs-x.c (x_combo_box_instantiate):
9948         * glyphs-x.c (x_tab_control_instantiate):
9949         * glyphs-x.c (x_label_instantiate):
9950         * gui-x.c:
9951         * gui-x.c (button_item_to_widget_value):
9952         * gui-x.c (gui_items_to_widget_values_1):
9953         * gui-x.c (gui_item_children_to_widget_values):
9954         * gui-x.c (gui_items_to_widget_values):
9955         * gui-x.h:
9956         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9957         add new flag to gui-parsing routines to indicate whether
9958         accelerator specs should be supported.
9959
9960         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9961
9962         * glyphs.h (struct Lisp_Image_Instance):
9963         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9964         add initial-focus flag.
9965
9966         * gui.c:
9967         * gui.c (syms_of_gui):
9968         * gui.c (vars_of_gui):
9969         clean up menu-no-selection-hook.
9970
9971         * gui.h:
9972         support delete-dialog-box-hook.
9973
9974         * lread.c (Fload_internal):
9975         * lread.c (locate_file_in_directory_mapper):
9976         (1).
9977
9978         * lrecord.h:
9979         * lrecord.h (struct toolbar_button):
9980         * lrecord.h (syms_of_toolbar):
9981         document how to create a new object.
9982
9983         * menubar-msw.c (mswindows_char_is_accelerator):
9984         may be called on frames w/o menus.
9985
9986         * menubar.c (vars_of_menubar):
9987         clean up :filter docs.
9988
9989         * nt.c (readdir):
9990         * ntproc.c:
9991         (1).
9992
9993         * process-nt.c:
9994         * process-nt.c (validate_signal_number):
9995         * process-nt.c (signal_cannot_launch):
9996         * process-nt.c (nt_create_process):
9997         * process-nt.c (nt_send_process):
9998         * process-nt.c (nt_kill_child_process):
9999         * process-nt.c (nt_open_network_stream):
10000         * process-nt.c (syms_of_process_nt):
10001         (2).
10002         delete quote-handling.  call new lisp code that does it better.
10003
10004         * process-unix.c (connect_to_file_descriptor):
10005         * process-unix.c (allocate_pty):
10006         * process-unix.c (unix_send_process):
10007         * process-unix.c (unix_kill_child_process):
10008         * process-unix.c (unix_open_network_stream):
10009         * process-unix.c (unix_open_multicast_group):
10010         (1). (2).
10011
10012         * process.c:
10013         * process.c (Fstart_process_internal):
10014         (2).  need to canonicalize process path even if absolute.
10015
10016         * select-msw.c (symbol_to_ms_cf):
10017         * select-msw.c (ms_cf_to_symbol):
10018         * select-msw.c (cf_is_autofreed):
10019         * select-msw.c (mswindows_destroy_selection):
10020         * select.c:
10021         * select.c (syms_of_select):
10022         * select.h:
10023         support dibv5, fix bugs. (from Mike Alexander)
10024
10025         * select.c (Fget_selection_internal):
10026         * select.c (select_convert_out):
10027
10028         * sysdep.c:
10029         * sysdep.c (xemacs_stat):
10030         renamed.
10031
10032         * sysdep.c (mkdir):
10033         * sysdep.c (rmdir):
10034         but keep original stat() here because we provide encapsulation
10035         around these funs.
10036
10037         * sysfile.h:
10038         * sysfile.h (fstat):
10039         remove stat garbage.
10040
10041         * syswindows.h:
10042         fix X/MSW conflict.
10043         don't include tchar.h.  it's inappropriate because it makes
10044         compile-time distinctions when we want runtime distinctions.
10045         (we provide our own tchar replacements)
10046
10047         * toolbar.c:
10048         use default object printer for toolbar-button.
10049
10050         * unexcw.c:
10051         make sure we don't encapsulate.
10052
10053         * window.c (vars_of_window):
10054         emphasize that temp-buffer-show-hook is obsolete.
10055
10056 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10057
10058         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10059         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10060
10061         * events.c (Fevent_timestamp_lessp):
10062         Not 64-bit clean.  Use EMACS_INT, not int.
10063
10064 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10065
10066         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10067         unsigned int and changed the last enum to
10068         lrecord_type_last_built_in_type.
10069         (lrecord_implementations_table): changed prototype to know how
10070         long the array is supposed to be.
10071         (lrecord_type_count): new unsigned int to keep track of the
10072         current number of lisp lrecord types.
10073         (DEFINE_EXTERNAL_LRECORD):
10074         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10075         dynamic-modules to declare new lisp types. They are the same
10076         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10077         int for each new type, and increment lrecord_type_count by 1.
10078
10079         * alloc.c (lrecord_implementations_table): Changed to reference
10080         lrecord_type_last_built_in_type for the size of the array.
10081         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10082
10083 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10084
10085         * glyphs.h (check_valid_item_list): Renamed from
10086         check_valid_item_list_1.
10087
10088 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10089
10090         * select.c (Qselect_coerce): New.
10091         * select.c (Vselection_coercion_alist): New.
10092         * select.c (syms_of_select): Declare.
10093         * select.c (get-selection-internal): Use it.
10094         Use the new select-coerce functionality.
10095
10096         * select.c (select_coerce): New.
10097         * select.h (select_coerce): Declare.
10098         New function to coerce one type of data into another.
10099
10100 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10101
10102         * callproc.c (Fcall_process_internal):
10103         (Fcall_process_internal):
10104         * process-unix.c (unix_create_process):
10105         Save and restore the value of errno, so that error messages are accurate.
10106
10107 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10108
10109         * elhash.c (print_hash_table):
10110         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10111         Prettify docstrings and indentation.
10112
10113 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10114
10115         * window.c (Fwindow_pixel_edges): Subtract frame border and
10116         gutter size.
10117
10118 2000-07-31  Andy Piper  <andy@xemacs.org>
10119
10120         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10121         will acknowledge the change.
10122
10123         * glyphs.h: declare tab_control_order_only_changed.
10124
10125         * glyphs-x.c (x_tab_control_redisplay): use
10126         tab_control_order_only_changed.
10127
10128         * glyphs-widget.c (tab_control_order_only_changed): new function.
10129
10130         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10131         tab_control_order_only_changed.
10132
10133         * gui.c (gui_item_equal_sans_selected): new function.
10134         (gui_item_equal): use it.
10135
10136         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10137         :properties in favor of :items..
10138
10139         * glyphs-widget.c (check_valid_item_list): rename from
10140         check_valid_item_list_1.
10141         (check_valid_item_list_1): renamed.
10142         (combo_box_validate): deprecate :properties in favor of :items.
10143         (widget_instantiate): ditto.
10144         (tab_control_update): ditto.
10145         (image_instantiator_combo_box): ditto.
10146         (image_instantiator_tree_view): ditto.
10147         (image_instantiator_tab_control): ditto.
10148         (layout_post_instantiate): remove dead code.
10149
10150         * print.c (debug_print_no_newline): only write to debugger if in
10151         WIN32_NATIVE.
10152
10153         * elhash.c (Fmake_hash_table): update doc string.
10154
10155         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10156         messages whilst in GC. This at least stops XEmacs crashing but has
10157         the potential for wierd behaviour.
10158
10159 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10160
10161         * config.h.in:
10162         Make existence of s&m files optional.
10163
10164         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10165         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10166         * s/gnu.h: Remove HAVE_GETLOADAVG.
10167         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10168         * s/sol2.h: Remove HAVE_GETLOADAVG.
10169         * lisp.h: Remove getloadavg() declaration.
10170         * fns.c:
10171         Include <sys/loadavg.h> if available.
10172         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10173         * config.h.in:  Group together getloadavg()-related macros.
10174         Use only configure-time tests to detect getloadavg().
10175
10176 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10177
10178         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10179
10180 2000-07-25  Andy Piper  <andy@xemacs.org>
10181
10182         * syswindows.h: add tchar.h for native builds.
10183
10184         * frame.c (syms_of_frame): remove set-glyph-image.
10185
10186         * general-slots.h: add Qset_glyph_image.
10187
10188         * glyphs-widget.c (layout_update): add domain arg to
10189         set-glyph-image.
10190         (syms_of_glyphs_widget): remove set-glyph-image.
10191
10192 2000-07-23  Ben Wing  <ben@xemacs.org>
10193
10194         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10195         Vpopup_frame_list.
10196
10197 2000-07-22  Andy Piper  <andy@xemacs.org>
10198
10199         * symsinit.h: add syms_of_win32().
10200
10201         * gui-msw.c (syms_of_gui_mswindows): remove
10202         Fmswindows_shell_execute.
10203         (Fmswindows_shell_execute): moved to win32.c.
10204
10205         * emacs.c (main_1): add syms_of_win32 ().
10206
10207         * win32.c (init_potentially_nonexistent_functions): rewrite in
10208         compiler-friendly terms.
10209         (Fmswindows_shell_execute): move here from gui-msw.c.
10210         (syms_of_win32): new.
10211
10212         * device-msw.c (Fmswindows_printer_list): clean up args to
10213         EnumPrinters.
10214         Don't include tchar under cygwin or mingw.
10215         (msprinter_default_printer): make cygwin-friendly.
10216
10217 2000-07-21  Andy Piper  <andy@xemacs.org>
10218
10219         * glyphs-widget.c (image_instantiator_tree_view): use tab
10220         control's update function.
10221         (layout_property): new function. Retrieve items.
10222
10223         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10224         function. Re-populate the tree view from the pending items.
10225
10226         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10227         is designated the parent if the domain is an image instance. This
10228         is needed so that dirtiness can be cascade up the hierarchy and
10229         thus for layout children to be redisplayed correctly.
10230         (allocate_image_instance): rename glyph -> parent.
10231
10232         * redisplay.h: change redisplay_output_layout signature.
10233
10234         * redisplay-msw.c (mswindows_output_display_block): use domain
10235         arg.
10236
10237         * redisplay-x.c (x_output_display_block): use domain arg.
10238
10239 2000-07-10  Andy Piper  <andy@xemacs.org>
10240
10241         * window.c (Fset_window_configuration): add comment.
10242
10243         * redisplay-output.c (compare_runes):
10244         (redisplay_output_subwindow): redisplay rather than update subwindow.
10245         (redisplay_output_layout): ditto.
10246
10247         * redisplay-msw.c (mswindows_frame_output_end):
10248         (mswindows_frame_output_end): make defer window pos optional.
10249
10250         * lisp.h: add Flast.
10251
10252         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10253         normalize method. Change update method to be for changed
10254         instantiators. Add redisplay method. Change signature of layout
10255         method.
10256         (struct Lisp_Image_Instance): add instantiator.
10257         (IMAGE_INSTANCE_INSTANTIATOR): new.
10258         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10259         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10260         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10261
10262         * glyphs.c:
10263         (find_instantiator_differences): new function.
10264         (Fset_instantiator_property): new convenience function.
10265         (check_image_instance_structure): strictly check for vector
10266         instantiators.
10267         (normalize_image_instantiator): make non-static.
10268         (instantiate_image_instantiator): pass on dest_mask and use new
10269         signatures for image_instance_layout and friends.
10270         (mark_image_instance): mark the instantiator. Mark the subwindow
10271         face not the widget face.
10272         (image_instance_equal): add instantiator.
10273         (image_instance_hash): ditto.
10274         (allocate_image_instance): ditto.
10275         (Fset_image_instance_property): removed.
10276         (Fimage_instance_file_name): ditto.
10277         (Fcolorize_image_instance): ditto.
10278         (image_instance_layout): add offsets to be set.
10279         (update_image_instance): new function. update an image instance
10280         from its changed instantiator.
10281         (inherit_normalize): add dest_mask.
10282         (xbm_normalize): ditto.
10283         (xface_normalize): ditto.
10284         (xpm_normalize): ditto.
10285         (text_update): set_property -> update.
10286         (image_instantiate): use the glyph identity as a hash key, not the
10287         instantiator.
10288         (glyph_width): use new image_instance_layout signature.
10289         (glyph_ascent): ditto.
10290         (glyph_descent): ditto.
10291         (glyph_height): ditto.
10292         (glyph_query_geometry): ressurrect.
10293         (glyph_layout): ditto.
10294         (redisplay_subwindow): update -> redisplay.
10295         (syms_of_glyphs): add Fset_instantiator_property.
10296         (image_instantiator_format_create): set_property -> update.
10297
10298         * glyphs-x.c:
10299         (autodetect_normalize): add dest_maks to signature.
10300         (x_redisplay_subwindow): update -> redisplay.
10301         (x_redisplay_widget): ditto.
10302         (x_button_redisplay): ditto.
10303         (x_progress_gauge_redisplay): ditto.
10304         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10305         stacking order.
10306         (console_type_create_glyphs_x): update -> redisplay.
10307         (image_instantiator_format_create_glyphs_x): ditto.
10308
10309         * glyphs-widget.c:
10310         (check_valid_instantiator): disallow glyphs in the instantiator,
10311         they must now be vectors.
10312         (check_valid_instantiator_list): ditto.
10313         (glyph_instantiator_to_glyph): use internal symbol rather than
10314         intern.
10315         (widget_update): renamed from widget_set_property. Call cascaded
10316         update methods.
10317         (redisplay_widget): renamed from update_widget.
10318         (widget_layout): image_instance_layout now takes position as well
10319         as size.
10320         (widget_normalize): ditto.
10321         (widget_instantiate): ditto.
10322         (tab_control_query_geometry) ditto.:
10323         (tab_control_update): renamed from tab_control_set_property.
10324         (progress_gauge_update): set_property -> update.
10325         (layout_normalize): rewrite so that child instantiators are
10326         normalized also.
10327         (layout_update): new function. Create glyphs from the normalized
10328         children and cope with any other layout keywords. We do not
10329         instantiate children here that will be take care of by
10330         redisplay_output_layout.
10331         (layout_instantiate): call layout_update and not much else.
10332         (layout_post_instantiate): not sure whether this is needed
10333         anymore.
10334         (layout_query_geometry): query glyph geometry rather than
10335         image_instance geometry.
10336         (layout_layout): set offsets from pass in parameters. Use glyph
10337         geometry and layout functions rather than image instance ones.
10338         (native_layout_layout): ditto.
10339         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10340         (image_instantiator_widget): set_property -> update.
10341         (image_instantiator_buttons): ditto.
10342         (image_instantiator_progress_guage): ditto.
10343         (image_instantiator_tab_control): ditto.
10344         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10345         (image_instantiator_layout): add update method.
10346
10347         * glyphs-msw.c (bmp_normalize):
10348         (mswindows_resource_normalize): add dest_mask so that it can be
10349         proprogated by layout_normalize.
10350         (begin_defer_window_pos): make optional because it may not be the
10351         right thing to do and it introduces differences with X.
10352         (mswindows_unmap_subwindow): ditto.
10353         (mswindows_map_subwindow): ditto.
10354         (mswindows_redisplay_subwindow): renamed from
10355         mswindows_update_subwindow.
10356         (mswindows_redisplay_widget): ditto.
10357         (mswindows_button_redisplay): renamed from
10358         mswindows_button_update. Update is now what the instantiation
10359         function does for a changed instantiator.
10360         (mswindows_progress_gauge_instantiate): set the progress value
10361         here if appropriate.
10362         (mswindows_tab_control_redisplay): cope with re-ordering of the
10363         members of the tab widget by simply selecting the new top
10364         widget. This makes things appear ok if you click on a tab.
10365         (mswindows_combo_box_instantiate): image_instance_layout now takes
10366         position as well as size.
10367         (mswindows_progress_gauge_redisplay): renamed from
10368         mswindows_progress_gauge_update.
10369         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10370         (image_instantiator_format_create_glyphs_mswindows): ditto.
10371
10372         * glyphs-eimage.c (jpeg_normalize):
10373         (gif_normalize):
10374         (png_normalize):
10375         (tiff_normalize): add dest_mask so that it can be proprogated by
10376         layout_normalize.
10377
10378         * elhash.c:
10379         (print_hash_table):
10380         (hash_table_weakness_validate):
10381         (decode_hash_table_weakness):
10382         (Fhash_table_weakness):
10383         (Fhash_table_type):
10384         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10385
10386         * console.h (struct console_methods): move update_* to
10387         redisplay_*.
10388
10389 2000-07-20  Ben Wing  <ben@xemacs.org>
10390
10391         * *.[ch] (XSETOBJ): remove unused middle argument.
10392         lisp-disunion.h: correct wrap_object() to one argument.
10393
10394 2000-07-15  Ben Wing  <ben@xemacs.org>
10395
10396         * s/cygwin32.h:
10397         * s/cygwin32.h (CYGWIN_CONV_PATH):
10398         Add missing logb prototype for v1.1.
10399         Use post-b20 names and alias to pre-b20 names when pre-b20.
10400
10401         * s/windowsnt.h: [5].
10402
10403 2000-07-15  Ben Wing  <ben@xemacs.org>
10404
10405         * Makefile.in.in (x_objs):
10406         * Makefile.in.in (sheap_objs):
10407         * Makefile.in.in (objs):
10408         added win32.o, cosmetic cleanups.
10409
10410         * alloc.c (Fmake_byte_code):
10411         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10412         etc. macros which declare their own args now.
10413
10414         * alloc.c (syms_of_alloc):
10415         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10416
10417         * buffer.c:
10418         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10419
10420         * buffer.c (Fget_file_buffer):
10421         Fixed GCPRO problem.
10422
10423         * buffer.c (get_truename_buffer):
10424         Fixed comment about GC checking.
10425
10426         * buffer.c (syms_of_buffer):
10427         Undeclared those dedicated frame funs.
10428         [2].
10429
10430         * buffer.h:
10431         Define convenience macros for internal/external conversions.
10432         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10433         and Qenvironment_variable_encoding for cleaner code.
10434
10435         * bufslots.h:
10436         Remove dedicated-frame; in lisp.
10437
10438         * bytecode.c (funcall_compiled_function):
10439         [1].
10440
10441         * bytecode.c (syms_of_bytecode):
10442         [2].
10443
10444         * console-msw.c:
10445         * console-msw.c (mswindows_show_console): Rewrote.
10446
10447         * console-msw.c (Fmswindows_debugging_output): New.
10448         Sends to OutputDebugString (special MSWin debugger interface).
10449
10450         * console-msw.c (Fmswindows_message_box):
10451         Fixed stupid bugs so it works when called from kill-emacs.
10452
10453         * console-msw.c (syms_of_console_mswindows):
10454         Declare Fmswindows_debugging_output.
10455
10456         * console-msw.h:
10457         New MSWin prototypes.
10458
10459         * console-msw.h (struct mswindows_frame):
10460         New entry last-click-mods for improved button-modifier support.
10461
10462         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10463         New struct entry `popup' with corresponding accessor.
10464
10465         * console-x.c:
10466         * console-x.c (split_up_display_spec):
10467         * console-x.c (get_display_arg_connection):
10468         * console-x.c (x_semi_canonicalize_console_connection):
10469         * console-x.c (x_canonicalize_device_connection):
10470         [[[6]]]: Change char to more specific type.
10471         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10472
10473         * console-x.c (x_semi_canonicalize_console_connection):
10474         * console-x.c (x_canonicalize_device_connection):
10475         [[[9]]]: Fix up error signalling to use new structured error system.
10476
10477         * console-x.h:
10478         [[[4]]]: Define codesys aliases:
10479         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10480         Qx_color_name_encoding, Qx_display_name_encoding.
10481
10482         * console.h (struct console_methods):
10483         New method make_dialog_box_internal supersedes older
10484         popup_dialog_box method.
10485
10486         * data.c:
10487         Define many new errors, part of new structured errors.
10488
10489         * data.c (init_errors_once_early):
10490         * data.c (syms_of_data):
10491         [2].
10492
10493         * device-msw.c (mswindows_init_device):
10494         [[[5]]]: Cleanup to support NT 3.51.
10495
10496         * device-msw.c (decode_devmode): Cleanup.
10497
10498         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10499         * device-msw.c (mswindows_handle_print_dialog_box):
10500         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10501         * device-msw.c (syms_of_device_mswindows):
10502         Delete the dialog box primitives recently introduced by Kirill and
10503         instead interface to general dialog box interface.
10504
10505         * device-x.c:
10506         * device-x.c (compute_x_app_name):
10507         * device-x.c (x_init_device):
10508         * device-x.c (Fx_valid_keysym_name_p):
10509         * device-x.c (Fx_set_font_path):
10510         [6].
10511         [7].
10512
10513         * device.h (wrap_device): New.
10514         First of its kind; meant to replace XSETDEVICE.
10515
10516         * dialog-msw.c: Many file-dialog symbols.
10517
10518         * dialog-msw.c (mswindows_register_popup_frame): New.
10519         * dialog-msw.c (mswindows_is_dialog_msg): New.
10520         For supporting kbd traversal in dialog boxes.
10521
10522         * dialog-msw.c (dialog_proc):
10523         Support hitting ESC in dialogs.
10524
10525         * dialog-msw.c (struct):
10526         Common dialog box errors.
10527
10528         * dialog-msw.c (handle_file_dialog_box): New.
10529         Add file dialog code.
10530
10531         * dialog-msw.c (handle_question_dialog_box):
10532         Redo existing code to support new question dialog syntax.
10533
10534         * dialog-msw.c (console_type_create_dialog_mswindows):
10535         We support new dialog console method.
10536
10537         * dialog-msw.c (syms_of_dialog_mswindows):
10538         * dialog-msw.c (vars_of_dialog_mswindows):
10539         New file dialog symbols, vars.
10540
10541         * dialog-x.c:
10542         * dialog-x.c (maybe_run_dbox_text_callback):
10543         * dialog-x.c (dbox_descriptor_to_widget_value):
10544         * dialog-x.c (x_make_dialog_box_internal):
10545         * dialog-x.c (console_type_create_dialog_x):
10546         Mule-ize entire file.
10547         Redo to support question dialog syntax.
10548         [6].
10549
10550         * dialog.c:
10551         * dialog.c (Fmake_dialog_box_internal):
10552         * dialog.c (syms_of_dialog):
10553         Kill old popup-dialog-box, replace with new primitive.
10554         Just call device method or signal error.
10555
10556         * eldap.c (Fldap_open):
10557         * eldap.c (Fldap_search_basic):
10558         * eldap.c (Fldap_add):
10559         * eldap.c (Fldap_modify):
10560         [1].
10561         [7].
10562
10563         * emacs.c:
10564         * emacs.c (make_arg_list_1):
10565         * emacs.c (make_arg_list):
10566         Mule-ize call to dll_init().
10567         [6].
10568         [8].
10569
10570         * emacs.c (make_argc_argv):
10571         * emacs.c (free_argc_argv):
10572         * emacs.c (init_cmdargs):
10573         * emacs.c (main_1):
10574         * emacs.c (Fkill_emacs):
10575         * emacs.c (Fdump_emacs):
10576         Update comments about what can be used in syms_* etc.
10577         Call init_win32() when necessary.
10578         Fix up MS Win dialog box in kill-buffer to actually work right.
10579         [7].
10580
10581         * eval.c:
10582         * eval.c (For):
10583         * eval.c (Fand):
10584         * eval.c (Fprogn):
10585         * eval.c (Fprog1):
10586         * eval.c (Fprog2):
10587         * eval.c (FletX):
10588         * eval.c (Flet):
10589         * eval.c (condition_case_3):
10590         * eval.c (Feval):
10591         * eval.c (function_argcount):
10592         * eval.c (funcall_lambda):
10593         [1].
10594
10595         * eval.c (type_error): New.
10596         * eval.c (maybe_type_error): New.
10597         * eval.c (continuable_type_error): New.
10598         * eval.c (maybe_continuable_type_error): New.
10599         * eval.c (type_error_with_frob): New.
10600         * eval.c (maybe_type_error_with_frob): New.
10601         * eval.c (continuable_type_error_with_frob): New.
10602         * eval.c (maybe_continuable_type_error_with_frob): New.
10603         New functions for use with structured errors.
10604
10605         * event-Xt.c:
10606         * event-Xt.c (x_event_to_emacs_event):
10607         Buttons are now modifiers too.
10608
10609         * event-Xt.c (emacs_Xt_current_event_timestamp):
10610         Implement new event method.
10611         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10612
10613         * event-msw.c:
10614         * event-msw.c (ntpipe_shove_writer): [5].
10615         * event-msw.c (mswindows_enqueue_mouse_button_event):
10616         * event-msw.c (mswindows_drain_windows_queue):
10617         * event-msw.c (mswindows_wnd_proc): [7].
10618         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10619         * event-msw.c (mswindows_modifier_state):
10620         Throughout: support new button modifiers.
10621
10622         * event-msw.c (emacs_mswindows_current_event_timestamp):
10623         Implement new event method.
10624         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10625
10626         * event-stream.c:
10627         * event-stream.c (event_stream_current_event_timestamp): New.
10628         * event-stream.c (maybe_kbd_translate): New functionality.
10629         * event-stream.c (vars_of_event_stream):
10630         Document new kbd-translate-table functionality.
10631
10632         * event-stream.c (Fcurrent_event_timestamp): New.
10633         New primitive for use in fabricated events.
10634         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10635
10636         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10637
10638         * events.c:
10639         * events.c (Fmake_event):
10640         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10641         [1].
10642         [9].
10643
10644         * events.c (format_event_object): fix gcc warnings.
10645
10646         * events.c (Fevent_timestamp): Document new primitives.
10647
10648         * events.c (TIMESTAMP_HALFSPACE): New.
10649
10650         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10651         comparing timestamps correctly (half-space algorithm).
10652
10653         * events.c (Fevent_modifier_bits): Doc fix.
10654
10655         * events.c (Fevent_modifiers): Major doc addition.
10656         * events.c (event_x_y_pixel_internal): Typo fix.
10657         * events.c (syms_of_events): Declare new primitives.
10658
10659         * events.h:
10660         Update long comment for button modifiers, timestamps.
10661
10662         * events.h (struct event_stream):
10663         New current_event_timestamp method.
10664
10665         * extents.c:
10666         * extents.c (extent_in_region_p):
10667         * extents.c (decode_extent):
10668         * extents.c (Fset_extent_parent):
10669         * extents.c (decode_map_extents_flags):
10670         Fix gcc warnings.
10671         [9].
10672
10673         * extents.c (struct extent_at_arg):
10674         * extents.c (decode_extent_at_flag):
10675         * extents.c (extent_at_mapper):
10676         * extents.c (extent_at_bytind):
10677         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10678         * extents.c (Fextents_at): New primitive. [9].
10679         * extents.c (symbol_to_glyph_layout): [9].
10680         Support new primitive `extents-at'.
10681
10682
10683         * extents.c (get_text_property_bytind):
10684         extent_at_bytind has another arg.
10685         [9].
10686
10687         * extents.c (syms_of_extents): New primitive.
10688
10689         * file-coding.c (Fmake_coding_system): [1].
10690         * file-coding.c (subsidiary_coding_system): fix gcc warning
10691         * file-coding.c (syms_of_file_coding): [2].
10692
10693         * fileio.c (Fexpand_file_name):
10694         * fileio.c (Fsysnetunam):
10695         * fileio.c (Ffile_exists_p):
10696         * fileio.c (Ffile_executable_p):
10697         * fileio.c (Fverify_visited_file_modtime):
10698         Clean up GCPROing.
10699
10700         * fileio.c (syms_of_fileio): [2].
10701
10702         * filelock.c (lock_file_1):
10703         * filelock.c (current_lock_owner):
10704         * filelock.c (lock_if_free):
10705         * filelock.c (lock_file):
10706         * filelock.c (unlock_file):
10707         Clean up GCPROing.
10708
10709         * fns.c (concat): Fix gcc warning.
10710
10711         * fns.c (Fmember):
10712         * fns.c (Fold_member):
10713         * fns.c (Fmemq):
10714         * fns.c (Fold_memq):
10715         * fns.c (memq_no_quit):
10716         * fns.c (Fassoc):
10717         * fns.c (Fold_assoc):
10718         * fns.c (Fassq):
10719         * fns.c (Fold_assq):
10720         * fns.c (assq_no_quit):
10721         * fns.c (Frassoc):
10722         * fns.c (Fold_rassoc):
10723         * fns.c (Frassq):
10724         * fns.c (Fold_rassq):
10725         * fns.c (rassq_no_quit):
10726         * fns.c (Fdelete):
10727         * fns.c (Fold_delete):
10728         * fns.c (Fdelq):
10729         * fns.c (Fold_delq):
10730         * fns.c (delq_no_quit):
10731         * fns.c (Fremassoc):
10732         * fns.c (Fremassq):
10733         * fns.c (remassq_no_quit):
10734         * fns.c (Fremrassoc):
10735         * fns.c (Fremrassq):
10736         * fns.c (remrassq_no_quit):
10737         * fns.c (Freverse):
10738         * fns.c (mapcar1):
10739         [1].
10740
10741         * frame-msw.c (mswindows_init_frame_1):
10742         * frame-msw.c (mswindows_delete_frame):
10743         Register popups with dialog code so keyboard traversing works.
10744
10745         * frame-tty.c (tty_raise_frame_no_select): [1].
10746
10747         * frame-x.c:
10748         * frame-x.c (x_set_frame_text_value):
10749         * frame-x.c (x_set_frame_properties):
10750         * frame-x.c (x_create_widgets):
10751         [7].
10752
10753         * frame.c:
10754         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10755
10756         * frame.h (wrap_frame): New.
10757         Macro like wrap_device.
10758
10759         * general.c:
10760         * general.c (SYMBOL):
10761         * general.c (syms_of_general):
10762         Major reorg.  This is now just a wrapper and symbols themselves
10763         are listed in general-slots.h.
10764
10765         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10766         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10767
10768         * glyphs-msw.c (mswindows_native_layout_instantiate):
10769         Add DS_CONTROL so keyboard traversal will work.
10770
10771         * glyphs-widget.c:
10772         * glyphs-widget.c (syms_of_glyphs_widget):
10773         Move some symbols to general-slots.h.
10774
10775         * glyphs-x.c:
10776         * glyphs-x.c (xbm_instantiate_1):
10777         * glyphs-x.c (x_xbm_instantiate):
10778         * glyphs-x.c (x_xface_instantiate):
10779         * glyphs-x.c (autodetect_instantiate):
10780         * glyphs-x.c (cursor_font_instantiate):
10781         * glyphs-x.c (x_update_widget):
10782         * glyphs-x.c (x_widget_instantiate):
10783         * glyphs.c (bitmap_to_lisp_data):
10784         * glyphs.c (pixmap_to_lisp_data):
10785         [7].
10786
10787         * glyphs.c (syms_of_glyphs):
10788         [2].
10789
10790         * gui-x.c:
10791         * gui-x.c (print_widget_value):
10792         * gui-x.c (menu_separator_style_and_to_external):
10793         * gui-x.c (add_accel_and_to_external):
10794         * gui-x.c (button_item_to_widget_value):
10795         * gui-x.c (gui_items_to_widget_values_1):
10796         * gui-x.c (gui_items_to_widget_values):
10797         * gui-x.c (syms_of_gui_x):
10798         * gui-x.c (vars_of_gui_x):
10799         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10800         [9].
10801
10802         * gui-x.h:
10803         Muleize, prototype changes matching gui-x.c.
10804
10805         * gui.c:
10806         * gui.c (separator_string_p):
10807         * gui.c (gui_item_add_keyval_pair):
10808         * gui.c (make_gui_item_from_keywords_internal):
10809         * gui.c (signal_too_long_error):
10810         * gui.c (parse_gui_item_tree_item):
10811         * gui.c (syms_of_gui):
10812         * gui.c (vars_of_gui):
10813         * gui.h:
10814         menu-no-selection-hook moved here (used by MSWin).
10815         Move some symbols to general-slots.h.
10816         [6].
10817         [9].
10818
10819         * insdel.c (get_buffer_pos_char):
10820         * insdel.c (get_buffer_range_char):
10821         Add GC comments.
10822
10823         * keymap.c (keymap_lookup_directly):
10824         * keymap.c (keymap_store):
10825         * keymap.c (ensure_meta_prefix_char_keymapp):
10826         * keymap.c (describe_map):
10827         * keymap.h:
10828         Support new button modifiers.
10829
10830         * lisp-disunion.h (wrap_object):
10831         * lisp-disunion.h (XSETOBJ):
10832         Rename make_obj to wrap_object.
10833
10834         * lisp-union.h:
10835         * lisp-union.h (make_int):
10836         * lisp-union.h (make_char):
10837         Support wrap_object.
10838
10839         * lisp.h:
10840         * lisp.h (LIST_LOOP):
10841         * lisp.h (EXTERNAL_LIST_LOOP):
10842         * lisp.h (LIST_LOOP_2):
10843         * lisp.h (EXTERNAL_LIST_LOOP_1):
10844         * lisp.h (EXTERNAL_LIST_LOOP_2):
10845         * lisp.h (EXTERNAL_LIST_LOOP_3):
10846         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10847         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10848         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10849         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10850         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10851         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10852         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10853         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10854         * lisp.h (struct Lisp_Symbol):
10855         * lisp.h (maybe_continuable_error_with_frob):
10856         Fix up section comments.
10857         Add new types for char to indicate usage.
10858         Delete symbols auto-generated from general-slots.h.
10859         Add prototypes for structured error functions.
10860         Add long comments describing looping macros and change interface
10861         so that lvalues are automatically declared.
10862         Add NO_DECLARE macro in case callers want to declare lvalues
10863         themselves.
10864
10865         * lread.c (read_syntax_error):
10866         * lread.c (continuable_read_syntax_error):
10867         * lread.c (read_structure):
10868         * lread.c (sequence_reader):
10869         * lread.c (read_list_conser):
10870         * lread.c (read_compiled_function):
10871         Rename syntax_error and continuable_syntax_error to avoid clash
10872         with same-named structured error functions.
10873
10874         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10875         * menubar-msw.c (populate_menu_add_item):
10876         * menubar-msw.c (populate_or_checksum_helper):
10877         [5].
10878         [9].
10879
10880         * menubar-x.c:
10881         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10882         Mule-ize whole file.
10883
10884         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10885
10886         * mule-charset.c (Fmake_charset):
10887         * mule-wnnfns.c (Fwnn_set_param):
10888         [1].
10889
10890         * ntproc.c (create_child):
10891         * ntproc.c (Fwin32_set_current_locale):
10892         Add comments portending doom.
10893
10894         * objects-msw.c:
10895         * objects-msw.c (old_font_enum_callback_2):
10896         * objects-msw.c (font_enum_callback_1):
10897         * objects-msw.c (mswindows_enumerate_fonts):
10898         [5].
10899
10900         * objects-x.c:
10901         * objects-x.c (allocate_nearest_color):
10902         * objects-x.c (x_parse_nearest_color):
10903         * objects-x.c (x_initialize_color_instance):
10904         * objects-x.c (x_print_color_instance):
10905         * objects-x.c (x_finalize_color_instance):
10906         * objects-x.c (x_valid_color_name_p):
10907         * objects-x.c (x_initialize_font_instance):
10908         * objects-x.c (x_print_font_instance):
10909         * objects-x.c (valid_x_font_name_p):
10910         * objects-x.c (truename_via_FONT_prop):
10911         * objects-x.c (truename_via_random_props):
10912         * objects-x.c (truename_via_XListFonts):
10913         * objects-x.c (x_font_truename):
10914         * objects-x.c (x_font_instance_truename):
10915         * objects-x.c (x_font_instance_properties):
10916         * objects-x.c (x_list_fonts):
10917         * objects-x.c (x_find_charset_font):
10918         Mule-ize entire file.
10919         [7].
10920
10921         * objects-x.h:
10922         Mule-verify.
10923
10924         * print.c:
10925         * print.c (std_handle_out_external):
10926         * print.c (debug_print_no_newline):
10927         * print.c (syms_of_print):
10928         Output to all debugger kinds in debug-print.
10929         Fix console-output code under MSWin to actually work.
10930
10931         * process-nt.c (send_signal):
10932         * process-nt.c (nt_create_process):
10933         Use newer Unicode macros.
10934
10935         * process-unix.c (unix_create_process):
10936         * process-unix.c (unix_canonicalize_host_name):
10937         * process-unix.c (unix_open_network_stream):
10938         [7].
10939
10940         * scrollbar-x.c:
10941         Mule-verify.
10942
10943         * search.c (syms_of_search):
10944         [2].
10945
10946         * select-msw.c (mswindows_destroy_selection):
10947         Use LIST_LOOP_2.
10948
10949         * select-x.c (symbol_to_x_atom):
10950         [7].
10951
10952         * select.c (syms_of_select):
10953         [2].
10954
10955         * sound.c (Fplay_sound_file):
10956         [7].
10957
10958         * specifier.c:
10959         * specifier.c (decode_specifier_type):
10960         * specifier.c (Fvalid_specifier_locale_type_p):
10961         * specifier.c (check_valid_locale_or_locale_type):
10962         * specifier.c (decode_locale):
10963         * specifier.c (decode_locale_type):
10964         * specifier.c (decode_locale_list):
10965         * specifier.c (check_valid_domain):
10966         * specifier.c (decode_specifier_tag_set):
10967         * specifier.c (Fcanonicalize_tag_set):
10968         * specifier.c (Fdefine_specifier_tag):
10969         * specifier.c (Fspecifier_tag_predicate):
10970         * specifier.c (check_valid_inst_list):
10971         * specifier.c (check_valid_spec_list):
10972         * specifier.c (decode_how_to_add_specification):
10973         * specifier.c (check_modifiable_specifier):
10974         * specifier.c (specifier_add_spec):
10975         * specifier.c (boolean_validate):
10976         * specifier.c (display_table_validate):
10977         [9].
10978
10979         * specifier.c (syms_of_specifier):
10980         Move some symbols to general-slots.h.
10981         [2].
10982
10983         * symbols.c:
10984         * symbols.c (Fmapatoms):
10985         * symbols.c (Fapropos_internal):
10986         Add GCPROs.
10987
10988         * symbols.c (set_default_buffer_slot_variable):
10989         * symbols.c (set_default_console_slot_variable):
10990         [1].
10991
10992         * symbols.c (defsymbol_massage_name_1):
10993         * symbols.c (defkeyword_massage_name):
10994         * symbols.c (deferror_1):
10995         * symbols.c (deferror):
10996         * symbols.c (deferror_massage_name_and_message):
10997         * symeval.h:
10998         * symeval.h (DEFSYMBOL):
10999         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11000
11001         * symbols.c (syms_of_symbols):
11002         [2].
11003
11004         * symsinit.h:
11005         * symsinit.h (init_win32): New.
11006         Also new is syms_of_dialog_mswindows.
11007
11008         * syswindows.h:
11009         Add new Unicode macros, missing Cygwin wide-char functions,
11010         convenience conversion macros for Qmswindows_tstr, macros for
11011         encapsulating required MSWin <-> Cygwin filename conversions,
11012         prototype for dynamically-extracted (not in NT 3.51) functions.
11013
11014         * toolbar-x.c:
11015         Mule-verify.
11016
11017         * tooltalk.c (Fadd_tooltalk_message_arg):
11018         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11019         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11020         [7].
11021
11022         * tooltalk.c (syms_of_tooltalk):
11023         [2].
11024
11025         * unexnt.c:
11026         * unexnt.c (unexec):
11027         Fix up headers, declaration of unexec() to be more standard.
11028
11029 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11030
11031         * offix.h: Revert change to guard macros - they're used in offix.c!
11032
11033 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11034
11035         * lisp.h: Defsubred Fdelete.
11036
11037         * console-msw.h:  (msprinter_default_printer): Added.
11038
11039         * console-msw.c (msprinter_canonicalize_console_connection):
11040         (msprinter_canonicalize_device_connection): Added.
11041
11042         * device-msw.c (msprinter_default_printer):
11043         (Fmswingows_get_default_printer):
11044         (signal_enum_priner_error):
11045         (Fmswingows_printer_list): Added.
11046
11047 2000-07-19  Martin Buchholz <martin@xemacs.org>
11048
11049         * XEmacs 21.2.35 is released.
11050
11051 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11052
11053         * select-x.c (x_handle_selection_request):
11054         Text selected in xemacs and pasted into xterm failed to appear.
11055         Spelling fixes and cosmetic changes.
11056
11057 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11058
11059         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11060         XEmacs frame (fix for doubling chars in dialog boxes).
11061
11062 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11063
11064         * select.c (select_convert_in, select_convert_out):
11065         Don't call intern() every time.
11066
11067         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11068         * select.c (vars_of_select): Initialise them.
11069
11070 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11071
11072         * select.c (selection-coercible-types): New.
11073
11074         * select.c (own-selection-internal):
11075         * select.c (get-selection-internal):
11076         MULE bug fix - these should default to COMPOUND_TEXT and not
11077         STRING for MULE. I think.
11078
11079         * select.c (select_convert_out): Use selection-coercible-types
11080         to find types that we can attempt to perform coercions on.
11081
11082 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11083
11084         * mule-wnnfns.c:
11085         * mule-canna.c:
11086         Add coding: cookie to identify encoding.
11087
11088         * mule-canna.c (CANNA_mode_keys): make static.
11089         Use proper prototypes, even for functions of no arguments.
11090         Remove external prototype for Fding().
11091
11092         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11093
11094         * select.c (syms_of_select): Add missing DEFSUBR.
11095
11096 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11097
11098         * select.c (get_selection_internal, own_selection_internal):
11099         Make the type default to STRING, rather than placing a nil type
11100         into Vselection_alist.
11101
11102 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11103
11104         * gpmevent.c (tty_selection_exists_p):
11105         * gpmevent.c (tty_own_selection):
11106         Updated parameter lists.
11107
11108 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11109
11110         * select.h (selection-alist): Removed declaration.
11111
11112         * select.h (get_local_selection):
11113         * select.c (get_local_selection):
11114         Made static.
11115
11116         * select.h (convert_selection): Removed declaration.
11117         * select.c (convert_selection): Removed.
11118         This function belongs in Lisp.
11119
11120         * select.h (select_convert_in): Declare.
11121         * select.h (select_convert_out): Declare.
11122         * select.c (select_convert_in): New.
11123         * select.c (select_convert_out): New.
11124         New conversion functions for other files to call.
11125
11126         * select.h (select_notify_buffer_kill): Declare.
11127         * select.c (select_notify_buffer_kill): New.
11128         New functions that get called from kill-buffer.
11129
11130         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11131         X-specific lisp code.
11132
11133         * select.h: Declare some of the lisp-visible functions for
11134         external use.
11135
11136         * select.c (clean_local_selection_data): Removed. This was
11137         a disgusting function, and previously should have been in
11138         select-x.c in any case. The functionality is now provided
11139         in select-convert-from-integer (select.el).
11140
11141         * select.c (available-selection-types): Fixed stupidity where
11142         INTEGER and ATOM got added twice. Also add STRING when we see an
11143         extent.
11144
11145         * select.c (get-selection-internal): Removed symbol stripping. No
11146         longer causes conversion when data comes from the internal cache.
11147
11148         * select.c (syms_of_select): Added new functions.
11149
11150         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11151         error checking - previously this called abort!
11152
11153         * select-x.c (x_own_selection): Changed comment.
11154
11155         * select-x.c (x_handle_selection_request): Use select_convert_out.
11156         Don't mess with selection-alist; it's an internal variable of select.c.
11157
11158         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11159
11160         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11161         rather than messing with selection-alist.
11162
11163         * select-msw.c (mswindows_get_foreign_selection):
11164         Use TO_INTERNAL_FORMAT rather than hacking.
11165
11166 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11167
11168         * process-unix.c (unix_open_multicast_group):
11169         (unix_open_multicast_group): Remove useless casts.
11170
11171 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11172
11173         * sound.c (Fplay_sound): Fix `unused variable' warning.
11174
11175         * emacs.c (main): Use correct type for _environ on SCO5.
11176
11177 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11178
11179         * console.h (own_selection_method):
11180         * console.h (selection_exists_p_method):
11181         * console.h (available_selection_types_method): New.
11182         * console.h (register_selection_data_type_method): New.
11183         * console.h (selection_data_type_name): New.
11184
11185         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11186         function & alist to track GlobalAlloc()'d handles that need
11187         releasing when the clipboard data gets replaced or emptied.
11188
11189         * event-msw.c (mswindows_wnd_proc): Call it.
11190
11191         * lisp.h, general.c (Qappend): New symbol representing a
11192         `how-to-add' mode.
11193
11194         * select.c (own-selection-internal):
11195         * select.c (selection-exists-p):
11196         * select.c (available-selection-types): New.
11197         * select.c (register-selection-data-type): New.
11198         * select.c (selection-data-type-name): New.  New functions to deal
11199         with device-specific selection data formats.
11200         * select.c (selection-converter-out-alist): Renamed.
11201         * select.c (selection-converter-in-alist): New.
11202         * select.c (selection-appender-alist): New.  Added new alists.
11203         * select.c (syms_of_select, vars_of_select): Added new symbols &
11204         variables.
11205         * select.c (get_local_selection): Split.
11206         * select.c: Removed spurious type checking - selections may now be
11207         of any type, not just strings.
11208         * select.c (own-selection-internal):
11209
11210         * select.h, select.c (convert_selection): New. Created
11211         convert_selection() function based on get_local_selection().
11212         * select.h, select.c (QCF_*): New symbols representing mswindows
11213         clipboard formats.
11214         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11215         symbols representing `how-to-add' modes.
11216
11217         * select-msw.c (x_sym_p): New.
11218         * select-msw.c (symbol_to_ms_cf): New.
11219         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11220         symbols & clipboard formats. Can also handle string names.
11221         * select-msw.c (mswindows_own_selection):
11222         * select-msw.c (mswindows_selection_exists_p):
11223         Added `data-type' parameter. Use it.
11224         * select-msw.c (mswindows_available_selection_types): New.
11225         * select-msw.c (mswindows_register_selection_data_type): New.
11226         * select-msw.c (mswindows_selection_data_type_name): New.
11227         * select-msw.c (mswindows_own_selection):
11228         * select-msw.c (mswindows_get_foreign_selection):
11229         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11230         * select-msw.c (console_create_select_mswindows): Added new methods.
11231         * select-msw.c (mswindows_destroy_selection): New.
11232         * select-msw.c (Vhandle_alist): New list.
11233         * select-msw.c (mswindows_own_selection):
11234
11235         * select-x.c (x_own_selection):
11236         * select-x.c (x_selection_exists_p):
11237         * select-x.c: Added some comments about maybe using new
11238         functionality.
11239         * select-x.c (x_own_selection):
11240
11241         * specifier.c: Remove definition of Qappend (now in general.c)
11242         * specifier.c (syms_of_specifier): Remove Qappend.
11243
11244 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11245
11246         * config.h.in: Add socklen_t.
11247
11248         * s/decosf4-0.h: No special compiler flags needed or desired.
11249         In particular, undefine _BSD for DEC OSF 4.0.
11250
11251 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11252
11253         * redisplay-msw.c (msprinter_frame_output_end): Added.
11254         (console_type_create_redisplay_mswindows): Referred the above.
11255
11256         * frame.c (setup_frame_without_minibuffer): Do not create a
11257         default minibuffer frame on a printer device.
11258
11259         * frame-msw.c (apply_dc_geometry): Added.
11260         (msprinter_start_page):
11261         (msprinter_init_frame_3):
11262         (msprinter_eject_page): Use it.
11263
11264         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11265         and removed residual duplex and orientation properties.
11266
11267 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11268
11269         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11270
11271         * unexalpha.c: Remove system prototypes from C sources!
11272
11273 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11274
11275         * eval.c: Remove references to M-x edit-options in DEFUNs for
11276         `defvar' and `defconst'.
11277
11278 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11279
11280         * config.h.in: Remove SMART_INCLUDE hackery.
11281
11282         PostgreSQL hacking:
11283         * config.h.in: Don't use SMART_INCLUDE.
11284
11285         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11286         * inline.c: Simply #include "postgresql.h"
11287         * postgresql.c:
11288         - Don't use SMART_INCLUDE
11289         - Use simply "const".
11290         - Use standard doc string conventions.
11291         - Use correct type for result of PQstatus.
11292
11293 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11294
11295         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11296
11297         C++ compilation changes.
11298         * config.h.in (EXTERN_C): Define.
11299         * config.h.in (not): This is also a C++ keyword.
11300         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11301         * cm.c: Use EXTERN_C.
11302         * redisplay-tty.c: Use EXTERN_C.
11303         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11304
11305 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11306
11307         * general.c: Remove duplicate definition for Qfunction.
11308
11309 2000-07-08  Ben Wing  <ben@xemacs.org>
11310
11311         * device-msw.c (msprinter_init_device):
11312         * device-msw.c (sync_printer_with_devmode):
11313         * device-msw.c (handle_devmode_changes):
11314         * device-msw.c (print_dialog_worker):
11315         * device-msw.c (Fmsprinter_apply_settings):
11316         * device-msw.c (hash_devmode):
11317         * device-msw.c (Fmsprinter_settings_despecialize):
11318         use Qmswindows_tstr, not Qctext.
11319
11320         * vm-limit.c (check_memory_limits):
11321         avoid infinite loop printing warning messages.
11322
11323 2000-07-05  Craig Lanning  <lanning@scra.org>
11324
11325         * Makefile.in.in: Add support for including the Windows resources
11326         when building with the cygwin and mingw targets.
11327
11328         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11329         not set or not correct.
11330         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11331         (init_initial_directory): Don't try to use $PWD on the
11332         WIN32_NATIVE target.
11333
11334         * s\cygwin32.h:
11335         [[Add -mwindows to eliminate console window.]] not required --ben
11336         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11337         (MAIL_USE_POP): removed; now handled by configure.
11338
11339         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11340         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11341         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11342         (MAIL_USE_POP): removed; now handled by configure.
11343         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11344         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11345         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11346         constant string.
11347         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11348         up from <winsock.h> via systime.h.
11349         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11350         (getpagesize): from Dan Holmsand, added.
11351         Added #endif which was left dangling by Ben's mega patch; added
11352         comment to help prevent this in the future.
11353
11354         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11355
11356 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11357
11358         * console-msw.h (struct mswindows_device): Removed unnecessary
11359         cached device geometry values.
11360         Added update_tick and an accessor macro.
11361         (Lisp_Devmode): Added lrecord declaration.
11362         (struct msprinter_device): Contain devmode as a Lisp object.
11363         Added mswindows_get_selected_frame_hwnd();
11364
11365         * console.h (struct console_methods): Indentation nitpicking.
11366
11367         * device-msw.c (mswindows_init_device): Do not initialize geometry
11368         cache. Initialize update tick.
11369         (mswindows_device_system_metrics): Ask the device for its geometry.
11370         (global_free_2_maybe):
11371         (devmode_to_hglobal):
11372         (handle_printer_changes):
11373         (ensure_not_printing):
11374         (print_dialog_worker):
11375         (Fmsprinter_print_setup_dialog):
11376         (Fmsprinter_print_dialog):
11377         (plist_get_margin):
11378         (plist_set_margin):
11379         (Fmsprinter_page_setup_dialog): Added functions.
11380         (sync_printer_with_devmode):
11381         (handle_devmode_changes):
11382         (Fmsprinter_get_settings):
11383         (Fmsprinter_select_settings):
11384         (Fmsprinter_apply_settings):
11385         (allocate_devmode):
11386         (Fmsprinter_settings_copy):
11387         (Fmsprinter_settings_despecialize):
11388         (print_devmode):
11389         (finalize_devmode):
11390         (equal_devmode):
11391         (hash_devmode): Added functions
11392         (syms_of_device_mswindows): Init devmode lrecord class.
11393
11394         * device.h: Added an exfun for find-device.
11395
11396         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11397         geometry; although, recreate the device compatible DC.
11398
11399         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11400         (msprinter_init_frame_3):
11401         (msprinter_frame_property):
11402         (msprinter_internal_frame_property_p):
11403         (msprinter_frame_properties):
11404         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11405         print job properties (will move to device settings).
11406
11407         * lisp.h: Added symbols.
11408
11409         * general.c (syms_of_general): Declared them.
11410
11411         * hash.c (string_hash): Added.
11412
11413         * lrecord.h (lrecord_type): Added devmode lrecord type.
11414
11415 2000-07-02  Mike Sperber <mike@xemacs.org>
11416
11417         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11418         FreeBSD 4.0.
11419
11420 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11421
11422         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11423         integer.
11424
11425 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11426
11427         * data.c (Fstring_to_number): Don't recognize floating point if
11428         base is not 10.
11429
11430 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11431
11432         * glyphs-widget.c (tab_control_query_geometry):
11433         (widget_query_geometry):
11434         (button_query_geometry):
11435         * glyphs.c (text_query_geometry):
11436         Enforce type correctness.
11437
11438 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11439
11440         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11441         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11442
11443 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11444
11445         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11446         conflicts with gcc's fixincluded version of FOO.h.
11447
11448         * glyphs.h (image_instance_geometry): Remove trailing `,'
11449
11450 2000-06-08  Mike Alexander  <mta@arbortext.com>
11451
11452         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11453         (shove_thread): Don't write the same output twice
11454         (make_ntpipe_output_stream): Increase priority of shove thread
11455         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11456         chance to run
11457         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11458         it.
11459
11460 2000-06-12  Ben Wing  <ben@xemacs.org>
11461
11462         * s\mingw32.h (sigset):
11463         * s\windowsnt.h (sigset):
11464         rename msw_ to mswindows_ for consistency with general convention.
11465
11466 2000-06-12  Ben Wing  <ben@xemacs.org>
11467
11468         * console-msw.c:
11469         * console-msw.c (mswindows_get_console_hwnd):
11470         * console-msw.c (mswindows_ensure_console_allocated):
11471         * console-msw.c (mswindows_hide_console):
11472         * console-msw.c (mswindows_show_console):
11473         * console-msw.c (mswindows_ensure_console_buffered):
11474         * console-msw.c (mswindows_output_console_string):
11475         * console-msw.c (mswindows_windows9x_p):
11476         * console-msw.h:
11477         * device-msw.c (mswindows_get_workspace_coords):
11478         * device-msw.c (mswindows_device_system_metrics):
11479         * dialog-msw.c (mswindows_popup_dialog_box):
11480         * event-msw.c (mswindows_wnd_proc):
11481         * frame-msw.c (mswindows_size_frame_internal):
11482         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11483         * menubar-msw.c (displayable_menu_item):
11484         * menubar-msw.c (mswindows_char_is_accelerator):
11485         * nt.c:
11486         * nt.c (mswindows_sigset):
11487         * nt.c (mswindows_sigrelse):
11488         * nt.c (mswindows_sigpause):
11489         * nt.c (mswindows_raise):
11490         * nt.c (timer_proc):
11491         * ntproc.c:
11492         * ntproc.c (find_child_console):
11493         * ntproc.c (sys_kill):
11494         * print.c:
11495         * print.c (std_handle_out_external):
11496         * process-nt.c (find_child_console):
11497         * process-nt.c (send_signal_the_95_way):
11498         * process-nt.c (ensure_console_window_exists):
11499         * process-nt.c (nt_create_process):
11500         * syssignal.h:
11501         rename msw_ to mswindows_ for consistency with general convention.
11502
11503         * emacs.c:
11504         * dumper.c:
11505         include nt.h, not syswindows.h.
11506
11507         * nt.c (mswindows_fstat):
11508         * nt.c (mswindows_stat):
11509         prefix mswindows_ instead of attempting to directly override the
11510         library functions.  fix declarations.
11511
11512         * nt.h:
11513         include syswindows.h.  move some sysdep.h stuff here.
11514
11515         * ntheap.h:
11516         include syswindows.h, not <windows.h>.
11517
11518         * ntplay.c:
11519         clean up headers.
11520
11521         * sysdep.c:
11522         clean up headers.
11523
11524         * sysdep.c (sys_fstat):
11525         * sysdep.c (sys_stat):
11526         call mswindows versions when appropriate.
11527
11528         * sysdep.h:
11529         move mswin decls to nt.h.
11530
11531         * syswindows.h:
11532         add long comment describing appropriate use of the various windows
11533         headers.
11534
11535 2000-06-11  Ben Wing  <ben@xemacs.org>
11536
11537         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11538
11539 2000-06-10  Ben Wing  <ben@xemacs.org>
11540
11541         * Makefile.in.in (release):
11542         Correction to make sure xemacs.exe always dumped when correct.
11543
11544         * alloca.c:
11545         * balloon_help.c:
11546         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11547
11548         * buffer.c (set_buffer_internal):
11549         [[[[2]]]]: Remove HAVE_FEP code.
11550
11551         * buffer.c (init_initial_directory):
11552         [3].
11553
11554         * bytecode.c:
11555         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11556         individual files.
11557
11558         * callproc.c:
11559         * callproc.c (call_process_cleanup):
11560         * callproc.c (Fold_call_process_internal):
11561         * callproc.c (child_setup):
11562         * callproc.c (getenv_internal):
11563         * callproc.c (init_callproc):
11564         * callproc.c (vars_of_callproc):
11565         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11566         __CYGWIN32__ -> CYGWIN.
11567         DOS_NT -> WIN32_NATIVE.
11568         Remove MSDOS support/references, converting to WIN32_NATIVE
11569           where correct.
11570         __MINGW32__ -> MINGW.
11571         Fix windows.h includes.
11572         Remove bogus HAVE_NTGUI.
11573
11574         * config.h.in:
11575         [2].
11576
11577         * console-msw.c:
11578         mswindows_message_outputted added for use in allowing startup
11579         errors on the console to be seen.
11580
11581         * console-msw.c (msw_ensure_console_allocated):
11582         * console-msw.c (msw_output_console_string):
11583         * console-msw.c (DHEADER):
11584         * console-msw.c (DOPAQUE_DATA):
11585         * console-msw.c (DEVENT):
11586         * console-msw.c (DCONS):
11587         * console-msw.c (DCONSCDR):
11588         * console-msw.c (DSTRING):
11589         * console-msw.c (DVECTOR):
11590         * console-msw.c (DSYMBOL):
11591         * console-msw.c (DSYMNAME):
11592         Fix warnings.
11593
11594         * console-stream.c (stream_init_console):
11595         Fix text/binary problems.
11596
11597         * device-msw.c:
11598         * device-msw.c (mswindows_finish_init_device):
11599         * device-msw.c (mswindows_delete_device):
11600         [1].
11601
11602         * device.c (handle_asynch_device_change):
11603         [3].
11604
11605         * dgif_lib.c:
11606         * dgif_lib.c (DGifOpenFileName):
11607         * dgif_lib.c (DGifOpenFileHandle):
11608         * dgif_lib.c (DGifGetLine):
11609         * dgif_lib.c (DGifGetPixel):
11610         Added config.h/lisp.h, fix up includes.
11611         [1].
11612
11613         * dired-msw.c:
11614         [4].
11615
11616         * dired.c:
11617         * dired.c (file_name_completion):
11618         * dired.c (Ffile_attributes):
11619         * dired.c (syms_of_dired):
11620         [1].
11621
11622         * dumper.c:
11623         * dumper.c (pdump_file_unmap):
11624         * dumper.c (pdump_load):
11625         [1].
11626
11627         * editfns.c:
11628         * editfns.c (Ftemp_directory):
11629         * editfns.c (user_login_name):
11630         * editfns.c (Fuser_real_login_name):
11631         * editfns.c (get_home_directory):
11632         [1].
11633
11634         * elhash.c (finish_marking_weak_hash_tables):
11635         [[[[5]]]]: Fix GCC warnings.
11636
11637         * emacs.c:
11638         * emacs.c (mswindows_handle_hardware_exceptions):
11639         * emacs.c (make_arg_list_1):
11640         * emacs.c (main_1):
11641         * emacs.c (Fkill_emacs):
11642         * emacs.c (Fdump_emacs):
11643         [1].
11644         Fix problems with nested crashes, add long comment.
11645
11646         * event-Xt.c (init_event_Xt_late):
11647         [1].
11648
11649         * event-msw.c:
11650         * event-msw.c (mswindows_dde_callback):
11651         * event-msw.c (mswindows_handle_sticky_modifiers):
11652         * event-msw.c (mswindows_wnd_proc):
11653         [1].
11654         [5].
11655
11656         * events.c (character_to_event):
11657         [1].
11658
11659         * fileio.c:
11660         * fileio.c (Ffile_name_directory):
11661         * fileio.c (Ffile_name_nondirectory):
11662         * fileio.c (directory_file_name):
11663         * fileio.c (Fexpand_file_name):
11664         * fileio.c (Fsubstitute_in_file_name):
11665         * fileio.c (Ffile_name_absolute_p):
11666         * fileio.c (check_executable):
11667         * fileio.c (Ffile_readable_p):
11668         * fileio.c (Ffile_accessible_directory_p):
11669         * fileio.c (Ffile_modes):
11670         * fileio.c (Funix_sync):
11671         * fileio.c (vars_of_fileio):
11672         [1]. [4].
11673
11674         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11675
11676         Expand getdefdir defn.
11677         Fix bogus rename() comment.
11678
11679         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11680         to use standard XEmacs include files, e.g. sysfile.h, rather
11681         than system-specific includes.
11682
11683         * fns.c:
11684         * fns.c (Fsubseq):
11685         [5]. [6].
11686
11687         * frame.c (vars_of_frame):
11688         [1].
11689
11690         * getloadavg.c:
11691         * getloadavg.c (getloadavg):
11692         [1]. [6].
11693         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11694         (We don't use it elsewhere in the code; just add a comment.)
11695
11696         * gif_io.c:
11697         [6].
11698         Add config.h.
11699
11700         * glyphs-msw.c:
11701         * glyphs-msw.c (mswindows_resource_instantiate):
11702         [1].
11703
11704         * glyphs-x.c (x_native_layout_instantiate):
11705         [5].
11706
11707         * gui-msw.c (Fmswindows_shell_execute):
11708         [1].
11709
11710         * insdel.c:
11711         [4].
11712
11713         * lisp.h:
11714         [4]. [5].
11715
11716         * lread.c (locate_file_in_directory_mapper):
11717         [1].
11718
11719         * lstream.c:
11720         [4].
11721
11722         * mem-limits.h:
11723         * mem-limits.h (get_lim_data):
11724         [1].
11725
11726         * menubar-msw.c:
11727         [4].
11728
11729         * ndir.h:
11730         [1].
11731
11732         * nt.c:
11733         * nt.c (getwd):
11734         * nt.c (closedir):
11735         * nt.c (rva_to_section):
11736         * nt.c (mswindows_executable_type):
11737         [1]. [6].
11738         Fix closedir() defn.
11739
11740         * nt.h:
11741         [[[[8]]]]: *_OK defs moved to sysfile.h.
11742
11743         * ntproc.c:
11744         [6]. [7].
11745
11746         * objects-x.c:
11747         [4].
11748
11749         * print.c:
11750         * print.c (std_handle_out_external):
11751         [1]. [4].
11752
11753         * process-nt.c:
11754         * process-nt.c (nt_create_process):
11755         [6].
11756         try to fix process quoting somewhat.
11757
11758         * process-unix.c (unix_create_process):
11759         [1].
11760
11761         * process.c:
11762         * process.c (vars_of_process):
11763         Add Vnull_device.
11764
11765         * process.h:
11766         [1].
11767
11768         * realpath.c:
11769         * realpath.c (xrealpath):
11770         [1].
11771
11772         * redisplay-tty.c (init_tty_for_redisplay):
11773         [3].
11774
11775         * redisplay.c:
11776         [4]. [6].
11777
11778         * scrollbar-msw.c:
11779         [4].
11780
11781         * sheap.c:
11782         * sheap.c (more_static_core):
11783         * sheap.c (report_sheap_usage):
11784         [5]. [6].
11785
11786         * signal.c:
11787         * signal.c (alarm_signal):
11788         [1]. [6].
11789
11790         * sound.c:
11791         [6].
11792
11793         * strftime.c:
11794         * strftime.c (zone_name):
11795         [1]. [5].
11796
11797         * symsinit.h (init_sunpro):
11798         [1].
11799
11800         * syscommctrl.h:
11801         commctrl.h not in Cygwin b20.1.
11802
11803         * sysdep.c:
11804         * sysdep.c (endif):
11805         * sysdep.c (sys_subshell):
11806         * sysdep.c (init_baud_rate):
11807         * sysdep.c (emacs_get_tty):
11808         * sysdep.c (emacs_set_tty):
11809         * sysdep.c (tty_init_sys_modes_on_device):
11810         * sysdep.c (init_system_name):
11811         * sysdep.c (sys_open):
11812         * sysdep.c (interruptible_open):
11813         * sysdep.c (sys_fopen):
11814         * sysdep.c (sys_mkdir):
11815         * sysdep.c (sys_rename):
11816         * sysdep.c (get_process_times_1):
11817         [1]. [6].
11818
11819         * sysdep.h:
11820         [1].
11821
11822         * sysdir.h:
11823         * sysdir.h (DIRENTRY_NONEMPTY):
11824         [1]. [6].
11825
11826         * sysdll.c (dll_init):
11827         * sysdll.h:
11828         [1].
11829
11830         * sysfile.h:
11831         [1]. [6]. [8].
11832         added text/binary defs.
11833
11834         * sysfloat.h:
11835         [1].
11836
11837         * sysproc.h:
11838         * sysproc.h (EDESTADDRREQ):
11839         * sysproc.h (poll_fds_for_input):
11840         [1]. [6].
11841
11842         * syspwd.h:
11843         [6].
11844
11845         * syssignal.h:
11846         [1].
11847
11848         * systime.h:
11849         [1]. [6].
11850
11851         * systty.h:
11852         [1].
11853
11854         * syswindows.h:
11855         [1].
11856         Always define WIN32_LEAN_AND_MEAN.
11857
11858         * unexcw.c (unexec):
11859         [5].
11860
11861         * unexec.c:
11862         * unexec.c (copy_text_and_data):
11863         * unexec.c (adjust_lnnoptrs):
11864         [1].
11865
11866         * unexnt.c:
11867         * unexnt.c (_start):
11868         [1].
11869
11870 2000-06-07  Ben Wing  <ben@xemacs.org>
11871
11872         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11873         was used only as a model.  We've long since extracted any useful
11874         logic or code out of this. (I just did an exhaustive search.)
11875
11876         * s\msdos.h: Removed.
11877
11878         * s\windows95.h: Removed.
11879
11880 2000-06-10  Ben Wing  <ben@xemacs.org>
11881
11882         * s\cygwin32.h:
11883         [1]. [5].
11884         Don't use extern with fun defs.
11885
11886         * s\mingw32.h:
11887         [1]. [7].
11888         Remove nt\inc include.
11889         Remove getdisk, getdefdir. (The former is unused, the latter
11890         expanded in fileio.h.)
11891
11892         * s\windowsnt.h:
11893         * s\windowsnt.h (WIN32_NATIVE):
11894         * s\windowsnt.h (HAVE_STRCASECMP):
11895         [1]. [7].
11896         Add long comment about preprocessor changes.
11897         Remove getdisk, getdefdir. (The former is unused, the latter
11898         expanded in fileio.h.)
11899
11900 2000-06-10  Ben Wing  <ben@xemacs.org>
11901
11902         * m\arm.h:
11903         * m\delta.h:
11904         * m\intel386.h:
11905         * m\sequent.h:
11906         * m\template.h:
11907         * m\windowsnt.h:
11908         [1].
11909         Remove bogus/unused NO_SOCK_SIGIO.
11910
11911 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11912
11913         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11914         not an Emchar.
11915
11916 2000-06-04  Mike Sperber <mike@xemacs.org>
11917
11918         * casetab.c (set_case_table): For `set-standard-case-table',
11919         actually deposit the new case tables where the rest of XEmacs can
11920         see them.
11921
11922 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11923
11924         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11925
11926 2000-06-05  Ben Wing  <ben@xemacs.org>
11927
11928         * callproc.c (child_setup): Don't do close_load_descs() under
11929         MS Windows.  Put in a comment explaining why.
11930
11931 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11932
11933         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11934         Toolkit shell" which breaks `kill-compilation' on Windows NT
11935         native, retaining STDERR handling improvements.
11936
11937 2000-06-01  Andreas Jaeger  <aj@suse.de>
11938
11939         * s/s390.h: Support for S390, based on a patch by Martin
11940         Schwidefsky <schwidefsky@de.ibm.com>.
11941
11942 2000-05-30  Andy Piper  <andy@xemacs.org>
11943
11944         * window.c (allocate_window):
11945         (make_dummy_parent):
11946         (Fset_window_configuration): use new hashtable type.
11947
11948         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11949         (struct image_instantiator_methods):
11950         (struct Lisp_Image_Instance): make instance geometry signed.
11951
11952         * glyphs.c (instantiate_image_instantiator):
11953         (image_instance_query_geometry):
11954         (image_instance_layout):
11955         (image_instance_layout):
11956         (query_string_geometry):
11957         (text_query_geometry):
11958         (image_instantiate):
11959         (image_instantiate):
11960         (cache_subwindow_instance_in_frame_maybe):
11961         (subwindow_query_geometry): make instance geometry signed.
11962
11963         * glyphs-widget.c (widget_query_geometry):
11964         (widget_layout):
11965         (button_query_geometry):
11966         (tree_view_query_geometry):
11967         (tab_control_query_geometry):
11968         (layout_query_geometry):
11969         (layout_layout):
11970         (native_layout_layout): make instance geometry signed.
11971
11972 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11973
11974         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11975         constant.
11976
11977         * general.c (syms_of_general): Add Qfull_assoc symbol.
11978
11979         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11980         correctly.
11981         (decode_weak_list_type): Decode full-assoc type.
11982         (encode_weak_list_type): Encode full-assoc type.
11983         (Fmake_weak_list): Update doc string.
11984
11985 2000-05-30  Andy Piper  <andy@xemacs.org>
11986
11987         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11988
11989         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11990         (decode_hash_table_weakness): ditto.
11991         (Fhash_table_weakness): ditto.
11992         (Fhash_table_type): ditto.
11993         (finish_marking_weak_hash_tables): ditto.
11994         (hash_table_weakness_validate): ditto.
11995         (syms_of_elhash): ditto.
11996
11997 2000-05-28  Martin Buchholz <martin@xemacs.org>
11998
11999         * XEmacs 21.2.34 is released.
12000
12001 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12002
12003         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12004         start cache.
12005         (updating_line_start_cache): Gone.
12006         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12007         generic code to force a minimum of 1 line laid out in the
12008         CMOTION_DISP case.
12009
12010 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12011
12012         * glyphs.c (instantiate_image_instantiator): Check for initialized
12013         height & width no longer special cases IMAGE_NOTHING.
12014         (nothing_instantiate): Set height and width of instance.
12015
12016 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12017
12018         * unexelf.c (unexec): Search for ".data" section.
12019         Initialize new_data2_offset from old_data_index.
12020         Remove redundant check for ElfW.
12021
12022 2000-05-23  Andy Piper  <andy@xemacs.org>
12023
12024         * glyphs.c (get_image_instantiator_governing_domain): allow more
12025         specific domains as the governing domain rather than expecting an
12026         exact match. This fixes problems with layouts.
12027
12028 2000-05-22  Andy Piper  <andy@xemacs.org>
12029
12030         * redisplay-output.c (compare_runes): check for non-images
12031
12032         * glyphs.c (set_glyph_dirty_p): ditto.
12033         (update_glyph_cachel_data): ditto.
12034
12035         * glyphs-widget.c (layout_post_instantiate): ditto.
12036         (layout_post_instantiate): ditto.
12037
12038         * event-msw.c (mswindows_wnd_proc): warning removal.
12039
12040 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12041
12042         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12043
12044         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12045
12046         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12047
12048         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12049         (mswindows_executable_type): mingw32 now has enough headers for
12050         this to work.
12051
12052 2000-05-20  Andy Piper  <andy@xemacs.org>
12053
12054         * console-msw.c (mswindows_output_last_error): ; -> ,
12055
12056 2000-05-12  Andy Piper  <andy@xemacs.org>
12057
12058         * console-msw.c (FROB): compare ints with ints.
12059
12060 2000-05-11  Andy Piper  <andy@xemacs.org>
12061
12062         * glyphs-x.c (x_finalize_image_instance): make minimal build
12063         happy.
12064
12065 2000-05-20  Ben Wing  <ben@xemacs.org>
12066
12067         * event-Xt.c:
12068         * event-Xt.c (vars_of_event_Xt):
12069         move modifier-keys-are-sticky to event-stream.c.
12070
12071         * event-msw.c:
12072         * event-msw.c (mswindows_enqueue_mouse_button_event):
12073         * event-msw.c (key_needs_default_processing_p):
12074         * event-msw.c (XEMSW_LCONTROL):
12075         * event-msw.c (mswindows_handle_sticky_modifiers):
12076         * event-msw.c (FROB):
12077         * event-msw.c (clear_sticky_modifiers):
12078         * event-msw.c (output_modifier_keyboard_state):
12079         * event-msw.c (output_alt_keyboard_state):
12080         * event-msw.c (mswindows_wnd_proc):
12081         * event-msw.c (mswindows_modifier_state):
12082         * event-msw.c (emacs_mswindows_handle_magic_event):
12083         implement sticky modifiers.
12084
12085         * event-stream.c:
12086         * event-stream.c (vars_of_event_stream):
12087         move modifier-keys-are-sticky here.
12088
12089         * lisp.h:
12090         add CHECK_FUNCTION.
12091
12092         * rangetab.c:
12093         implement map-range-table.
12094
12095
12096 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12097
12098         * redisplay-tty.c (reset_tty_modes):
12099         (tty_redisplay_shutdown): Adjust argument type to
12100         tty_frame_output_end.
12101
12102 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12103
12104         * eval.c (Fbacktrace): Don't output a line with only right
12105         parenthesis.
12106
12107 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12108
12109         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12110         (Fpq_reset_poll): Ditto.
12111
12112 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12113
12114         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12115
12116 2000-05-16  Ben Wing  <ben@xemacs.org>
12117
12118         * buffer.c:
12119         * buffer.c (dfc_convert_to/from_internal_format):
12120         * buffer.c (reinit_vars_of_buffer):
12121         Fix conversion functions to allow reentrancy.
12122
12123         * console-msw.c:
12124         * console-msw.c (mswindows_output_last_error):
12125         New fun, generally useful -- output a human-readable
12126         version of GetLastError() on the console.
12127
12128         * console-msw.h:
12129         * console-msw.h (struct mswindows_frame):
12130         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12131
12132         * console-stream.c (stream_output_begin):
12133         * console-stream.c (stream_output_end):
12134         * console-stream.c (stream_output_vertical_divider):
12135         * console-stream.c (stream_clear_region):
12136         * console-stream.c (stream_flash):
12137         * console-stream.c (console_type_create_stream):
12138         Delete blank stream methods, not needed.
12139
12140         * console.h (struct console_methods):
12141         Split begin/end methods into window and frame.
12142
12143         * event-msw.c:
12144         * event-msw.c (mswindows_handle_paint):
12145         * event-msw.c (output_alt_keyboard_state):
12146         * event-msw.c (mswindows_wnd_proc):
12147         * event-msw.c (vars_of_event_mswindows):
12148         Comment about problems with ignored-expose.
12149         Define mswindows-debug-events; not really implemented.
12150
12151         * frame-msw.c (mswindows_init_frame_1):
12152         random cleanups.
12153
12154         * glyphs-msw.c:
12155         * glyphs-msw.c (begin_defer_window_pos):
12156         * glyphs-msw.c (mswindows_unmap_subwindow):
12157         * glyphs-msw.c (mswindows_map_subwindow):
12158         * glyphs-msw.c (mswindows_resize_subwindow):
12159         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12160
12161         * glyphs.c (make_image_instance_1):
12162         Fix crash.
12163
12164         * gutter.c (Fredisplay_gutter_area):
12165         Use new begin/end methods.
12166
12167         * lisp.h (Dynarr_new2):
12168         New creation fun.
12169
12170         * redisplay-msw.c:
12171         * redisplay-msw.c (mswindows_frame_output_begin):
12172         * redisplay-msw.c (mswindows_frame_output_end):
12173         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12174         New begin/end methods -- handle DeferWindowPos.
12175
12176         * redisplay-output.c (redisplay_move_cursor):
12177         * redisplay-output.c (redraw_cursor_in_window):
12178         * redisplay-output.c (redisplay_update_line):
12179         * redisplay-output.c (redisplay_output_window):
12180         New begin/end methods.
12181
12182         * redisplay-tty.c:
12183         * redisplay-tty.c (tty_frame_output_begin):
12184         * redisplay-tty.c (tty_frame_output_end):
12185         * redisplay-tty.c (console_type_create_redisplay_tty):
12186         New begin/end methods.
12187
12188         * redisplay-x.c:
12189         * redisplay-x.c (x_window_output_begin):
12190         * redisplay-x.c (x_window_output_end):
12191         * redisplay-x.c (console_type_create_redisplay_x):
12192         New begin/end methods.
12193
12194         * redisplay.c (redisplay_frame):
12195         * redisplay.c (Fredisplay_echo_area):
12196         New begin/end methods.
12197         use MAYBE_DEVMETH for clear_frame; it may not exist.
12198
12199         * window.h (WINDOW_XFRAME):
12200         WINDOW_XFOO macros -- get locale and decode struct pointer.
12201
12202
12203 2000-05-12  Ben Wing  <ben@xemacs.org>
12204
12205         * emacs.c:
12206         * emacs.c (ensure_no_quitting_from_now_on):
12207         * emacs.c (fatal_error_signal):
12208         * emacs.c (mswindows_handle_hardware_exceptions):
12209         * emacs.c (main):
12210         * emacs.c (Fkill_emacs):
12211         * emacs.c (shut_down_emacs):
12212         * emacs.c (assert_failed):
12213         various improvements in fatal error handling.
12214
12215         * eval.c:
12216         move preparing_for_armageddon to emacs.c.
12217
12218         * lisp.h:
12219         declare fatal_error_in_progress.
12220
12221         * print.c:
12222         * print.c (std_handle_out_external):
12223         * print.c (std_handle_out_va):
12224         * print.c (stderr_out):
12225         * print.c (stdout_out):
12226         use console under mswin when no standard output.
12227         don't do code conversion during fatal error.
12228
12229         * scrollbar.c (Fscrollbar_page_up):
12230         * scrollbar.c (Fscrollbar_page_down):
12231         fix missing else.  reindent.
12232
12233 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12234
12235         Emergency fix.
12236
12237         * glyphs.h (GLYPH_CACHEL_DESCENT):
12238         (GLYPH_CACHEL_DESCENT):
12239         (GLYPH_CACHEL_DESCENT):
12240         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12241         used in case these are inline functions.
12242         Use more absurd values to error check.
12243
12244         include window.h for error check functions.
12245
12246 2000-05-11  Ben Wing  <ben@xemacs.org>
12247
12248         * cmdloop.c (Freally_early_error_handler):
12249         Display message box under windows; otherwise, message will disappear
12250         before it can be viewed.
12251
12252         * console-msw.c:
12253         * console-msw.c (Fmswindows_message_box):
12254         * console-msw.c (FROB):
12255         * console-msw.c (syms_of_console_mswindows):
12256         Define new fun `mswindows-message-box'.
12257         #### I will merge this into `popup-dialog-box'; just give me
12258         a bit of time.
12259
12260         * general.c:
12261         * general.c (syms_of_general):
12262         Some new symbols used in `mswindows-message-box'.
12263
12264         * glyphs.c:
12265         * glyphs.c (Fset_image_instance_property):
12266         put warning in this fun.
12267
12268         * glyphs.h:
12269         * glyphs.h (GLYPH_CACHEL_WIDTH):
12270         * glyphs.h (GLYPH_CACHEL_ASCENT):
12271         * glyphs.h (GLYPH_CACHEL):
12272         * glyphs.h (GLYPH_CACHEL_GLYPH):
12273         define error-checking versions to try to catch a bug i've seen --
12274         redisplay gets in an infinite loop because the glyph width of the
12275         continuation glyph is 65535.
12276
12277         * lisp.h:
12278         Extern message-box stuff.
12279
12280         * window.c (allocate_window):
12281         * window.c (make_dummy_parent):
12282         * window.c (Fset_window_configuration):
12283         Use EQUAL not EQ for subwindow caches to make them work a bit
12284         better. (Something is still very broken.)
12285
12286
12287 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12288
12289         * glyphs.c (image_instantiate): Suppress gcc warnings.
12290         (Fmake_image_instance): Fix doc string.
12291         * specifier.c (Fmake_specifier): Ditto.
12292
12293 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12294
12295         * paths.h.in (PATH_LOCK): Removed.
12296         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12297         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12298
12299 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12300
12301         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12302         Document (featurep '(and xemacs 21.02)).
12303
12304 2000-05-09  Ben Wing  <ben@xemacs.org>
12305
12306         * buffer.c (complex_vars_of_buffer):
12307         update modeline-format doc.
12308
12309         * device.h:
12310         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12311
12312         * emacs.c:
12313         timeline of all released versions of Emacs, for use in creating
12314         authorship comments and in synching up.
12315
12316         * glyphs-widget.c (image_instantiator_buttons):
12317         * glyphs-widget.c (image_instantiator_edit_fields):
12318         * glyphs-widget.c (image_instantiator_combo_box):
12319         * glyphs-widget.c (image_instantiator_scrollbar):
12320         * glyphs-widget.c (image_instantiator_progress_guage):
12321         * glyphs-widget.c (image_instantiator_tree_view):
12322         * glyphs-widget.c (image_instantiator_tab_control):
12323         * glyphs-widget.c (image_instantiator_labels):
12324         * glyphs-widget.c (image_instantiator_layout):
12325         * glyphs-widget.c (image_instantiator_native_layout):
12326         rename decode_domain method to governing_domain.
12327
12328         * glyphs.c:
12329         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12330         * glyphs.c (add_entry_to_device_ii_format_list):
12331         make sure we don't put an entry more than once into the list.
12332         * glyphs.c (check_instance_cache_mapper):
12333         *************************************************************
12334         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12335         HAVE BEEN GETTING.
12336         *************************************************************
12337         * glyphs.c (get_image_instantiator_governing_domain):
12338         clean up, expand on new concept of governing domain.
12339         * glyphs.c (instantiate_image_instantiator):
12340         * glyphs.c (allocate_image_instance):
12341         use governing_domain instead of cache_domain in naming.
12342         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12343         * glyphs.c (make_image_instance_1):
12344         * glyphs.c (Fmake_image_instance):
12345         allow for any domain (not just device), and process the
12346         governing domain correctly.  very big doc fix.
12347         * glyphs.c (Fimage_instance_domain):
12348         new primitive, to retrieve the governing domain of an image instance.
12349         * glyphs.c (image_instantiate):
12350         use new governing_domain stuff.  this fixes a crash you could get
12351         by instantiating certain widget glyphs in frame locales. (should
12352         signal an error instead of crashing.)
12353         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12354         * glyphs.c (Fglyphp): clean up doc.
12355         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12356         * glyphs.c (syms_of_glyphs):
12357         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12358         * glyphs.c (image_instantiator_format_create): add some comments about
12359         bogus code.
12360         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12361         for current-display-table. (Apparently Hrjove implemented in 1998 a
12362         design I wrote up in 1996, but didn't update the doc string.)
12363
12364         * glyphs.h: clean up a doc string.
12365         * glyphs.h (governing_domain):
12366         * glyphs.h (struct image_instantiator_methods):
12367         changes for governing_domain stuff.
12368
12369         * gutter.c:
12370         * gutter.c (Fgutter_specifier_p):
12371         * gutter.c (Fgutter_size_specifier_p):
12372         * gutter.c (Fgutter_visible_specifier_p):
12373         * objects.c:
12374         * objects.c (Fcolor_specifier_p):
12375         * objects.c (Ffont_specifier_p):
12376         * objects.c (Fface_boolean_specifier_p):
12377         doc strings moved to make-*-specifier.
12378
12379         * redisplay.c (add_disp_table_entry_runes_1):
12380         * redisplay.c (generate_fstring_runes):
12381         * redisplay.c (screen):
12382         add random comments and doc strings.
12383
12384         * specifier.c:
12385         * specifier.c (Fmake_specifier):
12386         major overhaul of this doc string.
12387
12388         * specifier.c (Fvalid_specifier_domain_p):
12389         comment about the bogosity of image instances being domains.
12390         * specifier.c (decode_domain):
12391         now non-static, used in glyphs.c.
12392         * specifier.c (specifier_instance):
12393         comment about the bogosity of image instances being domains.
12394         * specifier.c (Fgeneric_specifier_p):
12395         move doc string to make-generic-specifier.
12396         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12397         rebackslashify.
12398
12399         * specifier.h:
12400         * specifier.h (DOMAIN_FRAME):
12401         * specifier.h (DOMAIN_LIVE_P):
12402         * specifier.h (DOMAIN_XDEVICE):
12403         rebackslashify.
12404         add comments about problems with these macros.
12405         prototype for decode_domain.
12406
12407         * toolbar.c:
12408         * toolbar.c (Ftoolbar_specifier_p):
12409         move doc string to `make-toolbar-specifier'.
12410
12411         * window.c (window_unmap_subwindows_cache_mapper):
12412         *************************************************************
12413         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12414         HAVE BEEN GETTING.
12415         *************************************************************
12416
12417 2000-05-09  Andy Piper  <andy@xemacs.org>
12418
12419         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12420
12421         * window.c (Fset_window_configuration): reset the frame subwindow
12422         cache and re-initialize the window subwindow caches.
12423
12424         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12425
12426 2000-05-09  Ben Wing  <ben@xemacs.org>
12427
12428         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12429         DWORD.
12430
12431 2000-04-26  Mike Woolley  <mike@bulsara.com>
12432
12433         * ntheap.c: Changed recreate_heap to limit the amount reserved
12434         for the heap to that which is actually available. Also now
12435         displays a message box (with some dignostics) in the event that
12436         it still can't start.
12437
12438 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12439
12440         * callproc.c (Fold_call_process_internal): GCPRO path
12441
12442 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12443
12444         Patch by Bill Perry.
12445
12446         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12447         back data instead of #ifdef.
12448         (Fscrollbar_page_down): ditto.
12449
12450 2000-05-07  Ben Wing  <ben@xemacs.org>
12451
12452         * buffer.h:
12453         Kludge for defining Qmswindows_tstr.
12454
12455         * nt.c:
12456         * nt.c (open_input_file):
12457         * nt.c (open_output_file):
12458         * nt.c (rva_to_section):
12459         * nt.c (mswindows_executable_type):
12460         Move all memory-mapped-file routines here (some were in unexnt.c,
12461         which is bad because they are used by process-nt.c, and unexnt
12462         won't be around when portable dumping).  Synched the above routines
12463         with FSF 20.6.
12464
12465         * nt.h:
12466         Removed ifdef'd out bogus code.
12467         Fixed some prototypes.
12468
12469         * nt.h (file_data):
12470         * nt.h (OFFSET_TO_RVA):
12471         * nt.h (RVA_TO_OFFSET):
12472         * nt.h (RVA_TO_PTR):
12473         Moved the memory-mapped-file structures, macros and prototypes
12474         here, to parallel nt.c.  ntheap.h should really be removed
12475         entirely, and it's a non-portable-dumper specific file.
12476
12477         * ntheap.h (round_to_next):
12478         Moved the memory-mapped-file structures, macros and prototypes
12479         to nt.h.
12480
12481         * ntproc.c (compare_env):
12482         Moved rva_to_section and mswindows_executable_type to nt.c.
12483         Moved compare_env to process-nt.c.
12484         ntproc.c will die, one day.
12485
12486         * ntproc.c (sys_spawnve):
12487         Account for win32_ -> mswindows_.
12488
12489         * process-nt.c:
12490         * process-nt.c (struct nt_process_data):
12491         * process-nt.c (ensure_console_window_exists):
12492         * process-nt.c (compare_env):
12493         * process-nt.c (nt_create_process):
12494         * process-nt.c (nt_kill_process_by_pid):
12495         * process-nt.c (syms_of_process_nt):
12496         * process-nt.c (vars_of_process_nt):
12497         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12498         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12499         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12500         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12501         Move compare_env here from ntproc.c.
12502
12503         * process.c (Fprocess_send_region):
12504         Takes an optional fourth argument, BUFFER, which should fix some
12505         problems with call-process.
12506
12507         * syscommctrl.h:
12508         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12509
12510         * syswindows.h:
12511         Move ICC_BAR_CLASSES to syscommctrl.h.
12512         Add preliminary macros for MSWindows/Mule.  More to come.
12513
12514         * unexnt.c:
12515         * unexnt.c (unexec):
12516         open_output_file moved to nt.c.
12517
12518
12519 2000-05-05  Andy Piper  <andy@xemacs.org>
12520
12521         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12522         instance from the frame cache also since GC may catch up too late
12523         to make frame deletion sane.
12524
12525 2000-05-04  Andy Piper  <andy@xemacs.org>
12526
12527         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12528         (x_finalize_image_instance): ungcpro on deletion.
12529
12530         * glyphs.c (image_instantiator_format_create): give pointers a
12531         query geometry method so that the geometry is at least set.
12532
12533         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12534         initialize layouts if using widgets.
12535
12536 2000-05-03  Andy Piper  <andy@xemacs.org>
12537
12538         * nt.c: remove bogus reference to sysmmsystem.h
12539
12540         * gui-x.c (popup_selection_callback): fix no selection abort.
12541
12542 2000-05-02  Andy Piper  <andy@xemacs.org>
12543
12544         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12545         (mswindows_widget_instantiate): ditto.
12546
12547         * glyphs-widget.c (initialize_widget_image_instance): initialize
12548         children correctly.
12549         (widget_instantiate): cope with children and items in the same
12550         instance.
12551
12552         * glyphs.c (mark_image_instance): cope with children as a first
12553         class member.
12554         (image_instance_equal): ditto.
12555         (image_instance_hash): ditto.
12556         (image_instance_changed): ditto.
12557
12558 2000-04-30  Andy Piper  <andy@xemacs.org>
12559
12560         * glyphs.c (subwindow_query_geometry): new function. Return some
12561         defaults.
12562         (subwindow_instantiate): don't assign dimensions if none have been
12563         given.
12564         (image_instantiator_format_create): add subwindow_query_geometry.
12565         (print_image_instance): cope with layouts as widgets.
12566
12567 2000-04-29  Andy Piper  <andy@xemacs.org>
12568
12569         * frame.c (delete_frame_internal): call
12570         free_frame_subwindow_instance_cache so that all subwindows are
12571         finalized before their parent.
12572         (mark_frame): remove subwindow_cachels.
12573         (Fmake_frame): remove subwindow_cachel manipulation.
12574         (allocate_frame_core): subwindow_instance_cache is a weak list.
12575         (delete_frame_internal): set subwindow_instance_cache to nil.
12576
12577         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12578         finalization safe.
12579         (mswindows_finalize_image_instance): use the device
12580         not the domain as the domain may have died already.
12581
12582         * glyphs-x.c (x_finalize_image_instance): ditto.
12583         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12584         HEIGHT.
12585
12586         * redisplay-output.c (redisplay_unmap_subwindows): update for
12587         subwindow instance cache as a weak list.
12588         (redisplay_unmap_subwindows_maybe): ditto.
12589         (redisplay_unmap_subwindows_except_us): ditto.
12590
12591         * glyphs.c (unmap_subwindow): error checking will check the domain
12592         so don't deal with it here. Don't use cachels anymore.
12593         (map_subwindow): ditto.
12594         (update_subwindow_cachel_data): remove old accessor names.
12595         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12596         (Fresize_subwindow): don't update cachel.
12597         (mark_subwindow_cachels):
12598         (update_subwindow_cachel_data):
12599         (add_subwindow_cachel):
12600         (get_subwindow_cachel_index):
12601         (update_subwindow_cachel):
12602         (reset_subwindow_cachels):
12603         (mark_subwindow_cachels_as_not_updated): deleted.
12604         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12605         subwindow instance to the frame cache.
12606         (find_matching_subwindow): update for subwindow instance cache as
12607         a weak list.
12608         (update_widget_instances): ditto.
12609         (image_instance_type_to_mask):inlined.
12610         (free_frame_subwindow_instance_cache): new function. finalize all
12611         subwindows that are instantiated.
12612
12613         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12614         of cachel information.
12615         (IMAGE_INSTANCE_DISPLAY_X):
12616         (IMAGE_INSTANCE_DISPLAY_Y):
12617         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12618         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12619         (XIMAGE_INSTANCE_DISPLAY_X):
12620         (XIMAGE_INSTANCE_DISPLAY_Y):
12621         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12622         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12623         remove subwindow_cachel structure and function references.
12624         (image_instance_type_to_mask): inline from glyphs.c
12625
12626         * redisplay.c (redisplay_frame): remove subwindow_cachel
12627         references.
12628
12629         * frame.h (struct frame): remove subwindow_cachels.
12630         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12631
12632         * frameslots.h: add subwindow_instance_cache.
12633
12634         * window.c (replace_window): check subwindow cache of replacement.
12635         (window_unmap_subwindows_cache_mapper):
12636         (window_unmap_subwindows): new functions. Unmap all subwindows
12637         cached on this window.
12638         (mark_window_as_deleted): unmap all subwindows.
12639
12640 2000-04-27  Andy Piper  <andy@xemacs.org>
12641
12642         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12643
12644         * glyphs-widget.c (widget_layout): return something.
12645         (layout_layout): return something. Fail if not initialized.
12646         (layout_query_geometry): ditto.
12647         (image_instantiator_native_layout): new function. Initialized the
12648         native layout type.
12649         (widget_instantiate): don't do layout stuff here.
12650
12651         * glyphs.c (instantiate_image_instantiator): reorded calling or
12652         instantiate and post_instantiate with layout in between.
12653         (image_instance_layout): be more selective about deciding whether
12654         the layout has been done or not.
12655
12656         * glyphs.h (struct image_instantiator_methods): return a value
12657         from layout_method.
12658
12659 2000-04-26  Andy Piper  <andy@xemacs.org>
12660
12661         * glyphs.c (allocate_image_instance): make initial width and
12662         height unspecified. Set initialized to 0.
12663
12664         * syscommctrl.h new file. Encapsulates commctrl.h.
12665
12666         * syswindows.h new file. Encapsulates windows.h.
12667
12668         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12669         * nt.c: ditto.
12670         * console-msw.h: ditto.
12671
12672         * redisplay-tty.c (tty_output_display_block): remove layout references.
12673
12674         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12675         window handle rather than just the frame.
12676
12677         * glyphs.c (mark_image_instance): remove layout references.
12678         (print_image_instance): ditto.
12679         (image_instance_equal): ditto.
12680         (image_instance_hash): ditto.
12681         (decode_image_instance_type): ditto.
12682         (encode_image_instance_type): ditto.
12683         (image_instantiate): ditto.
12684         (allocate_glyph): ditto.
12685         (Fimage_instance_height): ditto.
12686         (Fimage_instance_width): ditto.
12687         (update_subwindow): ditto.
12688
12689         * redisplay-x.c (x_output_display_block): recode for layouts as
12690         widgets.
12691
12692         * redisplay-output.c (redisplay_output_layout): recode for layouts
12693         as widgets.
12694         (compare_runes): remove layout references.
12695
12696         * redisplay-msw.c (mswindows_output_display_block): recode for
12697         layouts as widgets.
12698
12699         * glyphs-widget.c (image_instantiator_layout): remove
12700         layout_possible_dest_types.
12701         (layout_possible_dest_types): deleted.
12702
12703         * glyphs.h (image_instance_type): remove layout references.
12704         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12705         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12706         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12707
12708 2000-04-25  Andy Piper  <andy@xemacs.org>
12709
12710         * glyphs-widget.c (image_instantiator_buttons):
12711         (image_instantiator_edit_fields):
12712         (image_instantiator_combo_box):
12713         (image_instantiator_scrollbar):
12714         (image_instantiator_progress_guage):
12715         (image_instantiator_tree_view):
12716         (image_instantiator_tab_control):
12717         (image_instantiator_labels):
12718         (image_instantiator_layout): call default post_instantiate method.
12719         (widget_post_instantiate): new function. Simply lays out the
12720         widgets.
12721
12722         * glyphs.h (struct image_instantiator_methods): add
12723         post_instantiate method.
12724
12725         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12726         method calls.
12727
12728 2000-04-23  Andy Piper  <andy@xemacs.org>
12729
12730         * glyphs.h (struct image_instantiator_methods): add
12731         decode_domain_method.
12732         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12733         derived from the domain.
12734         (IMAGE_INSTANCE_FRAME): new accessor.
12735         (XIMAGE_INSTANCE_FRAME): ditto.
12736
12737         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12738         instead of _SUBWINDOW_FRAME.
12739         (finalize_image_instance): ditto.
12740         (Fimage_instance_foreground): ditto.
12741         (Fimage_instance_background): ditto.
12742         (image_instantiate): ditto.
12743         (update_subwindow_cachel): ditto.
12744         (update_subwindow): ditto.
12745         (unmap_subwindow): ditto.
12746         (map_subwindow): ditto
12747         (subwindow_instantiate): ditto.
12748         * glyphs-msw.c (mswindows_update_widget): ditto.
12749         (mswindows_progress_gauge_instantiate): ditto.
12750         (mswindows_tab_control_update): ditto.
12751         * glyphs-x.c (x_update_widget): ditto.
12752         (x_widget_instantiate): ditto.
12753         (x_tab_control_instantiate): ditto.
12754         (x_tab_control_update): ditto.
12755         * event-msw.c (mswindows_wnd_proc): ditto
12756
12757         * glyphs-widget.c (image_instantiator_layout): use
12758         subwindow_decode_domain.
12759         (image_instantiator_buttons): ditto.
12760         (image_instantiator_edit_fields): ditto.
12761         (image_instantiator_combo_box): ditto.
12762         (image_instantiator_scrollbar): ditto.
12763         (image_instantiator_progress_guage): ditto.
12764         (image_instantiator_tree_view): ditto.
12765         (image_instantiator_tab_control): ditto.
12766         (image_instantiator_labels): ditto.
12767         (image_instantiator_layout): ditto.
12768
12769         * glyphs.c: add instance error checking to many functions.
12770         (instantiate_image_instantiator): decode device from cache_domain.
12771         (image_instantiate): partially rewrite by using
12772         decode_image_instantiator_domain to determine what domain the
12773         instance needs to be cached in.
12774         (decode_image_instantiator_domain): new function. Determine what
12775         domain the image needs to be cached in.
12776         (check_window_subwindow_cache): new error checking function.
12777         (check_instance_cache_mapper): ditto.
12778         (check_image_instance_structure): ditto.
12779         (subwindow_decode_domain): new function. Encodes a window as a
12780         subwindow's cache domain.
12781         (image_instantiator_format_create): use it for text and
12782         subwindows.
12783
12784 2000-04-21  Andy Piper  <andy@xemacs.org>
12785
12786         * glyphs.c (image_instance_device): new function.
12787         (image_instance_frame): new function.
12788         (image_instance_window): new function.
12789         (image_instance_live_p): new function.
12790
12791         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12792         cache to nil.
12793
12794         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12795         (IMAGE_INSTANCE_DOMAIN): new accessor.
12796         (XIMAGE_INSTANCE_DOMAIN): ditto.
12797
12798         * glyphs-x.c (x_finalize_image_instance): device->domain.
12799
12800         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12801         (mswindows_finalize_image_instance): ditto.
12802
12803         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12804         (gif_instantiate): ditto.
12805         (png_instantiate): ditto.
12806         (tiff_instantiate): ditto.
12807
12808         * glyphs.c (instantiate_image_instantiator): use domain rather
12809         than device.
12810         (mark_image_instance): device -> domain.
12811         (print_image_instance): ditto.
12812         (finalize_image_instance): ditto.
12813         (image_instance_equal): ditto.
12814         (allocate_image_instance): ditto.
12815         (Fcolorize_image_instance): ditto.
12816         (query_string_geometry): ditto.
12817         (image_instantiate): ditto
12818         (query_string_font): ditto.
12819         (image_instantiate): ditto.
12820         (update_subwindow): ditto.
12821         (unmap_subwindow): ditto.
12822         (map_subwindow): ditto.
12823         (subwindow_instantiate): ditto.
12824
12825         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12826         (DOMAIN_FRAME): ditto.
12827         (DOMAIN_WINDOW): ditto.
12828         (DOMAIN_LIVE_P): ditto.
12829         (XDOMAIN_DEVICE): ditto.
12830         (XDOMAIN_FRAME): ditto.
12831         (XDOMAIN_WINDOW): ditto.
12832
12833         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12834         a valid specifier domain.
12835
12836 2000-04-19  Andy Piper  <andy@xemacs.org>
12837
12838         * glyphs-widget.c (syms_of_glyphs_widget): remove
12839         widget-callback-current-channel.
12840         (vars_of_glyphs_widget): ditto.
12841         * glyphs.h: ditto
12842
12843         * gui.c (get_gui_callback): revert to previous behaviour.
12844
12845 2000-04-18  Andy Piper  <andy@xemacs.org>
12846
12847         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12848         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12849         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12850
12851         * glyphs.c (image_instance_equal): add margin_width.
12852         (image_instance_hash): ditto.
12853
12854         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12855         (layout_query_geometry): ditto.
12856         (layout_layout): ditto.
12857         (syms_of_glyphs_widget): add margin-width.
12858         (image_instantiator_layout): allow margin-width.
12859
12860         * glyphs.c (update_widget_instances): make a normal function.
12861         (syms_of_glyphs): remove Qupdate_widget_instances.
12862         * glyphs.h: ditto.
12863
12864         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12865         so that we don't corrupt ideas about the last event or
12866         command. Remove widget-callback-current-channel fiddling.
12867         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12868
12869 2000-05-01  Martin Buchholz <martin@xemacs.org>
12870
12871         * XEmacs 21.2.33 is released.
12872
12873 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12874
12875         * make-src-depend: Allow dots in header file name.
12876
12877 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12878
12879         * mule-charset.h (struct charset_lookup): Add
12880         next_allocated_1_byte_leading_byte and
12881         next_allocated_2_byte_leading_byte.
12882         * mule-charset.c: Move above two variables so that those values
12883         will be dumped.
12884
12885 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12886
12887         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12888         when string length is zero.
12889         (find_charsets_in_emchar_string): Ditto.
12890
12891 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12892
12893         * lisp.h: extern Qdialog and Qmenubar.
12894
12895         * gui-x.c: added events.h.
12896                 also fixed typo which made the file uncompilable.
12897
12898         * general.c: Added Qmenubar and Qdialog
12899
12900 2000-04-28  Ben Wing  <ben@xemacs.org>
12901
12902         * frame-msw.c (mswindows_init_frame_1):
12903         * frame-msw.c (mswindows_mark_frame):
12904         * event-msw.c (mswindows_enqueue_dispatch_event):
12905         * console-msw.h:
12906         * console-msw.h (struct mswindows_frame):
12907         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12908         there are now three hash tables for callbacks.
12909         mswindows_enqueue_dispatch_event is no longer static.
12910
12911         * dialog-x.c (maybe_run_dbox_text_callback):
12912         * dialog-x.c (dbox_descriptor_to_widget_value):
12913         switch to new cons3 form for callbacks.
12914
12915         * glyphs-msw.c (mswindows_register_gui_item):
12916         * glyphs-msw.c (mswindows_widget_instantiate):
12917         * glyphs-msw.c (add_tree_item):
12918         * glyphs-msw.c (add_tab_item):
12919         new image instance parameter, so it can be passed to callback-ex.
12920         respect :callback-ex as well as :callback.
12921
12922         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12923         add :callback-ex.
12924
12925         * glyphs.c (print_image_instance):
12926         prettify, e.g. now prints widget type.
12927
12928         * gui-x.h:
12929         certain funs have new image instance parameter.
12930
12931         * gui.c:
12932         * gui.c (get_gui_callback):
12933         * gui.c (gui_item_add_keyval_pair):
12934         * gui.c (gui_item_init):
12935         * gui.c (gui_add_item_keywords_to_plist):
12936         * gui.c (mark_gui_item):
12937         * gui.c (gui_item_hash):
12938         * gui.c (gui_item_equal):
12939         * gui.c (copy_gui_item):
12940         * gui.c (syms_of_gui):
12941         recognize callback-ex in a number of places.
12942         also, fix the annoying "can't get out of yes-no dialog" bug.
12943
12944         * gui.h:
12945         * gui.h (struct Lisp_Gui_Item):
12946         recognize callback-ex in a number of places.
12947
12948         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12949         new parameter in button_item_to_widget_value.
12950
12951         * glyphs-x.c (x_update_widget):
12952         * glyphs-x.c (x_button_instantiate):
12953         * glyphs-x.c (x_button_update):
12954         * glyphs-x.c (x_progress_gauge_instantiate):
12955         * glyphs-x.c (x_edit_field_instantiate):
12956         * glyphs-x.c (x_combo_box_instantiate):
12957         * glyphs-x.c (x_tab_control_instantiate):
12958         * glyphs-x.c (x_label_instantiate):
12959         new image instance parameter in various places.
12960
12961         * event-Xt.c:
12962         * event-Xt.c (enqueue_Xt_dispatch_event):
12963         this fun gets exported.
12964
12965         * gui-msw.c:
12966         * gui-msw.c (mswindows_handle_gui_wm_command):
12967         handle both :callback and :callback-ex, and generate our own
12968         event because it's one of the callback-ex arguments.
12969
12970         * gui-x.c:
12971         * gui-x.c (popup_selection_callback):
12972         handle both :callback and :callback-ex, and generate our own
12973         event because it's one of the callback-ex arguments.
12974         * gui-x.c (button_item_to_widget_value):
12975         * gui-x.c (gui_items_to_widget_values_1):
12976         * gui-x.c (gui_item_children_to_widget_values):
12977         * gui-x.c (gui_items_to_widget_values):
12978         new image instance parameter in various places.
12979
12980         * fns.c (Freplace_list):
12981         fix small typo in doc string.
12982
12983         * lisp.h:
12984         declare enqueue_Xt_dispatch_event.
12985
12986 2000-04-28  Ben Wing  <ben@xemacs.org>
12987
12988         * buffer.c:
12989         * buffer.c (Frecord_buffer):
12990         * buffer.c (syms_of_buffer):
12991         delete record-buffer-hook.
12992
12993         * fns.c:
12994         * fns.c (Freplace_list):
12995         * fns.c (syms_of_fns):
12996         new primitive replace-list.
12997
12998         * frameslots.h:
12999         slot for old buffer-alist.
13000
13001         * lisp.h:
13002         exfun replace-list.
13003
13004         * redisplay.c:
13005         * redisplay.c (redisplay_frame):
13006         * redisplay.c (syms_of_redisplay):
13007         * redisplay.c (vars_of_redisplay):
13008         new hook buffer-list-changed-hook.
13009         call it.
13010
13011 2000-04-27  Ben Wing  <ben@xemacs.org>
13012
13013         * extents.h: extern in_modeline_generation.
13014
13015         * redisplay.c (generate_formatted_string_db): set
13016         in_modeline_generation.
13017
13018         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13019         flags if in modeline generation.  otherwise frame-modified-tick
13020         is ticked far too often.
13021         Declare in_modeline_generation.
13022
13023 2000-04-26  Ben Wing  <ben@xemacs.org>
13024
13025         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13026         option.
13027         (vars_of_emacs): add quick-build as an error-checking option.
13028         A bit kludgy, but there doesn't seem much point in creating
13029         a real var for this.
13030
13031         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13032
13033 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13034
13035         * redisplay.h (struct display_line): Add a new variable,
13036         line_continuation.
13037
13038         * redisplay.c (create_text_block): Set dl->line_continuation if
13039         the line continues.
13040         (create_string_text_block): Ditto.
13041         (regenerate_window_incrementally): Use line_continuation instead
13042         of searching continuation glyph.
13043         (add_margin_runes): Call add_glyph_rune.
13044         (add_glyph_rune): Handle margin glyph.
13045
13046 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13047
13048         * filelock.c (fill_in_lock_file_name):
13049         ANSIfy.
13050         Check for IS_ANY_SEP instead of '/'.
13051         (lock_file_1):
13052         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13053         Never check errno without first seeing that system call failed.
13054         (unlock_file): Add GCPRO.
13055         (Flock_buffer): Fix docstring.
13056         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13057
13058 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13059
13060         * sysdep.c (get_pty_max_bytes):
13061         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13062         strings longer than 252 bytes.
13063
13064         * md5.c: Unconditionally include ANSI header <limits.h>
13065
13066         * glyphs-x.c (convert_EImage_to_XImage):
13067         * lisp-union.h (union Lisp_Object):
13068         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13069
13070 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13071
13072         * filelock.c (current_lock_owner): Remove unused variable o, p.
13073
13074 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13075
13076         * callint.c: Remove multiply defined symbol Qlet
13077         (syms_of_callint): ditto.
13078
13079 2000-04-14  Andy Piper  <andy@xemacs.org>
13080
13081         * general.c (syms_of_general): add last-command, this-command, let
13082         and funcall.
13083
13084         * lisp.h: declare various symbols.
13085
13086         * glyphs.h: declare Qwidget_callback_current_channel;
13087
13088         * glyphs-widget.c (syms_of_glyphs_widget): add
13089         Qgui_callback_current_channel.
13090         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13091
13092         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13093         widget-callback-current-channel when invoking the interactive
13094         arg. Also bind last-command and next-command when invoking the
13095         widget updates.
13096         * gui-x.c (popup_selection_callback): ditto.
13097
13098         * gui.c (get_gui_callback): massage args so that we are always
13099         calling eval. This allows us to add our own variable bindings
13100         outside.
13101
13102         * glyphs-x.c (x_button_instantiate): use
13103         gui_items_to_widget_values since this is GC safe.
13104         (x_progress_gauge_instantiate): ditto.
13105         (x_edit_field_instantiate): ditto.
13106         (x_label_instantiate): ditto.
13107
13108         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13109         (emacs_Xt_event_widget_focus_out): new function
13110         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13111         focus.
13112         (emacs_Xt_event_add_widget_actions): new function. add focus
13113         functions as actions.
13114         (init_event_Xt_late): use it.
13115
13116 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13117
13118         * event-stream.c (Fdispatch_event): Doc fix.
13119
13120 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13121
13122         * postgresql.c: Remove all references to PQsetenv*.
13123
13124         * postgresql.h: Remove references to PGsetenvHandler object.
13125         * lrecord.h (lrecord_type): Ditto.
13126
13127 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13128
13129         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13130         real_heigh and real_width members, and accessor macros for these.
13131
13132         * glyphs-msw.c (init_image_instance_geometry): New function.
13133         (init_image_instance_from_dibitmap): Use it.
13134         (mswindows_resource_instantiate): Use it.
13135         (init_image_instance_from_xbm_inline): Use it.
13136         (mswindows_initialize_image_instance_mask): Use real bitmap
13137         geometry.
13138         (mswindows_create_resized_bitmap): Ditto.
13139         (mswindows_create_resized_mask): Ditto.
13140
13141         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13142         and bitmap to their surface size.
13143
13144 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13145
13146         * process-unix.c (unix_send_process): Guard against process MIA
13147         after Faccept_process_output.
13148
13149 2000-04-11  Ben Wing  <ben@xemacs.org>
13150
13151         * eval.c (unbind_to_hairy): fix brokenness introduced by
13152         nanosecond speed improvements.
13153
13154 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13155
13156         * sunplay.c (init_device): To play sounds correctly, the device
13157         apparently needs to be initialized at least once by XEmacs.  Make
13158         it so.
13159
13160 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13161
13162         * redisplay.c (add_margin_runes): Add text image glyph
13163           handling.
13164
13165 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13166
13167         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13168         gcc is newer than 2.5.
13169
13170 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13171
13172         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13173
13174         * fns.c (size_bit_vector):
13175         * alloc.c (size_vector):
13176         (make_vector_internal):
13177         (make_bit_vector_internal):
13178         (sweep_bit_vectors_1):
13179         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13180
13181 2000-04-06  Andy Piper  <andy@xemacs.org>
13182
13183         * gmalloc.c (malloc): undo previous change.
13184         (malloc): ditto.
13185         (free): ditto.
13186         (realloc): ditto.
13187
13188 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13189
13190         * line-number.c (buffer_line_number): Revert to former version.
13191
13192 2000-04-06  Andy Piper  <andy@xemacs.org>
13193
13194         * gmalloc.c (malloc): add error checking.
13195         (malloc): ditto.
13196         (free): ditto.
13197         (realloc): ditto.
13198
13199         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13200         button_item_to_widget_value arg.
13201
13202         * glyphs-x.c (x_button_instantiate): add extra
13203         button_item_to_widget_value arg.
13204         (x_progress_gauge_instantiate): ditto.
13205         (x_edit_field_instantiate): ditto.
13206         (x_label_instantiate): ditto.
13207
13208         * gui-x.c (gui_items_to_widget_values_1): add extra
13209         button_item_to_widget_value arg.
13210         (button_item_to_widget_value): add extra menu_item_p arg.
13211
13212         * gui-x.h: change signature of button_item_to_widget_value.
13213
13214         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13215         button_item_to_widget_value arg.
13216
13217 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13218
13219         * buffer.h (struct buffer): auto_save_modified should be long.
13220
13221 2000-04-05  Andy Piper  <andy@xemacs.org>
13222
13223         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13224         type.
13225         (button_query_geometry): give a little more room so that athena
13226         buttons fit.
13227
13228 2000-04-05  Andy Piper  <andy@xemacs.org>
13229
13230         * faces.c (complex_vars_of_faces): The widget face should inherit
13231         the font of the gui-element face.
13232
13233 2000-04-04  Andy Piper  <andy@xemacs.org>
13234
13235         * glyphs-x.c (x_button_update): new function. unconditionally
13236         update a button's state when the instance is dirty.
13237         (image_instantiator_format_create_glyphs_x): add x_button_update.
13238         (x_widget_instantiate): remove old resize cruft.
13239
13240 2000-04-02  Andy Piper  <andy@xemacs.org>
13241
13242         * frame.c (change_frame_size_1): The introduction of gutters means
13243         that we need to allow 0 as a potential frame dimension.
13244
13245 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13246
13247         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13248         image glyph if allow_cursor.
13249         (add_hscroll_rune): Don't allow cursor to border glyph.
13250         (create_text_block): Ditto.
13251
13252         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13253         text not in buffer.
13254         (redisplay_output_layout): Call ensure_face_cachel_complete for
13255         text image glyph.
13256
13257
13258 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13259
13260         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13261
13262         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13263         not in buffer
13264
13265         * redisplay-tty.c (tty_output_display_block): Delete the routine
13266         for text image glyph
13267         * redisplay-x.c (x_output_display_block): ditto
13268         * redisplay-msw.c (mswindows_output_display_block): ditto
13269
13270 2000-02-02  Mike Alexander  <mta@arbortext.com>
13271
13272         Note: Some of these were committed by accident as part of other
13273         patches.
13274
13275         * regex.c (regex_compile): Avoid compiler warnings.
13276
13277         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13278
13279         * nt.h: Declare term_ntproc correctly.
13280
13281         * nt.c: Remove incorrect declaration of get_home_directory which
13282         is declared correctly in lisp.h.
13283
13284         * keymap.c (get_keyelt): Avoid compiler warnings.
13285         (raw_lookup_key_mapper): Avoid compiler warnings.
13286
13287         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13288
13289         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13290
13291         * filemode.c (mode_string): Avoid compiler warnings.
13292
13293         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13294         avoid warning.
13295
13296         * events-mod.h: Undef some things that winuser.h defines differently.
13297
13298         * data.c (Faset): Avoid compiler warnings.
13299
13300         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13301
13302 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13303
13304         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13305         Fall through to simple beep on error.
13306         Replace "extern" by real header file.
13307
13308         * linuxplay.c: Use nativesound.h
13309         (play_sound_data): Return error code. Be less verbose on error.
13310
13311         * sunplay.c: Use nativesound.h
13312         (play_sound_data): Return error code. Be less verbose on error.
13313
13314         * ntplay.c: Use nativesound.h
13315         (play_sound_data): Return fake error code
13316
13317         * sgiplay.c: Use nativesound.h
13318         (play_sound_data): Return error code
13319
13320         * hpplay.c: Use nativesound.h, partially implement
13321         new error code. Break compilation until finished.
13322         (play_sound_data): error code.
13323
13324         * nativesound.h (play_sound_file):
13325           (play_sound_data): Prototype in new header.
13326
13327 2000-03-31  Andy Piper  <andy@xemacs.org>
13328
13329         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13330         for toggle and radio buttons.
13331         (image_instantiator_buttons): use it.
13332
13333 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13334
13335         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13336         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13337         found. Scrollbar event probably belonged to some old config.
13338
13339 2000-03-31  Andy Piper  <andy@xemacs.org>
13340
13341         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13342         than 1.
13343         (initialize_widget_image_instance): default layout to
13344         LAYOUT_HORIZONTAL rather than 0.
13345         (widget_instantiate): reverse the item list at the end rather than
13346         every iteration.
13347         (layout_layout): re-code for the border text at the front of the
13348         item list rather than at the end.
13349         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13350         provided by the user.
13351         (widget_query_geometry): comment.
13352
13353 2000-03-30  Andy Piper  <andy@xemacs.org>
13354
13355         * glyphs-widget.c (image_instantiator_layout): allow standard
13356         widget keywords in layouts.
13357
13358         * gutter.c (output_gutter): cope with nil gutter contents.
13359
13360         * frame.c (Fset_frame_properties): add gutter docs.
13361
13362 2000-03-29  Andy Piper  <andy@xemacs.org>
13363
13364         * toolbar-msw.c (TBSTYLE_FLAT): add.
13365         (mswindows_output_toolbar): minor fiddling.
13366
13367 2000-03-29  Andy Piper  <andy@xemacs.org>
13368
13369         * gutter.c (output_gutter): force gutter size recalculation if
13370         what we are trying to display won't fit.
13371         (update_gutter_geometry): new function. A per-gutter version of
13372         update_frame_gutter_geometry.
13373         (update_frame_gutter_geometry): use it.
13374         (redraw_exposed_gutter): add extra debugging output.
13375
13376 2000-03-28  Mike Alexander  <mta@arbortext.com>
13377
13378         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13379         (pdump_file_unmap): Implement it on Windows
13380         (pdump_file_get): Save alocated handles for pdump_file_unmap
13381
13382 2000-03-28  Andy Piper  <andy@xemacs.org>
13383
13384         * gui.c (get_gui_callback): treat Quit specially.
13385
13386 2000-03-27  Andy Piper  <andy@xemacs.org>
13387
13388         * glyphs.c (image_instantiate): be careful to check in the same
13389         way we assigned.
13390
13391 2000-03-27  Didier Verna  <didier@xemacs.org>
13392
13393         * config.h.in: define the proper SMART_INCLUDE macro.
13394         handle renaming of `foo_h_path' to `foo_h_file'.
13395
13396         * database.c: ditto.
13397
13398         * emacs.c: ditto.
13399
13400         * linuxplay.c: ditto.
13401
13402         * terminfo.c: ditto.
13403
13404         * tooltalk.h: ditto.
13405
13406 2000-03-27  Andy Piper  <andy@xemacs.org>
13407
13408         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13409         gets updated whenever the face might have changed.
13410
13411 2000-03-26  Mike Alexander  <mta@arbortext.com>
13412
13413         * dumper.c (pdump_resource_free): Fix the comment.
13414
13415 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13416
13417         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13418
13419 2000-03-22  Mike Alexander  <mta@arbortext.com>
13420
13421         * dumper.c: Include Windows headers on Windows
13422         (pdump_resource_free): Add a body to the function
13423         (pdump_load): exe_name -> exe_path and add some comments.
13424
13425 2000-03-25  Mike Alexander  <mta@arbortext.com>
13426
13427         * gui.c (copy_gui_item_tree): Return a value in all cases
13428
13429 2000-03-21  Didier Verna  <didier@xemacs.org>
13430
13431         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13432         lwlib/config.h.in.
13433         (SMART_INCLUDE): new macro.
13434         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13435         the proper location.
13436
13437         * postgresql.c: use it.
13438
13439         * inline.c: ditto.
13440
13441 2000-03-24  Andy Piper  <andy@xemacs.org>
13442
13443         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13444         do this.
13445
13446 2000-03-24  Andy Piper  <andy@xemacs.org>
13447
13448         * redisplay-output.c (compare_runes): use image_instance_changed
13449         to detect changes. Do not depend on glyphs_changed, only depend on
13450         dirtiness.
13451          (redisplay_output_layout): add debug messages.
13452         (compare_runes): ditto.
13453
13454         * glyphs.h: declare new functions.
13455         (struct Lisp_Image_Instance): remove percent and associated
13456         accessors.
13457
13458         * gui.h: declare new copying functions.
13459
13460         * gui.c (copy_gui_item_tree): new function.
13461         (copy_gui_item): new function.
13462         (gui_item_id_hash): revert to standard hash.
13463         (gui_item_hash): ditto.
13464         (gui_item_hash_internal): deleted.
13465         (mark_gui_item): mark value.
13466         (gui_item_add_keyval_pair): add value.
13467         (gui_item_init): ditto.
13468         (gui_add_item_keywords_to_plist): ditto.
13469         (gui_item_equal): ditto.
13470         (syms_of_gui): add Q_value.
13471
13472         * glyphs-x.c (x_progress_gauge_update): use pending items and
13473         value for setting the state.
13474         (x_update_widget): don't set items from pending here.
13475
13476         * glyphs-widget.c (update_widget): update items here.
13477         (progress_gauge_set_property): use items for storing value. Put
13478         new value in pending items.
13479
13480         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13481         items for new value. Convert percent -> value.
13482         (mswindows_tab_control_update): don't update items here.
13483
13484         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13485         (update_subwindow): ditto.
13486         (image_instance_changed): new function. Compare hash values and
13487         past and present widget items.
13488         (image_instantiate): We more careful about where we instantiate
13489         things.
13490         (image_instantiate): add error checking.
13491
13492         * gutter.c (syms_of_gutter): use -hook.
13493
13494 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13495
13496         * console-tty.c (Fset_console_tty_input_coding_system): Use
13497         Qkeyboard.
13498         (Fset_console_tty_output_coding_system): Use Qterminal.
13499         (tty_init_console): Use Qkeyboard and Qterminal.
13500
13501 2000-03-21  Ben Wing  <ben@xemacs.org>
13502
13503         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13504         From Mike Alexander <mta@arbortext.com>.
13505
13506 2000-03-21  Ben Wing  <ben@xemacs.org>
13507
13508         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13509         process brokenness.  Proper implementation to come.
13510         * callproc.c:
13511         Rename call-process-internal to old-call-process-internal.
13512         New impl. in process.el.
13513
13514 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13515
13516         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13517
13518 2000-03-20  Andy Piper  <andy@xemacs.org>
13519
13520         * glyphs.c (full_list_hash): make hashes of the same elements in
13521         different orders return different values.
13522
13523 2000-03-20  Martin Buchholz <martin@xemacs.org>
13524
13525         * XEmacs 21.2.32 is released.
13526
13527 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13528
13529         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13530         (DFC_MALLOC_USE_CONVERTED_DATA):
13531         Add aliasing-safe casts to allow use with char* or unsigned char*
13532         lvalues.
13533
13534         * eldap.c (Fldap_open):
13535         (Fldap_search_basic):
13536         (Fldap_add):
13537         (Fldap_modify):
13538         Make C++-compilable.
13539         Make sure GCPRO'ed variables are initialized.
13540         Use temp variables to avoid repeated calls to Flength.
13541
13542 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13543
13544         * sysfile.h:
13545         Make sure PATH_MAX is always defined.
13546         Include limits.h for PATH_MAX.
13547         Deprecate use of MAXPATHLEN.
13548
13549 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13550
13551         * emacs.c: Add reinit_vars_of_fileio.
13552         * symsinit.h: Add reinit_vars_of_fileio.
13553         * fileio.c (reinit_vars_of_fileio): New.
13554         * fileio.c (Fmake_temp_name):
13555         Initialize temp_name random number from microseconds to make
13556         collisions even less likely.  Initialize always at process startup
13557         time.  (make-temp-name) used to return the same file name twice in
13558         a row when PDUMP.
13559         Random stylistic fiddling.
13560         Comment fixes.
13561
13562 2000-03-20  Andy Piper  <andy@xemacs.org>
13563
13564         * glyphs.c (image_instantiate): allow text glyphs to be
13565         instantiated in the minibuffer window.
13566
13567 2000-03-19  Andy Piper  <andy@xemacs.org>
13568
13569         * glyphs.c (image_instance_hash): be careful about which items we
13570         hash on.
13571
13572         * glyphs-widget.c (tab_control_set_property): record into pending
13573         items rather than the actual items.
13574
13575         * glyphs-x.c (x_update_widget): use pending items to update with.
13576
13577         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13578         to update with.
13579
13580         * glyphs.c (mark_image_instance): mark pending items.
13581
13582         * window.c (Fset_window_configuration): record the buffer.
13583         (Fselect_window): totally revert previous change which breaks many
13584         things.
13585
13586 2000-03-18  Andy Piper  <andy@xemacs.org>
13587
13588         * glyphs-msw.c (mswindows_tab_control_update): force selected
13589         item.
13590
13591         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13592         window domain cache, otherwise we get inconsistencies at
13593         startup. There is something fishy at startup which can lead to the
13594         minibuffer being the selected window when the gutter content is
13595         instantiated.
13596
13597         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13598         gcpros.
13599         (parse_gui_item_tree_children): ditto.
13600         (parse_gui_item_tree_item): ditto.
13601
13602         * glyphs.c (Fupdate_widget_instances): return something.
13603
13604 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13605
13606         * window.c (Fselect_window): Undo 2000-03-17 change.
13607
13608 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13609
13610         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13611         against v7.0 libraries.  Insta-coredump city until the postgres
13612         folks fix it.
13613
13614 2000-03-17  Andy Piper  <andy@xemacs.org>
13615
13616         * faces.c (complex_vars_of_faces): don't give the widget face an
13617         inherited background pixmap.
13618
13619         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13620         selected item.
13621
13622         * event-stream.c (Fdispatch_non_command_events): return something.
13623
13624         * gutter.c (output_gutter): use widget face.
13625         (clear_gutter): ditto.
13626
13627         * NEWS: adjust again.
13628
13629         * window.c (Fselect_window): make sure this runs to completion to
13630         avoid oddities with Fset_window_configuration.
13631         (Fcurrent_window_configuration): in general do not save the
13632         minibuffer as the selected window.
13633
13634         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13635
13636 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13637
13638         * emacs.c (Frunning_temacs_p): Revert previous patch.
13639         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13640
13641 2000-03-16  Andy Piper  <andy@xemacs.org>
13642
13643         * glyphs-x.c (x_tab_control_update): if no widget values then
13644         return.
13645
13646         * NEWS: update for new features.
13647
13648         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13649         synthetic event to the native system.
13650         (reinit_vars_of_event_Xt): set force_event_pending to
13651         emacs_Xt_force_event_pending.
13652
13653         * events.h (struct event_stream): add force_event_pending.
13654
13655         * specifier.c (recompute_one_cached_specifier_in_window): add
13656         comment.
13657
13658         * redisplay.c (redisplay_frame): don't call
13659         update_frame_subwindows. Reset subwindow cachels when
13660         subwindows_changed, removing this was an optimization too far.
13661
13662         * redisplay-output.c (compare_runes): reorganize so that we catch
13663         glyph changes when we want them. Set optimize_output when this
13664         would help layouts.
13665         (redisplay_output_layout): remove frame_really_changed, use
13666         optimize_output instead.
13667
13668         * redisplay-msw.c (mswindows_output_display_block): reset
13669         optimize_output after outputting a glyph.
13670         * redisplay-x.c (x_output_display_block): ditto.
13671         * redisplay-tty.c (tty_output_display_block): ditto.
13672
13673         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13674         functions.
13675         (gutter_specs_changed): do specific gutter positions.
13676         (top_gutter_specs_changed): new function. Only update the
13677         specified gutter specs.
13678         (bottom_gutter_specs_changed): ditto.
13679         (left_gutter_specs_changed): ditto.
13680         (right_gutter_specs_changed): ditto.
13681
13682         * gui.c (gui_item_hash_internal): new function, does a real hash.
13683         (gui_item_id_hash): use it.
13684         (gui_item_hash): hash the eval'ed gui_item.
13685
13686         * gui-x.c (popup_selection_callback): send an eval event to call
13687         Fupdate_widget_instances.
13688
13689         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13690         to call Fupdate_widget_instances.
13691
13692         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13693         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13694
13695         * glyphs.c: (update_frame_subwindows): deleted.
13696         (Fupdate_widget_instances): new function for updating the dirty
13697         state of widgets that might have changed.
13698         (syms_of_glyphs): add Qupdate_widget_instances.
13699         (full_list_hash): hash a list completely.
13700         (image_instance_hash): use it for items and properties.
13701
13702         * frame-msw.c (mswindows_size_frame_internal): remove unused
13703         variable.
13704
13705         * faces.h (struct face_cachel): fix comment.
13706
13707         * event-stream.c (Fdispatch_non_command_events): new
13708         function. Process non-command events, forcing an event cycle
13709         beforehand.
13710         (syms_of_event_stream): declare.
13711         (event_stream_force_event_pending): new function. Force an event
13712         on the native event queue so that an event cycle will occur next
13713         time we check.
13714
13715         * event-msw.c:
13716         (struct ntpipe_shove_stream):
13717         (mswindows_enqueue_dispatch_event):
13718         (mswindows_dequeue_dispatch_event):
13719         (mswindows_cancel_dispatch_event):
13720         (mswindows_pump_outstanding_events):
13721         (mswindows_drain_windows_queue):
13722         (mswindows_handle_paint):
13723         (mswindows_wnd_proc):
13724         (mswindows_key_to_emacs_keysym):
13725         (get_process_input_waitable):
13726         (emacs_mswindows_delete_stream_pair): re-indent file.
13727         (mswindows_need_event): do not process further fds if the windows
13728         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13729         fixes the 100% cpu problem.
13730         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13731
13732 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13733
13734         * alloc.h: New.
13735         * dumper.h: New.
13736         * dumper.c: New.
13737
13738         * emacs.c: Moved dump file searching to dumper.c.
13739         (Frunning_temacs_p): Fixed.
13740
13741         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13742         last_lrecord_type_index_assigned.
13743
13744 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13745
13746         * symsinit.h: Added reinit parameter to init_console_stream
13747         declaration.
13748
13749         * lisp.h: Added file parameter to pdump_load declaration.
13750
13751         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13752         support.  Added dump file searching.
13753
13754         * config.h.in: Added EMACS_PROGNAME.
13755
13756         * console-stream.c (init_console_stream): Fix reinitialisation
13757         when running from temacs.
13758
13759         * alloc.c (pdump): Add id support.
13760         (pdump_load): Add file parameter and signature/id support.
13761
13762         * Makefile.in.in: Add full pdump support.
13763
13764 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13765
13766         * postgresql.c: Update documentation to reflect latest code
13767         status.
13768         (print_result): Show tuple counts in printed representation when
13769         appropriate.
13770         (Fpq_put_nbytes): MULE-ize.
13771         (Fpq_get_line_async): Ditto.
13772
13773 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13774
13775         * postgresql.c (Fpq_lo_import): Fix return value.
13776         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13777
13778 2000-03-13  Ben Wing  <ben@xemacs.org>
13779
13780         * alloc.c (pdump_load):
13781         Fix compile warning under mswin.
13782
13783 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13784
13785         * postgresql.c: Mule-ization, bug fixes.
13786         Use PG_CODING to encapsulate coding system name changes.
13787         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13788         (pg-coding-system): Create.
13789
13790         (Fpq_conn_defaults): Mule-ize.
13791         (Fpq_connectdb): Mule-ize & bug fix.
13792         (Fpq_connect_start): Mule-ize.
13793         (Fpq_set_client_encoding): Mule-ize.
13794         (Fpq_finish): Document `DEAD' connection status.
13795         (Fpq_clear): Ditto.
13796         (Fpq_pgconn): Mule-ize.
13797         (Fpq_exec): Mule-ize & bug fix.
13798         (Fpq_send_query): Ditto.
13799         (Fpq_get_result): Ditto.
13800         (Fpq_res_status): Mule-ize.
13801         (Fpq_result_error_message): Mule-ize.
13802         (Fpq_ntuples): fix comments.
13803         (Fpq_fname): Mule-ize.
13804         (Fpq_fnumber): Mule-ize.
13805         (Fpq_ftype): fix comments.
13806         (Fpq_get_value): Mule-ize.
13807         (Fpq_cmd_status): Ditto.
13808         (Fpq_cmd_tuples): Ditto.
13809         (Fpq_oid_value): Ditto.
13810         (Fpq_notifies): Ditto.
13811         (Fpq_lo_import): Ditto.
13812         (Fpq_lo_export): Ditto.
13813         (Fpq_get_line): Ditto.
13814         (Fpq_put_line): Mule-ize and bug fix.
13815         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13816
13817 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13818
13819         * postgresql.c (vars_of_postgresql): Mule-ize.
13820         (Fpq_conn_defaults): Ditto.
13821
13822 2000-03-12  Ben Wing  <ben@xemacs.org>
13823
13824         * alloc.c (Fmake_byte_code):
13825         * alloc.c (debug_string_purity_print):
13826         * alloc.c (pdump_backtrace):
13827         * alloc.c (pdump_get_indirect_count):
13828         * alloc.c (pdump_register_sub):
13829         * alloc.c (pdump_register_object):
13830         * alloc.c (pdump_register_struct):
13831         * alloc.c (pdump_dump_data):
13832         * alloc.c (pdump_reloc_one):
13833         Minor cleanups.
13834
13835         * console-msw.c:
13836         * console-msw.c (GetConsoleHwnd):
13837         * console-msw.c (msw_hide_console):
13838         * console-msw.c (msw_show_console):
13839         * console-msw.c (msw_ensure_console_buffered):
13840         * console-msw.c (msw_output_console_string):
13841         * console-msw.c (console_type_create_mswindows):
13842
13843         a) Added functions to manipulate the console window for use with
13844         shell support.
13845
13846         b) Added support for writing text to the console, which is now
13847         used under Windows when xemacs is not being run non-interactively,
13848         to write text that would otherwise be destined for stdout because
13849         under these circumstances, text written to stdout tends to
13850         disappear and not be seen.
13851
13852         * console-msw.h:
13853         * event-Xt.c:
13854         * event-Xt.c (x_event_to_emacs_event):
13855         * event-Xt.c (describe_event_window):
13856         * events-mod.h (XEMACS_MOD_CONTROL):
13857         * events.c:
13858         * events.c (Fmake_event):
13859         * events.c (character_to_event):
13860         * events.c (event_to_character):
13861         * events.c (format_event_object):
13862         * events.c (Fevent_modifiers):
13863         * events.h:
13864         * events.h (struct key_data):
13865         * events.h (struct button_data):
13866         * events.h (struct misc_user_data):
13867         * frame-x.c (Fcde_start_drag_internal):
13868         * frame-x.c (Foffix_start_drag_internal):
13869         * gpmevent.c (Freceive_gpm_event):
13870         * keymap.c:
13871         * keymap.c (bucky_sym_to_bucky_bit):
13872         * keymap.c (control_meta_superify):
13873         * keymap.c (make_key_description):
13874         * keymap.c (keymap_lookup_directly):
13875         * keymap.c (create_bucky_submap):
13876         * keymap.c (keymap_store):
13877         * keymap.c (define_key_check_and_coerce_keysym):
13878         * keymap.c (define_key_parser):
13879         * keymap.c (define_key_alternate_name):
13880         * keymap.c (Fdefine_key):
13881         * keymap.c (raw_lookup_key_mapper):
13882         * keymap.c (struct map_keymap_unsorted_closure):
13883         * keymap.c (map_keymap_unsorted_mapper):
13884         * keymap.c (map_keymap_sort_predicate):
13885         * keymap.c (map_keymap_sorted):
13886         * keymap.c (accessible_keymaps_mapper_1):
13887         * keymap.c (where_is_recursive_mapper):
13888         * keymap.c (describe_map_mapper):
13889         * keymap.c (describe_map_sort_predicate):
13890         * keymap.c (describe_map):
13891         * keymap.c (complex_vars_of_keymap):
13892         And a number of other files, the key modifier preprocessor
13893         constants that xemacs uses have names that conflict with constants
13894         defined under MS Windows for other purposes, so they were renamed
13895         to begin with the prefix XEMACS_. The variables that hold such
13896         modifiers were changed to consistently be of type int to fix
13897         various compile warnings.
13898
13899         * console.c (complex_vars_of_console):
13900         * device.c:
13901         * device-msw.c:
13902         * device-msw.c (mswindows_finish_init_device):
13903         * device-msw.c (msw_get_workspace_coords):
13904         * device-msw.c (mswindows_device_system_metrics):
13905         and various other files, added support for a new
13906         device property called offset-workspace which returns the position
13907         of the upper left corner of the workspace area and goes along with
13908         the existing size-workspace property.
13909
13910         * dialog-msw.c:
13911         * dialog-msw.c (push_bufbyte_string_as_unicode):
13912         * dialog-msw.c (mswindows_popup_dialog_box):
13913         Added support for XEmacs-style accelerator specifications in
13914         button text.  Note: I didn't add support for this under X Windows,
13915         and somebody needs to do this.
13916
13917         * dialog.c:
13918         * dialog.c (Fpopup_dialog_box):
13919         Documented the support for accelerators that was just mentioned.
13920
13921         editfns.c (get_home_directory): Changed behavior under Windows
13922         when HOME not defined; former behavior was irretrievably broken.
13923
13924         * emacs.c:
13925         * emacs.c (main_1):
13926         * emacs.c (main):
13927         * minibuf.c (clear_echo_area_internal):
13928         * minibuf.c (echo_area_append):
13929         * print.c:
13930         * print.c (std_handle_out_external):
13931         * print.c (std_handle_out_va):
13932         * print.c (fatal):
13933         * print.c (write_string_to_stdio_stream):
13934         * print.c (output_string):
13935         * print.c (debug_print):
13936         * print.c (debug_backtrace):
13937         * print.c (debug_short_backtrace):
13938         Cleaned up the code that prints text to stdout so that this can be
13939         changed to output into a console window instead under MS Windows,
13940         as described above.
13941
13942         * eval.c:
13943         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13944         * eval.c (internal_catch):
13945         * eval.c (unwind_to_catch):
13946         * eval.c (throw_or_bomb_out):
13947         * eval.c (condition_case_1):
13948         * eval.c (signal_1):
13949         * eval.c (check_error_state_sanity):
13950         * eval.c (call_with_suspended_errors_1):
13951         * eval.c (call_with_suspended_errors):
13952         * eval.c (reinit_vars_of_eval):
13953         Added code to catch throw loops and check for a pesky bug that may
13954         be gone now.
13955
13956         * event-msw.c:
13957         * event-msw.c (key_needs_default_processing_p):
13958         * event-msw.c (mswindows_wnd_proc):
13959         * event-msw.c (mswindows_modifier_state):
13960         * event-msw.c (emacs_mswindows_quit_p):
13961         * event-msw.c (vars_of_event_mswindows):
13962         a) Added support for using the alt key to select menu items as is
13963         standard under MS Windows.  This is controlled using the variable
13964         menu-accelerator-enabled, just like under X Windows.  There is an
13965         option on the options menu to turn this support on.  I really
13966         think that it should be on by default under Windows, but I'm not
13967         going to make this change yet.
13968
13969         b)  Added support for dynamic display size changes under Windows.
13970
13971         * event-stream.c:
13972         * event-stream.c (maybe_echo_keys):
13973         * event-stream.c (Fnext_event):
13974         * event-stream.c (command_builder_find_leaf):
13975         * event-stream.c (lookup_command_event):
13976         * event-stream.c (execute_command_event):
13977         * event-stream.c (pre_command_hook):
13978         * event-stream.c (post_command_hook):
13979         * event-stream.c (syms_of_event_stream):
13980         * event-stream.c (vars_of_event_stream):
13981         * event-stream.c (complex_vars_of_event_stream):
13982         * events.h (struct command_builder):
13983
13984         a) Tried to clean up a little bit the horribly written x-specific
13985         accelerator code that crept into this file.  I moved this code
13986         into menubar-x.c where it belongs. I also needed to move the
13987         command builder structure into the file events.h because it is
13988         accessed directly by this accelerator code.  What I didn't do, but
13989         which should be done at some point, is to properly abstract this
13990         code using device methods instead of the kludgy way that it
13991         currently hooks into the event code.
13992
13993         b) Added the lisp variables this-command-properties and
13994         last-command- properties, which should be used to synchronize two
13995         adjacent commands in preference to playing games with the variable
13996         this-command, which is typically what happens.
13997
13998         c) Added some slightly nasty code to hook into the lisp support
13999         for shifted- motion-key selection.  This is actually necessary for
14000         somewhat complicated reasons, which are described in
14001         simple.el. (NB: I think the proper thing would be to have the code
14002         that calls the pre and post command hooks also call out to generic
14003         lisp functions in simple.el, where all built-in stuff could be
14004         added.  I will think about this more.)
14005
14006         * event-unixoid.c (poll_fds_for_input):
14007         * lread.c (readchar):
14008         * redisplay-tty.c (tty_clear_frame):
14009         * redisplay-x.c (x_get_gc):
14010         * signal.c (interrupt_signal):
14011         And a whole bunch of other files: fixed up places that printed
14012         directly to stderr to instead call the function stderr_out so that
14013         the changes I made under Windows work correctly.
14014
14015         * filemode.c (mode_string):
14016         Warning fixes.
14017
14018         * frame-msw.c:
14019         * frame-msw.c (mswindows_size_frame_internal):
14020         Fixed the computation of frame size and position to keep the frame
14021         within the workspace area, rather than within the physical
14022         dimensions of the screen, so that the frame doesn't overlap window
14023         manager decorations, such as the start menu and toolbar, typically
14024         at the bottom of the screen.
14025
14026         * frame.c (vars_of_frame):
14027         Changed the default frame title format under MS Windows to consist
14028         of buffername-XEmacs, which is standard under MS Windows.  I think
14029         it might be a good idea to change this everywhere because I think
14030         it is superior to the current frame title format, but this is the
14031         kind of change that is likely to cause some people to get annoyed,
14032         so I'm not making it.
14033
14034         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14035
14036         * gui-msw.c (mswindows_handle_gui_wm_command):
14037         Fixed compile warnings.
14038
14039         * gui-x.c:
14040         * gui-x.c (strdup_and_add_accel):
14041         * gui-x.c (button_item_to_widget_value):
14042         * gui-x.h:
14043         Added code to automatically put an accelerator onto the beginning
14044         of menu items that don't have one as is now the standard, and is
14045         described more later.  Also fixed things so that the menu item
14046         name can be an evaluated expression, again a new standard.
14047
14048         * gui.c:
14049         * gui.c (gui_item_add_keyval_pair):
14050         * gui.c (make_gui_item_from_keywords_internal):
14051         * gui.c (gui_add_item_keywords_to_plist):
14052         * gui.c (gui_item_accelerator):
14053         * gui.c (gui_name_accelerator):
14054         * gui.c (gui_item_included_p):
14055         * gui.c (gui_item_display_flush_left):
14056         * gui.c (gui_item_display_flush_right):
14057         * gui.c (parse_gui_item_tree_item):
14058         * gui.c (parse_gui_item_tree_children):
14059         * gui.c (parse_gui_item_tree_list):
14060         Mule-ized.  Cleanup.  GCPRO addition.
14061
14062         * line-number.c (buffer_line_number):
14063         * lisp.h:
14064         * lisp.h (EMACS_INT_MAX):
14065         Added the manifest constant EMACS_INT_MIN corresponding to the
14066         existing constant EMACS_INT_MAX.  This is partially to fix compile
14067         warnings under Windows, and partly for cleanliness.
14068
14069         * menubar-msw.c:
14070         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14071         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14072         * menubar-msw.c (displayable_menu_item):
14073         * menubar-msw.c (populate_menu_add_item):
14074         * menubar-msw.c (populate_or_checksum_helper):
14075         * menubar-msw.c (populate_menu):
14076         * menubar-msw.c (update_frame_menubar_maybe):
14077         * menubar-msw.c (prune_menubar):
14078         * menubar-msw.c (msw_char_is_accelerator):
14079         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14080         * menubar-msw.c (mswindows_handle_wm_command):
14081         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14082         * menubar-msw.c (mswindows_handle_wm_initmenu):
14083         * menubar-msw.c (mswindows_update_frame_menubars):
14084         * menubar-msw.c (mswindows_free_frame_menubars):
14085         * menubar-msw.c (mswindows_popup_menu):
14086         Fixed a bug in handling accelerators where an extra character
14087         would be displayed in the menu item.  Also generalized the
14088         function displayable_menu_item because it is now used by the
14089         dialog box code as well.  And finally, added code in the functions
14090         that create the menubar to extract a list of accelerators for the
14091         top level menubar, which is used in the event code to determine
14092         whether a particular alt-key combination should be used to invoke
14093         a menu item, or should be passed through to access the standard
14094         XEmacs keymap binding for this key combination.
14095
14096         Much needed GCPROing.
14097
14098         * menubar-x.c:
14099         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14100         * menubar-x.c (menu_item_descriptor_to_widget_value):
14101         * menubar-x.c (restore_in_menu_callback):
14102         * menubar-x.c (x_popup_menu):
14103         * menubar-x.c (menu_move_up):
14104         * menubar-x.c (menu_move_down):
14105         * menubar-x.c (menu_move_left):
14106         * menubar-x.c (menu_move_right):
14107         * menubar-x.c (menu_select_item):
14108         * menubar-x.c (command_builder_operate_menu_accelerator):
14109         * menubar-x.c (menu_accelerator_junk_on_error):
14110         * menubar-x.c (command_builder_find_menu_accelerator):
14111         * menubar-x.c (Faccelerate_menu):
14112         * menubar.h:
14113         Moved a whole bunch of code here that was previously in
14114         event-stream.c as described above.  There is also code connected
14115         to the new standard of adding an accelerator to the beginning of
14116         menu items that don't have one as described above and below.
14117
14118         * menubar.c:
14119         * menubar.c (menu_parse_submenu_keywords):
14120         * menubar.c (Fmenu_find_real_submenu):
14121         * menubar.c (Fnormalize_menu_item_name):
14122         * menubar.c (syms_of_menubar):
14123         * menubar.c (vars_of_menubar):
14124         * menubar.c (complex_vars_of_menubar):
14125
14126         a) Cleaned up a bunch of documentation and improved it.
14127
14128         b) XEmacs now automatically adds an accelerator onto the beginning
14129         of any menu items that don't have one.  I did this because there
14130         will inevitably be some menu items on the main menubar that don't
14131         have accelerators on them because the package that adds that
14132         particular menu item hasn't yet been fixed up to have accelerators
14133         in them and it looked rather strange to have some items with and
14134         some items without accelerators, especially since even in items
14135         without accelerators, you can, at least under windows, still
14136         access the item through an accelerator corresponding to the first
14137         character in the item's name.  If people don't like this behavior,
14138         I can add a variable to turn it off optionally, but I'm not sure
14139         this is a good idea because we really do need to have accelerators
14140         on all of the menu items, and if a package doesn't like the
14141         accelerators being put on the first character, then it should put
14142         the accelerators where they belong.
14143
14144         c) I made a behavior change, which is that the descriptor that
14145         specifies the text of the menu item, which formerly was just a
14146         string, can now also be an evaluated expression.  This makes this
14147         descriptor parallel with all of the others, which could also be
14148         evaluated expressions.  This also obviates the need for the
14149         keyword :label, which was previously listed in the documentation
14150         as unimplemented, and which was for the same purpose.
14151
14152         d) GCPROing.
14153
14154         * ntproc.c:
14155         * ntproc.c (new_child):
14156         * ntproc.c (sys_spawnve):
14157         * ntproc.c (find_child_console):
14158         * ntproc.c (sys_kill):
14159         Fixed compile warnings.  By the way, this file should really go
14160         away entirely, and this will happen as soon as Kirill makes his
14161         final round of process cleanups, which affect the function
14162         call-process.
14163
14164         * process-nt.c:
14165         * process-nt.c (struct nt_process_data):
14166         * process-nt.c (find_process_from_pid):
14167         * process-nt.c (send_signal_the_nt_way):
14168         * process-nt.c (enable_child_signals):
14169         * process-nt.c (find_child_console):
14170         * process-nt.c (send_signal_the_95_way):
14171         * process-nt.c (nt_finalize_process_data):
14172         * process-nt.c (ensure_console_window_exists):
14173         * process-nt.c (nt_create_process):
14174         * process-nt.c (nt_kill_child_process):
14175         * process-nt.c (nt_kill_process_by_pid):
14176         * process-nt.c (nt_open_network_stream):
14177         * process-nt.c (vars_of_process_nt):
14178         Copied over code from Emacs 20.5 to correctly send signals to sub-
14179         processes under Windows 95.  Also added code to automatically
14180         create and hide console window when a sub-process is created under
14181         Windows 95, which obviates the need for the separate runemacs.exe
14182         executable, and finally implemented some variables that were
14183         implemented in Emacs 20.5, but previously not in XEmacs.  These
14184         include mswindows- start-process-share-console and
14185         mswindows-start-process-inherit-error-mode. (Both of these only
14186         apply to Windows 95.)
14187
14188         * regex.c (regex_compile): Fixed a compile warning.
14189
14190         * select-msw.c:
14191         * select-msw.c (mswindows_own_selection):
14192         * select-msw.c (mswindows_get_foreign_selection):
14193         * select-msw.c (mswindows_disown_selection):
14194         * select-msw.c (console_type_create_select_mswindows):
14195         * select-msw.c (syms_of_select_mswindows):
14196         Cleaned up the file and implemented the device method
14197         selection_exists_p, which had accidentally been left out.  Also
14198         removed four lisp functions that were remnants from before the
14199         time when the selection code was properly device abstracted.
14200         These functions are no longer needed because there are generic
14201         equivalents, and because they were added recently and don't exist
14202         in FSF Emacs, I don't think there's any problem with just deleting
14203         them.
14204
14205         * sysdep.c:
14206         * sysdep.c (sys_subshell):
14207         Fixed a compile warning, although in this case there's probably
14208         something wrong with this code, and it ought to be looked into
14209         more thoroughly by somebody who understands it.
14210
14211         * window.c:
14212         * window.c (Fwindow_text_area_height):
14213         * window.c (Fwindow_width):
14214         * window.c (Fwindow_full_width):
14215         * window.c (Fwindow_pixel_width):
14216         * window.c (debug_print_window):
14217         * window.c (syms_of_window):
14218         Added functions window-text-area-height and window-full-width,
14219         which are functions for returning various width and height
14220         characteristics of a window. (One of these functions is necessary
14221         for making the file dialog box work correctly, and the other one
14222         was added for completeness.)  Also added a table to the
14223         documentation for window-height which describes the entire scheme
14224         for accessing width and height characteristics of a window.
14225
14226 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14227
14228         * nt.c (fstat): Added a comment for another problem with
14229         non-encapsulated [f]stat(), reported by Adrian Aichner
14230         <aichner@ecf.teradyne.com>.
14231
14232 2000-03-11  Andy Piper  <andy@xemacs.org>
14233
14234         * window.c (make_dummy_parent): initialize subwindow instance
14235         cache.
14236         (Fset_window_configuration): zero extent_modiff.
14237
14238 2000-03-10  Andy Piper  <andy@xemacs.org>
14239
14240         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14241         more changes can be triggered.
14242         (Fredisplay_frame): ditto.
14243         (Fredraw_device): ditto.
14244         (Fredisplay_device): ditto.
14245         (redisplay_frame): make non-static.
14246         (redisplay_frame): call update_frame_gutter_geometry outside of
14247         display proper.
14248
14249         * gutter.h: declare update_frame_gutter_geometry.
14250
14251         * redisplay.h: declare redisplay_frame.
14252
14253         * gutter.c (update_frame_gutter_geometry): move geometry changes
14254         in update_frame_gutters here. Geometry changes can only occur
14255         outside of redisplay.
14256         (update_frame_gutters): remove geometry change code.
14257         (Fredisplay_gutter_area): make sure that we are in display when we
14258         update and that we have flushed any size changes.
14259
14260 2000-03-11  Andy Piper  <andy@xemacs.org>
14261
14262         * alloc.c (pdump_dump_data): remove i & count shadows.
14263
14264 2000-02-27  Mike Alexander  <mta@arbortext.com>
14265
14266         * sysdep.h: Declare pdump_read_file
14267
14268         * sysdep.c (pdump_read_file): New function
14269
14270         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14271         dump data
14272
14273 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14274
14275         * lrecord.h: add `lrecord_type_pgsetenv'.
14276
14277 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14278
14279         * symsinit.h: declare (vars|syms)_of* functions.
14280         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14281
14282 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14283
14284         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14285
14286         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14287         GCCs.
14288
14289         * emacs.c (main_1): Call postgres initialization code.
14290
14291         * postgresql.h: New file.  PostgreSQL RDBMS support.
14292         * postgresql.c: New file.
14293
14294 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14295
14296         * redisplay-output.c (redisplay_output_display_block): Disable
14297         redundant code.
14298
14299 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14300
14301         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14302         (Fcanna_henkan_next): Ditto.
14303         (Fcanna_bunsetu_henkou): Ditto.
14304         (Fcanna_henkan_kakutei): Ditto.
14305         (Fcanna_henkan_end): Ditto.
14306         (Fcanna_henkan_quit): Ditto.
14307         (Fcanna_henkan_next): Set retun value correctly.
14308         (c2mu): Use unsigned char instead of signed char.
14309
14310 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14311
14312         * emacs.c (main_1): Always call syms_of_gui.
14313         * inline.c: include gui.h
14314
14315 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14316
14317         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14318         converted to Lisp_Object.
14319         (Qtop_bottom): New variable.
14320         (syms_of_redisplay): Initialize it.
14321         * redisplay.h (Vvisible_bell): Ditto.
14322         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14323         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14324         only flash top and bottom.
14325
14326 2000-03-08  Andy Piper  <andy@xemacs.org>
14327
14328         * buffer.c (Frename_buffer): record new buffer name the right way.
14329
14330 2000-03-08  Andy Piper  <andy@xemacs.org>
14331
14332         * glyphs.c (update_subwindow): increase hash depth so that widget
14333         items get picked up properly.
14334
14335         * redisplay-output.c (compare_runes): increase hash depth so that
14336         widget items get picked up properly.
14337
14338 2000-03-08  Andy Piper  <andy@xemacs.org>
14339
14340         * gutter.c (output_gutter): add some debug.
14341
14342         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14343         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14344         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14345
14346         * redisplay-output.c (compare_runes): use display_hash to
14347         determine if glyphs really are not the same.
14348
14349         * glyphs.c (update_subwindow): check display_hash to see if
14350         anything really needs to be updated. If not then do
14351         nothing. Record the display_hash after updating.
14352         (image_instance_equal): compare the image_instance face also.
14353
14354 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14355
14356         * redisplay.h: Fix comment style.
14357
14358 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14359
14360         * consle-msw.h (struct mswindows_frame):
14361         Added new member paint_pending to indicate whether a WM_PAINT
14362         magic event has been queued for this frame.
14363
14364         * event-msw.c (mswindows_drain_windows_queue):
14365         Don't queue a WM_PAINT magic event if one is already queued.
14366         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14367
14368         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14369
14370 2000-03-07  Didier Verna  <didier@xemacs.org>
14371
14372         * dired.c: #include `regex.h' after `sysfile.h'.
14373
14374 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14375
14376         * sound.c (init_nas_sound): Fix compiler warning.
14377
14378         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14379         (FREE_STRUCT_P):
14380         (MARK_STRUCT_AS_FREE):
14381         (MARK_STRUCT_AS_NOT_FREE):
14382         Make `gcc -fstrict-aliasing' work properly.
14383
14384 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14385
14386         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14387         (mswindows_delete_device): Call CoUnnitialize().
14388
14389         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14390
14391 2000-02-25    <CraigL@DyCon.com>
14392
14393         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14394         <errno.h>.
14395
14396         * sysdep.c: This extern declaration for environ prevents MinGW
14397         from finding the variable in CRTDLL.DLL.
14398
14399         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14400         windows headers.
14401         (SHGFI_EXETYPE): ..
14402         (WM_MOUSEWHEEL): ..
14403         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14404         definitions.
14405         (MMRESULT): Removed, now defined in cygwin's windows headers.
14406         (TIMECAPS): ..
14407         (uid_t,gid_t,pid_t,ssize_t): ..
14408         (_timeb): Removed, MinGW defines both _timeb and timeb.
14409         (HAVE_H_ERRNO): Added.
14410         (HAVE_TZNAME): Added, configure is not detecting this.
14411
14412 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14413
14414         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14415         * syntax.c (syntax_match): Use it.
14416
14417         * cmds.c: Import auto-fill-chars from FSF Emacs.
14418         (Vauto_fill_chars): New variables.
14419         (internal_self_insert): Check Vauto_fill_chars.
14420         (vars_of_cmds):
14421         Declare auto-fill-chars as a Lisp variable and initialize it.
14422
14423 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14424
14425         * fileio.c (Fmake_symbolic_link):
14426         (Ffile_symlink_p):
14427         Run handlers even if local machine doesn't have symlinks.
14428
14429 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14430
14431         * event-msw.c (mswindows_drain_windows_queue):
14432         Don't generate paint magic events for non-XEmacs frames.
14433
14434 2000-03-05  Andy Piper  <andy@xemacs.org>
14435
14436         * redisplay.c (redisplay_frame): generate_displayable_area and
14437         friends assumes that we are not in GC, we therefore have to make
14438         sure that this doesn't happen.
14439
14440         * gutter.c (calculate_gutter_size): generate_displayable_area
14441         assumes that we are not in GC, we therefore have to make sure that
14442         this doesn't happen.
14443
14444 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14445
14446         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14447
14448 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14449
14450         * redisplay.c (regenerate_window): Make sure we set a sane value
14451         for end_pos even if we jump out of the loop.
14452         (regenerate_window): Answer Ben's question :-).
14453         (start_end_of_last_line): Add may_error argument.
14454         (start_of_last_line):
14455         (end_of_last_line): Pass may_error = 0.
14456         (end_of_last_line_may_error): New function.
14457         (pixel_to_glyph_translation): Use it, so we don't crash in
14458         event_to_glyph.
14459
14460 2000-03-04  Andy Piper  <andy@xemacs.org>
14461
14462         * window.h (struct window): add gutter_extent_modiff.
14463
14464         * window.c (allocate_window): zero out gutter_extent_modiff.
14465
14466         * redisplay.h: declare sync_display_line_structs.
14467
14468         * redisplay.c (add_glyph_rune): add a better comment.
14469
14470         * redisplay-output.c (sync_display_line_structs): made non-static.
14471         (compare_runes): remove unneccesary glyph cachel access.
14472
14473         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14474
14475         * gutter.c (output_gutter): don't output the gutter if extent
14476         changes only involve extents in buffers. use 4 sets of display
14477         lines.
14478         (gutter_extent_signal_changed_region_maybe): new function. Mark
14479         extents in gutters as changed.
14480         (update_frame_gutters): use 4 sets of display lines.
14481         (reset_gutter_display_lines): ditto.
14482         (free_frame_gutters): ditto.
14483         (redraw_exposed_gutter): force output of gutters.
14484
14485         * frame.h (struct frame): add 4 sets of gutter display lines.
14486
14487         * extents.c: (extent_changed_for_redisplay): signal changes to
14488         extents in strings in the gutter as well as extents in buffers.
14489
14490 2000-03-02  Andy Piper  <andy@xemacs.org>
14491
14492         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14493
14494         * frame.c (Fmake_frame): make sure the gutters get initialized
14495         after the frame is visible.
14496         (set_frame_selected_window): re-arrange compilation macros a
14497         little.
14498         (change_frame_size_1): mark gutters changed.
14499
14500         * device.c (Fset_device_class): mark gutters changed.
14501
14502 2000-03-01  Andy Piper  <andy@xemacs.org>
14503
14504         * window.c (window_top_frame_gutter_height): deleted.
14505         (window_bottom_frame_gutter_height): ditto.
14506         (window_left_frame_gutter_height): ditto.
14507         (window_right_frame_gutter_height): ditto.
14508         (window_top_gutter_height): don't use them.
14509         (window_bottom_gutter_height): ditto.
14510         (window_left_gutter_width): ditto.
14511         (window_right_gutter_width): ditto.
14512         (Fsplit_window): ditto.
14513         (Fwindow_pixel_edges): don't use border dimensions here.
14514
14515         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14516         (update_scrollbar_instance): ditto.
14517
14518         * redisplay.c (generate_modeline): don't take gutters into account.
14519         (generate_modeline): ditto.
14520         (redisplay_frame): small gutter display optimization.
14521
14522         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14523
14524         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14525         gutters into account.
14526
14527         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14528         for window position and type.
14529
14530         * gutter.c (get_gutter_coords): fix for frame gutters.
14531         (update_frame_gutters): update frame geometry if the gutters have
14532         changed.
14533         (init_frame_gutters): record current gutter geometries.
14534
14535         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14536         var.
14537         (mswindows_widget_instantiate): ditto.
14538
14539         * frame.h (struct frame): add current_gutter_bounds.
14540
14541         * frame.c (change_frame_size_1): position window and minibuffer
14542         appropriately taking into account the frame gutters.
14543
14544         * frame-x.c: (x_initialize_frame_size): take into account the
14545         frame gutters.
14546
14547 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14548
14549         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14550
14551 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14552
14553         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14554
14555 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14556
14557         * file-coding.c (reset_decoding_stream): Clear previous
14558         detection state when autodetect.
14559
14560 2000-02-29  Didier Verna  <didier@xemacs.org>
14561
14562         * extents.c (set_extent_glyph_1): don't require extents to be
14563         attached.
14564
14565 2000-02-27  Andy Piper  <andy@xemacs.org>
14566
14567         * gutter.c (Fset_default_gutter_position): don't default left and
14568         right gutter visibility to t.
14569         (Fset_default_gutter_position): run
14570         default-gutter-position-changed-hook.
14571         (syms_of_gutter): add default-gutter-position-changed-hook.
14572
14573 2000-02-26  Andy Piper  <andy@xemacs.org>
14574
14575         * specifier.c (Fmake_specifier): add gutter references.
14576
14577         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14578
14579         * lisp.h: declare Fvalid_plist_p.
14580
14581         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14582         as changed.
14583         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14584         well as its visibility so that it gets reconstructed.
14585         (construct_window_gutter_spec): new function. Construct a string
14586         to be displayed in the gutter from a plist of strings. Take care
14587         to only use elements that are declared as visible.
14588         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14589         WINDOW_GUTTER.
14590         (gutter_validate): allow plists of strings in the specifier.
14591         (gutter_specs_changed): construct the real_gutter from the gutter
14592         specs using construct_window_gutter_spec.
14593         (gutter_visible_validate): gutter-visible is a new specifier type.
14594         (Fgutter_visible_specifier_p): new function for the new specifier.
14595         (syms_of_gutter): declare gutter-visible and
14596         Fgutter_visible_specifier_p.
14597         (specifier_type_create_gutter): intitalize new gutter-visible
14598         specifier.
14599         (reinit_specifier_type_create_gutter): ditto.
14600         (specifier_vars_of_gutter): use new specifier type for gutter
14601         visibility.
14602         (init_frame_gutters): construct real_gutter correctly.
14603         (Fgutter_specifier_p): beef up documentation.
14604         (Fgutter_size_specifier_p): ditto.
14605
14606         * winslots.h: add real_gutter slots.
14607
14608 2000-02-25  Andy Piper  <andy@xemacs.org>
14609
14610         * device-msw.c: Be kind to older cygwin versions. From Raymond
14611         Toy <toy@rtp.ericsson.se>.
14612
14613         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14614         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14615
14616 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14617
14618         * elhash.c (MARK_OBJ): Practice macro hygiene.
14619
14620 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14621
14622         * miscplay.c: s/__inline__/inline/g;
14623         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14624         (get_device_compdc): INLINE ==> static inline
14625         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14626         find -name '*.h' | \
14627         xargs global-replace \
14628         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14629
14630 2000-02-25  Andy Piper  <andy@xemacs.org>
14631
14632         * window.c (window_top_frame_gutter_height): new function.
14633         (window_top_window_gutter_height): ditto.
14634         (window_top_gutter_height): use them.
14635         (window_bottom_frame_gutter_height): new function.
14636         (window_bottom_window_gutter_height): ditto.
14637         (window_bottom_gutter_height): use them.
14638         (window_left_window_gutter_width): new function.
14639         (window_left_frame_gutter_width): ditto.
14640         (window_left_gutter_width): use them.
14641         (window_right_window_gutter_width): new function.
14642         (window_right_frame_gutter_width): ditto.
14643         (window_right_gutter_width): use them.
14644         (window_pixel_height): new function. calulate window pixel height
14645         with frame gutter involvement.
14646         (Fsplit_window): calculate new sizes taking frame gutters into
14647         account.
14648         (window_char_height_to_pixel_height): don't include frame gutters.
14649         (window_char_height): use window_pixel_height.
14650         (window_pixheight): rename from window_pixel_height.
14651         (change_window_height): use it.
14652         (window_pixel_height_to_char_height): don't include frame gutters.
14653         (window_char_width_to_pixel_width): ditto.
14654
14655 2000-02-25  Andy Piper  <andy@xemacs.org>
14656
14657         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14658         if it is.
14659
14660 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14661
14662         * alloc.c (staticpro):
14663         (staticpro_nodump):
14664         (dumpstruct):
14665         (dumpopaque):
14666         (pdump_wire):
14667         (pdump_wire_list):
14668         (compact_string_chars):
14669         (pdump_dump_wired):
14670         Convert:  if (foo) abort();  ==>  assert (! foo);
14671
14672         * eldap.c (Fldap_search_basic):
14673         (Fldap_add):
14674         (Fldap_modify):
14675         (Fldap_delete):
14676         Fix compiler warnings, and possible crashes if (random) return
14677         value were to be used.
14678
14679 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14680
14681         * device-msw.c: Workaround ResetDC failure.
14682
14683         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14684         applying a devmode.
14685
14686         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14687         (mswindows_text_width): Do not start printer page.
14688
14689         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14690
14691         * glyphs-msw.c: Added image methods to msprinter console and
14692         msprinter-specific image instantiation.
14693
14694 2000-02-20  Mike Alexander  <mta@arbortext.com>
14695
14696         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14697         to avoid crashes when selection-sets-clipboard is on
14698         (mswindows_own_selection): ditto
14699
14700 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14701
14702         * glyphs-msw.c:
14703         * redisplay-msw.c (get_frame_dc):
14704         (get_frame_compdc):
14705         * console-msw.h:
14706         * device-msw.c (mswindows_init_device):
14707         (mswindows_delete_device):
14708         (msprinter_init_device):
14709         (msprinter_delete_device):
14710         * frame-msw.c (mswindows_init_frame_1):
14711         (mswindows_delete_frame):
14712         (msprinter_init_frame_3):
14713         (msprinter_delete_frame): Move compatible DC to device object from
14714         frame object, for both mswindows and msprinter. Only one at a time
14715         is needed, it is a real waste to have one per frame!
14716
14717 2000-02-23  Andy Piper  <andy@xemacs.org>
14718
14719         * glyphs.c: add dynamic width and height elements.
14720         (image_instance_equal): ditto.
14721
14722         * glyphs-widget.c (widget_query_geometry): calculate width and
14723         height dynamically if required.
14724         (initialize_widget_image_instance): initialize dynamic dimensions.
14725         (widget_instantiate): pick-up dynamic dimensions.
14726
14727         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14728         dynamic determination. Add appropriate macros.
14729
14730         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14731         dimensions safe.
14732         (WINDOW_GUTTER_SIZE): ditto.
14733         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14734
14735         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14736         inline.
14737         (get_frame_dc): ditto.
14738
14739         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14740         here.
14741
14742 2000-02-23  Martin Buchholz <martin@xemacs.org>
14743
14744         * XEmacs 21.2.31 is released.
14745
14746 2000-02-22  Ben Wing <ben@xemacs.org>
14747
14748         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14749
14750 2000-02-22  Andy Piper  <andy@xemacs.org>
14751
14752         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14753
14754 2000-02-21  Mike Sperber <mike@xemacs.org>
14755
14756         * .dbxrc:
14757         * .gdbinit:
14758         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14759         variables.
14760
14761 2000-02-21  Mike Sperber <mike@xemacs.org>
14762
14763         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14764
14765 2000-02-21  Martin Buchholz <martin@xemacs.org>
14766
14767         * XEmacs 21.2.30 is released.
14768
14769 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14770
14771         Performance hacking.
14772         * *.c (syms_of_*):
14773         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14774         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14775         * emacs.c (main_1):
14776         * lisp.h (DEFUN):
14777         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14778         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14779         * symeval.h (DEFVAR_SYMVAL_FWD):
14780         * symbols.c (guts_of_unbound_marker):
14781         Make all c_readonly objects also lisp_readonly and marked for life.
14782         * lrecord.h (struct lrecord_implementation):
14783         Document flags better.
14784         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14785         * lrecord.h (DECLARE_LRECORD):
14786         * lrecord.h (XSETRECORD):
14787         * lrecord.h (RECORDP):
14788         * lrecord.h (RECORD_TYPEP):
14789         * lrecord.h (RECORD_MARKER): New.
14790         * lrecord.h (error_check_*):
14791         * lrecord.h (CONCHECK_NONRECORD):
14792         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14793         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14794         * lrecord.h (set_lheader_implementation):
14795         * lrecord.h (enum lrecord_type): New.
14796         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14797         * alloc.c (disksave_object_finalization_1):
14798         * alloc.c (mark_object):
14799         * alloc.c (lrecord_type_index):
14800         * alloc.c (tick_lcrecord_stats):
14801         * alloc.c (Fgarbage_collect):
14802         * alloc.c (init_alloc_once_early):
14803         * alloc.c (pdump_load):
14804         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14805         * alloc.c (lrecord_type_index): Delete.
14806         Make lisp object type indexes be constant.
14807           Makes (byte-compile) 5% faster.
14808         Put all marker functions into their own array.
14809           Makes (garbage-collect) 5% faster.
14810         Optimize SYMBOL_VALUE_MAGIC_P.
14811           Makes (byte-compile) 2-3% faster.
14812         * config.h.in (gc_checking_assert): New.
14813         * alloc.c: Use gc_checking_assert().
14814         * .dbxrc: Make compatible with new object type implementation.
14815         * .gdbinit: Make compatible with new object type implementation.
14816         * alloc.c: Delete all symbols defined only for debugging, such as
14817         Lisp_Type_Vector and lrecord_charset.
14818
14819 2000-02-21  Andy Piper  <andy@xemacs.org>
14820
14821         * gui-msw.c (Fmswindows_shell_execute): fix file location
14822         problems.
14823
14824         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14825         unshowing so that set_window_buffer doesn't undo
14826         kill_buffer_hook's hard work.
14827
14828         * glyphs-widget.c (tab_control_query_geometry): don't count the
14829         first item when calculating geometry.
14830
14831         * glyphs.c (map_subwindow): remove redundant code.
14832         (update_frame_subwindows): be more circumspect about when to
14833         update subwindows.
14834
14835         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14836         when items haven't changed. Update faces if faces have changed as
14837         well as just the widget face.
14838         (x_tab_control_update): Update faces if faces have changed as well
14839         as just the widget face.
14840
14841 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14842
14843         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14844         registration.
14845         (build_syscolor_string): Use mswindows_color_to_string to try to
14846         get a named color.
14847         (mswindows_device_system_metrics): Reverse the foreground and
14848         background colors so that they match the documentation.
14849
14850         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14851         they match the default Windows palette.
14852         (mswindows_color_to_string): New function.
14853
14854 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14855
14856         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14857
14858 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14859
14860         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14861         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14862
14863         * symbols.c (init_symbols_once_early): Removed obsolete
14864         DATA_SEG_BITS related kludge.
14865         (defvar_magic): Ditto.
14866
14867         * malloc.c: Removed obsolete DATA_SEG_BITS
14868         * ralloc.c: Ditto.
14869         * mem-limits.h: Ditto.
14870
14871         * Makefile.in.in: Removed obsolete HAVE_SHM
14872         * emacs.c: Ditto.
14873
14874 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14875
14876         *  device-msw.c (mswindows_delete_device): Free DDE string
14877         handles.
14878
14879 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14880
14881         * keymap.c (get_keyelt):
14882         * unexnt.c (unexec):
14883         * vm-limit.c (memory_warnings):
14884         * ntheap.c (recreate_heap):
14885         * ntheap.h (UNINIT_PTR):
14886         * select-msw.c (Fmswindows_get_clipboard):
14887         (Fmswindows_set_clipboard):
14888         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14889         * objects-msw.c:
14890         * menubar-msw.c (displayable_menu_item):
14891         * glyphs-msw.c:
14892         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14893         * sysdep.c (sys_subshell):
14894         * process-nt.c (nt_create_process):
14895         * nt.c (normalize_filename):
14896         (dostounix_filename):
14897         (unixtodos_filename):
14898         * ntproc.c (win32_executable_type):
14899         * ntplay.c (play_sound_data_1):
14900         (play_sound_file):
14901         * editfns.c (get_home_directory):
14902         * event-msw.c (struct winsock_stream):
14903         (mswindows_dde_callback):
14904         * device-msw.c (msprinter_init_device):
14905         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14906
14907         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14908         mswindows_clear_toolbar were swapped!
14909
14910         * objects-msw.c:(colormap_t):
14911         (fontmap_t):
14912         * emacs.c (struct standard_args): Fixed const jumble.
14913
14914         * glyphs-widget.c (update_widget): Fixed comparison notation.
14915
14916         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14917
14918         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14919         __declspec(noreturn) syntax.
14920
14921 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14922
14923         * eldap.c (Fldap_open):
14924         (Fldap_search_basic):
14925         (Fldap_add):
14926         (Fldap_modify):
14927         Use new coding system conversion macros.
14928
14929 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14930
14931         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14932
14933 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14934
14935         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14936         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14937
14938         * eldap.c (Qadd, Qreplace): New constant symbols
14939         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14940         interruptions by XEmacs signals
14941         Remove unnecessary calls to slow_down_interrupts and
14942         speed_up_interrupts
14943         (Fldap_search_basic): Renamed from Fldap_search_internal
14944         Added new optional parameter VERBOSE that triggers the
14945         display of progress messages
14946         Remove unnecessary calls to slow_down_interrupts and
14947         speed_up_interrupts
14948         LDAP result code analysis rewritten
14949         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14950         (syms_of_eldap): Define the new symbols and functions
14951
14952
14953 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14954
14955         * realpath.c: Determine PATH_MAX maximally portably.
14956
14957         * insdel.c (bytecount_to_charcount): Optimize.
14958         The function used to be optimized for entirely ASCII sequences.
14959         Now it is optimized for successive characters from the same
14960         charset.  This also wins big for _mostly_ ASCII sequences.
14961
14962         * fileio.c (Ffile_truename): convert return from realpath() using
14963         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14964         - Rewrite GCPROing slightly.
14965
14966         * sysdep.c (sys_open): Do filename conversion, like all other
14967         sys_* functions.  Fixes bug:
14968         (let ((file-name-coding-system 'iso-8859-2))
14969            (write-region x y latin2-name))
14970         ==> writes filename using internal encoding.
14971
14972 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14973
14974         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14975         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14976         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14977         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14978         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14979         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14980         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14981         (CONST_IF_NOT_DEBUG): Delete.
14982         * alloc.c (this_one_is_unmarkable): Delete.
14983         (mark_object): Don't check for this_one_is_unmarkable. Use the
14984         c_readonly flag instead.
14985         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14986
14987 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14988
14989         * event-msw.c (mswindows_drain_windows_queue):
14990         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14991         away redundant repaint events.
14992
14993 2000-02-17  Andy Piper  <andy@xemacs.org>
14994
14995         * redisplay.h: declare mark_redisplay_structs.
14996
14997         * redisplay.c (redisplay_window):
14998         (redisplay_frame): don't check subwindows_state_changed.
14999         (mark_redisplay): mark gutters here.
15000
15001         * glyphs.c: (instantiate_image_instantiator): always layout if we
15002         haven't done so already.
15003         (allocate_image_instance): don't mark as dirty.
15004         (update_subwindow): bind inhibit_quit.
15005
15006         * gutter.c (mark_gutters): new function.
15007
15008         * glyphs-x.c (x_update_widget): Always resize to get round a
15009         widget bug.
15010
15011         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15012         breaking absolutely everything.
15013
15014         * gutter.h: declare mark_gutters.
15015
15016 2000-02-16  Martin Buchholz <martin@xemacs.org>
15017
15018         * XEmacs 21.2.29 is released.
15019
15020 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15021
15022         * fns.c (size_bit_vector): Fix computation of the size.
15023
15024 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15025
15026         * *.[ch]: Change CONST to const globally.
15027         find -name '*.[ch]' | \
15028         xargs global-replace \
15029         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15030         - Remove vestigial references to CONST_IS_LOSING
15031
15032 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15033
15034         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15035         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15036         events instead of dispatching them directly.
15037         (mswindows_handle_paint): New function to do repainting.
15038         (mswindows_wnd_proc):
15039         (emacs_mswindows_handle_magic_event): Call above function.
15040
15041 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15042
15043         * objects-msw.c (mswindows_create_font_variant): Return the new
15044         font handle.
15045         (initialize_font_instance): Get font metrics from the underlined
15046         variant of the font to cope with the case where the underlined
15047         font has a bigger descent.
15048
15049 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15050
15051         * gui.c (gui_item_accelerator): Return the first underlined
15052         character in item name.
15053
15054 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15055
15056         * lisp.h: Added Qprinter.
15057
15058         * general.c (syms_of_general): Initialized it.
15059
15060         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15061         (get_frame_dc):
15062         (get_frame_compdc): Made inline.
15063
15064         * console.h (struct console_methods): Added eject_page method.
15065
15066         * frame.h: Added FRAME_DISPLAY_P and friends.
15067         Aligned backslahes in many macros in more readable fashion.
15068         Added page_number to struct frame, and an accessor macro
15069         for it.
15070
15071         * defice.h: Added DEVICE_DISPLAY_P and friends.
15072
15073         * device.c (Fdevice_printer_p): Used these.
15074
15075         * frame.c (allocate_frame_core): Initialize page number.
15076         (Fprint_job_page_number):
15077         (Fprint_job_eject_page): Implemented.
15078
15079         * frame-msw.c (msprinter_eject_page): Added method.
15080         (msprinter_start_page): Added.
15081
15082         * window.c (Fwindow_truncated_p): Fixed docstring.
15083         (Fwindow_last_line_visible_height): Implemented.
15084
15085 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15086
15087         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15088
15089 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15090
15091         * syntax.c (scan_words): Always advance at least one character.
15092
15093 2000-02-13  Andy Piper  <andy@xemacs.org>
15094
15095         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15096         to make sure the glyph is in the cachels.
15097
15098         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15099         global image instance flag.
15100         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15101         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15102
15103         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15104         (Fset_image_instance_property): mark layout as changed.
15105         (invalidate_glyph_geometry_maybe): mark layout as changed.
15106         (glyph_width): use new NEEDS_LAYOUT macro.
15107         (glyph_ascent): ditto.
15108         (glyph_descent): ditto.
15109         (glyph_height): ditto.
15110         (image_instance_layout): mark layout as clean after laying out.
15111         (update_subwindow): don't mark layout as clean here.
15112
15113         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15114         should no longer be needed.
15115
15116         * glyphs-x.c (x_update_widget): sanitize asserts.
15117         (x_finalize_image_instance): sanitize assignment to widgets.
15118
15119         * glyphs-widget.c (widget_instantiate): don't need to clear the
15120         layout flag here.
15121
15122 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15123
15124         * sysdep.c (getcwd): Use standard prototype.
15125         * sysdep.h (getcwd): Use standard prototype.
15126
15127         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15128         (sequence, start, end).
15129         Remove redundant type checking.
15130         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15131         view of `caller-protects') to avoid a crash where the real fix was
15132         found elsewhere.
15133
15134 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15135
15136         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15137
15138         * s/sol2.h: Remove feature macro initialization.
15139
15140         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15141         (vector_hash): New.  Code from internal_hash.
15142         * lrecord.h:
15143         Fix up allocation subsystem comments.
15144
15145         * config.h.in: Add __EXTENSIONS__ for Solaris.
15146
15147         * systime.h (EMACS_GETTIMEOFDAY): New.
15148         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15149         Remove Solaris-specific code.
15150         Use void* for the (ignored) second arg for gettimeofday().
15151
15152         * elhash.c (hash_table_hash): Implement it, finally.
15153         * elhash.c:  Use hashcode_t.
15154
15155         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15156         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15157
15158         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15159         * fns.c (size_bit_vector):
15160         * alloc.c (size_vector):
15161         (make_vector_internal):
15162         (make_bit_vector_internal):
15163         (sweep_bit_vectors_1):
15164         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15165
15166 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15167
15168         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15169         Include strings.h to avoid warnings for bzero and strcasecmp.
15170
15171 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15172
15173         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15174         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15175
15176         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15177         sequence.
15178
15179 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15180
15181         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15182         use a value field instead.
15183         (symbol_value_forward_forward): Use value field.
15184         (DEFVAR_SYMVAL_FWD): Use value field.
15185         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15186         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15187         (DEFVAR_CONST_INT): Ditto.
15188         (DEFVAR_BOOL): Ditto.
15189         (DEFVAR_CONST_BOOL): Ditto.
15190         (DEFVAR_INT_MAGIC): Ditto.
15191         (DEFVAR_BOOL_MAGIC): Ditto.
15192
15193         * symbols.c (guts_of_unbound_marker): Use value field.
15194         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15195         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15196
15197         * lisp.h: Declare dumpopaque and noninteractive1.
15198
15199         * alloc.c (dumpopaque): Added.
15200         (pdump_dump_opaquevec): Added.
15201         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15202         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15203         noninteractive.
15204
15205 2000-02-10  Andy Piper  <andy@xemacs.org>
15206
15207         * glyphs.c (image_instance_layout): if the size changes, mark it
15208         as such.
15209
15210         * redisplay-output.c (redisplay_output_layout): Update the
15211         subwindow here.
15212         (redisplay_output_subwindow): ditto.
15213
15214         * glyphs.c (update_subwindow): make sure we reset flags for
15215         layouts as well as everything else.
15216
15217         * glyphs-widget.c (layout_layout): don't need to set the instances
15218         dimensions here.
15219
15220 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15221
15222         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15223         not HAVE_DLOPEN, which is a lower-level thing.
15224
15225         * .cvsignore: Ignore gmon.out
15226
15227 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15228
15229         * .cvsignore: Ignore portable dumper xemacs.dmp file
15230
15231 2000-02-09  Andy Piper  <andy@xemacs.org>
15232
15233         * redisplay-output.c (redisplay_output_layout): be more clever
15234         about when we output based on the changed flags.
15235
15236         * glyphs.h (struct image_instantiator_methods): add update_method.
15237         (struct Lisp_Image_Instance): add changed flags. Declare new
15238         macros for manipulating them.
15239
15240         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15241         (image_instance_parent_glyph): find an image_instance's parent
15242         glyph or image_instance.
15243         (image_instance_layout): mark the size as changed.
15244         (set_image_instance_dirty_p): new function. mark an image
15245         instance, plus all of its parents, as dirty.
15246         (Fset_image_instance_property): use it.
15247         (Fglyph_animated_timeout_handler): use it.
15248         (update_subwindow): call update_widget and device methods for
15249         update_subwindow. Mark all changed flags as clean.
15250         (Fresize_subwindow): mark size as changed.
15251
15252         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15253         failures.
15254         (x_update_subwindow): only resize subwindows here.
15255         (x_update_widget): new function. Update all changed properties of
15256         a widget.
15257         (x_resize_subwindow): deleted.
15258         (x_widget_set_property): deleted.
15259         (x_progress_gauge_set_property): deleted.
15260         (x_progress_gauge_update): new function. Implement recorded
15261         changes.
15262         (x_tab_control_update): ditto.
15263         (x_tab_control_set_property): deleted.
15264         (console_type_create_glyphs_x): declare new functions.
15265         (image_instantiator_format_create_glyphs_x): ditto.
15266
15267         * glyphs-widget.c (widget_set_property): mark text changed.
15268         (update_widget): new function. Update properties of a widget.
15269         (widget_instantiate): for layouts make sure we set their
15270         children's parent correctly.
15271         (tab_control_set_property): new function. Record changes that will
15272         take place under redisplay's control.
15273         (progress_gauge_set_property): ditto.
15274         (image_instantiator_progress_guage): declare new functions.
15275         (image_instantiator_tab_control): ditto.
15276
15277         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15278         now.
15279         (mswindows_update_widget): new function. Update all properties on
15280         a widget that have changed.
15281         (mswindows_button_update): new function. Update a button's set
15282         state.
15283         (mswindows_tab_control_update): new function. Update the items in
15284         a tab.
15285         (mswindows_tab_control_set_property): deleted.
15286         (mswindows_progress_gauge_update): new function. Update the
15287         progress gauge's progress.
15288         (mswindows_widget_set_property): deleted. This is all done
15289         asynchronously now.
15290         (mswindows_progress_gauge_set_property): ditto.
15291         (console_type_create_glyphs_mswindows): declare new methods.
15292         (image_instantiator_format_create_glyphs_mswindows): ditto.
15293
15294         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15295         (msprinter_set_frame_properties): ditto.
15296
15297         * console.h (struct console_methods): Add update_widget_method.
15298
15299 2000-02-09  Andy Piper  <andy@xemacs.org>
15300
15301         * gui-msw.c (Fmswindows_shell_execute): Make
15302         mswindows-shell-execute industrial strength.
15303
15304 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15305
15306         * lrecord.h: Make macro argument `props' match member function `plist'.
15307         * fns.c (Fget):
15308         * fns.c (Fput):
15309         * fns.c (Fremprop):
15310         * fns.c (Fobject_plist):
15311         * alloc.c:
15312         * symbols.c:
15313         Object property list frobbing cleanup.
15314         - Allow any lisp object (compared with `eq'), not just symbols, as
15315           keys in object plists.
15316         - Move symbol plist frobbing into symbols.c, where it belongs.
15317         - Move string plist frobbing into alloc.c, where it belongs.
15318         - Everything's an lrecord now, so no need to test for symbolp, etc.
15319         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15320
15321         * extents.c: Reorder code to remove declarations.
15322
15323         * frame.h (store_in_alist): Remove useless declaration.
15324
15325 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15326
15327         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15328         * config.h.in: Add HAVE_XCONVERTCASE.
15329
15330 2000-02-07  Andy Piper  <andy@xemacs.org>
15331
15332         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15333         it breaks many things.
15334
15335 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15336
15337         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15338         actually can start a common comment type.
15339         * src/syntax.h (SYNTAX_END_P): ditto for end.
15340
15341 2000-02-07  Martin Buchholz <martin@xemacs.org>
15342
15343         * XEmacs 21.2.28 is released.
15344
15345 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15346
15347         * event-Xt.c (x_keysym_to_character): New.
15348         (maybe_define_x_key_as_self_inserting_character): New.
15349         (x_has_keysym): New.
15350         Auto-define all keys on the keyboard as self-insert-key.
15351
15352 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15353
15354         * menubar.c (vars_of_menubar): A small code simplification.
15355
15356         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15357
15358         * ExternalShell.c:
15359         * ExternalClient.c:
15360         * EmacsShell-sub.c:
15361         * EmacsManager.c:
15362         * EmacsFrame.c:
15363         Use consistent style for specifying X resources.
15364
15365         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15366         This makes (dontusethis-set-symbol-value-handler) actually usable.
15367
15368         * lrecord.h (lrecord_decription_type):
15369         * alloc.c (pdump_register_sub):
15370         (pdump_dump_data):
15371         (pdump_reloc_one):
15372         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15373         Comply with XEmacs coding style.
15374         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15375         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15376
15377         * keymap.c (Faccessible_keymaps):
15378         Make (accessible-keymaps map "\C-h") do the Right Thing.
15379         Make (accessible-keymaps map []) do the Right Thing.
15380         Make (accessible-keymaps map "") do the Right Thing.
15381         (check_keymap_definition_loop): New function.
15382         (keymap_store_internal): Keep luser from shooting self in foot,
15383           via (define-key ctl-x-4-map "p" global-map).
15384         Remove fullness slot from struct Lisp_Keymap, since hash tables
15385         are now reliable.
15386         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15387
15388 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15389
15390         * redisplay.c (init_redisplay): Fix small memory leak.
15391         * elhash.h:
15392         * elhash.c (pdump_reorganize_hash_table):
15393         Rename from reorganize_hash_table. Change prototype.
15394         Reuse the original memory for hentries.  Save 100k.
15395         * alloc.c (PDUMP_READ): new macro.
15396         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15397         * alloc.c: No need to #ifndef before #undef.
15398
15399         * print.c: Allow debug_print() to print readably by modifying
15400         debug_print_readably.  Use consistent variable names.
15401
15402         * .dbxrc: Try to get things to work even if stopped in a function
15403         without source available by explicitly specifying source files.
15404 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15405
15406         * unexnt.c (_start): Removed bogus code which caused loading heap
15407         from differrent executable file.
15408         Removed bogus assignment to _fmode, which caused inconsistencies.
15409
15410 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15411
15412         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15413         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15414         Do not preliminary `#define signal sigset'.
15415
15416         * systime.h: Do not prototype environ on windows nt and cygwin,
15417         this conflicts with system header.
15418
15419         * syssignal.h: Use correct define for WINDOWSNT
15420
15421         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15422         with system header.
15423
15424         * sysdep.c (near start of file): Fixed commentary and rearranged
15425         ifdefs in readable order.
15426         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15427         (start_of_text):
15428         (end_of_text):
15429         (end_of_data): Do not compile in if using PDUMP.
15430
15431         * symsinit.h: Prototyped vars_of_nt().
15432
15433         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15434         (find_child_console): Use it.
15435         (sys_kill): Use it.
15436
15437         * ntheap.h: Do not extern os_subtype.
15438
15439         * ntheap.c (cache_system_info): Do not cache unneeded:
15440         nt_major_version, nt_minor_version and os_subtype.
15441         (recreate_heap): Do not compile in when PDUMPing.
15442
15443         * nt.c (geteuid and friends): Use the new varibale
15444         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15445         (init_user_info): Removed the above mentioned hackery.
15446         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15447         stat has been fixed in the C runtime.
15448         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15449
15450         * file-coding.c (struct file_coding_dump): Do not define
15451         ucs_to_mule_table in the struct if not MULE.
15452         (struct struct lrecord_description fcd_description_1): Do not dump
15453         the above.
15454
15455         * emacs.c (main_1): Call vars_of_nt().
15456         (right before Fdump_emacs_data): Don't need lastfile if using both
15457         portabe dumper and system malloc.
15458
15459         * alloc.c (Fmemory_limit): Conditionalized out.
15460         (pdump): Use OPEN_BINARY for the portable dump file.
15461         (pdump_load): Ditto.
15462
15463 2000-02-02  Mike Alexander  <mta@arbortext.com>
15464
15465         * nt.c (convert_time): Set tm_isdst before calling mktime and
15466         avoid calling it at all if the compiler supports 64 bit integers.
15467         Also initialize utc_base_ft before using it.
15468
15469 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15470
15471         * frame.c (change_frame_size_1): Take f->internal_border_width
15472         into consideration when calculating the width of the frame.
15473
15474 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15475
15476         * window.c (frame_min_height):
15477         (frame_size_valid_p):
15478         (frame_pixsize_valid_p): Added.
15479         (check_frame_size): Generalized.
15480
15481         * window.h: Prototyped the above.
15482
15483         * lisp.h:
15484         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15485         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15486         Deleted Vwin32_* and Vbinary_process_* unused variables.
15487
15488         * device-msw.c (msprinter_init_device): Do not get printer font
15489         list; Added DEVMODE functions.
15490
15491         * frame-msw.c: Added lots of printer code.
15492
15493         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15494         general.c.
15495
15496         * console-msw.h: Added more msprinter device private slots.
15497
15498 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15499
15500         * event-msw.c (key_needs_default_processing_p): Added.
15501         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15502
15503 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15504
15505         * glyphs.c (image_instance_layout): Mark image instance as clean
15506         after layout.
15507         (glyph_dirty_p): Removed redundant function.
15508         (invalidate_glyph_geometry_maybe): Added.
15509         (update_glyph_cachel_data): Call it.
15510
15511         * glyphs.h: Prototyped it.
15512
15513         * redisplay.c (add_glyph_rune): Call it.
15514         (redisplay_window): Reset glyphs cachels when frame faces have
15515         changed, thus forcing recomputation of built-in border glyphs.
15516
15517 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15518
15519         * Makefile.in.in: Make portable dumper and purify play well together.
15520         Add imperfect, but better than nothing, support for pdump.
15521         Remove xemacs.dmp when temacs is re-generated.
15522         Don't ignore errors when dumping xemacs.
15523
15524         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15525
15526 2000-01-28  Andy Piper  <andy@xemacs.org>
15527
15528         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15529         (setup_normal_frame): ditto.
15530         (setup_frame_without_minibuffer): ditto.
15531         (setup_minibuffer_frame): ditto.
15532         (delete_frame_internal): ditto.
15533         (Fmake_frame_invisible): ditto.
15534         (Ficonify_frame): ditto.
15535
15536         * window.h: change Fset_window_buffer signature.
15537
15538         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15539         (Fset_window_buffer): allow recording of buffer if the window is
15540         the selected window.
15541         (window_loop): Use new Fset_window signature.
15542
15543 2000-01-23  Daniel Pittman  <daniel@danann.net>
15544
15545         * config.h.in: Added template for `HAVE_ATHENA_3D'
15546
15547 2000-01-29  Andy Piper  <andy@xemacs.org>
15548
15549         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15550
15551         * gutter.c (output_gutter): Don't output if the window isn't live.
15552
15553 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15554
15555         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15556         of 01/12/00: Moved SetFocus back here where it belongs.
15557
15558 2000-01-23  Andy Piper  <andy@xemacs.org>
15559
15560         * s/cygwin32.h: declare printer things.
15561
15562 2000-01-26  Andy Piper  <andy@xemacs.org>
15563
15564         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15565         Alexander.
15566
15567 2000-01-24  Andy Piper  <andy@xemacs.org>
15568
15569         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15570         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15571
15572         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15573
15574         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15575
15576         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15577
15578         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15579         (mswindows_output_display_block): Avoid local shadows.
15580
15581         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15582         (mswindows_enqueue_mouse_button_event): ditto.
15583         (mswindows_handle_gui_wm_command): remove declaration.
15584
15585         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15586         warnings.
15587
15588         * console-msw.h: Avoid shadows.
15589         (mswindows_get_toolbar_button_text):
15590         (emacs_mswindows_create_stream_pair):
15591         (emacs_mswindows_delete_stream_pair):
15592         (mswindows_handle_toolbar_wm_command): declare.
15593
15594         * device-msw.c (build_syscolor_string): Avoid shadows.
15595
15596 2000-01-23  Andy Piper  <andy@xemacs.org>
15597
15598         * glyphs-widget.c (widget_instantiate): reverse the items for
15599         layouts so that children are in the expected order.
15600
15601 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15602
15603         * ralloc.c: safe_bcopy ==> memmove
15604         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15605         * s/msdos.h: Remove BCOPY macros.
15606         * insdel.c (gap_right): Remove BCOPY conditional code.
15607         * insdel.c (gap_left): Remove BCOPY conditional code.
15608         XEmacs demands a working ANSI C compiler - hence memmove.
15609
15610         * regex.c (regex_compile): Remove accidental use of trigraphs.
15611
15612 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15613
15614         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15615         event timestamp.
15616
15617 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15618
15619         * event-msw.c (mswindows_drain_windows_queue): Added the
15620         parameter.
15621         (mswindows_need_event): Commented the call to
15622         mswindows_drain_windows_queue().
15623         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15624         only.
15625
15626         * console-msw.h: Moved a few function prototypes here from
15627         event-msw.c.
15628
15629         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15630         parameter from unsigned short to unsigned long.
15631         (Fmswindows_shell_execute): Added return value.
15632
15633 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15634
15635         * sysdep.c (init_system_name):
15636           process-unix.c (unix_canonicalized_host_name):
15637         Don't call freeaddrinfo() if getaddrinfo() fails.
15638
15639         * process-unix.c (unix_open_unix_network_stream):
15640         Moved the code to get a port # into address loop.
15641
15642 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15643
15644         * buffer.c (reinit_vars_of_buffer):
15645         The right place to initialize conversion_in_dynarr and
15646         conversion_out_dynarr.
15647
15648         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15649
15650         * process-unix.c (unix_canonicalize_host_name): Muleize.
15651         (unix_open_network_stream): Muleize.
15652
15653         * buffer.h: Fix up prototypes for ralloc.c functions.
15654
15655 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15656         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15657         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15658                 instead of gethostbyname()
15659         * process-unix.c: In unix_canonicalize_host_name() and
15660                 unix_open_network_stream(), add code to use getaddrinfo()
15661                 instead of gethostbyname().
15662
15663 2000-01-27  Daniel Pittman <daniel@danann.net>
15664
15665         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15666         libs when built with flat Athena.
15667
15668 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15669
15670         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15671         Use coding standards for function prototypes.
15672
15673 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15674
15675         * dialog-msw.c (push_lisp_string_as_unicode):
15676         * doc.c (unparesseuxify_doc_string):
15677         * dired.c (Fuser_name_completion_1):
15678         * dired.c (Fuser_name_all_completions):
15679         * dired.c (free_user_cache):
15680         * dired.c (user_name_completion):
15681         * console-x.c (get_display_arg_connection):
15682         * minibuf.c (clear_echo_area_internal):
15683         * minibuf.c (echo_area_append):
15684         * eldap.c (Fldap_open):
15685         * eldap.c (Fldap_search_internal):
15686         * frame-x.c (x_set_frame_text_value):
15687         * frame-x.c (x_set_frame_properties):
15688         * frame-x.c (x_create_widgets):
15689         * redisplay-tty.c (term_get_fkeys_1):
15690         * objects-x.c (x_parse_nearest_color):
15691         * objects-x.c (x_valid_color_name_p):
15692         * objects-x.c (x_initialize_font_instance):
15693         * objects-x.c (x_list_fonts):
15694         * objects-x.c (x_find_charset_font):
15695         * tooltalk.c (Fadd_tooltalk_message_arg):
15696         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15697         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15698         * process-unix.c (unix_create_process):
15699         * ntproc.c (sys_spawnve):
15700         * sound.c (Fplay_sound_file):
15701         * sound.c (Fplay_sound):
15702         * buffer.c (init_initial_directory):
15703         * buffer.c (init_buffer):
15704         * editfns.c (init_editfns):
15705         * editfns.c (Ftemp_directory):
15706         * editfns.c (Fuser_full_name):
15707         * editfns.c (uncache_home_directory):
15708         * editfns.c (get_home_directory):
15709         * editfns.c (Fuser_home_directory):
15710         * editfns.c (Fformat_time_string):
15711         * editfns.c (Fcurrent_time_string):
15712         * gui-x.c (button_item_to_widget_value):
15713         * database.c (Fopen_database):
15714         * event-Xt.c (x_to_emacs_keysym):
15715         * event-Xt.c (x_event_to_emacs_event):
15716         * event-Xt.c (describe_event_window):
15717         * event-msw.c (mswindows_wnd_proc):
15718         * glyphs-eimage.c (jpeg_instantiate):
15719         * glyphs-eimage.c (gif_instantiate):
15720         * glyphs-eimage.c (png_instantiate):
15721         * glyphs-eimage.c (tiff_instantiate):
15722         * glyphs-x.c (xbm_instantiate_1):
15723         * glyphs-x.c (x_xbm_instantiate):
15724         * glyphs-x.c (x_xface_instantiate):
15725         * glyphs-x.c (autodetect_instantiate):
15726         * glyphs-x.c (cursor_font_instantiate):
15727         * glyphs-x.c (x_widget_instantiate):
15728         * glyphs-x.c (x_widget_set_property):
15729         * glyphs-x.c (x_widget_property):
15730         * glyphs-x.c (BUILD_GLYPH_INST):
15731         * print.c (write_string_to_stdio_stream):
15732         * print.c (output_string):
15733         * print.c (Falternate_debugging_output):
15734         * print.c (Fexternal_debugging_output):
15735         * glyphs-msw.c (extract_xpm_color_names):
15736         * glyphs-msw.c (mswindows_xpm_instantiate):
15737         * glyphs-msw.c (bmp_instantiate):
15738         * glyphs-msw.c (resource_name_to_resource):
15739         * glyphs-msw.c (mswindows_resource_instantiate):
15740         * glyphs-msw.c (xbm_instantiate_1):
15741         * glyphs-msw.c (mswindows_xbm_instantiate):
15742         * glyphs-msw.c (mswindows_xface_instantiate):
15743         * glyphs-msw.c (mswindows_widget_instantiate):
15744         * glyphs-msw.c (add_tree_item):
15745         * glyphs-msw.c (add_tab_item):
15746         * glyphs-msw.c (mswindows_combo_box_instantiate):
15747         * glyphs-msw.c (mswindows_widget_property):
15748         * glyphs-msw.c (mswindows_combo_box_property):
15749         * glyphs-msw.c (mswindows_widget_set_property):
15750         * console.c (stuff_buffered_input):
15751         * objects-msw.c (mswindows_initialize_color_instance):
15752         * objects-msw.c (mswindows_valid_color_name_p):
15753         * objects-msw.c (mswindows_list_fonts):
15754         * objects-msw.c (mswindows_font_instance_truename):
15755         * bytecode.c (optimize_compiled_function):
15756         * select-x.c (symbol_to_x_atom):
15757         * select-x.c (x_atom_to_symbol):
15758         * select-x.c (hack_motif_clipboard_selection):
15759         * select-x.c (selection_data_to_lisp_data):
15760         * select-x.c (lisp_data_to_selection_data):
15761         * select-x.c (Fx_get_cutbuffer_internal):
15762         * select-x.c (Fx_store_cutbuffer_internal):
15763         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15764         * buffer.h (TO_INTERNAL_FORMAT): New function.
15765         * emacs.c (make_arg_list_1):
15766         * emacs.c (make_argc_argv):
15767         * emacs.c (main_1):
15768         * emacs.c (Fdump_emacs):
15769         * emacs.c (split_string_by_emchar_1):
15770         * file-coding.h:
15771         * lisp.h:
15772         * lstream.h:
15773         * symsinit.h:
15774         * device-x.c (x_init_device):
15775         * device-x.c (Fx_valid_keysym_name_p):
15776         * device-x.c (Fx_get_font_path):
15777         * device-x.c (Fx_set_font_path):
15778         * glyphs.c (bitmap_to_lisp_data):
15779         * glyphs.c (pixmap_to_lisp_data):
15780         * alloc.c (make_ext_string): Use coding system arguments.  Update
15781         all callers.
15782         * alloc.c (build_string):
15783         * callproc.c (child_setup):
15784         * callproc.c (init_callproc):
15785         * fileio.c (lisp_strerror):
15786         * fileio.c (directory_file_name):
15787         * fileio.c (Fexpand_file_name):
15788         * fileio.c (Ffile_truename):
15789         * fileio.c (Fsysnetunam):
15790         * fileio.c (Fdo_auto_save):
15791         * sysdep.c (sys_readdir):
15792         * tests.c: New file.  Allow adding C tests.
15793         Replace GET_* macros with a more comprehensible and flexible
15794         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15795         Modify all calls.
15796         Any coding system can be used to do format conversion.
15797         Eliminate enum external_data_format.
15798         Eliminate convert_to_external_format.
15799         Eliminate convert_to_internal_format.
15800         Make sure file-name, keyboard, terminal, and ctext are always
15801         defined as coding systems or aliases.  Make
15802         file-name-coding-system, terminal-coding-system, and
15803         keyboard-coding-system magical variables that are equivalent to
15804         defining the corresponding coding system aliases.
15805
15806         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15807         * file-coding.c (Fcoding_system_alias_p): New function.
15808         * file-coding.c (Fcoding_system_aliasee): New function.
15809         * file-coding.c (append_suffix_to_symbol): New function.
15810         * file-coding.c (dangling_coding_system_alias_p): New function.
15811         * file-coding.c (Ffind_coding_system):
15812         * file-coding.c (Fcopy_coding_system):
15813         * file-coding.c (encode_coding_no_conversion):
15814         * file-coding.c (syms_of_file_coding):
15815         * file-coding.c (vars_of_file_coding):
15816         Rewrite coding system alias code.
15817         Allow nested aliases, like symbolic links.
15818         Allow redefinition of coding system aliases.
15819         Prevent existence of dangling coding system aliases.
15820
15821         * dired.c (Fuser_name_completion_1):
15822         * dired.c (Fuser_name_all_completions):
15823         A crash would happen if user did QUIT in the middle of building
15824         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15825
15826         * lisp.h:
15827         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15828
15829         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15830         an unsigned char *.  Update all callers.
15831
15832 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15833
15834         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15835
15836 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15837
15838         * elhash.c (hentry_description): Use more portable definition.
15839         (resize_hash_table): Initialize new hentries using
15840         xnew_array_and_zero, thereby simplifying the code.
15841
15842         * mule-charset.c (make_charset): Make sure entire object is
15843         initialized, to avoid Purify warnings.
15844
15845         * alloc.c (resize_string): Fix unlikely crash with big strings.
15846
15847 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15848
15849         * realpath.c (xrealpath):
15850         Don't call getwd().
15851
15852 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15853
15854         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15855
15856 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15857
15858         * unexelfsgi.c (unexec): Change the way we decide which segment
15859         should be extended.
15860
15861         Assumption that .bss section should be outside the PT_LOADable
15862         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15863         it's present) is inside the 'data' segment. This would fail the
15864         test which was used to find a segment to grow and cover new
15865         heap. Instead of this assumption, I created another one - on IRIX
15866         the segment to grow should start below .bss and it's address
15867         should extent above the end of .bss. Once this segment is
15868         identified, it's grown to accommodate the new heap and new
15869         zero-length .bss section is added at the end of .data2.
15870
15871 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15872
15873         * eval.c (Feval): Wrong number of arguments should use original
15874         function, not the indirect_function version of it.
15875
15876 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15877
15878         * glyphs-x.c (x_button_instantiate): Don't add image if
15879         it is not a pixmap.
15880         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15881         is relative.
15882
15883 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15884
15885         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15886         declaration.
15887         (DEFVAR_INT_MAGIC): Ditto.
15888         (DEFVAR_BOOL_MAGIC): Ditto.
15889         * glyphs.h: Reindent backslash.
15890
15891 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15892
15893         * glyphs-widget.c (layout_query_geometry):
15894         (layout_layout): Use correct types for gheight, gwidth.
15895
15896 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15897
15898         * EmacsManager.c (QueryGeometry): Purified.
15899
15900 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15901
15902         * alloc.c (make_float): Make sure entire object is initialized, to
15903         avoid Purify warnings.
15904         (pdump_register_sub): Remove useless assignment.
15905         (pdump): Use xmalloc, not malloc.
15906         (pdump_load): Use xmalloc, not malloc.
15907
15908 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15909
15910         * callproc.c:
15911         * dired-msw.c:
15912         * fileio.c:
15913         * process-nt.c:
15914         * redisplay-msw.c:
15915         * sysdep.c: Removed redundant #include <windows.h>
15916
15917 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15918
15919         * frame.c (delete_frame_internal): Do not delete device when its
15920         implementation so declares.
15921         (delete_frame_internal): Set device selected frame to nil when
15922         last frame goes away.
15923
15924         * device-msw.c (msprinter_device_system_metrics): Implemented.
15925         (mswindows_device_system_metrics): Added 'device-dpi property.
15926
15927         * device.c: (Fdevice_printer_p): Added.
15928         Added 'offset-workspace device metric.
15929
15930         * console.h (device_metrics): Declared DM_offset_workspace.
15931
15932 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15933
15934         * fileio.c (Ffile_truename): Remove pointless and confusing
15935         initialization of elen.
15936
15937         * glyphs-widget.c: Compiler warning fixes.
15938
15939 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15940
15941         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15942         instead of a Lisp_Object as argument to make it consistent with
15943         the other LIVE_P macros.
15944         (CHECK_LIVE_PROCESS): New macro.
15945
15946         * process.c: Declare Qprocess_live_p.
15947         (Fprocess_live_p): New function.
15948         (create_process): Use PROCESS_LIVE_P.
15949         (read_process_output): Ditto.
15950         (set_process_filter): Ditto.
15951         (Fdelete_process): Ditto.
15952         (kill_buffer_processes): Ditto
15953         (process_send_signal): Use CHECK_LIVE_PROCESS.
15954         (Fprocess_input_coding_system): Check whether process is still
15955         alive (fix PR#1061).
15956         (Fprocess_output_coding_system): Ditto.
15957         (Fprocess_coding_system): Ditto.
15958         (Fset_process_input_coding_system): Ditto.
15959         (Fset_process_output_coding_system): Ditto.
15960
15961 2000-01-23  Andy Piper  <andy@xemacs.org>
15962
15963         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15964         layout and widget.
15965
15966         * glyphs.c (mark_image_instance): take into account changed
15967         image_instance format.
15968         (image_instance_equal): ditto.
15969         (image_instance_hash): ditto.
15970
15971         * glyphs-widget.c (widget_instantiate): Incorporate layout
15972         instantiation here. Delay layout of the layout until later.
15973         (layout_instantiate): deleted.
15974         (layout_query_geometry): new function. get the geometry of a
15975         layout.
15976         (layout_layout): layout a layout dynamically.
15977         (image_instantiator_widget): New function - splitting up
15978         image_instantiator_format_create_glyphs_widget for netwinder
15979         compilation.
15980         (image_instantiator_buttons):
15981         (image_instantiator_edit_fields):
15982         (image_instantiator_combo_box):
15983         (image_instantiator_scrollbar):
15984         (image_instantiator_progress_guage):
15985         (image_instantiator_tree_view):
15986         (image_instantiator_tab_control):
15987         (image_instantiator_labels):
15988         (image_instantiator_layout): ditto.
15989         (image_instantiator_format_create_glyphs_widget): Call preceding
15990         functions.
15991
15992 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15993
15994         * process.c (Fset_process_coding_system):
15995         * device-x.c (Fx_keysym_hash_table):
15996         Docstring fixes.
15997
15998         * lstream.c (Lstream_write): Return documented value, not 0.
15999
16000         * fileio.c (directory_file_name):
16001         (Fsubstitute_in_file_name):
16002         (Fsubstitute_insert_file_contents_internal):
16003         (Fwrite_region_internal):
16004         * emacs.c:
16005         * sysdep.c:
16006         * getloadavg.c:
16007         * systty.h:
16008         Remove vestigial APOLLO-conditional code.
16009
16010 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16011
16012         * getpagesize.h: Add guard macros.
16013         * libsst.h: Add guard macros.
16014         * libst.h: Add guard macros.
16015         * line-number.h: Add guard macros.
16016         * ndir.h: Add guard macros.
16017         * sysfloat.h: Add guard macros.
16018         * sysfile.h: Add guard macros.
16019         * sysproc.h: Add guard macros.
16020         * syswait.h: Add guard macros.
16021         * xintrinsic.h: Add guard macros.
16022         * xintrinsicp.h: Add guard macros.
16023         * xmmanager.h: Add guard macros.
16024         * xmmanagerp.h: Add guard macros.
16025         * xmprimitive.h: Add guard macros.
16026         * xmu.h: Add guard macros.
16027         * gpmevent.h: Add copyright statement. Add guard macros.
16028         * miscplay.h: Add guard macros.
16029         * *.h: Use consistent C-standards-approved guard macro names.
16030
16031         * opaque.c (make_opaque): Switch parameter order.
16032         * opaque.h (make_opaque): Switch parameter order.
16033         Update all callers.
16034         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16035
16036         * config.h.in (type_checking_assert): Added.
16037         (bufpos_checking_assert): Added.
16038
16039 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16040
16041         * alloc.c: Harmless pdump changes.
16042         - Use countof().
16043         - spell alignment correctly.
16044         * sysdep.c: Use countof()
16045
16046 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16047
16048         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16049         initially_selected_for_input() console method, default to 0.
16050         (semi_canonicalize_console_connection): Try to delegate to
16051         canonicalize_console_connection if no such console method.
16052         (canonicalize_console_connection): Vice versa.
16053         (print_console): Do not print nil connection.
16054
16055         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16056         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16057         (XDEVIMPF_FRAMELESS_OK): Added.
16058         (CONSOLE_INHERITS_METHOD): Added.
16059
16060         * console-msw.c (mswindows_canonicalize_console_connection):
16061         Added.
16062         (mswindows_canonicalize_device_connection): Added.
16063
16064         * console-msw.h (struct msprinter_device): Added this struct and
16065         accessor macros.
16066         (mswindows_device): Made fontlist a lisp object.
16067
16068         * device.c (semi_canonicalize_device_connection):  Try to delegate
16069         to canonicalize_device_connection if no such console method.
16070         (canonicalize_device_connection): Vice versa.
16071         (print_device): Do not print nil connection.
16072
16073         * device-msw.c (mswindows_init_device): Call InitCommonControls
16074         when have widgets.
16075         (mswindows_delete_device): Removed fontlist deallocation.
16076         (mswindows_mark_device): Added.
16077
16078         * events.c (event_equal): Added abort() at unreached code.
16079         (event_hash): Ditto.
16080
16081         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16082         fallback tags of Windows devices.
16083
16084         * general.c (syms_of_general): Initialized Qmsprinter.
16085
16086         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16087         of fallback tags of Windows devices.
16088
16089         * lisp.h: Declared Qmsprinter.
16090
16091         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16092         of strings.
16093         (mswindows_list_fonts): Ditto.
16094         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16095         that it can be used by both mswindows and msprinter devices.
16096         (initialize_font_instance): Added.
16097         (mswindows_initialize_font_instance): Use it.
16098         (msprinter_initialize_font_instance): Added.
16099
16100         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16101         and implementation flags check.
16102         (redisplay_without_hooks): Changed the call to the above.
16103         (Fredraw_device): Ditto.
16104         (Fredisplay_device): Ditto.
16105
16106         * redisplay-msw.c (get_frame_dc): Implemented.
16107         (get_frame_compdc): Implemented.
16108         (many functions): Use the two functions above to get device
16109         contexts, ether for a window or a printer.
16110
16111 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16112
16113         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16114         initialization here.
16115         (init_symbols_once_early): Call it.
16116         * emacs.c (main_1): Call it.
16117         * symsinit.h: Declare it.
16118
16119 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16120
16121         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16122         Lisp_Object.
16123         (pdump_backtrace): Ditto.
16124         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16125         (pdump_get_entry): Abort if trying to register a null pointer.
16126         (pdump_dump_data): Cleanup types when relocating.
16127         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16128         (pdump_dump_rtables): Remove bad casts.
16129         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16130         Lisp_Object instead of a EMACS_INT for the hashtable
16131         reorganization.
16132
16133 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16134
16135         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16136
16137         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16138
16139         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16140
16141         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16142
16143 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16144
16145         * faces.h (FACE_STRIKETHRU_P): Added.
16146
16147         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16148         of font variants.
16149
16150         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16151         (mswindows_set_dc_font): New function, aware of font variants,
16152         separated from mswindows_update_dc.
16153
16154         * objects-msw.h (struct mswindows_font_instance_data): Added
16155         definition.
16156
16157         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16158         cached fonts and the data structure.
16159         (mswindows_initialize_font_instance): Added creation of font data
16160         structure.
16161         (mswindows_print_font_instance): Print at least something.
16162         (mswindows_create_font_variant): Implemented.
16163         (mswindows_get_hfont): Implemented.
16164
16165 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16166
16167         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16168         prototyping problem with msvc.
16169
16170         * emacs.c (main_1): added syms_of_gui_mswindows() call
16171
16172         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16173         syms_of_gui_mswindows() function
16174
16175         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16176
16177 2000-01-18  Martin Buchholz <martin@xemacs.org>
16178
16179         * XEmacs 21.2.27 is released.
16180
16181 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16182
16183         * glyphs-eimage.c (struct tiff_error_struct):
16184         (tiff_error_func):
16185         (tiff_warning_func):
16186         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16187
16188         * unexmips.c:
16189         * unexhp9k3.c:
16190         * unexfreebsd.c:
16191         * unexec.c: Remove vestigial Lucid C code.
16192         * unexalpha.c:
16193         * unexaix.c:
16194         * termcap.c:
16195         * libsst.c: Ansify.
16196         Remove declarations of errno and strerror().
16197
16198         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16199
16200         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16201
16202 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16203
16204         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16205         Optimize.
16206
16207 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16208
16209         * md5.c:
16210         * file-coding.c:
16211         * file-coding.h:
16212         Change enum eol_type to eol_type_t.
16213
16214 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16215
16216         * gui.c (get_gui_callback): Check cons before accessing car.
16217
16218 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16219
16220         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16221         (XSETSPECIFIER_TYPE): Ditto.
16222
16223 2000-01-17  Didier Verna  <didier@xemacs.org>
16224
16225         * redisplay.c (generate_fstring_runes): compute string size in
16226         characters, not bytes.
16227
16228 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16229
16230         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16231
16232 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16233
16234         * print.c (print_error_message): Call print_prepare().
16235
16236 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16237
16238         * .dbxrc: Renamed from dbxrc.
16239
16240         * events.c (event_to_character):
16241         Use `assert (foo)' instead of `if (!foo) abort()'
16242
16243         * .gdbinit (xtype): Add documentation.
16244         * .gdbinit (check-temacs): New function.
16245         * .gdbinit (check-xemacs): New function.
16246         * dbxrc (check-xemacs): New function.
16247         * dbxrc (check-xemacs): New function.
16248
16249 2000-01-14  Andy Piper  <andy@xemacs.org>
16250
16251         * glyphs-widget.c (widget_query_geometry): Make sure that we
16252         calculate default dimensions correctly.
16253
16254 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16255
16256         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16257
16258         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16259         pdump_wire'd variable.
16260
16261         * emacs.c: (main_1): Conditionalized calls to
16262         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16263
16264 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16265
16266         * window.c (Fset_window_configuration):
16267         * sysdep.c (_start):
16268         * input-method-motif.c (res):
16269         * event-Xt.c (Xt_process_to_emacs_event):
16270         Simple compiler warning fixes.
16271
16272         * bytecode.c (funcall_compiled_function): Use the original
16273         function symbol on the backtrace list in preference to the
16274         compiled_function object in error messages.
16275
16276 2000-01-13  Andy Piper  <andy@xemacs.org>
16277
16278         * glyphs-x.c (update_widget_face): Make sure we update the widget
16279         background as well as foreground.
16280
16281 2000-01-13  Andy Piper  <andy@xemacs.org>
16282
16283         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16284         fields to subwindow.
16285         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16286         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16287         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16288         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16289
16290         * glyphs-widget.c (check_valid_tab_orientation): new function.
16291         (initialize_widget_image_instance): zero orientation and
16292         justification.
16293         (widget_instantiate): pick up orientation.
16294         (tab_control_query_geometry): return appropriate values for
16295         vertical tabs.
16296
16297         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16298         appropriate creation flags for left, right and bottom tabs.
16299
16300         * s/cygwin32.h: add tab definitions.
16301
16302 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16303
16304         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16305         frame upon hiding a subwindow.
16306         (mswindows_button_instantiate): Changed the push button style to
16307         BS_PUSHBUTTON.
16308         (mswindows_button_instantiate): Removed button BS_NOTIFY
16309         style.
16310         (mswindows_button_instantiate): Removed redundant check for
16311         a disabled gui item.
16312         (mswindows_button_instantiate): Made use of WS_TABSTOP
16313         consistent: "operable" controls (edit, button, tree, scroll) have
16314         this style, "display-only" ones (static, progress gauge) do
16315         not. This style is currently ignored by XEmacs though. Also,
16316         removed the WS_EX_CONTROLPARENT style - it is not for children,
16317         it is for their parents!
16318         (mswindows_edit_field_instantiate): Ditto.
16319         (mswindows_progress_gauge_instantiate): Ditto.
16320         (mswindows_tree_view_instantiate): Ditto.
16321         (mswindows_tab_control_instantiate): Ditto.
16322         (mswindows_scrollbar_instantiate): Ditto.
16323         (mswindows_combo_box_instantiate): Ditto.
16324         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16325         style to the "clip" window.
16326         (mswindows_button_instantiate): Removed compilation warning by
16327         equally typing terms of the ?: operator.
16328
16329 2000-01-12  Didier Verna  <didier@xemacs.org>
16330
16331         * redisplay.c (generate_fstring_runes): new parameter holding the
16332         last modeline-format extent.
16333         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16334         extent, fill the glyph block with it.
16335         (generate_fstring_runes): handle these parameters.
16336         (generate_formatted_string_db): ditto.
16337
16338         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16339         glyphs'extents in the modeline.
16340
16341 1999-01-11  Mike Woolley  <mike@bulsara.com>
16342
16343         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16344         256Mb, as a workaround for the non-starting problem many people
16345         have experienced.
16346
16347 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16348
16349         * console-tty.c (Fset_console_tty_output_coding_system):
16350         Force redrawing tty frame.
16351
16352 2000-01-10  Didier Verna  <didier@xemacs.org>
16353
16354         * redisplay.c (generate_fstring_runes): fix size computation bug.
16355
16356 2000-01-09  William M. Perry <wmperry@aventail.com>
16357
16358         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16359
16360 2000-01-09  Andy Piper  <andy@xemacs.org>
16361
16362         * glyphs-msw.c: index -> i to avoid shadows.
16363         (xbm_create_bitmap_from_data): make static.
16364         (check_valid_string_or_int): deleted.
16365         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16366
16367         * glyphs-x.c (x_update_subwindow): remove unused args.
16368
16369         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16370         back pointer - this is done in allocate_image_instance.
16371         (query_string_font): return Qnil to make the compiler happy.
16372         (unmap_subwindow): set to ~0 to make the compiler happy.
16373         (glyph_query_geometry): comment out until used.
16374         (glyph_layout): ditto.
16375
16376 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16377
16378         * insdel.c (signal_after_change): Remove extraneous unbind_to().