update.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Qsystem_char_id): New variable.
4
5         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
6         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
7
8 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * chartab.c (Fput_char_attribute): When processing a reference of
11         a character, put into the end of the reversed reference of each
12         target character.
13
14 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * chartab.c (Q_same): Deleted.
17         (Q_same_of): Deleted.
18         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
19         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
20         for `{<-|->}same'.
21         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
22
23 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * chartab.c (Q_vulgar): Deleted.
26         (Q_vulgar_of): Deleted.
27         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
28         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
29         for `{<-|->}vulgar'.
30         (syms_of_chartab): Don't define `{<-|->}vulgar'.
31
32 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * chartab.c (Fput_char_attribute): Convert char-refs in value of
35         `{<-|->}wrong[^*]*' to characters and put reverse links.
36         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
37         for `{<-|->}wrong[^*]*'.
38
39 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * chartab.c (Q_vulgar): New variable.
42         (Q_vulgar_of): New variable.
43         (Fput_char_attribute): Convert char-refs in value of
44         `{->|<-}vulgar' to characters and put reverse links.
45         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
46         for `{->|<-}vulgar'.
47         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
48
49 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * text-coding.c (decode_add_er_char): Must to quote prefix string
52         as regexp.
53
54 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * mule-charset.c (put_char_ccs_code_point): Store characters of
57         =ucs whose code_points >= 0xF0000.
58
59 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
62         CHISE.
63         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
64         CHISE.
65         (complex_vars_of_mule_charset): Add new coded-charset
66         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
67         builtin characters over 0xEFFFF.
68
69         * chartab.c (syms_of_chartab): Don't define symbol
70         `system-char-id' in every case.
71
72         * char-ucs.h (Qsystem_char_id): New extern variable.
73         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
74
75 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * text-coding.c (char_encode_utf8): Try to use entity-references
78         for U-000F0000 ...  U-0010FFFF.
79
80 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * text-coding.c (ER_BUF_SIZE): New macro.
83         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
84         `er_buf'.
85         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
86         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
87
88 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
89
90         * chartab.c (find_char_feature_in_family): New function.
91         (Fchar_feature): Use `find_char_feature_in_family' with
92         `->identical', `<-subsumptive' and `<-denotational'.
93
94 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * text-coding.c (char_encode_as_entity_reference): Allow prefix
97         within 8 characters; fix infinite loop.
98
99 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * chartab.c (Q_same): New variable.
102         (Q_same_of): New variable.
103         (Fput_char_attribute): Convert char-refs in value of `{->|<-}same'
104         to characters and put reverse links.
105         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
106         for `{->|<-}same'.
107         (syms_of_chartab): Add new symbols `{->|<-}same'.
108
109 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * chartab.c (Q_component): New variable.
112         (Q_component_of): Likewise.
113         (Fput_char_attribute): Convert char-refs in value of
114         `{->|<-}ideographic-component-forms' to characters and put reverse
115         links.
116         (syms_of_chartab): Add new symbols
117         `{->|<-}ideographic-component-forms'.
118
119 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
120
121         * chartab.c (Q_identical): New variable.
122         (Q_identical_from): New variable.
123         (Fchar_feature): Regard `->identical' as a feature to find
124         ancestors.
125         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
126         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
127         for `{->|<-}identical'.
128         (syms_of_chartab): Add new symbols `{->|<-}identical'.
129
130 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * char-ucs.h (encode_char_2): New inline function.
133         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
134
135 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
136
137         * chartab.c (Fput_char_attribute): Convert char-specs to
138         characters in value of `ideographic-structure'.
139         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
140         for `{<-|->}simplified(@...)'.
141         (Fdefine_char): bTry to use predefined character's id.
142
143 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * fns.c (simplify_char_spec): Try to convert builtin chars to
146         defined chars.
147
148 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (Fput_char_attribute): Convert char-refs in value of
151         `<-simplified[^*]*' to characters and put reverse links.
152
153 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
154
155         * chartab.c (Q_subsumptive): Renamed from Q_unified.
156         (Q_subsumptive_from): Renamed from Q_unified_from.
157         (Fchar_feature): Use `Q_subsumptive_from' instead of
158         `Q_unified_from'.
159         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
160         `Q_unified'.
161         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
162         `<-unified' to `<-subsumptive'.
163
164 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
167         inheritance itself; fix typo; stop recursive search if cyclic
168         inheritance is found.
169
170 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * chartab.c (Q_denotational): New variable.
173         (Q_denotational_from): New variable.
174         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
175         (put_char_attribute): New function.
176         (Fput_char_attribute): Use `put_char_attribute'; regard
177         `->denotational' and `<-denotational' as same as `->unified' and
178         `<-unified'.
179         (syms_of_chartab): Add new symbols `->denotational' and
180         `<-denotational'.
181
182 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
185         `Fget_char_attribute'.
186         (Fchar_variants): Likewise.
187         (get_char_table): Likewise.
188         (Fchar_feature): New function.
189         (put_char_composition): Use `Fchar_feature' instead of
190         `Fget_char_attribute'.
191         (Fput_char_attribute): Likewise; don't put the target character
192         into its `->unified' value.
193         (syms_of_chartab): Add new builtin function `char-feature'.
194
195 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
198         `Fget_char_attribute'.
199         (char_encode_utf8): Likewise.
200
201         * chartab.h: Add an EXFUN for `Fchar_feature'.
202
203 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * chartab.c (Vnext_defined_char_id): New variable.
206         (Fput_char_attribute): Accept characters in `->unified'.
207         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
208         new characters which are not related with builtin char-id ranges.
209         (vars_of_chartab): Add new variable `next-defined-char-id'.
210
211 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * chartab.c (Q_unified): New variable.
214         (Q_unified_from): New variable.
215         (Fput_char_attribute): Add code for `->unified'.
216         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
217         XEmacs CHISE.
218
219 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * mule-charset.c (decode_ccs_conversion): New function.
222         (decode_defined_char): Use `decode_ccs_conversion'.
223         (decode_builtin_char): Likewise.
224
225 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * char-ucs.h: Change some charset-ids of private coded-charsets.
228
229 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
232         (char_encode_as_entity_reference): Likewise.
233         (decode_coding_big5): Modify for `decode_defined_char' and
234         `DECODE_CHAR'.
235         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
236         avoid compiler warning.
237         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
238
239         * mule-charset.c (decode_defined_char): Add new argument
240         `without_inheritance'.
241         (Fdecode_char): Add new optional argument `without_inheritance'.
242         (Fdecode_builtin_char): Modify for `Fdecode_char'.
243
244         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
245         (simplify_char_spec): Likewise.
246
247         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
248         setting.
249
250         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
251         (map_char_table): Likewise.
252         (Fdefine_char): Use `Fdecode_char' without inheritance.
253         (Ffind_char): Modify for `Fdecode_char'.
254
255         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
256
257         * char-ucs.h (decode_defined_char): Add new argument
258         `without_inheritance'.
259         (DECODE_CHAR): Likewise.
260         (MAKE_CHAR): Modify for `DECODE_CHAR'.
261
262 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * chartab.c (Vchise_system_db_directory): New variable.
265         (vars_of_chartab): Add new variable `chise-system-db-directory'.
266
267 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * chartab.c: EXFUN `Fmount_char_attribute_table'.
270         (print_chartab_range): Don't define when `UTF2000' is defined.
271         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
272         `CHISE_DS_open'.
273
274 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
277         and optional argument `rehash' is specified, call
278         `open_chise_data_source_maybe' before
279         `chise_ds_foreach_char_feature_name' is called.
280
281 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * chartab.c (char_attribute_list_reset_map_func): New function
284         when HAVE_LIBCHISE is defined.
285         (Fchar_attribute_list): Add new optional argument `rehash' when
286         HAVE_LIBCHISE is defined.
287         (open_chise_data_source_maybe): Use "chise-db" instead of
288         "char-db".
289         (char_attribute_system_db_file): Likewise.
290         (Fload_char_attribute_table): Use
291         `chise_feature_foreach_char_with_value' instead of
292         `chise_char_feature_value_iterate'.
293
294 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * chartab.c (Vchise_db_directory): New variable.
297         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
298
299 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
302         instead of HAVE_CHISE to specify using with libchise.
303
304         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
305
306         * chartab.h: Don't use HAVE_CHISE_CLIENT.
307
308         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
309         defined or HAVE_LIBCHISE_LIBCHISE is defined.
310         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
311         is defined.
312         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
313         HAVE_CHISE to specify using with libchise.
314         (syms_of_chartab): Don't define symbol `system-char-id' when
315         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
316
317 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
320         specify CHISE DB support.
321         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
322         of `char_attribute_system_db_file' to check feature DB file.
323
324         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
325         HAVE_CHISE_CLIENT to specify CHISE DB support.
326
327         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
328         specify CHISE DB support.
329         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
330         not defined.
331         (Freset_char_attribute_table): Use `chise_feature_setup_db'
332         instead of `char_attribute_system_db_file' to check feature DB
333         file.
334
335 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
338         `HAVE_CHISE_CLIENT'.
339
340 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
343         (Fsave_charset_mapping_table): Don't use
344         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
345
346         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
347         (HAVE_LIBCHISE): New macro.
348
349         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
350
351         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
352         (Fsave_char_attribute_table): Don't use
353         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
354
355 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
356
357         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
358         defined.
359         (save_uint16_byte_table): Likewise.
360         (save_byte_table): Likewise.
361         (char_table_get_db): Use `chise_ds_load_char_feature_value'
362         instead of `chise_char_load_feature_value'.
363         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
364
365 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * chartab.h (struct Lisp_Char_Table): Delete member
368         `feature_table' if CHISE is defined.
369
370         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
371         (Fcopy_char_table): Likewise.
372         (char_table_open_db_maybe): Likewise.
373         (char_table_close_db_maybe): Likewise.
374         (char_table_get_db): Likewise.
375         (Fmount_char_attribute_table): Likewise.
376         (Fload_char_attribute_table): Likewise.
377
378 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * mule-charset.c (load_char_decoding_entry_maybe): Use
381         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
382         `chise_ccs_decode'.
383
384 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
387         instead of `chise_open_data_source'.
388         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
389         `chise_ds_close'.
390
391 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
394         instead of `chise_ds_open_feature_table'.
395         (char_table_close_db_maybe): Don't use `chise_ft_close'.
396
397 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
398
399         * mule-charset.c (Fsave_charset_mapping_table): Use
400         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
401         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
402         `chise_ccs_sync' instead of `chise_ccst_close'.
403         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
404
405         * chartab.c (open_chise_data_source_maybe): Modify for
406         `chise_open_data_source'.
407         (char_table_open_db_maybe): Modify for
408         `chise_ds_open_feature_table'.
409
410 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
411
412         * mule-charset.c (load_char_decoding_entry_maybe): Use
413         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
414         `chise_ccst_close'.
415
416 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
417
418         * mule-charset.c (Fsave_charset_mapping_table): Use
419         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
420         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
421         `chise_dt_put_char' and `chise_dt_close'.
422         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
423         `chise_ccs_decode' and `chise_ccst_close' instead of
424         `chise_ds_open_decoding_table', `chise_dt_get_char' and
425         `chise_dt_close'.
426
427         * chartab.c (char_table_get_db): Use
428         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
429         (load_char_attribute_table_map_func): Modify for
430         `chise_char_feature_value_iterate'.
431         (Fload_char_attribute_table): Use
432         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
433
434 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
437
438 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
439
440         * chartab.c (put_char_table): Modify for inherited coded-charsets
441         in XEmacs CHISE.
442
443 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
444
445         * chartab.c (Fput_char_table_map_function): Fixed.
446         (word_boundary_p): Don't check charset in XEmacs CHISE.
447
448 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
449
450         * mule-charset.c (Fsave_charset_mapping_table): Use
451         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
452         instead of `chise_open_decoding_table'; refer
453         `default_chise_data_source'; use `chise_dt_close' instead of
454         `chise_close_decoding_table'.
455         (load_char_decoding_entry_maybe): Likewise.
456
457         * chartab.c (default_chise_data_source): New variable when `CHISE'
458         is defined.
459         (Fcopy_char_table): `ct->ds' is deleted.
460         (open_chise_data_source_maybe): New function.
461         (Fclose_char_data_source): New function.
462         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
463         use `chise_ds_open_feature_table' instead of
464         `chise_open_feature_table'.
465         (char_table_close_db_maybe): Use `chise_ft_close' instead of
466         `chise_close_feature_table'; `cit->ds' is deleted.
467         (syms_of_chartab): Add new builtin function
468         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
469
470         * chartab.h (default_chise_data_source): New extern variable.
471         (open_chise_data_source_maybe): New prototype.
472         (struct Lisp_Char_Table): Delete `ds'.
473
474 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
477         `CHISE' is defined.
478
479 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
480
481         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
482         not defined; add code for non-libchise setting.
483         (char_table_close_db_maybe): Likewise.
484         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
485         defined.
486         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
487         even if `CHISE' is not defined.
488         (Freset_char_attribute_table): Likewise.
489         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
490         `char_table_close_db_maybe' even if `CHISE' is not defined; use
491         `char_table_get_db'.
492         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
493         `char_table_close_db_maybe' even if `CHISE' is not defined.
494
495 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
496
497         * chartab.c (char_table_open_db_maybe): New function.
498         (char_table_close_db_maybe): New function.
499         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
500         (Freset_char_attribute_table): Likewise.
501         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
502         `char_table_close_db_maybe'.
503         (Fload_char_attribute_table): Likewise.
504
505 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
506
507         * chartab.c: Don't include <chise.h> because it is included in
508         chartab.h.
509         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
510         defined.
511         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
512         `CHISE' is defined.
513         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
514         `CHISE' is defined.
515         (Fclose_char_attribute_table): Close `ct->feature_table' and
516         `ct->ds' when `CHISE' is defined.
517         (Freset_char_attribute_table): Likewise.
518         (load_char_attribute_maybe): Use `cit->ds' and
519         `cit->feature_table' when `CHISE' is defined.
520         (Fload_char_attribute_table): Likewise.
521
522         * chartab.h: Include <chise.h> when `CHISE' is defined.
523         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
524         when `CHISE' is defined.
525
526 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
527
528         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
529         is defined.
530         (char_table_description): Likewise.
531         (Fmake_char_table): Likewise.
532         (Fcopy_char_table): Likewise.
533         (Fmount_char_attribute_table): Likewise.
534         (Fclose_char_attribute_table): Likewise.
535         (Freset_char_attribute_table): Likewise.
536         (load_char_attribute_maybe): Likewise.
537         (Fload_char_attribute_table): Likewise.
538
539         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
540         defined.
541
542 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * chartab.c (load_char_attribute_table_map_func): New function
545         when CHISE is defined.
546         (Qload_char_attribute_table_map_function): Don't define when CHISE
547         is defined.
548         (Fload_char_attribute_table_map_function): Likewise.
549         (Fload_char_attribute_table): Use libchise when `CHISE' is
550         defined.
551         (syms_of_chartab): Don't define
552         `load-char-attribute-table-map-function' when CHISE is defined.
553
554 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
555
556         * chartab.c: Include <chise.h> when `CHISE' is defined.
557         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
558
559 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * mule-charset.c (charset_code_point): Fix problem when searching
562         in mother CCS fails with `defined_only' mode.
563
564 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
565
566         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
567         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
568         (put_char_composition): Likewise.
569         (Fput_char_attribute): Likewise.
570         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
571
572 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
573
574         * chartab.c (Q_ucs): Deleted.
575         (Fput_char_attribute): Don't refer `->ucs'.
576         (Fdefine_char): Likewise.
577         (Ffind_char): Likewise.
578         (syms_of_chartab): Delete `->ucs'.
579
580 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
581
582         * mule-charset.c (Qmap_cns11643_2): Renamed from
583         `Qchinese_cns11643_2'.
584         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
585         `chinese-cns11643-2'.
586         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
587         `=cns11643-2'.
588
589 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
590
591         * mule-charset.c (Qmap_cns11643_1): Renamed from
592         `Qchinese_cns11643_1'.
593         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
594         `chinese-cns11643-1'.
595         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
596         `=cns11643-1'.
597
598 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
599
600         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
601         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
602         `chinese-gb12345'.
603         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
604         `=gb12345'.
605
606 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
607
608         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
609         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
610         `chinese-gb2312'.
611         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
612         `=gb2312'.
613
614 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
615
616         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
617         (syms_of_mule_charset): Add new symbol `=big5' instead of
618         `chinese-big5'.
619         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
620
621 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
624         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
625         `korean-ksc5601'.
626         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
627         `=ks-x1001'.
628
629 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
630
631         * mule-charset.c (Qmap_jis_x0212): Renamed from
632         `Qjapanese_jisx0212'.
633         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
634         `japanese-jisx0212'.
635         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
636         `=jis-x0212'.
637
638 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
639
640         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
641         `Qjapanese_jisx0208'.
642         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
643         of `japanese-jisx0208'.
644         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
645         `=jis-x0208-1983'.
646
647 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
650         `Qjapanese_jisx0208_1978'.
651         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
652         of `japanese-jisx0208-1978'.
653         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
654         `=jis-x0208-1978'.
655
656 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
659         only for XEmacs CHISE.
660
661 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
662
663         * char-ucs.h: Compact non-ISO-IR charset-ids.
664         (LEADING_BYTE_UCS): Changed to -177.
665         (LEADING_BYTE_CONTROL_1): Changed to -77.
666         (LEADING_BYTE_UCS_BMP): Changed to -176.
667         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
668
669 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * mule-charset.c (Qiso_ir): New variable.
672         (Fmake_charset): Recognise new property `iso-ir'.
673         (syms_of_mule_charset): Add new symbol `iso-ir'.
674
675 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
676
677         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
678         n to -n; charset-id of non ISO-IR sets are changed to positive
679         numbers.
680
681 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
682
683         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
684         for &MCS-XXXXXXXX; values.
685
686 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
687
688         * mule.c (Vxemacs_chise_version): Renamed from
689         `Vutf_2000_version'.
690         (vars_of_mule): Add new variable `xemacs-chise-version'; define
691         `utf-2000-version' as an alias for `xemacs-chise-version'.
692
693 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
696         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
697         defined.
698
699         * config.h.in (CHISE): New macro.
700
701 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
704         of `ucs'.
705         (Qmap_ucs): New variable.
706         (syms_of_mule_charset): Add new symbol `=ucs'.
707         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
708
709         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
710         (simplify_char_spec): Likewise.
711
712         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
713
714         * char-ucs.h (Qmap_ucs): New extern variable.
715
716 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
719         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
720         don't define it when UTF2000 is not defined.
721         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
722         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
723         when UTF2000 is not defined.
724         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
725         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
726
727 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
730
731         * mule-charset.c (Vcharset_ucs_gb): Deleted.
732         (Qucs_gb): Deleted.
733         (syms_of_mule_charset): Delete `ucs-gb'.
734         (complex_vars_of_mule_charset): Likewise.
735
736 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
737
738         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
739
740         * mule-charset.c (Vcharset_ucs_cns): Deleted.
741         (Qucs_cns): Deleted.
742         (syms_of_mule_charset): Delete `ucs-cns'.
743         (complex_vars_of_mule_charset): Likewise.
744
745 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
748
749         * mule-charset.c (Vcharset_ucs_jis): Deleted.
750         (Qucs_jis): Deleted.
751         (syms_of_mule_charset): Delete `ucs-jis'.
752         (complex_vars_of_mule_charset): Likewise.
753
754 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
757
758         * mule-charset.c (Vcharset_ucs_ks): Deleted.
759         (Qucs_ks): Deleted.
760         (syms_of_mule_charset): Delete `ucs-ks'.
761         (complex_vars_of_mule_charset): Likewise.
762
763 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
764
765         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
766         (Qideograph_daikanwa_2): Deleted.
767         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
768         (complex_vars_of_mule_charset): Likewise.
769
770         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
771         (LEADING_BYTE_DAIKANWA_1): Deleted.
772         (LEADING_BYTE_DAIKANWA_2): Deleted.
773         (MIN_CHAR_DAIKANWA): Deleted.
774         (MAX_CHAR_DAIKANWA): Deleted.
775
776 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
777
778         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
779         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
780         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
781
782         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
783         (Vcharset_ideograph_daikanwa): Deleted.
784         (Qideograph_hanziku_{1..12}): Deleted.
785         (Qideograph_daikanwa): Deleted.
786         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
787         Vcharset_ideograph_daikanwa.
788         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
789         `ideograph-hanziku-{1..12}'.
790         (complex_vars_of_mule_charset): Likewise.
791
792 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
793
794         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
795
796         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
797         (Qideograph_gt_pj_{1..11}): Deleted.
798         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
799         (complex_vars_of_mule_charset): Likewise.
800
801 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * mule-charset.c (Vcharset_ucs_big5): Deleted.
804         (Vcharset_ideograph_gt): Deleted.
805         (Qucs_big5): Deleted.
806         (Qideograph_gt): Deleted.
807         (syms_of_mule_charset): Delete symbol `ucs-big5' and
808         `ideograph-gt'.
809         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
810         and `ideograph-gt'.
811
812         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
813         (LEADING_BYTE_GT): Deleted.
814         (MIN_CHAR_GT): Deleted.
815         (MAX_CHAR_GT): Deleted.
816
817 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
818
819         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
820
821 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
822
823         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
824         (save_uint16_byte_table): Likewise.
825         (save_byte_table): Likewise; convert values by it.
826         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
827         for `ideographic-structure'.
828         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
829         as the filter for `ideographic-structure'.
830
831 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
832
833         * chartab.c (put_char_composition): New function.
834         (Fput_char_attribute): Use `put_char_composition'; use
835         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
836
837         * fns.c (simplify_char_spec): New function.
838         (char_ref_simplify_spec): New function.
839         (Fchar_refs_simplify_char_specs): New function.
840         (syms_of_fns): Add new builtin function
841         `char-refs-simplify-char-specs'.
842
843 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
844
845         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
846         (Qideograph_cbeta): Deleted.
847         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
848         (complex_vars_of_mule_charset): Likewise.
849
850         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
851         (MIN_CHAR_CBETA): Comment out.
852         (MAX_CHAR_CBETA): Likewise.
853
854 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
855
856         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
857         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
858         CHISE client feature.
859
860 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
861
862         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
863
864 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
865
866         * mule-charset.c (charset_lookup_description_1): Use
867         `NUM_LEADING_BYTES' in UTF-2000.
868
869 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
870
871         * char-ucs.h (GC_CHARSETP): Deleted.
872
873 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * char-ucs.h (MAX_CHAR_GT): Updated.
876
877 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
878
879         * text-coding.c: Sync with XEmacs 21.4.10.
880
881 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * mule-charset.c (Vcharset_china3_jef): Deleted.
884         (Qchina3_jef): Deleted.
885         (syms_of_mule_charset): Don't define `china3-jef'.
886         (complex_vars_of_mule_charset): Likewise.
887
888         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
889         (MIN_CHAR_CHINA3_JEF): Comment out.
890         (MAX_CHAR_CHINA3_JEF): Comment out.
891
892 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
893
894         * mule-charset.c (Vcharset_ucs_gb): New variable.
895         (Qucs_gb): New variable.
896         (syms_of_mule_charset): Add new symbol `ucs-gb'.
897         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
898
899         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
900
901 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (charset_code_point): if a coded-charset has a
904         final-byte, don't inherit the builtin range of the mother CCS.
905
906 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * mule-charset.c (charset_code_point): Fix problem about
909         inheritance.
910
911 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
912
913         * mule-charset.c (decode_builtin_char): Reorganized.
914
915 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
916
917         * text-coding.c (char_encode_as_entity_reference): Modify for
918         `charset_code_point'.
919         (char_encode_shift_jis): Likewise.
920         (char_encode_big5): Likewise.
921         (char_encode_utf8): Likewise.
922         (char_encode_iso2022): Likewise.
923
924         * mule-charset.c (charset_code_point): Add new argument
925         `defined_only'.
926         (Fencode_char): Add new optional argument `defined_only'.
927
928         * chartab.c (put_char_table): Modify for `charset_code_point'.
929
930         * char-ucs.h (charset_code_point): Add new argument
931         `defined_only'.
932         (encode_char_1): Modify for `charset_code_point'.
933
934 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
935
936         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
937         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
938
939 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
940
941         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
942         (Qjis_x0208): Likewise.
943         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
944         XCHARSET_FINAL(charset).
945         (charset_code_point): Modify condition for final-byte based
946         builtin-chars.
947         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
948         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
949         in UTF-2000; specify `=jis-x0208' as the mother of
950         `japanese-jisx0208-1978', `japanese-jisx0208' and
951         `japanese-jisx0208-1990' in UTF-2000.
952
953 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
954
955         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
956
957 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * text-coding.c (decode_coding_utf16): Support UTF-16.
960         (char_encode_utf16): Fixed.
961
962 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * text-coding.c (Qutf16): New variable in MULE.
965         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
966         (Fcoding_system_type): Add `utf-16' in MULE.
967         (struct detection_state): Add a structure for utf16 in MULE.
968         (detect_coding_type): Setup st->utf16.mask in MULE.
969         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
970         MULE.
971         (reset_encoding_stream): Use `char_encode_utf16' and
972         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
973         (detect_coding_utf16): New function [incomplete].
974         (decode_coding_utf16): New function [support only UCS-2].
975         (char_encode_utf16): New function.
976         (char_finish_utf16): New function.
977         (syms_of_file_coding): Add new symbol `utf-16'; setup
978         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
979
980         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
981         UTF-2000.
982         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
983         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
984
985 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
986
987         * chartab.c (put_char_table): When a charset is specified as a
988         range in UTF-2000, don't support builtin characters.
989
990 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
991
992         * mule-charset.c (decode_defined_char): Don't refer external
993         database if Qunbound or Qnil are found.
994         (Fsave_charset_mapping_table): Don't define it if
995         HAVE_CHISE_CLIENT is not defined.
996         (Freset_charset_mapping_table): New function.
997         (load_char_decoding_entry_maybe): Store Qnil if a character is not
998         found in external database.
999         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1000         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1001         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1002
1003 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1004
1005         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1006         not.
1007
1008 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1009
1010         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1011         Q_lowercase, Q_uppercase in UTF-2000.
1012
1013         * chartab.c (get_char_table): Add special code for the standard
1014         case table to use character attribute `->downcase' and
1015         `->uppercase' for case operations in UTF-2000.
1016
1017         * casetab.c (Qflippedcase): New variable in UTF-2000.
1018         (Q_lowercase): Likewise.
1019         (Q_uppercase): Likewise.
1020         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1021         and `->uppercase' in UTF-2000.
1022         (complex_vars_of_casetab): Assign attribute name `downcase' to
1023         downcase and CANON table of Vstandard_case_table in UTF-2000;
1024         assign attribute name `flippedcase' to upcase and EQV table of
1025         Vstandard_case_table in UTF-2000.
1026
1027 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028
1029         * text-coding.c (decode_add_er_char): Support isolated-chars.
1030         (char_encode_as_entity_reference): Likewise.
1031
1032 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1033
1034         * emacs.c (Vutf_2000_lisp_directory): New variable.
1035         (Vconfigure_utf_2000_lisp_directory): Likewise.
1036         (complex_vars_of_emacs): Add new variable
1037         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1038
1039 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1040
1041         * char-ucs.h (DECODE_CHAR): Delete special code for
1042         `chinese-big5-1' and `chinese-big5-2'.
1043
1044         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1045         (Qbig5_2): Likewise.
1046         (decode_defined_char): Support CONVERSION_BIG5_1 and
1047         CONVERSION_BIG5_2.
1048         (decode_builtin_char): Likewise.
1049         (charset_code_point): Likewise.
1050         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1051         'conversion in UTF-2000.
1052         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1053         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1054         `chinese-big5-2' as children of `chinese-big5'.
1055
1056         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1057         (CONVERSION_BIG5_2): New macro.
1058
1059 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1060
1061         * text-coding.c (char_encode_big5): Support entity-reference.
1062
1063 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * text-coding.c (char_encode_as_entity_reference): New function.
1066         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1067
1068 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1069
1070         * text-coding.c (decode_coding_big5): Support entity-reference
1071         decoding feature.
1072
1073 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * text-coding.c (allocate_coding_system): Initialize initial
1076         charsets for CODESYS_UTF8.
1077         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1078         charset-g2 for CODESYS_UTF8.
1079         (decode_coding_utf8): Use charset-g0.
1080         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1081         to force variants to map to UCS.
1082
1083 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1084
1085         * text-coding.c (Qutf_8_mcs): New variable.
1086         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1087         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1088         instead of `utf-8' in UTF-2000.
1089
1090 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1091
1092         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1093         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1094         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1095         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1096         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1097         CONVERSION_96x96x96x96 are introduced.
1098         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1099         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1100         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1101
1102         * char-ucs.h (CONVERSION_94): New macro.
1103         (CONVERSION_96): New macro.
1104         (CONVERSION_94x94): New macro.
1105         (CONVERSION_96x96): New macro.
1106         (CONVERSION_94x94x94): New macro.
1107         (CONVERSION_96x96x96): New macro.
1108         (CONVERSION_94x94x94x60): New macro.
1109         (CONVERSION_94x94x94x94): New macro.
1110         (CONVERSION_96x96x96x96): New macro.
1111
1112 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1113
1114         * chartab.c (Vcharacter_variant_table): Deleted.
1115         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1116         of `Vcharacter_variant_table'.
1117         (Fput_char_attribute): Likewise.
1118         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1119         (complex_vars_of_chartab): Likewise.
1120
1121 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1122
1123         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1124
1125         * fns.c (Qideographic_structure): New variable.
1126         (Qkeyword_char): New variable.
1127         (ids_format_unit): New function.
1128         (Fideographic_structure_to_ids): New function.
1129         (syms_of_fns): Add new symbols `ideographic-structure' and
1130         `:char'; add new builtin function `ideographic-structure-to-ids'.
1131
1132         * data.c (Fchar_ref_p): New function.
1133         (syms_of_data): Add new builtin function `char-ref-p'.
1134
1135         * chartab.h: Add an EXFUN for `Ffind_char'.
1136
1137 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * text-coding.c (Vcharacter_composition_table): Deleted.
1140         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1141         in every UTF-2000.
1142
1143         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1144         UTF-2000.
1145         (Vcharacter_composition_table): Deleted.
1146         (Fget_composite_char): Use the implementation for external-DB
1147         support in every UTF-2000.
1148         (Fput_char_attribute): Likewise.
1149         (char_attribute_system_db_file): Don't define if external-DB
1150         feature is not available.
1151         (Fsave_char_attribute_table): Likewise.
1152         (Fmount_char_attribute_table): Likewise.
1153         (Fclose_char_attribute_table): Likewise.
1154         (Freset_char_attribute_table): Likewise.
1155         (Fload_char_attribute_table): Likewise.
1156         (syms_of_chartab): Don't define `save-char-attribute-table',
1157         `mount-char-attribute-table', `reset-char-attribute-table',
1158         `close-char-attribute-table' and `load-char-attribute-table' if
1159         external-DB feature is not available.
1160         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1161
1162 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1163
1164         * text-coding.c (Qcomposition): Add extern if external-DB feature
1165         is supported.
1166         (Vcharacter_composition_table): Don't add extern if external-DB
1167         feature is supported.
1168         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1169         character composition rule if external-DB feature is supported.
1170
1171         * chartab.c (Vcharacter_composition_table): Don't define if
1172         external-DB feature is supported.
1173         (Qcomposition): New variable.
1174         (Fget_composite_char): New implementation for external-DB support.
1175         (Fput_char_attribute): Use `composition' property of each
1176         character instead of `Vcharacter_composition_table' to store
1177         character-composition rules if external-DB feature is supported.
1178         (syms_of_chartab): Add new symbol `composition'.
1179         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1180         external-DB feature is supported.
1181
1182 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1183
1184         * chartab.c (Vchar_db_stingy_mode): New variable.
1185         (load_char_attribute_maybe): Close database if
1186         Vchar_db_stingy_mode is not NIL.
1187         (Fload_char_attribute_table_map_function): Use
1188         `get_char_id_table_0' instead of `get_char_id_table'.
1189         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1190
1191         * chartab.h (get_char_id_table_0): New inline function.
1192         (get_char_id_table): Use `get_char_id_table_0'.
1193
1194 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1195
1196         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1197         and `COMPOSE_ADD_CHAR'.
1198         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1199
1200 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1201
1202         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1203         instead of `DECODE_ADD_UCS_CHAR'.
1204         (COMPOSE_ADD_CHAR): Likewise.
1205
1206 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1207
1208         * text-coding.c (decode_flush_er_chars): New inline function.
1209         (decode_add_er_char): New function.
1210         (decode_coding_utf8): Use `decode_flush_er_chars' and
1211         `decode_add_er_char'.
1212
1213 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1214
1215         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1216         done before `decode_output_utf8_partial_char'.
1217
1218         * mule-charset.c (complex_vars_of_mule_charset): Specify
1219         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1220         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1221
1222 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * mule-charset.c (decode_defined_char): New function; search
1225         mother.
1226         (decode_builtin_char): Don't search mother if
1227         XCHARSET_MAX_CODE(charset) == 0.
1228         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1229         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1230         (Fdecode_char): Use `decode_defined_char' instead of
1231         `DECODE_DEFINED_CHAR'.
1232         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1233         mother of `Vcharset_ucs_jis'.
1234
1235         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1236         instead of `DECODE_DEFINED_CHAR'.
1237
1238         * char-ucs.h (decode_defined_char): Renamed from
1239         `DECODE_DEFINED_CHAR'; changed to normal function.
1240         (DECODE_CHAR): Use `decode_defined_char' instead of
1241         `DECODE_DEFINED_CHAR'.
1242
1243         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1244
1245 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1246
1247         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1248
1249         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1250         variable.
1251         (Quse_entity_reference): New variable.
1252         (Qd): New variable.
1253         (Qx): New variable.
1254         (QX): New variable.
1255         (coding_system_description): Add description for
1256         `ccs_priority_list'.
1257         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1258         (allocate_coding_system): Initialize `ccs_priority_list' in
1259         UTF-2000.
1260         (Fmake_coding_system): Add description about
1261         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1262         (codesys).
1263         (Fcoding_system_property): Accept `disable-composition' and
1264         `use-entity-reference' in UTF-2000.
1265         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1266         in UTF-2000.
1267         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1268         (decode_coding_utf8): Decode entity-reference if
1269         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1270         (char_encode_utf8): Encode non-Unicode characters as
1271         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1272         (str->codesys).
1273         (syms_of_file_coding): Add new symbols `use-entity-reference',
1274         `d', `x', `X'.
1275         (vars_of_file_coding): Add new variable
1276         `coded-charset-entity-reference-alist'.
1277         (complex_vars_of_file_coding): Declare `disable-composition' and
1278         `use-entity-reference' to be coding-system-properties in UTF-2000.
1279
1280         * file-coding.h (struct Lisp_Coding_System): Add new member
1281         `use_entity_reference' and `ccs_priority_list'.
1282         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1283         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1284         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1285
1286 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1287
1288         * chartab.c (save_uint8_byte_table): Don't clear the table.
1289         (save_uint16_byte_table): Likewise.
1290         (save_byte_table): Likewise.
1291         (Fmount_char_attribute_table): New function.
1292         (syms_of_chartab): Add new builtin function
1293         `mount-char-attribute-table'.
1294
1295 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1296
1297         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1298         "w+" mode.
1299         (load_char_decoding_entry_maybe): Open database as read-only mode.
1300
1301         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1302         open database as "w+" mode.
1303         (load_char_attribute_maybe): Open database as read-only mode.
1304         (Fload_char_attribute_table): Likewise.
1305
1306 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1309         (char_table_description): Delete member `db_file'.
1310         (Fmake_char_table): Don't refer `ct->db_file'.
1311         (Fcopy_char_table): Likewise.
1312         (Fsave_char_attribute_table): Likewise.
1313         (Fclose_char_attribute_table): Likewise.
1314         (Freset_char_attribute_table): Likewise.
1315         (load_char_attribute_maybe): Likewise.
1316         (Fload_char_attribute_table): Likewise.
1317
1318         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1319
1320 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321
1322         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1323         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1324         `ct->db' is living.
1325         (load_char_attribute_maybe): Likewise.
1326         (Fload_char_attribute_table): Likewise.
1327
1328 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1331         `ct->db_file' unconditionally.
1332
1333 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1334
1335         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1336         UTF-2000.
1337         (char_table_description): Add description for `db_file' and `db'
1338         in UTF-2000.
1339         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1340         UTF-2000.
1341         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1342         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1343         (Fclose_char_attribute_table): New function.
1344         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1345         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1346         and `cit->db'.
1347         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1348         (syms_of_chartab): Add new builtin function
1349         `Fclose_char_attribute_table'.
1350
1351 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1352
1353         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1354         `db' in UTF-2000.
1355         (load_char_attribute_maybe): Change interface.
1356         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1357
1358 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1359
1360         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1361
1362 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1365         instead of `DECODE_CHAR' for mother; don't use special code for
1366         chinese-big5 to use code space of chinese-big5-1 and
1367         chinese-big5-2.
1368         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1369         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1370
1371         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1372         (MAX_CHAR_BIG5_CDP): Revival.
1373
1374 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1375
1376         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1377         the XLFD registry-encoding name of `chinese-big5'.
1378
1379 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1380
1381         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1382         (Qchinese_big5_cdp): Deleted.
1383         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1384         (complex_vars_of_mule_charset): Delete coded-charset
1385         `chinese-big5-cdp'.
1386
1387         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1388         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1389         `CHARSET_ID_OFFSET - n' for private CCS.
1390         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1391         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1392         of `MIN_LEADING_BYTE'.
1393         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1394         `(CHARSET_ID_OFFSET - 97)'.
1395         (MIN_CHAR_BIG5_CDP): Deleted.
1396         (MAX_CHAR_BIG5_CDP): Deleted.
1397
1398 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399
1400         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1401
1402 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1405         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1406         chartab.c].
1407
1408         * chartab.c (Vutf_2000_version): Moved to mule.c.
1409         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1410
1411 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1412
1413         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1414         when HAVE_CHISE_CLIENT is not defined.
1415
1416         * mule.c (vars_of_mule): Provide feature `chise' when
1417         HAVE_CHISE_CLIENT is defined.
1418
1419 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1420
1421         * config.h.in (UTF2000): Add comment.
1422         (HAVE_CHISE_CLIENT): New macro.
1423
1424 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1425
1426         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1427         CONSP.
1428         (Fput_char_attribute): Likewise.
1429         (char_attribute_system_db_file): Encode file-name of attribute.
1430         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1431         the initial value.
1432
1433 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1434
1435         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1436         (Fsave_charset_mapping_table): Use
1437         `char_attribute_system_db_file'.
1438         (load_char_decoding_entry_maybe): Likewise.
1439
1440         * chartab.h (Qsystem_char_id): New external variable.
1441         (char_attribute_system_db_file): New prototype.
1442
1443         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1444         (char_attribute_system_db_file): New function.
1445         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1446         (Freset_char_attribute_table): Likewise.
1447         (load_char_attribute_maybe): Likewise.
1448         (Fload_char_attribute_table): Likewise.
1449         (syms_of_chartab): Add new symbol `system-char-id'.
1450
1451 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1452
1453         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1454         `XCHARSET_GRAPHIC(ccs)'.
1455
1456 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1457
1458         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1459
1460 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1461
1462         * chartab.c (Q_ucs_variants): New variable.
1463         (syms_of_chartab): Add new symbol `->ucs-variants'.
1464         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1465         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1466         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1467
1468         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1469
1470         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1471         `HAVE_DATABASE' is defined.
1472         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1473         `HAVE_DATABASE' is defined.
1474
1475 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1476
1477         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1478         attribute-table.
1479         (Freset_char_attribute_table): New function.
1480         (syms_of_chartab): Add new builtin function
1481         `reset-char-attribute-table'.
1482
1483 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1484
1485         * chartab.c (load_char_attribute_maybe): Don't make directories.
1486
1487 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1488
1489         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1490
1491         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1492         for decoding-table.
1493
1494 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1495
1496         * mule-charset.c (Fsave_charset_mapping_table): Use
1497         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1498
1499         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1500         instead of `XCHARSET_CHARS'.
1501
1502 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1503
1504         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1505         (XCHARSET_BYTE_SIZE): Likewise.
1506
1507         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1508         mule-charset.c].
1509         (XCHARSET_BYTE_SIZE): Likewise.
1510
1511 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1512
1513         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1514         data-directory to store database.
1515         (Fsave_char_attribute_table): Likewise.
1516         (load_char_attribute_maybe): Likewise.
1517         (Fload_char_attribute_table): Likewise.
1518
1519 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1520
1521         * mule-charset.c (Fsave_charset_mapping_table): New function.
1522         (syms_of_mule_charset): Add new builtin function
1523         `save-charset-mapping-table'.
1524
1525 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1528         (get_ccs_octet_table): New inline function.
1529         (put_ccs_octet_table): Likewise.
1530         (decoding_table_put_char): Use `get_ccs_octet_table' and
1531         `put_ccs_octet_table'.
1532         (decoding_table_remove_char): Use `decoding_table_put_char'.
1533         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1534
1535         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1536         into encoding_table.
1537         (make_charset): Use Qunbound instead Qnil as initial value of
1538         decoding_table.
1539
1540 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1541
1542         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1543         element is Qunloaded.
1544         (map_over_uint16_byte_table): Likewise.
1545         (map_over_byte_table): Likewise.
1546         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1547         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1548         database support, load encoding-table of the specified
1549         coded-charset if it is not loaded yet.
1550         (save_uint8_byte_table): New function of UTF-2000 with external
1551         database support.
1552         (save_uint16_byte_table): Likewise.
1553         (save_byte_table): Likewise.
1554         (Fput_char_attribute): Don't store value into external database
1555         even if the external database feature is supported in UTF-2000;
1556         set `attribute' as name of char-table if the external database
1557         feature is supported.
1558         (Fsave_char_attribute_table): New function in UTF-2000.
1559         (syms_of_chartab): Add new builtin function
1560         `save-char-attribute-table' in UTF-2000.
1561
1562 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1563
1564         * chartab.c (char_attribute_table_to_put): New variable in
1565         UTF-2000.
1566         (Qput_char_table_map_function): Likewise.
1567         (value_to_put): Likewise.
1568         (Fput_char_table_map_function): New function in UTF-2000.
1569         (put_char_table): Use `Fmap_char_attribute' for
1570         CHARTAB_RANGE_CHARSET in UTF-2000.
1571         (Fput_char_attribute): Store symbol instead of string in
1572         `XCHAR_TABLE_NAME (table)'.
1573         (load_char_attribute_maybe): Likewise.
1574         (syms_of_chartab): Add new symbol/function
1575         `put-char-table-map-function'.
1576
1577 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1578
1579         * database.h: Add new EXFUN for `Fmap_database'.
1580
1581         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1582         (syms_of_database): Likewise.
1583
1584         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1585         UTF-2000.
1586         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1587         (XCHAR_TABLE_UNLOADED): Likewise.
1588
1589         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1590         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1591         HAVE_DATABASE is defined.
1592         (char_attribute_table_to_load): New variable of UTF-2000 with
1593         external database support.
1594         (Qload_char_attribute_table_map_function): Likewise.
1595         (Fload_char_attribute_table_map_function): New function of
1596         UTF-2000 with external database support.
1597         (Fload_char_attribute_table): New function of UTF-2000.
1598         (Fmap_char_attribute): Call Fload_char_attribute_table if
1599         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1600         (syms_of_chartab): Add new symbol and function
1601         `load-char-attribute-table-map-function' in UTF-2000 with external
1602         database support; add new function `load-char-attribute-table' in
1603         UTF-2000.
1604
1605 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * chartab.h (load_char_attribute_maybe): New prototype for
1608         UTF-2000 with DATABASE support.
1609         (get_char_id_table): Use `load_char_attribute_maybe' if
1610         HAVE_DATABASE is defined.
1611
1612         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1613         with DATABASE support.
1614
1615 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * chartab.c (Fput_char_attribute): Use S-expression as key of
1618         external database.
1619
1620         * chartab.h (get_char_id_table): Use S-expression as key of
1621         external database.
1622
1623 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1624
1625         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1626         if an element is not loaded, load the corresponding attributes
1627         from an external database.
1628         (map_over_uint16_byte_table): Likewise.
1629         (map_over_byte_table): Likewise.
1630         (map_char_table): Modify for `map_over_uint8_byte_table',
1631         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1632         element is not loaded, load the corresponding attributes from an
1633         external database.
1634         (Fput_char_attribute): Change initial values to Qunloaded.
1635
1636         * chartab.h (get_char_id_table): If a character attribute is not
1637         loaded and the attribute value is not found in an external
1638         database, store Qunbound as the attribute value.
1639
1640 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1641
1642         * chartab.c (BT_UINT8_unloaded): New macro.
1643         (UINT8_VALUE_P): Accept Qunloaded.
1644         (UINT8_ENCODE): Likewise.
1645         (UINT8_DECODE): Likewise.
1646         (BT_UINT16_unloaded): New macro.
1647         (UINT16_VALUE_P): Accept Qunloaded.
1648         (UINT16_ENCODE): Likewise.
1649         (UINT16_DECODE): Likewise.
1650         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1651         BT_UINT16_unloaded.
1652         (mark_char_table): Mark `ct->name' in UTF-2000.
1653         (char_table_description): Add `name' in UTF-2000.
1654         (Fmake_char_table): Initialize `ct->name'.
1655         (Fcopy_char_table): Copy `ct->name'.
1656         (Fput_char_attribute): Store value into an external database if
1657         HAVE_DATABASE is defined.
1658
1659         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1660         UTF-2000.
1661         (CHAR_TABLE_NAME): New macro in UTF-2000.
1662         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1663         (get_char_id_table): Try to read an external database if Qunloaded
1664         is stored in a table.
1665
1666         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1667         Qunloaded.
1668
1669 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * database.h: Add EXFUN definitions for Fopen_database,
1672         Fput_database, Fget_database and Fclose_database.
1673
1674         * data.c (Qunloaded): New variable in UTF-2000.
1675
1676         * lisp.h (Qunloaded): New variable in UTF-2000.
1677
1678 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679
1680         * mule-charset.c (put_char_ccs_code_point): Modify for
1681         `decoding_table_remove_char' and `decoding_table_put_char'.
1682         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1683
1684         * char-ucs.h (decoding_table_remove_char): Change arguments to
1685         hide decoding_table vector.
1686         (decoding_table_put_char): Likewise.
1687
1688 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1689
1690         * mule-charset.c (decoding_table_remove_char): Moved to
1691         char-ucs.h.
1692         (decoding_table_put_char): Likewise.
1693
1694         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1695         from mule-charset.c].
1696         (decoding_table_remove_char): New inline function [moved from
1697         mule-charset.c].
1698         (decoding_table_put_char): Likewise.
1699
1700 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1701
1702         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1703         extension.
1704
1705 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1706
1707         * mule-charset.c (decode_builtin_char): Support mother charsets.
1708
1709 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1710
1711         * mule-charset.c (Q94x94x60): New variable.
1712         (charset_code_point): Support conversion `94x94x60'.
1713         (Fmake_charset): Likewise.
1714         (syms_of_mule_charset): Add new symbol `94x94x60'.
1715
1716         * char-ucs.h (CONVERSION_94x94x60): New macro.
1717
1718 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1719
1720         * mule-charset.c (charset_code_point): Unify code about
1721         `code-offset'.
1722
1723 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1724
1725         * mule-charset.c (charset_code_point): Merge code about builtin
1726         characters into code about mother charsets; don't use
1727         `range_charset_code_point'.
1728         (range_charset_code_point): Deleted.
1729
1730 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1731
1732         * mule-charset.c (Qcode_offset): New variable.
1733         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1734         `max-code'; accept new property `code-offset'.
1735         (syms_of_mule_charset): Add new symbol `code-offset'.
1736
1737 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1738
1739         * mule-charset.c (range_charset_code_point): Fixed.
1740
1741 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1742
1743         * mule-charset.c (decode_builtin_char): Change semantics of
1744         code-offset of coded-charset.
1745         (charset_code_point): Likewise.
1746         (range_charset_code_point): Likewise.
1747         (complex_vars_of_mule_charset): Modify for the change.
1748
1749 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * mule-charset.c (Fencode_char): Reverse arguments.
1752
1753         * mule-charset.c (charset_code_point): Fixed.
1754
1755 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756
1757         * mule-charset.c (Vcharset_mojikyo): Deleted.
1758         (Vcharset_mojikyo_2022_1): Deleted.
1759         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1760         (Qmin_code): New variable in UTF-2000.
1761         (Qmax_code): Likewise.
1762         (Qmother): Likewise.
1763         (Qconversion): Likewise.
1764         (Q94x60): Likewise.
1765         (Qmojikyo): Deleted.
1766         (Qmojikyo_2022_1): Deleted.
1767         (Qmojikyo_pj_{1..22}): Deleted.
1768         (mark_charset): Mark `cs->mother'.
1769         (charset_description): Add description for `mother'.
1770         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1771         new arguments `mother' and `conversion'; use
1772         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1773         (charset_code_point): Moved from char-ucs.h; support `mother'
1774         charset feature.
1775         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1776         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1777         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1778         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1779         allow 2 as the value of `graphic' in UTF-2000; add new properties
1780         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1781         require `final' in UTF-2000; modify for `make_charset'.
1782         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1783         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1784         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1785         (Fencode_char): New function.
1786         (syms_of_mule_charset): Add new builtin function `encode-char' in
1787         UTF-2000; add new symbols `min-code', `max-code', `mother',
1788         `conversion' and `94x60'; delete symbols `mojikyo',
1789         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1790         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1791         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1792         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1793
1794         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1795         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1796
1797         * char-ucs.h (Vcharset_mojikyo): Deleted.
1798         (Vcharset_mojikyo_2022_1): Deleted.
1799         (LEADING_BYTE_MOJIKYO): Deleted.
1800         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1801         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1802         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1803         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1804         add new member `mother'; add new member `conversion'.
1805         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1806         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1807         (CHARSET_MOTHER): New macro.
1808         (CHARSET_CONVERSION): New macro.
1809         (CONVERSION_IDENTICAL): New macro.
1810         (CONVERSION_94x60): New macro.
1811         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1812         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1813         (XCHARSET_MOTHER): New macro.
1814         (XCHARSET_CONVERSION): New macro.
1815         (MIN_CHAR_MOJIKYO): Deleted.
1816         (MAX_CHAR_MOJIKYO): Deleted.
1817         (DECODE_MOJIKYO_2022): Deleted.
1818         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1819         (charset_code_point): Changed to non-inline function.
1820         (encode_char_1): Use `charset_code_point'.
1821         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1822
1823 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * lread.c (read_compiled_function): Fix prototype.
1826         (read_vector): Likewise.
1827
1828 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * lrecord.h (struct lrecord_header): Delete `older'.
1831         (set_lheader_implementation): Delete code for `older'.
1832         (set_lheader_older_implementation): Deleted.
1833         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1834         (OLDER_RECORD_P): Deleted.
1835         (OLDER_RECORD_HEADER_P): Deleted.
1836         (alloc_older_lcrecord): Deleted.
1837         (alloc_older_lcrecord_type): Deleted.
1838
1839         * alloc.c (all_older_lcrecords): Deleted.
1840         (alloc_older_lcrecord): Deleted.
1841         (disksave_object_finalization_1): Delete code for older objects.
1842         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1843         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1844
1845 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1848         instead of `make_older_vector'.
1849         (put_char_ccs_code_point): Likewise.
1850         (mark_charset): Mark `cs->decoding_table'.
1851         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1852
1853         * lisp.h (make_older_vector): Deleted.
1854         (make_vector_newer): Deleted.
1855
1856         * config.h.in (HAVE_GGC): Deleted.
1857
1858         * alloc.c (make_older_vector): Deleted.
1859         (make_vector_newer_1): Deleted.
1860         (make_vector_newer): Deleted.
1861
1862 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1863
1864         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1865         (Qideograph_daikanwa_2): New variable.
1866         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1867         (complex_vars_of_mule_charset): Add new coded-charset
1868         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1869         `LEADING_BYTE_DAIKANWA'.
1870
1871         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1872         (LEADING_BYTE_DAIKANWA_1): New macro.
1873         (LEADING_BYTE_DAIKANWA_2): New macro.
1874         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1875
1876 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * mule-charset.c (complex_vars_of_mule_charset): Change
1879         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1880         the second revised version.
1881
1882 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * mule-charset.c (Vcharset_ucs_smp): New variable.
1885         (Vcharset_ucs_sip): New variable.
1886         (Qucs_smp): New variable.
1887         (Qucs_sip): New variable.
1888         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1889         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1890         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1891         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1892         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1893         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1894
1895         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1896         (LEADING_BYTE_UCS_SIP): New macro.
1897         (MIN_CHAR_SMP): New macro.
1898         (MAX_CHAR_SMP): New macro.
1899         (MIN_CHAR_SIP): New macro.
1900         (MAX_CHAR_SIP): New macro.
1901
1902 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1903
1904         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1905         utf-2000.
1906
1907 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1908
1909         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1910         value; don't store value into `encoding_table' of `Lisp_Charset'.
1911         (mark_charset): `encoding_table' was deleted.
1912         (charset_description): Likewise.
1913         (make_charset): Likewise.
1914         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1915         `put_char_ccs_code_point'.
1916
1917         * chartab.h (Fput_char_attribute): New EXFUN.
1918
1919         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1920         is unified with normal symbol space.
1921         (Fget_char_attribute): Likewise.
1922         (Fput_char_attribute): Likewise; behavior of
1923         `put_char_ccs_code_point' is changed.
1924
1925         * char-ucs.h: Include "elhash.h".
1926         (Vchar_attribute_hash_table): New external variable.
1927         (struct Lisp_Charset): Delete `encoding_table'.
1928         (CHARSET_ENCODING_TABLE): New implementation; refer
1929         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1930         `Lisp_Charset'.
1931
1932 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1935         (cs) == 0.
1936
1937 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1938
1939         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1940         `chinese-big5'.
1941
1942 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1943
1944         * chartab.c (uint8_byte_table_description): New constant.
1945         (uint8-byte-table): Use `uint8_byte_table_description'.
1946         (uint16_byte_table_description): New constant.
1947         (uint16-byte-table): Use `uint16_byte_table_description'.
1948
1949 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1950
1951         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1952         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1953
1954 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1955
1956         * mule-charset.c (Vcharset_ucs_ks): New variable.
1957         (Qucs_ks): New variable.
1958         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1959         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1960
1961         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1962
1963 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1964
1965         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1966         (Fdecode_char): Likewise.
1967
1968         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1969         chartab.h.
1970         (Fdefine_char): Modify for Fdecode_char.
1971         (Ffind_char): Likewise.
1972
1973         * mule-charset.c (Fdecode_char): Add new optional argument
1974         `defined-only'.
1975         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1976
1977 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1980         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1981         (allocate_coding_system): Initialize initial-charsets of
1982         CODESYS_BIG5 in XEmacs UTF-2000.
1983         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1984         CODESYS_BIG5 in XEmacs UTF-2000.
1985         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1986         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1987
1988         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1989         variables.
1990         (Qideograph_hanziku_{1 .. 12}): Likewise.
1991         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1992         .. 12}'.
1993         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1994         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1995         `ideograph-hanziku-{1 .. 12}'.
1996
1997         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1998         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1999         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2000         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2001         (DECODE_DEFINED_CHAR): New inline function.
2002         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2003
2004 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * mule-charset.c (Vcharset_china3_jef): Renamed from
2007         `Vcharset_japanese_jef_china3'.
2008         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2009         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2010         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2011         (syms_of_mule_charset): Rename `china3-jef' from
2012         `japanese-jef-china3'.
2013         (complex_vars_of_mule_charset): Likewise; rename
2014         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2015
2016         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2017         `LEADING_BYTE_JEF_CHINA3'.
2018         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2019         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2020
2021 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2022
2023         * mule-charset.c (encode_builtin_char_1): Comment out special code
2024         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2025
2026         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2027         (MAX_CHAR_MOJIKYO_0): Comment out.
2028         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2029         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2030         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2031         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2032
2033 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2034
2035         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2036         (Qideograph_cbeta): New variable.
2037         (encode_builtin_char_1): Comment out special code for
2038         coded-charset `mojikyo' and `japanese-jef-china3'.
2039         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2040         (complex_vars_of_mule_charset): Add new coded-charset
2041         `ideograph-cbeta'.
2042
2043         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2044         (MIN_CHAR_CBETA): New macro.
2045         (MAX_CHAR_CBETA): New macro.
2046
2047 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048
2049         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2050         (LEADING_BYTE_JEF_CHINA3): New macro.
2051         (MIN_CHAR_JEF_CHINA3): New macro.
2052         (MAX_CHAR_JEF_CHINA3): Likewise.
2053         (DECODE_CHAR): Fixed.
2054
2055 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056
2057         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2058         (Qjapanese_jef_china3): New variable.
2059         (encode_builtin_char_1): Support `japanese-jef-china3'.
2060         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2061         (complex_vars_of_mule_charset): Add new coded-charset
2062         `japanese-jef-china3'.
2063
2064 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2067         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2068         94^4, 96^3, 96^4, 128^n and 256^n set.
2069         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2070         (map_char_table): Likewise.
2071
2072 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2073
2074         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2075         UTF-2000.
2076
2077 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * chartab.h (get_char_id_table): New inline function.
2080
2081         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2082         function.
2083
2084 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2085
2086         * chartab.h (decode_char_table_range): New prototype in XEmacs
2087         UTF-2000.
2088         (put_char_id_table): New inline function in XEmacs UTF-2000.
2089
2090         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2091         function.
2092         (decode_char_table_range): Delete static declaration in XEmacs
2093         UTF-2000.
2094
2095 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096
2097         * chartab.c (put_char_id_table): Use `put_char_table'.
2098
2099 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2102         (map_over_uint16_byte_table): Likewise.
2103         (map_over_byte_table): Likewise.
2104         (map_char_table): Modify for `map_over_uint8_byte_table',
2105         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2106         UTF-2000.
2107
2108 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2109
2110         * chartab.c (struct map_char_table_for_charset_arg): New
2111         structure.
2112         (map_char_table_for_charset_fun): New function.
2113         (map_char_table): Use `map_char_table' for encoding_table of
2114         `range->charset'.
2115
2116 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117
2118         * chartab.c (map_char_table): Check a character is found in
2119         range->charset instead of non default value is defined in
2120         char-table when range is CHARTAB_RANGE_ROW.
2121
2122 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * chartab.c (map_char_id_table): Deleted.
2125         (Fmap_char_attribute): Use `map_char_table' instead of
2126         `map_char_id_table'.
2127
2128 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2129
2130         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2131         UTF-2000.
2132         (update_syntax_table): Deleted in XEmacs UTF-2000.
2133
2134         * syntax.c (find_defun_start): Use `syntax_table' instead of
2135         `mirror_syntax_table' in XEmacs UTF-2000.
2136         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2137         UTF-2000.
2138         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2139         XEmacs UTF-2000.
2140         (Fmatching_paren): Likewise.
2141         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2142         in XEmacs UTF-2000.
2143         (find_start_of_comment): Likewise.
2144         (find_end_of_comment): Likewise.
2145         (Fforward_comment): Likewise.
2146         (scan_lists): Likewise.
2147         (char_quoted): Likewise.
2148         (Fbackward_prefix_chars): Likewise.
2149         (scan_sexps_forward): Likewise.
2150         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2151         (update_syntax_table): Likewise.
2152
2153         * search.c (skip_chars): Use `syntax_table' instead of
2154         `mirror_syntax_table' in XEmacs UTF-2000.
2155         (wordify): Likewise.
2156         (Freplace_match): Likewise.
2157
2158         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2159         `mirror_syntax_table' in XEmacs UTF-2000.
2160         (WORDCHAR_P_UNSAFE): Likewise.
2161         (re_match_2_internal): Likewise.
2162
2163         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2164         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2165
2166         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2167         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2168
2169         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2170         XEmacs UTF-2000.
2171
2172         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2173         UTF-2000.
2174         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2175         (char_table_description): Delete `mirror_table' in XEmacs
2176         UTF-2000.
2177         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2178         UTF-2000.
2179         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2180         (Fcopy_char_table): Likewise.
2181         (put_char_table): Don't call `update_syntax_table' in XEmacs
2182         UTF-2000.
2183
2184         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2185         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2186         (casify_region_internal): Likewise.
2187
2188         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2189
2190         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2191         `mirror_syntax_table' in XEmacs UTF-2000.
2192
2193         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2194         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2195         (Fexpand_abbrev): Likewise.
2196
2197 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2198
2199         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2200
2201 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2204         (map_over_uint16_byte_table): Likewise.
2205         (map_over_byte_table): Likewise.
2206         (get_char_id_table): Refer `cit->default_value'.
2207         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2208         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2209         of character-id ranges.
2210         (mark_char_table): Mark `ct->default_value'.
2211         (char_table_description): Add `default_value'.
2212         (fill_char_table): Use `default_value'.
2213         (decode_char_table_range): Decode `nil' as
2214         `CHARTAB_RANGE_DEFAULT'.
2215         (get_char_id_table): Refer `cit->default_value'.
2216         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2217         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2218         temporary hack; check value of char-table is bound or not.
2219         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2220
2221         * chartab.h (struct Lisp_Char_Table): Add new member
2222         `default_value' in XEmacs UTF-2000.
2223         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2224         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2225         UTF-2000.
2226
2227 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * chartab.h (Lisp_Char_ID_Table): Deleted.
2230
2231         * chartab.c (char_table_description): Fix typo.
2232         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2233         `Lisp_Char_ID_Table'.
2234
2235 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2236
2237         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2238         `CHAR_ID_TABLE_P'.
2239
2240         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2241         `CHAR_ID_TABLE_P'.
2242
2243         * chartab.h (XCHAR_ID_TABLE): Deleted.
2244         (XSETCHAR_ID_TABLE): Deleted.
2245         (CHAR_ID_TABLE_P): Deleted.
2246
2247         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2248         `CHAR_ID_TABLE_P'.
2249         (Fget_composite_char): Likewise.
2250         (put_char_table): Likewise.
2251         (add_char_attribute_alist_mapper): Fixed.
2252         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2253         `CHAR_ID_TABLE_P'.
2254         (Fget_char_attribute): Likewise.
2255         (Fget_char_attribute): Likewise.
2256         (Fmap_char_attribute): Likewise.
2257
2258         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2259         `CHAR_ID_TABLE_P'.
2260         (encode_char_1): Likewise.
2261
2262 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2263
2264         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2265         `XCHAR_ID_TABLE'.
2266
2267         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2268         instead of `XCHAR_ID_TABLE'.
2269         (remove_char_ccs): Likewise.
2270
2271         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2272         `XCHAR_ID_TABLE'.
2273         (Fget_composite_char): Likewise.
2274         (Fchar_variants): Likewise.
2275         (put_char_table): Likewise.
2276         (add_char_attribute_alist_mapper): Likewise.
2277         (Fchar_attribute_alist): Likewise.
2278         (Fget_char_attribute): Likewise.
2279         (Fput_char_attribute): Likewise.
2280         (Fmap_char_attribute): Likewise.
2281         (Fmap_char_attribute): Likewise.
2282
2283         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2284         `XCHAR_ID_TABLE'.
2285         (encode_char_1): Likewise.
2286
2287 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2288
2289         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2290         `Lisp_Char_ID_Table'.
2291         (mark_char_id_table): Deleted.
2292         (print_char_id_table): Likewise.
2293         (char_id_table_equal): Likewise.
2294         (char_id_table_hash): Likewise.
2295         (char_id_table_description): Likewise.
2296         (char_id_table): Likewise.
2297         (make_char_id_table): Use `Fmake_char_table' and
2298         `fill_char_table'.
2299         (get_char_id_table): Use `Lisp_Char_Table' instead of
2300         `Lisp_Char_ID_Table'.
2301         (put_char_id_table): Likewise.
2302         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2303         `XCHAR_ID_TABLE'.
2304         (Fremove_char_attribute): Likewise.
2305         (syms_of_chartab): Don't define type `char-id-table'.
2306
2307         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2308         (char_id_table): Likewise.
2309         (GC_CHAR_ID_TABLE_P): Likewise.
2310         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2311         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2312         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2313         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2314         (get_char_id_table): Use `Lisp_Char_Table' instead of
2315         `Lisp_Char_ID_Table'.
2316         (put_char_id_table_0): Likewise.
2317         (put_char_id_table): Likewise.
2318
2319 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2320
2321         * chartab.h: Lisp_Byte_Table related codes are moved from
2322         chartab.h.
2323
2324         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2325
2326 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2327
2328         * chartab.h: Don't include "chartab.h".
2329         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2330         (Lisp_Char_ID_Table): Likewise.
2331         (char_id_table): Likewise.
2332         (XCHAR_ID_TABLE): Likewise.
2333         (XSETCHAR_ID_TABLE): Likewise.
2334         (CHAR_ID_TABLE_P): Likewise.
2335         (GC_CHAR_ID_TABLE_P): Likewise.
2336         (get_char_id_table): Likewise.
2337
2338         * char-ucs.h: Include "chartab.h".
2339         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2340         (Lisp_Char_ID_Table): Likewise.
2341         (char_id_table): Likewise.
2342         (XCHAR_ID_TABLE): Likewise.
2343         (XSETCHAR_ID_TABLE): Likewise.
2344         (CHAR_ID_TABLE_P): Likewise.
2345         (GC_CHAR_ID_TABLE_P): Likewise.
2346         (get_char_id_table): Likewise.
2347
2348 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2349
2350         * chartab.c (copy_uint8_byte_table): New function.
2351         (copy_uint16_byte_table): New function.
2352         (copy_byte_table): New function.
2353         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2354         characters to call.
2355         (map_over_uint16_byte_table): Likewise.
2356         (map_over_byte_table): Likewise.
2357         (get_byte_table): Move prototype to chartab.h.
2358         (put_byte_table): Likewise.
2359         (put_char_id_table_0): Moved to chartab.h.
2360         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2361         (char_table_entry_equal): Likewise.
2362         (char_table_entry_hash): Likewise.
2363         (char_table_entry_description): Likewise.
2364         (char_table_entry): Likewise.
2365         (make_char_table_entry): Likewise.
2366         (copy_char_table_entry): Likewise.
2367         (get_non_ascii_char_table_value): Likewise.
2368         (map_over_charset_ascii): Likewise.
2369         (map_over_charset_control_1): Likewise.
2370         (map_over_charset_row): Likewise.
2371         (map_over_other_charset): Likewise.
2372         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2373         (print_char_table): Likewise.
2374         (char_table_equal): Likewise.
2375         (char_table_hash): Likewise.
2376         (char_table_description): Likewise.
2377         (fill_char_table): Likewise.
2378         (Fcopy_char_table): Likewise.
2379         (get_char_table): Likewise.
2380         (Fget_range_char_table): Likewise.
2381         (put_char_table): Likewise.
2382         (map_char_table): Likewise.
2383         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2384         UTF-2000.
2385
2386 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387
2388         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2389         `Vauto_fill_chars' in XEmacs UTF-2000.
2390
2391         * chartab.h (get_byte_table): New prototype [moved from
2392         chartab.c].
2393         (put_byte_table): Likewise [moved from chartab.c].
2394         (put_char_id_table_0): New inline function [moved from chartab.c].
2395         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2396         (Lisp_Char_Table_Entry): Likewise.
2397         (char_table_entry): Likewise.
2398         (XCHAR_TABLE_ENTRY): Likewise.
2399         (XSETCHAR_TABLE_ENTRY): Likewise.
2400         (CHAR_TABLE_ENTRYP): Likewise.
2401         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2402         (NUM_ASCII_CHARS): Likewise.
2403         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2404         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2405
2406 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2407
2408         * chartab.c (get_char_id_table): Change interface.
2409         (put_char_id_table_0): New function.
2410         (put_char_id_table): Change interface; new implementation.
2411         (Fget_composite_char): Modify for interface change of
2412         `get_char_id_table'.
2413         (Fchar_variants): Likewise.
2414         (add_char_attribute_alist_mapper): Likewise.
2415         (Fchar_attribute_alist): Likewise.
2416         (Fget_char_attribute): Likewise.
2417         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2418         as same as character as the first argument like `put-char-table';
2419         modify for interface change of `put_char_id_table'.
2420         (Fremove_char_attribute): Modify for interface change of
2421         `put_char_id_table'.
2422
2423 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2424
2425         * text-coding.c: Sync up with XEmacs 21.2.41.
2426         (COMPOSE_ADD_CHAR): Modify for interface change of
2427         `get_char_id_table'.
2428
2429         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2430         change of `put_char_id_table'.
2431         (remove_char_ccs): Likewise.
2432
2433         * chartab.h (put_char_id_table): Change interface.
2434
2435         * char-ucs.h (get_char_id_table): Change interface.
2436         (charset_code_point): Modify for interface change of
2437         `get_char_id_table'.
2438         (encode_char_1): Likewise.
2439
2440 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441
2442         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2443         argument `ccs'.
2444         (map_over_uint16_byte_table): Likewise.
2445         (map_over_byte_table): Likewise.
2446         (map_char_id_table): Add new argument `range' like
2447         `map_char_table'.
2448         (Fmap_char_attribute): Add new argument `range' like
2449         `Fmap_char_table'.
2450
2451 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2452
2453         * chartab.c (map_over_uint8_byte_table): Change interface of
2454         mapping function to use struct chartab_range instead of Emchar.
2455         (map_over_uint16_byte_table): Likewise.
2456         (map_over_byte_table): Likewise.
2457         (map_char_id_table): Likewise.
2458         (struct slow_map_char_id_table_arg): Deleted.
2459         (slow_map_char_id_table_fun): Deleted.
2460         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2461         function `slow_map_char_table_fun' instead of struct
2462         `slow_map_char_id_table_arg' and function
2463         `slow_map_char_id_table_fun'.
2464
2465 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2466
2467         * mule-charset.c: Move char-it-table related codes to chartab.c.
2468         (Vutf_2000_version): Moved to chartab.c.
2469         (Fdefine_char): Likewise.
2470         (Ffind_char): Likewise.
2471         (syms_of_mule_charset): Move types `uint8-byte-table',
2472         `uint16-byte-table', `byte-table' and `char-id-table' to
2473         chartab.c; move functions `char_attribute_list,
2474         `find_char_attribute_table, `char_attribute_alist,
2475         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2476         `map_char_attribute, `define_char, `find_char, `char_variants and
2477         `get_composite_char to chartab.c; move symbols `=>ucs',
2478         `->decomposition', `compat', `isolated', `initial', `medial',
2479         `final', `vertical', `noBreak', `fraction', `super', `sub',
2480         `circle', `square', `wide', `narrow', `small' and `font' to
2481         chartab.c.
2482         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2483         setting codes for `Vcharacter_composition_table' and
2484         `Vcharacter_variant_table' to chartab.c.
2485         (complex_vars_of_mule_charset): Move setting code for
2486         `Vchar_attribute_hash_table' to chartab.c.
2487
2488         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2489         (make_char_id_table): New prototype.
2490         (put_char_id_table): Likewise.
2491         (Fget_char_attribute): Likewise.
2492
2493         * chartab.c: Move char-id-table related code from mule-charset.c.
2494         (Vutf_2000_version): Moved from mule-charset.c.
2495
2496         * char-ucs.h (Qucs): New external variable.
2497         (put_char_ccs_code_point): New prototype.
2498         (remove_char_ccs): Likewise.
2499
2500 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2501
2502         * mule-charset.c (Vcharset_ucs_jis): New variable.
2503         (Qucs_jis): Likewise.
2504         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2505         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2506
2507         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2508
2509 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2510
2511         * mule-charset.c (map_over_uint8_byte_table): New function.
2512         (map_over_uint16_byte_table): Likewise.
2513         (map_over_byte_table): Likewise.
2514         (map_char_id_table): Likewise.
2515         (slow_map_char_id_table_fun): Likewise.
2516         (Fmap_char_attribute): Likewise.
2517         (syms_of_mule_charset): Add new function `map-char-attribute'.
2518
2519 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2520
2521         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2522         (syms_of_mule_charset): Add new function `find-char'.
2523
2524 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2527         XEmacs UTF-2000.
2528         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2529         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2530         XEmacs UTF-2000.
2531         (complex_vars_of_mule_charset): Add new coded-charset
2532         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2533         `ideograph-gt-pj-*'.
2534
2535         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2536
2537 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2538
2539         * mule-charset.c (encode_builtin_char_1): Purge codes about
2540         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2541         {MIN|MAX}_CHAR_HEBREW.
2542         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2543         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2544
2545         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2546         (MAX_CHAR_GREEK): Purged.
2547         (MIN_CHAR_CYRILLIC): Purged.
2548         (MAX_CHAR_CYRILLIC): Purged.
2549         (MIN_CHAR_HEBREW): Commented out.
2550         (MAX_CHAR_HEBREW): Likewise.
2551
2552 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553
2554         * mule-charset.c (Qto_ucs): New variable.
2555         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2556         (Fdefine_char): Likewise.
2557         (syms_of_mule_charset): Add new symbol `=>ucs'.
2558
2559 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * mule-charset.c (Fdecode_char): Fixed.
2562
2563 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564
2565         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2566         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2567         "tcvn5712-1".
2568
2569 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * mule-charset.c (Vcharset_ucs_big5): New variable.
2572         (Qucs_big5): Likewise.
2573         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2574         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2575
2576         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2577
2578 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2579
2580         * mule-charset.c (decode_builtin_char): Check Big5 code range
2581         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2582
2583 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2584
2585         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2586         (Qchinese_gb12345): Likewise.
2587         (Fdecode_builtin_char): Fixed.
2588         (syms_of_mule_charset): Add `chinese-gb12345'.
2589         (complex_vars_of_mule_charset): Add coded-charset
2590         `chinese-gb12345'.
2591
2592         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2593         (LEADING_BYTE_CHINESE_GB12345): New macro.
2594
2595 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2598         and `latin-viscii-upper' for `latin-viscii'.
2599
2600 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2601
2602         * mule-charset.c (Fdecode_builtin_char): Comment out
2603         regularization code for ISO-IR GR representation.
2604
2605 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606
2607         * mule-charset.c (decode_builtin_char): New function; renamed from
2608         `make_builtin_char'; return -1 instead of signal.
2609         (Fdecode_builtin_char): Use `decode_builtin_char'.
2610
2611         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2612         `make_builtin_char'.
2613         (DECODE_CHAR): Use `decode_builtin_char' instead of
2614         `make_builtin_char'; use mapping table of `chinese-big5' for
2615         `chinese-big5-{1,2}'.
2616
2617 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2618
2619         * text-coding.c (char_encode_big5): New function.
2620         (char_finish_big5): Likewise.
2621         (reset_encoding_stream): Use `char_encode_big5' and
2622         `char_finish_big5' for CODESYS_BIG5.
2623         (mule_encode): Don't use `encode_coding_big5'.
2624         (encode_coding_big5): Deleted.
2625
2626 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2629         0x81- in XEmacs UTF-2000.
2630         (detect_coding_big5): Likewise.
2631
2632 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2633
2634         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2635         generate character-id if the CCS property does not have
2636         corresponding predefined character.
2637         (make_builtin_char): Return -1 if corresponding predefined
2638         character is not found.
2639         (Fdecode_char): Return nil if corresponding character is not
2640         found.
2641         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2642         don't map to builtin ucs space.
2643
2644 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2645
2646         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2647         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2648
2649 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2650
2651         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2652         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2653         (Qideograph_gt): Likewise.
2654         (Qideograph_gt_pj_{1..11}): Likewise.
2655         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2656         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2657         `ideograph-gt-pj-11'.
2658         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2659         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2660         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2661
2662         * char-ucs.h (LEADING_BYTE_GT): New macro.
2663         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2664         (MIN_CHAR_GT): Likewise.
2665         (MAX_CHAR_GT): Likewise.
2666
2667 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2668
2669         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2670         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2671
2672         * doprnt.c (unsigned_int_converters): Add `c'.
2673         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2674
2675         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2676         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2677         `MIN_CHAR_MOJIKYO'.
2678         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2679         (MAX_CHAR_MOJIKYO_0): New macro.
2680         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2681
2682 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2683
2684         * mule-charset.c (Fdefine_char): Delete cemented out code.
2685         (encode_builtin_char_1): Modify for new allocation of builtin
2686         Mojikyo characters.
2687
2688         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2689
2690 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2691
2692         * mule-charset.c (Vcharset_ucs_cns): New variable.
2693         (Qucs_cns): New variable.
2694         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2695         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2696
2697 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2698
2699         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2700
2701 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2702
2703         * search.c (search_buffer): Make `charset_base_code' as
2704         character-id >> 6 to eliminate the corresponding last byte in
2705         UTF-8 representation [I'm not sure it is right thing].
2706         (boyer_moore): Likewise.
2707
2708 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2709
2710         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2711         representation in MULE.
2712
2713 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2714
2715         * text-coding.c (Fmake_coding_system): Use
2716         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2717         `EXTERNAL_PROPERTY_LIST_LOOP'.
2718
2719 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2720
2721         * text-coding.c (decode_output_utf8_partial_char): New function.
2722         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2723
2724 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * text-coding.c (decode_coding_utf8): Output original byte
2727         sequence if it is broken; change order of conditions.
2728
2729         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2730         of conditions.
2731
2732         * mb-multibyte.h (BYTE_ASCII_P):
2733         Use bit ops for char-signedness safety.
2734         (BYTE_C0_P): Use bit ops for char-signedness safety.
2735         (BYTE_C1_P): Use bit ops for char-signedness safety.
2736
2737         * character.h: (XCHAR_OR_CHAR_INT):
2738         Always use inline function.
2739         Remove redundant type checking assert() - XINT will abort quite
2740         nicely.
2741
2742 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * text-coding.c: (Fencode_shift_jis_char):
2745         (Fencode_big5_char):
2746         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2747         Replace 0 with '\0' when working with bytes.
2748         Replace initial "(" with "\(" in docstrings.
2749
2750         (Fmake_coding_system):
2751         When type is ccl and value is vector, register it with a proper
2752         symbol.  And checks whether the given ccl program is valid.
2753         (mule_decode): When calling ccl_driver, if src indicates
2754         NULL pointer, set an empty string instead.
2755         (mule_encode): Likewise.
2756
2757         (detect_eol_type):
2758         (detect_coding_sjis):
2759         (decode_coding_sjis):
2760         (detect_coding_big5):
2761         (decode_coding_big5):
2762         (detect_coding_ucs4):
2763         (decode_coding_ucs4):
2764         (detect_coding_utf8):
2765         (decode_coding_utf8):
2766         (detect_coding_iso2022):
2767         (decode_coding_iso2022):
2768         (decode_coding_no_conversion):
2769         (mule_decode):
2770         Make all detecting and decoding functions take an Extbyte * arg.
2771         (text_encode_generic):
2772         (encode_coding_big5):
2773         (encode_coding_no_conversion):
2774         (mule_encode):
2775         Make all encoding functions take a Bufbyte * arg.
2776         Use size_t instead of unsigned int for memory sizes.
2777         Only cast to unsigned char whenever dereferencing Extbyte *.
2778
2779         (struct lrecord_description fcd_description_1): Use countof.
2780         (complex_vars_of_file_coding):
2781         Use countof instead of sizeof.
2782         Use CHECK_NATNUM instead of CHECK_INT.
2783
2784 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2785
2786         * mule-charset.c (Fget_char_attribute): Add new optional argument
2787         `default-value'.
2788         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2789         (remove_char_ccs): Likewise.
2790
2791 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * text-coding.c (char_encode_shift_jis): New implementation in
2794         UTF-2000.
2795         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2796         ...)'.
2797
2798         * mule-charset.c (Vcharset_chinese_big5): New variable in
2799         UTF-2000.
2800         (Qchinese_big5): New variable in UTF-2000.
2801         (BIG5_SAME_ROW): New macro in UTF-2000.
2802         (make_builtin_char): Use builtin characters of
2803         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2804         characters of `Vcharset_chinese_big5'.
2805         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2806         (complex_vars_of_mule_charset): Add new coded-charset
2807         `chinese-big5' in UTF-2000.
2808
2809         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2810         (Vcharset_chinese_big5): New external variable declaration.
2811         (Vcharset_japanese_jisx0208_1990): Likewise.
2812
2813 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2816         function.
2817         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2818
2819 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820
2821         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2822         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2823         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2824         `mojikyo-pj-*'.
2825
2826 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2829
2830 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2831
2832         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2833         to 0.17.
2834
2835 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2836
2837         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2838         for `CHARSET_BY_ATTRIBUTES'.
2839         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2840         `CHARSET_BY_ATTRIBUTES'.
2841
2842         * text-coding.c (struct decoding_stream): Rename member `CH' to
2843         `CPOS'.
2844         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2845         (decode_coding_sjis): Likewise.
2846         (decode_coding_big5): Likewise.
2847         (decode_coding_ucs4): Likewise.
2848         (decode_coding_utf8): Likewise.
2849         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2850         `CHARSET_BY_ATTRIBUTES'.
2851         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2852         `str->counter'; decode 3, 4 bytes sets.
2853         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2854         sets.
2855         (decode_coding_no_conversion): Use `str->cpos' instead of
2856         `str->ch'.
2857
2858         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2859         (Qmojikyo_2022_1): New variable.
2860         (make_charset): Don't use `CHARSET_TYPE_*'.
2861         (range_charset_code_point): Support coded-charset
2862         `mojikyo-2022-1'.
2863         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2864         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2865         `CHARSET_BY_ATTRIBUTES'.
2866         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2867         `CHARSET_BY_ATTRIBUTES'.
2868         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2869         (complex_vars_of_mule_charset): Add new coded-charset
2870         `mojikyo-2022-1'.
2871
2872         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2873         interface; changed to inline function.
2874
2875         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2876         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2877         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2878         (CHARSET_TYPE_94): Deleted.
2879         (CHARSET_TYPE_94X94): Deleted.
2880         (CHARSET_TYPE_96): Deleted.
2881         (CHARSET_TYPE_96X96): Deleted.
2882         (CHARSET_TYPE_128): Deleted.
2883         (CHARSET_TYPE_128X128): Deleted.
2884         (CHARSET_TYPE_256): Deleted.
2885         (CHARSET_TYPE_256X256): Deleted.
2886         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2887         to inline function.
2888         (DECODE_MOJIKYO_2022): New inline function.
2889         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2890         `Vcharset_mojikyo_2022_1'.
2891
2892 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2893
2894         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2895         instead of `EQ'.
2896         (put_byte_table): Likewise.
2897         (char_id_table_equal): Use `get_byte_table' [new implementation].
2898
2899 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2900
2901         * mule-charset.c: Include <limits.h> in UTF-2000.
2902         (BT_UINT8_MIN): New macro in UTF-2000.
2903         (BT_UINT8_MAX): New macro in UTF-2000.
2904         (BT_UINT8_t): New macro in UTF-2000.
2905         (BT_UINT8_nil): New macro in UTF-2000.
2906         (BT_UINT8_unbound): New macro in UTF-2000.
2907         (INT_UINT8_P): New inline function in UTF-2000.
2908         (UINT8_VALUE_P): New inline function in UTF-2000.
2909         (UINT8_ENCODE): New inline function in UTF-2000.
2910         (UINT8_DECODE): New inline function in UTF-2000.
2911         (mark_uint8_byte_table): New function in UTF-2000.
2912         (print_uint8_byte_table): New function in UTF-2000.
2913         (uint8_byte_table_equal): New function in UTF-2000.
2914         (uint8_byte_table_hash): New function in UTF-2000.
2915         (make_uint8_byte_table): New function in UTF-2000.
2916         (uint8_byte_table_same_value_p): New function in UTF-2000.
2917         (BT_UINT16_MIN): New macro in UTF-2000.
2918         (BT_UINT16_MAX): New macro in UTF-2000.
2919         (BT_UINT16_t): New macro in UTF-2000.
2920         (BT_UINT16_nil): New macro in UTF-2000.
2921         (BT_UINT16_unbound): New macro in UTF-2000.
2922         (INT_UINT16_P): New inline function in UTF-2000.
2923         (UINT16_VALUE_P): New inline function in UTF-2000.
2924         (UINT16_ENCODE): New inline function in UTF-2000.
2925         (UINT16_DECODE): New inline function in UTF-2000.
2926         (UINT8_TO_UINT16): New inline function in UTF-2000.
2927         (mark_uint16_byte_table): New function in UTF-2000.
2928         (print_uint16_byte_table): New function in UTF-2000.
2929         (uint16_byte_table_equal): New function in UTF-2000.
2930         (uint16_byte_table_hash): New function in UTF-2000.
2931         (make_uint16_byte_table): New function in UTF-2000.
2932         (uint16_byte_table_same_value_p): New function in UTF-2000.
2933         (print_byte_table): New function in UTF-2000.
2934         (byte-table): Use `print_byte_table' as printer.
2935         (make_byte_table): Delete second argument `older'.
2936         (byte_table_same_value_p): New function in UTF-2000.
2937         (copy_byte_table): Deleted.
2938         (get_byte_table): New function in UTF-2000.
2939         (put_byte_table): New function in UTF-2000.
2940         (print_char_id_table): New function in UTF-2000.
2941         (char-id-table): Use `print_char_id_table' as printer.
2942         (make_char_id_table): Delete second argument `older'.
2943         (get_char_id_table): Use `get_byte_table [new implementation].
2944         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2945         implementation].
2946         (Ffind_char_attribute_table): New function in UTF-2000.
2947         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2948         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2949         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2950         (syms_of_mule_charset): Add new function
2951         `find-char-attribute-table' in UTF-2000.
2952
2953         * lrecord.h (enum lrecord_type): Add
2954         `lrecord_type_uint16_byte_table' and
2955         `lrecord_type_uint8_byte_table'.
2956
2957         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2958         (Lisp_Uint8_Byte_Table): New type.
2959         (XUINT8_BYTE_TABLE): New macro.
2960         (XSETUINT8_BYTE_TABLE): New macro.
2961         (UINT8_BYTE_TABLE_P): New macro.
2962         (GC_UINT8_BYTE_TABLE_P): New macro.
2963         (struct Lisp_Uint16_Byte_Table): New structure.
2964         (Lisp_Uint16_Byte_Table): New type.
2965         (XUINT16_BYTE_TABLE): New macro.
2966         (XSETUINT16_BYTE_TABLE): New macro.
2967         (UINT16_BYTE_TABLE_P): New macro.
2968         (GC_UINT16_BYTE_TABLE_P): New macro.
2969
2970 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2971
2972         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2973         (Vcharacter_ideographic_strokes_table): Deleted.
2974         (Vcharacter_total_strokes_table): Deleted.
2975         (Vcharacter_morohashi_daikanwa_table): Deleted.
2976         (Vcharacter_decomposition_table): Deleted.
2977         (Qname): Deleted because it is duplicated.
2978         (Qideographic_radical): Deleted.
2979         (Qideographic_strokes): Deleted.
2980         (Qtotal_strokes): Deleted.
2981         (Qmorohashi_daikanwa): Deleted.
2982         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2983         `ideographic-radical', `ideographic-strokes', `total-strokes',
2984         `morohashi-daikanwa' and `->decomposition'.
2985         (Fget_char_attribute): Likewise.
2986         (Fput_char_attribute): Likewise; use `make-vector' instead of
2987         `make_older_vector' for `->decomposition' value.
2988         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2989         `ideograph-daikanwa'.
2990         (syms_of_mule_charset): Delete builtin symbols `name',
2991         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2992         `morohashi-daikanwa'.
2993         (vars_of_mule_charset): Don't setup
2994         `Vcharacter_ideographic_radical_table',
2995         `Vcharacter_ideographic_strokes_table',
2996         `Vcharacter_total_strokes_table',
2997         `Vcharacter_morohashi_daikanwa_table' and
2998         `Vcharacter_decomposition_table'.
2999
3000 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3001
3002         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3003         `make_older_vector', `make_vector_newer_1' and
3004         `make_vector_newer'.
3005
3006         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3007         `make_older_vector' and `make_vector_newer'.
3008
3009         * config.h.in (HAVE_GGC): New macro.
3010
3011 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012
3013         * mule-charset.c (struct char_attribute_list_closure): New
3014         structure in UTF-2000.
3015         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3016         (Fchar_attribute_list): Likewise.
3017         (Fset_charset_mapping_table): Use `make_vector_newer'.
3018         (Fdecode_builtin_char): New function in UTF-2000.
3019         (syms_of_mule_charset): Add new function `char-attribute-list' and
3020         `decode-builtin-char' in UTF-2000.
3021
3022         * lisp.h (make_vector_newer): New prototype.
3023
3024         * alloc.c (make_vector_newer_1): New function.
3025         (make_vector_newer): New function.
3026
3027 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3028
3029         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3030         50100)'.
3031
3032 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3033
3034         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3035         (Vcharacter_attribute_table): Deleted.
3036         (Vcharacter_name_table): Deleted.
3037         (put_char_attribute): Deleted.
3038         (remove_char_attribute): Deleted.
3039         (struct char_attribute_alist_closure): New structure.
3040         (add_char_attribute_alist_mapper): New function.
3041         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3042         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3043         (Fget_char_attribute): Likewise.
3044         (Fput_char_attribute): Likewise.
3045         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3046         of `remove_char_attribute'.
3047         (Fdefine_char): Return character.
3048         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3049         and `Vcharacter_name_table'.
3050         (complex_vars_of_mule_charset): Likewise
3051         `Vchar_attribute_hash_table'.
3052
3053 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3054
3055         * character.h (CHARC_CHARSET): New macro.
3056         (CHARC_CHARSET_ID): New macro.
3057         (CHARC_CODE_POINT): New macro.
3058         (CHARC_COLUMNS): New macro.
3059         (CHARC_TO_CHAR): New inline function.
3060         (CHARC_EQ): New inline function.
3061         (CHARC_ASCII_EQ): New inline function.
3062         (CHARC_IS_SPACE): New inline function.
3063         (ASCII_TO_CHARC): New inline function.
3064
3065         * char-ucs.h (encode_char_2): Deleted.
3066         (ENCODE_CHAR): Use `encode_char_1' again.
3067         (breakup_char_1): Likewise.
3068         (CHAR_TO_CHARC): New inline function.
3069
3070         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3071
3072 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3073
3074         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3075         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3076         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3077         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3078         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3079         `CHARC_IS_SPACE'.
3080         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3081
3082         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3083         `CHARC_CODE_POINT'.
3084         (x_output_display_block): Use `CHARC_CHARSET' and
3085         `CHARC_ASCII_EQ'.
3086
3087         * redisplay-tty.c (tty_output_display_block): Use
3088         `CHARC_ASCII_EQ'.
3089         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3090
3091         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3092
3093         * insdel.c (find_charsets_in_charc_string): Use
3094         `CHARC_CHARSET_ID'.
3095         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3096         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3097         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3098         (convert_charc_string_into_malloced_string): Likewise.
3099
3100 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3101
3102         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3103         instead of <Emchar_dynarr *> for buf; use
3104         `convert_bufbyte_string_into_charc_dynarr' instead of
3105         `convert_bufbyte_string_into_emchar_dynarr'; use
3106         `find_charsets_in_charc_string' instead of
3107         `find_charsets_in_emchar_string'.
3108
3109         * redisplay.h:
3110         - Include "character.h".
3111         (struct rune): New member `cglyph'; delete member `chr'.
3112
3113         * redisplay.c (redisplay_text_width_charc_string): New function;
3114         delete `redisplay_text_width_emchar_string'.
3115         (rtw_charc_dynarr): New variable; renamed from
3116         `rtw_emchar_dynarr'.
3117         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3118         `rtw_emchar_dynarr'; use
3119         `convert_bufbyte_string_into_charc_dynarr' instead of
3120         `convert_bufbyte_string_into_emchar_dynarr'; use
3121         `redisplay_text_width_charc_string' instead of
3122         `redisplay_text_width_emchar_string'.
3123         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3124         instead of `rtw_emchar_dynarr'; use
3125         `convert_bufbyte_string_into_charc_dynarr' instead of
3126         `convert_bufbyte_string_into_emchar_dynarr'.
3127         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3128         `redisplay_text_width_charc_string' instead of
3129         `redisplay_text_width_emchar_string'.
3130         (create_text_block): Modify for <struct rune> change.
3131         (generate_formatted_string_db): Likewise.
3132         (create_string_text_block): Likewise.
3133         (pixel_to_glyph_translation): Likewise.
3134
3135         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3136         instead of <const Emchar *>.
3137         (x_text_width): Likewise.
3138         (x_output_display_block): Use <Charc_dynarr *> instead
3139         <Emchar_dynarr *>; modify for <structure rune> change.
3140         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3141         *>.
3142
3143         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3144         <const Emchar *>; use `charc_string_displayed_columns' instead of
3145         `emchar_string_displayed_columns'.
3146         (tty_output_display_block): Use <Charc_dynarr *> instead of
3147         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3148         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3149         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3150         `tty_output_emchar_dynarr_dynarr'.
3151         (tty_output_charc_dynarr): New function; delete
3152         `tty_output_charc_dynarr'.
3153
3154         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3155         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3156         <Emchar_dynarr *> for buf; use
3157         `convert_bufbyte_string_into_charc_dynarr' instead of
3158         `convert_bufbyte_string_into_emchar_dynarr'.
3159
3160         * frame.c (title_string_charc_dynarr): New variable; renamed from
3161         `title_string_emchar_dynarr'.
3162         (generate_title_string): Use `title_string_charc_dynarr' instead
3163         of `title_string_emchar_dynarr'; use
3164         `convert_charc_string_into_malloced_string' instead of
3165         `convert_emchar_string_into_malloced_string'.
3166         (init_frame): Use `title_string_charc_dynarr' instead of
3167         `title_string_emchar_dynarr'.
3168
3169         * console.h:
3170         - Include "character.h".
3171         (struct console_methods): Use <const Charc *> instead of <const
3172         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3173         <Emchar_dynarr *> in output_string_method.
3174
3175         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3176         <Emchar_dynarr *>.
3177
3178         * console-stream.c (stream_text_width): Use <const Charc *>
3179         instead of <const Emchar *>.
3180
3181         * character.h (Charc_dynarr): New type.
3182
3183         * char-ucs.h (structure Charc): New structure; define new type
3184         `Charc'.
3185
3186         * char-lb.h (DECODE_CHAR): New inline function.
3187         (encode_char_1): New inline function.
3188         (ENCODE_CHAR): New macro.
3189         (structure Charc): New structure; define new type `Charc'.
3190
3191         * char-1byte.h (Vcharset_control_1): New macro.
3192         (Vcharset_latin_iso8859_1): New macro.
3193         (DECODE_CHAR): New inline function.
3194         (encode_char_1): New inline function.
3195         (ENCODE_CHAR): New macro.
3196         (structure Charc): New structure; define new type `Charc'.
3197
3198         * insdel.c (find_charsets_in_charc_string): New function; delete
3199         `find_charsets_in_emchar_string'.
3200         (charc_string_displayed_columns): New function; delete
3201         `emchar_string_displayed_columns'.
3202         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3203         `convert_bufbyte_string_into_emchar_dynarr'.
3204         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3205         `convert_charc_string_into_bufbyte_dynarr'.
3206         (convert_charc_string_into_malloced_string): New function; delete
3207         `convert_charc_string_into_malloced_string'.
3208
3209         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3210         `find_charsets_in_emchar_string'.
3211         (charc_string_displayed_columns): New prototype; delete
3212         `emchar_string_displayed_columns'.
3213         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3214         `convert_charc_string_into_bufbyte_dynarr'.
3215         (convert_charc_string_into_malloced_string): New prototype; delete
3216         `convert_charc_string_into_malloced_string'.
3217
3218 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3219
3220         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3221
3222 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3223
3224         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3225
3226         * char-ucs.h: Use <short> for <Charset_ID>.
3227
3228         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3229         <Charset_ID>.
3230
3231 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3232
3233         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3234         to 0.16.
3235
3236 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3237
3238         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3239         variable.
3240         (Qmorohashi_daikanwa): New variable.
3241         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3242         for `morohashi-daikanwa' attribute.
3243         (Fget_char_attribute): Likewise.
3244         (Fput_char_attribute): Likewise.
3245         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3246         has the same value of `ideograph-daikanwa'.
3247         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3248         (vars_of_mule_charset): Setup
3249         `Vcharacter_morohashi_daikanwa_table'.
3250
3251 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3252
3253         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3254         attributes.
3255         (add_charset_to_list_mapper): Add `key' instead of
3256         `XCHARSET_NAME (value)' to return aliases.
3257
3258 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3259
3260         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3261         variable.
3262         (Vcharacter_ideographic_strokes_table): New variable.
3263         (Qideographic_radical): New variable.
3264         (Qideographic_strokes): New variable.
3265         (Fchar_attribute_alist): Use
3266         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3267         attribute; use `Vcharacter_ideographic_strokes_table' for
3268         `ideographic-strokes' attribute.
3269         (Fget_char_attribute): Likewise.
3270         (Fput_char_attribute): Likewise.
3271         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3272         `ideographic-strokes'.
3273         (vars_of_mule_charset): Setup
3274         `Vcharacter_ideographic_radical_table' and
3275         `Vcharacter_ideographic_strokes_table'.
3276
3277 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3278
3279         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3280         (Qtotal_strokes): New variable.
3281         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3282         `total-strokes' attribute.
3283         (Fget_char_attribute): Likewise.
3284         (Fput_char_attribute): Likewise.
3285         (syms_of_mule_charset): Add new symbol `total-strokes'.
3286         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3287
3288 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3291         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3292         are found.
3293         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3294         `->decomposition' attribute.
3295         (Fput_char_attribute): Likewise.
3296         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3297
3298 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3299
3300         * mule-charset.c (decoding_table_check_elements): New function.
3301         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3302
3303 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3304
3305         * mule-charset.c (Fset_charset_mapping_table): Use
3306         `put_char_ccs_code_point'.
3307
3308 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3309
3310         * mule-charset.c (decoding_table_put_char): New inline function.
3311         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3312
3313 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314
3315         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3316         (XCHARSET_BYTE_SIZE): New macro.
3317         (decoding_table_remove_char): New inline function.
3318         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3319         `decoding_table_remove_char'.
3320         (remove_char_ccs): Use `decoding_table_remove_char'.
3321         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3322
3323 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3324
3325         * mule-charset.c (Vcharacter_name_table): New variable.
3326         (Qname): New variable.
3327         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3328         attribute.
3329         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3330         `Vcharacter_name_table' for `name' attribute.
3331         (Fremove_char_attribute): Use function `remove_char_ccs'.
3332         (put_char_ccs_code_point): New function.
3333         (remove_char_ccs): New function.
3334         (syms_of_mule_charset): Add new symbol `name'.
3335         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3336
3337 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3338
3339         * mule-charset.c (make_byte_table): Add new argument `older'.
3340         (make_char_id_table): Likewise.
3341         (copy_char_id_table): Comment out because it is not used.
3342         (put_char_id_table): Modify for `make_byte_table'.
3343         (Fput_char_attribute): Make encoding_table as older object;
3344         inherit older bit of `Vcharacter_composition_table'.
3345         (mark_charset): Don't mark `cs->encoding_table'.
3346         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3347         normal object; make `Vcharacter_composition_table' as an older
3348         object; delete staticpro for `Vcharacter_composition_table'; make
3349         `Vcharacter_variant_table' as a normal object.
3350
3351         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3352         (mark_object): Don't check older object in UTF-2000.
3353
3354         * lrecord.h (struct lrecord_header): Add new member `older' in
3355         UTF-2000.
3356         (set_lheader_implementation): Setup `SLI_header->older' in
3357         UTF-2000.
3358         (set_lheader_older_implementation): New macro in UTF-2000.
3359         (OLDER_RECORD_P): New macro in UTF-2000.
3360         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3361         (alloc_older_lcrecord): New prototype in UTF-2000.
3362         (alloc_older_lcrecord_type): New macro in UTF-2000.
3363
3364 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3365
3366         * mule-charset.c (byte_table_description): Use
3367         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3368         (char_id_table_description): Delete bogus `, 1'.
3369         (Fget_char_attribute): Refer encoding_table of each coded-charset
3370         to get value of coded-charset attribute of a character.
3371         (Fput_char_attribute): Use `make_older_vector' instead of
3372         `make_vector'; use encoding_table of each coded-charset to store
3373         value of coded-charset attribute of a character.
3374         (Fremove_char_attribute): Use encoding_table of each coded-charset
3375         to store value of coded-charset attribute of a character.
3376         (mark_charset): Mark `cs->encoding_table'; don't mark
3377         `cs->decoding_table'.
3378         (charset_description): Add description of new member
3379         `encoding_table'.
3380         (make_charset): Initialize `encoding_table'.
3381
3382         * char-ucs.h (struct Lisp_Charset): Add new member
3383         `encoding_table'.
3384         (CHARSET_ENCODING_TABLE): New macro.
3385         (XCHARSET_ENCODING_TABLE): New macro.
3386         (charset_code_point): New implementation.
3387         (encode_char_1): Likewise.
3388
3389         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3390         (disksave_object_finalization_1): Call finalizers of
3391         `all_older_lcrecords' in UTF-2000.
3392         (make_older_vector): New function in UTF-2000.
3393         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3394         UTF-2000.
3395
3396         * lisp.h (make_older_vector): New prototype in UTF-2000.
3397
3398 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3399
3400         * lrecord.h (enum lrecord_type): Rename
3401         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3402
3403         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3404         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3405         `get_char_code_table'.
3406
3407         * mule-charset.c (mark_char_id_table): Renamed from
3408         `mark_char_code_table'.
3409         (char_id_table_equal): Renamed from `char_code_table_equal'.
3410         (char_id_table_hash): Renamed from `char_code_table_hash'.
3411         (make_char_id_table): Renamed from `make_char_code_table'.
3412         (copy_char_id_table): Renamed from `copy_char_code_table'.
3413         (get_char_id_table): Renamed from `get_char_code_table'.
3414         (put_char_id_table): Renamed from `put_char_code_table'.
3415         (to_char_id): Renamed from `to_char_code'.
3416
3417         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3418         `Lisp_Char_Code_Table'.
3419         (char_id_table): Renamed from `char_code_table'.
3420         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3421         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3422         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3423         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3424         (get_char_id_table): Renamed from `get_char_code_table'.
3425
3426 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3427
3428         * lrecord.h (enum lrecord_type): Rename
3429         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3430
3431         * mule-charset.c (mark_byte_table): Renamed from
3432         `mark_char_byte_table'.
3433         (byte_table_equal): Renamed from `char_byte_table_equal'.
3434         (byte_table_hash): Renamed from `byte_table_hash'.
3435         (make_byte_table): Renamed from `make_byte_table'.
3436         (copy_byte_table): Renamed from `copy_char_byte_table'.
3437
3438         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3439         `Lisp_Char_Byte_Table'.
3440         (byte_table): Renamed from `char_byte_table'.
3441         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3442         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3443         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3444         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3445
3446 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3447
3448         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3449         (dfc_convert_to_internal_format): Likewise.
3450         
3451         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3452         * text-coding.c (Fcoding_system_alias_p): New function.
3453         * text-coding.c (Fcoding_system_aliasee): New function.
3454         * text-coding.c (append_suffix_to_symbol): New function.
3455         * text-coding.c (dangling_coding_system_alias_p): New function.
3456         * text-coding.c (Ffind_coding_system):
3457         * text-coding.c (Fcopy_coding_system):
3458         * text-coding.c (encode_coding_no_conversion):
3459         * text-coding.c (syms_of_file_coding):
3460         * text-coding.c (vars_of_file_coding):
3461         Rewrite coding system alias code.
3462         Allow nested aliases, like symbolic links.
3463         Allow redefinition of coding system aliases.
3464         Prevent existence of dangling coding system aliases.
3465         Eliminate convert_to_external_format.
3466         Eliminate convert_to_internal_format.
3467         
3468         * text-coding.c: Change enum eol_type to eol_type_t.
3469
3470 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3471
3472         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3473         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3474
3475         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3476         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3477
3478 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3479
3480         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3481         `ideograph-daikanwa'.
3482
3483         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3484         (Vcharset_ucs_bmp): Likewise.
3485         (Vcharset_mojikyo): Add new extern variable definition.
3486         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3487         (Vcharset_latin_iso8859_3): Likewise.
3488         (Vcharset_latin_iso8859_4): Likewise.
3489         (Vcharset_latin_iso8859_9): Likewise.
3490         (Vcharset_latin_viscii_lower): Likewise.
3491         (Vcharset_latin_viscii_upper): Likewise.
3492         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3493         `mojikyo' code-point is used to decode.
3494         (encode_char_2): New function [to convert `mojikyo' code-point to
3495         Mojikyo font encoding].
3496         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3497         (breakup_char_1): Likewise.
3498         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3499
3500 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3501
3502         * text-coding.c (Fmake_coding_system): Add document about
3503         `disable-composition' property.
3504
3505 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3506
3507         * text-coding.c (Qdisable_composition): New variable; delete
3508         `Qcomposite'.
3509         (Fmake_coding_system): Add new property `disable-composite';
3510         delete property `composite'.
3511         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3512         instead of `!CODING_SYSTEM_COMPOSITE'.
3513         (syms_of_file_coding): Add new symbol `disable-composition';
3514         delete symbol `composite'.
3515
3516         * file-coding.h (struct Lisp_Coding_System): Add
3517         `disable_composition'; delete `enable_composition'.
3518         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3519         `CODING_SYSTEM_COMPOSITE'.
3520         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3521         `XCODING_SYSTEM_COMPOSITE'.
3522
3523 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3524
3525         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3526         to 0.15.
3527
3528 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3529
3530         * text-coding.c (Qcomposite): New variable.
3531         (Fmake_coding_system): Add new property `composite'.
3532         (struct decoding_stream): Add `combined_char_count',
3533         `combined_chars' and `combining_table' in UTF-2000.
3534         (COMPOSE_FLUSH_CHARS): New macro.
3535         (COMPOSE_ADD_CHAR): New macro.
3536         (reset_decoding_stream): Reset `str->combined_char_count' and
3537         `str->combining_table' in UTF-2000.
3538         (decode_coding_iso2022): Modify for character-decomposition.
3539         (syms_of_file_coding): Add new symbol `composite'.
3540
3541 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3542
3543         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3544         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3545         of `Vcharacter_composition_table' if `->decomposition' property
3546         has only 1 element.
3547         (Qlatin_tcvn5712): New variable.
3548         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3549         (complex_vars_of_mule_charset): Add new coded-charset
3550         `latin-tcvn5712'.
3551
3552         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3553
3554 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3555
3556         * file-coding.h (struct Lisp_Coding_System): Add
3557         `enable_composition'.
3558         (CODING_SYSTEM_COMPOSITE): New macro.
3559         (XCODING_SYSTEM_COMPOSITE): New macro.
3560
3561 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3562
3563         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3564
3565 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3566
3567         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3568         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3569
3570 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3571
3572         * mule-charset.c (Vcharset_mojikyo): New variable.
3573         (Fdefine_char): Don't use coded-charset which does not have
3574         non-builtin character range to allocate character-id.
3575         (Qmojikyo): New variable.
3576         (syms_of_mule_charset): Add new symbol `mojikyo'.
3577         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3578
3579         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3580         (LEADING_BYTE_MOJIKYO): New macro.
3581         (MIN_CHAR_MOJIKYO): New macro.
3582         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3583         (MAX_CHAR_MOJIKYO): New macro.
3584
3585 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3586
3587         * mule-charset.c (remove_char_attribute): Fixed.
3588
3589 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3590
3591         * mule-charset.c (remove_char_attribute): New function.
3592         (Fremove_char_attribute): New function.
3593         (encode_builtin_char_1): Comment out builtin-support for
3594         greek-iso8859-7 and cyrillic-iso8859-5.
3595         (Fdecode_char): Check `code' is an integer.
3596         (syms_of_mule_charset): Add `remove-char-attribute'.
3597         (MIN_CHAR_GREEK): Deleted.
3598         (MAX_CHAR_GREEK): Likewise.
3599         (MIN_CHAR_CYRILLIC): Likewise.
3600         (MAX_CHAR_CYRILLIC): Likewise.
3601         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3602         MAX_CHAR_GREEK for `greek-iso8859-7'.
3603
3604         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3605         (MAX_CHAR_GREEK): Likewise.
3606         (MIN_CHAR_CYRILLIC): Likewise.
3607         (MAX_CHAR_CYRILLIC): Likewise.
3608
3609 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3610
3611         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3612         format is used without `ucs' property.
3613         (Fdecode_char): Fix problem with GR representation.
3614         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3615         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3616
3617 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3618
3619         * mule-charset.c (make_builtin_char): New function.
3620         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3621         (Fset_charset_mapping_table): Modify for new representation of
3622         code-point.
3623         (Fdecode_char): New function.
3624         (syms_of_mule_charset): Add new builtin function `decode-char' in
3625         UTF-2000.
3626
3627         * char-ucs.h (make_builtin_char): New prototype.
3628         (DECODE_CHAR): New inline function.
3629         (MAKE_CHAR): Use `DECODE_CHAR'.
3630
3631 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3632
3633         * text-coding.c (parse_charset_conversion_specs): Use
3634         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3635         `XCHARSET_TYPE'.
3636         (iso2022_designate): Likewise.
3637
3638         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3639         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3640
3641         * mule-charset.c (Vcharset_ucs): New variable.
3642         (print_charset): Change design; use `CHARSET_CHARS' and
3643         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3644         (make_charset): Change signature to specify `chars' and
3645         `dimension' instead of `type'.
3646         (range_charset_code_point): Modify for 256^n-set.
3647         (encode_builtin_char_1): Encode as `ucs' in default.
3648         (Fmake_charset): Modify for `make_charset'.
3649         (Fmake_reverse_direction_charset): Likewise.
3650         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3651         UTF-2000.
3652         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3653         for `make_charset'.
3654
3655         * char-ucs.h (Vcharset_ucs): New variable.
3656         (LEADING_BYTE_UCS): New macro.
3657         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3658         and `chars' to `unsigned short' from `unsigned int'.
3659         (CHARSET_TYPE): Deleted.
3660         (XCHARSET_TYPE): Deleted.
3661
3662 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3663
3664         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3665
3666         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3667         (ENCODE_CHAR): New macro.
3668
3669 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3670
3671         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3672         to 0.14 (Kawachi-Katakami).
3673
3674 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3675
3676         * text-coding.c (char_encode_shift_jis): Modify for
3677         `charset_code_point'.
3678         (char_encode_iso2022): Likewise.
3679
3680         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3681         (integer) instead of list of <Lisp_Object>s (integers) as the
3682         format of code-point of a coded-charset.
3683         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3684         (encode_builtin_char_1): New function; delete
3685         `split_builtin_char'.
3686         (charset_code_point): Return <int> instead of <Lisp_Object>.
3687         (Fsplit_char): Don't use `SPLIT_CHAR'.
3688
3689         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3690         prototype for `split_builtin_char'.
3691         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3692         (charset_code_point): Likewise.
3693         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3694         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3695
3696 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3697
3698         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3699         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3700
3701 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3702
3703         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3704
3705         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3706         (MAX_CHAR_OBS_94x94): Deleted.
3707
3708 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3709
3710         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3711
3712         * char-ucs.h (MAX_CHAR_BMP): New macro.
3713
3714 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3715
3716         * text-coding.c: Sync with r21-2-24.
3717
3718 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3719
3720         * file-coding.c: Modify for UTF-2000.
3721
3722 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3723
3724         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3725         to 0.13 (Takaida).
3726
3727 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3728
3729         * mule-charset.c (split_builtin_char): Delete builtin support for
3730         `katakana-jisx0201'.
3731         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3732         BMP area in builtin representation.
3733
3734         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3735         `Vcharset_katakana_jisx0201'.
3736
3737 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3738
3739         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3740         (Qisolated): New variable.
3741         (Qinitial): New variable.
3742         (Qmedial): New variable.
3743         (Qfinal): New variable.
3744         (Qvertical): New variable.
3745         (Qsmall): New variable.
3746         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3747         `Qvertical' and `Qsmall'.
3748         (Qmojikyo_pj_[1 .. 21]): New variable.
3749         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3750         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3751         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3752         .. 21]'.
3753
3754 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3755
3756         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3757         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3758         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3759
3760 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3761
3762         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3763         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3764         BMP.
3765         (Qjapanese_jisx0208_1990): New variable.
3766         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3767         (complex_vars_of_mule_charset): Add new coded-charset
3768         `japanese-jisx0208-1990'.
3769
3770         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3771         (MIN_CHAR_JIS_X0208_1990): New macro.
3772         (MAX_CHAR_JIS_X0208_1990): New macro.
3773
3774 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3775
3776         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3777         coded-charset is not found.
3778
3779 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3780
3781         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3782         (Fdefine_char): Use `Fmake_char'.
3783
3784 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3785
3786         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3787         (Vcharset_hiragana_jisx0208): Deleted.
3788         (Vcharset_katakana_jisx0208): Deleted.
3789         (Qideograph_daikanwa): New variable.
3790         (Qhiragana_jisx0208): Deleted.
3791         (Qkatakana_jisx0208): Deleted.
3792         (split_builtin_char): Split `ideograph-daikanwa'.
3793         (Fsplit_char): New implementation for UTF-2000.
3794         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3795         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3796         (complex_vars_of_mule_charset): Add new coded-charset
3797         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3798         `katakana-jisx0208'.
3799
3800         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3801         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3802         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3803         (MIN_CHAR_DAIKANWA): New macro.
3804         (MAX_CHAR_DAIKANWA): New macro.
3805
3806 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3807
3808         * data.c (Fstring_to_number): Don't recognize floating point if
3809         base is not 10.
3810
3811 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3812
3813         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3814
3815 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3816
3817         * mule-charset.c (Qsquare): New variable.
3818         (to_char_code): Add `Qsquare'.
3819         (syms_of_mule_charset): Add new symbol `square'.
3820
3821 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3822
3823         * mule-charset.c (Qcircle): New variable.
3824         (to_char_code): Add `Qcircle'.
3825         (syms_of_mule_charset): Add new symbol `circle'.
3826
3827 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3828
3829         * mule-charset.c (Qfont): New variable.
3830         (to_char_code): Add `Qfont'.
3831         (syms_of_mule_charset): Add new symbol `font'.
3832
3833 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3834
3835         * mule-charset.c (Qsub): New variable.
3836         (to_char_code): Add `Qsub'.
3837         (syms_of_mule_charset): Add new symbol `sub'.
3838
3839 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3840
3841         * mule-charset.c (Fput_char_attribute): Convert each element of
3842         VALUE to GL position if ATTRIBUTE is a GR-set,
3843
3844 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3845
3846         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3847         coded-charset is a GR-set.
3848
3849 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3850
3851         * mule-charset.c (Fput_char_attribute): Check each element of
3852         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3853
3854 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3855
3856         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3857         UTF-2000.
3858         (Qethiopic_ucs): New variable in UTF-2000.
3859         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3860         (complex_vars_of_mule_charset): Add new coded-charset
3861         `ethiopic-ucs' in UTF-2000.
3862
3863         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3864         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3865         9)'.
3866         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3867         10)'.
3868         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3869
3870 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3871
3872         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3873         `ascii'.
3874
3875 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3876
3877         * mule-charset.c (Vcharacter_variant_table): New variable.
3878         (Q_ucs): New variable.
3879         (Fchar_variants): New function.
3880         (Fput_char_attribute): Register `->ucs' value to
3881         `Vcharacter_variant_table'.
3882         (syms_of_mule_charset): Add new function `char-variants' and new
3883         symbol `->ucs'.
3884         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3885
3886 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3887
3888         * mule-charset.c (get_char_code_table): Allow negative character
3889         code.
3890         (put_char_code_table): Likewise.
3891         (Vcharacter_composition_table): New variable.
3892         (Q_decomposition): New variable.
3893         (Qwide): New variable.
3894         (Qnarrow): New variable.
3895         (Qcompat): New variable.
3896         (QnoBreak): New variable.
3897         (Qsuper): New variable.
3898         (Qfraction): New variable.
3899         (to_char_code): New function.
3900         (Fget_composite_char): New function.
3901         (Fput_char_attribute): Register `->decomposition' value to
3902         `Vcharacter_composition_table'.
3903         (syms_of_mule_charset): Add new function `get-composite-char', new
3904         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3905         `super' and `fraction'.
3906         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3907
3908 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3909
3910         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3911         character; copy the return value.
3912
3913 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3914
3915         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3916
3917         * mule-charset.c (range_charset_code_point): Must use make_int.
3918         (split_builtin_char): New function.
3919
3920 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3921
3922         * mule-charset.c (char_byte_table): Change name from
3923         "char-code-table" to "char-byte-table".
3924         (mark_char_code_table): New function.
3925         (char_code_table_equal): New function.
3926         (char_code_table_hash): New function.
3927         (char_code_table_description): New constant.
3928         (char_code_table): New type.
3929         (make_char_code_table): New function.
3930         (copy_char_code_table): New function.
3931         (get_char_code_table): Modify for `char_code_table' type.
3932         (put_char_code_table): Likewise.
3933         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3934         (Kashiwara).
3935
3936         * char-ucs.h (char_code_table): New type.
3937         (XCHAR_CODE_TABLE): New macro.
3938         (XSETCHAR_CODE_TABLE): New macro.
3939         (CHAR_CODE_TABLE_P): New macro.
3940         (GC_CHAR_CODE_TABLE_P): New macro.
3941         (struct Lisp_Char_Code_Table): New structure.
3942
3943 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3944
3945         * mule-charset.c (Fmake_charset): Setup byte_offset for
3946         {94|96}^n-set.
3947
3948 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3949
3950         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3951         character.
3952
3953 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3954
3955         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3956         is found.
3957
3958 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3959
3960         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3961         charset, it is regarded as a charset.
3962         (put_char_attribute): New function in UTF-2000.
3963         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3964         charset, mapping-table of the charset is modified.
3965         (Fdefine_char): New function in UTF-2000.
3966         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3967         `Fput_char_attribute'.
3968         (syms_of_mule_charset): Add new function `define-char' and new
3969         symbol `ucs' in UTF-2000.
3970         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3971
3972 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3973
3974         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3975         non-UTF-2000 configuration.
3976
3977 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3978
3979         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3980         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3981
3982         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3983         deleted.
3984         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3985         (Fset_charset_mapping_table): Likewise.
3986
3987         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3988         (CHARSET_ENCODING_TABLE): Delete.
3989         (XCHARSET_ENCODING_TABLE): Delete.
3990         (charset_code_point): New interface.
3991
3992 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3993
3994         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3995         instead of `charset_get_byte1' and `charset_get_byte2'.
3996
3997         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3998         (charset_get_byte2): Deleted.
3999
4000 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4001
4002         * char-ucs.h (SPLIT_CHAR): New inline function.
4003         (breakup_char_1): Use `SPLIT_CHAR'.
4004
4005         * mule-charset.c (range_charset_code_point): New function.
4006         (charset_code_point): New function.
4007
4008         * char-ucs.h (range_charset_code_point): New interface.
4009         (breakup_char_1): Use `range_charset_code_point'.
4010
4011 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4012
4013         * mule-charset.c (Fmake_charset): Delete unused local variable
4014         `code_offset'.
4015
4016         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4017         (breakup_char_1): Find a charset and code-point in
4018         `Vcharacter_attribute_table'.
4019
4020 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4021
4022         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4023         to 0.10 (Yao).
4024
4025 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4026
4027         * mule-charset.c (Vcharacter_attribute_table): New variable.
4028         (Fchar_attribute_alist): New function.
4029         (Fget_char_attribute): New function.
4030         (Fput_char_attribute): New function.
4031         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4032         too.
4033         (syms_of_mule_charset): Add new function `char-attribute-alist',
4034         `get-char-attribute' and `put-char-attribute'.
4035         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4036
4037 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4038
4039         * mule-charset.c (Fmake_charset): Just use
4040         `get_unallocated_leading_byte'.
4041
4042         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4043         sets; don't use final-byte based number for private sets.
4044
4045 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4046
4047         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4048         integer.
4049
4050 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4051
4052         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4053         to 0.9.
4054
4055 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4056
4057         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4058         of `CHAR_LEADING_BYTE' in UTF-2000.
4059
4060         * insdel.c (find_charsets_in_bufbyte_string): Use
4061         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4062         (find_charsets_in_emchar_string): Likewise.
4063
4064         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4065         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4066
4067         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4068         (CHAR_CHARSET_ID): New macro.
4069
4070 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4071
4072         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4073         charset-id - MIN_LEADING_BYTE.
4074         (put_char_table): Likewise.
4075
4076 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4077
4078         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4079         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4080         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4081         (CHARSET_ID_OFFSET): New macro.
4082         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4083         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4084         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4085         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4086         4).
4087         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4088         5).
4089         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4090         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4091         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4092         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4093         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4094
4095 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4096
4097         * mule-charset.c (next_allocated_leading_byte): New variable in
4098         UTF-2000.
4099         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4100         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4101         (get_unallocated_leading_byte): Simply use
4102         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4103         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4104         UTF-2000.
4105
4106         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4107         (MAX_LEADING_BYTE_PRIVATE): New macro.
4108         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4109         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4110
4111 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4112
4113         * mule-charset.c (Fmake_charset): Allocate final-byte based
4114         charset-id for 94-set, 96-set and 94x94-set.
4115
4116 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4117
4118         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4119         ambiguous `else'.
4120         (Fmake_charset): Likewise.
4121         (complex_vars_of_mule_charset): Modify the font registry of
4122         `ucs-bmp' not to match `Ethiopic-Unicode'.
4123
4124 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4125
4126         * mule-charset.c (complex_vars_of_mule_charset): Add font
4127         registory of `ucs-bmp'.
4128
4129 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4130
4131         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4132         coded-charsets in `default-coded-charset-priority-list' when
4133         breaking up a character.
4134
4135         * mule-charset.c (Vcharset_latin_viscii): New variable.
4136         (Qlatin_viscii): New variable.
4137         (make_charset): Don't use `decoding_table'.
4138         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4139         byte_offset.
4140         (Fset_charset_mapping_table): New implementation.
4141         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4142         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4143         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4144         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4145         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4146         charset `latin_viscii'.
4147
4148         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4149         (CHARSET_TYPE_94X94): Change to 1 from 2.
4150         (CHARSET_TYPE_96): Change to 2 from 1.
4151         (CHARSET_TYPE_128): New macro.
4152         (CHARSET_TYPE_128X128): Change to 5 from 4.
4153         (CHARSET_TYPE_256): New macro.
4154         (CHARSET_TYPE_256X256): Change to 7 from 5.
4155         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4156
4157 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4158
4159         * text-coding.c (char_encode_shift_jis): Refer
4160         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4161         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4162
4163         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4164         (char_byte_table_equal): New function in UTF-2000.
4165         (char_byte_table_hash): New function in UTF-2000.
4166         (char_byte_table_description): New constant in UTF-2000.
4167         (char_byte_table): New type in UTF-2000.
4168         (make_char_byte_table): New function in UTF-2000.
4169         (copy_char_byte_table): New function in UTF-2000.
4170         (make_char_code_table): New macro in UTF-2000.
4171         (get_char_code_table): New function in UTF-2000.
4172         (put_char_code_table): New function in UTF-2000.
4173         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4174         (charset_description): Add setting in UTF-2000.
4175         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4176         `CHARSET_TO_BYTE1_TABLE(cs)'.
4177         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4178         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4179         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4180         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4181         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4182         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4183         `CHARSET_TO_BYTE2_TABLE(cs)'.
4184
4185         * char-ucs.h (char_byte_table): New type.
4186         (XCHAR_BYTE_TABLE): New macro.
4187         (XSETCHAR_BYTE_TABLE): New macro.
4188         (CHAR_BYTE_TABLE_P): New macro.
4189         (GC_CHAR_BYTE_TABLE_P): New macro.
4190         (struct Lisp_Char_Byte_Table): New structure.
4191         (get_char_code_table): New interface.
4192         (Emchar_to_byte_table): Deleted.
4193         (get_byte_from_character_table): Deleted.
4194         (struct Lisp_Charset): Add `encoding_table'; delete
4195         `to_byte1_table' and `to_byte2_table'.
4196         (CHARSET_ENCODING_TABLE): New macro.
4197         (CHARSET_TO_BYTE1_TABLE): Deleted.
4198         (CHARSET_TO_BYTE2_TABLE): Deleted.
4199         (XCHARSET_ENCODING_TABLE): New macro.
4200         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4201         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4202
4203 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4204
4205         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4206         `vietnamese-viscii-*'.
4207
4208 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4209
4210         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4211         (Qvietnamese_viscii_upper): New variable.
4212         (Fdefine_charset_alias): New function.
4213         (syms_of_mule_charset): Add new function `define-charset-alias'.
4214         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4215         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4216         `latin-viscii-*'.
4217
4218 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4221         (MAX_CHAR_OBS_94x94): New macro.
4222         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4223         for 94x94 sets.
4224
4225         * mule-charset.c (put_byte_from_character_table): Change unit size
4226         from 128 to 256.
4227         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4228         not defined.
4229         (Fmake_reverse_direction_charset): Modify dummy argument of
4230         `make_charset' for non-UTF-2000 environment.
4231
4232 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4233
4234         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4235
4236         * mule-charset.c (destroy_byte_from_character_table): New macro.
4237         (latin_jisx0201_to_ucs): Deleted.
4238         (latin_iso8859_2_to_ucs): Deleted.
4239         (latin_iso8859_3_to_ucs): Deleted.
4240         (latin_iso8859_4_to_ucs): Deleted.
4241         (latin_iso8859_9_to_ucs): Deleted.
4242         (latin_viscii_lower_to_ucs): Deleted.
4243         (latin_viscii_upper_to_ucs): Deleted.
4244         (mark_charset): Mark `cs->decoding_table'.
4245         (Fcharset_mapping_table): Fix DOC-string.
4246         (Fset_charset_mapping_table): New function.
4247         (syms_of_mule_charset): Add nwe function
4248         `set-charset-mapping-table'.
4249         (complex_vars_of_mule_charset): Don't setup and use
4250         `latin_*_to_ucs'.
4251
4252 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4253
4254         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4255         charset.
4256
4257 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4258
4259         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4260         (Vcharset_katakana_jisx0208): New variable.
4261         (Qhiragana_jisx0208): New variable.
4262         (Qkatakana_jisx0208): New variable.
4263         (make_charset): Add new argument `byte_offset'.
4264         (charset_get_byte1): Modify for new coded-charset definition; use
4265         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4266         `XCHARSET_BYTE_OFFSET'.
4267         (Fmake_charset): Modify for `make_charset'.
4268         (Fmake_reverse_direction_charset): Likewise.
4269         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4270         `katakana-jisx0208'.
4271         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4272         `.'  in font registry of charset `katakana-jisx0201',
4273         `latin-jisx0201', `vietnamese-viscii-lower' and
4274         `vietnamese-viscii-upper'; modify DOC-string of charset
4275         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4276         registry of charset `japanese-jisx0208' not to use font for JIS
4277         X0208:1990; add new charset `hiragana-jisx0208' and
4278         `katakana-jisx0208'.
4279
4280         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4281         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4282         (struct Lisp_Charset): Add `byte_offset'.
4283         (CHARSET_BYTE_OFFSET): New macro.
4284         (XCHARSET_UCS_MIN): New macro.
4285         (XCHARSET_UCS_MAX): New macro.
4286         (XCHARSET_CODE_OFFSET): New macro.
4287         (XCHARSET_BYTE_OFFSET): New macro.
4288         (MIN_CHAR_HIRAGANA): New macro.
4289         (MAX_CHAR_HIRAGANA): New macro.
4290         (MIN_CHAR_KATAKANA): New macro.
4291         (MAX_CHAR_KATAKANA): New macro.
4292         (MAKE_CHAR): Modify for new coded-charset definition; use
4293         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4294         `XCHARSET_BYTE_OFFSET'.
4295
4296 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4297
4298         * mule-charset.c (CHAR96): Deleted.
4299         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4300         <Lisp_Object>.
4301         (latin_iso8859_2_to_ucs): Likewise.
4302         (latin_iso8859_3_to_ucs): Likewise.
4303         (latin_iso8859_4_to_ucs): Likewise.
4304         (latin_iso8859_9_to_ucs): Likewise.
4305         (latin_viscii_lower_to_ucs): Likewise.
4306         (latin_viscii_upper_to_ucs): Likewise.
4307         (latin_tcvn5712_to_ucs): Commented out.
4308         (make_charset): Change type of argument `decoding_table' from
4309         <Emchar*> to <Lisp_Object> [vector of characters].
4310         (Fmake_charset): Modify for `make_charset'.
4311         (Fmake_reverse_direction_charset): Likewise.
4312         (Fcharset_mapping_table): New function in UTF-2000.
4313         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4314         UTF-2000.
4315         (complex_vars_of_mule_charset): Modify for type change of
4316         `*_to_ucs'; modify for `make_charset'.
4317
4318         * char-ucs.h (struct Lisp_Charset): Change type of
4319         `decoding_table' from <Emchar*> to <Lisp_Object>.
4320         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4321
4322 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4323
4324         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4325         error with non-UTF-2000-Mule.
4326
4327 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4328
4329         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4330         in lisp again].
4331         (Vcharset_chinese_cns11643_4): Likewise.
4332         (Vcharset_chinese_cns11643_5): Likewise.
4333         (Vcharset_chinese_cns11643_6): Likewise.
4334         (Vcharset_chinese_cns11643_7): Likewise.
4335         (Qchinese_cns11643_3): Likewise.
4336         (Qchinese_cns11643_4): Likewise.
4337         (Qchinese_cns11643_5): Likewise.
4338         (Qchinese_cns11643_6): Likewise.
4339         (Qchinese_cns11643_7): Likewise.
4340         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4341         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4342         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4343         (complex_vars_of_mule_charset): Likewise.
4344
4345 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4346
4347         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4348         96-set.
4349         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4350         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4351
4352 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4353
4354         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4355         0xFF60.
4356         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4357         (breakup_char_1): Likewise.
4358
4359         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4360         one of them includes the specified character.
4361
4362 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4363
4364         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4365
4366 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4367
4368         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4369
4370 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4371
4372         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4373         definition for non-UTF-2000 Mule.
4374         (latin_iso8859_3_to_ucs): Likewise.
4375         (latin_iso8859_4_to_ucs): Likewise.
4376         (latin_iso8859_9_to_ucs): Likewise.
4377         (latin_jisx0201_to_ucs): Likewise.
4378         (MIN_CHAR_THAI): Likewise.
4379         (MAX_CHAR_THAI): Likewise.
4380         (MIN_CHAR_GREEK): Likewise.
4381         (MAX_CHAR_GREEK): Likewise.
4382         (MIN_CHAR_HEBREW): Likewise.
4383         (MAX_CHAR_HEBREW): Likewise.
4384         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4385         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4386         (MIN_CHAR_CYRILLIC): Likewise.
4387         (MAX_CHAR_CYRILLIC): Likewise.
4388
4389 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4390
4391         * char-ucs.h (breakup_char_1): Use
4392         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4393         thai-tis620 and katakana-jisx0201 area.
4394
4395 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4396
4397         * char-ucs.h (breakup_char_1): Use
4398         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4399         area.
4400
4401         * text-coding.c (reset_encoding_stream): Fixed.
4402         (char_encode_ucs4): Delete `& 255'.
4403
4404         * char-ucs.h (breakup_char_1): Use
4405         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4406
4407 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4408
4409         * file-coding.c (Fmake_coding_system): Don't set up
4410         `codesys->fixed.size'.
4411         (encode_coding_no_conversion): Don't refer
4412         `str->codesys->fixed.size'.
4413
4414 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4415
4416         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4417         (latin_a_char_to_byte1): Deleted.
4418         (latin_a_char_to_byte2): Deleted.
4419
4420 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4421
4422         * mule-charset.c (make_charset): Add new argument `ucs_min',
4423         `ucs_max' and `code_offset'.
4424         (charset_get_byte1): New implementation [delete specific charset
4425         depended implementations].
4426         (Fmake_charset): Modify for `make_charset'.
4427         (Fmake_reverse_direction_charset): Likewise.
4428         (complex_vars_of_mule_charset): Likewise.
4429
4430         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4431         `code_offset'.
4432         (CHARSET_UCS_MIN): New macro.
4433         (CHARSET_UCS_MAX): New macro.
4434         (CHARSET_CODE_OFFSET): New macro.
4435         (MAKE_CHAR): Delete charset depended definitions [except
4436         katakana-jisx0201].
4437
4438 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4439
4440         * char-ucs.h (breakup_char_1): Use
4441         `Vdefault_coded_charset_priority_list' for C0-Controls,
4442         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4443
4444 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4445
4446         * char-ucs.h (charset_get_byte1): New function.
4447         (XCHARSET_GET_BYTE1): Deleted.
4448         (charset_get_byte2): New function.
4449         (XCHARSET_GET_BYTE2): Deleted.
4450         (Vdefault_coded_charset_priority_list): New external variable.
4451         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4452         `Vdefault_preferred_coded_charset_list'.
4453
4454         * mule-charset.c (charset_get_byte1): New function.
4455         (charset_get_byte2): New function.
4456         (Vdefault_coded_charset_priority_list): New variable.
4457         (vars_of_mule_charset): Add new variable
4458         `default-coded-charset-priority-list'.
4459
4460 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4461
4462         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4463         (XCHARSET_GET_BYTE2): New inline function.
4464         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4465         `XCHARSET_GET_BYTE2'.
4466
4467 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4468
4469         * mule-charset.c (make_charset): Initialize
4470         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4471         NULL if table is not defined.
4472
4473 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4474
4475         * text-coding.c (char_encode_shift_jis): Use
4476         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4477         `ucs_to_latin_jisx0201'.
4478
4479         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4480         (ucs_to_latin_iso8859_2): Deleted.
4481         (ucs_to_latin_iso8859_3): Deleted.
4482         (ucs_to_latin_iso8859_4): Deleted.
4483         (ucs_to_latin_iso8859_9): Deleted.
4484         (ucs_to_latin_viscii_lower): Deleted.
4485         (ucs_to_latin_viscii_upper): Deleted.
4486         (ucs_to_latin_tcvn5712): Deleted.
4487         (make_charset): Add new argument `decoding_table'; set up
4488         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4489         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4490         `decoding_table' is defined in UTF-2000.
4491         (Fmake_charset): Modify for `make_charset'.
4492         (Fmake_reverse_direction_charset): Likewise.
4493         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4494         and `GENERATE_96_SET'.
4495
4496         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4497         (ucs_to_latin_jisx0201): Deleted.
4498         (latin_iso8859_2_to_ucs): Deleted.
4499         (ucs_to_latin_iso8859_2): Deleted.
4500         (latin_iso8859_3_to_ucs): Deleted.
4501         (ucs_to_latin_iso8859_3): Deleted.
4502         (latin_iso8859_4_to_ucs): Deleted.
4503         (ucs_to_latin_iso8859_4): Deleted.
4504         (latin_iso8859_9_to_ucs): Deleted.
4505         (ucs_to_latin_iso8859_9): Deleted.
4506         (latin_viscii_lower_to_ucs): Deleted.
4507         (ucs_to_latin_viscii_lower): Deleted.
4508         (latin_viscii_upper_to_ucs): Deleted.
4509         (ucs_to_latin_viscii_upper): Deleted.
4510         (struct Lisp_Charset): Renamed `encoding_table' to
4511         `to_byte1_table'; add `to_byte2_table'.
4512         (CHARSET_DECODING_TABLE): New macro.
4513         (CHARSET_TO_BYTE1_TABLE): New macro.
4514         (CHARSET_TO_BYTE2_TABLE): New macro.
4515         (XCHARSET_DECODING_TABLE): New macro.
4516         (XCHARSET_TO_BYTE1_TABLE): New macro.
4517         (XCHARSET_TO_BYTE2_TABLE): New macro.
4518         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4519         tables.
4520         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4521         don't use `ucs_to_*' tables.
4522
4523 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4524
4525         * text-coding.c (Fmake_coding_system): Don't set up
4526         `codesys->fixed.size'.
4527         (encode_coding_no_conversion): Use `if' instead of `switch'.
4528
4529         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4530
4531 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4532
4533         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4534         (Fmake_charset): Modify for `make_charset'.
4535         (Fmake_reverse_direction_charset): Likewise.
4536         (complex_vars_of_mule_charset): Likewise.
4537
4538 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4539
4540         * text-coding.c (char_encode_shift_jis): Use table
4541         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4542
4543 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4544
4545         * text-coding.c (text_encode_generic): Use `if' instead of
4546         `switch'.
4547         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4548         decode JIS-Latin.
4549
4550 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4551
4552         * text-coding.c (encode_coding_sjis): Deleted.
4553         (char_encode_shift_jis): New function.
4554         (char_finish_shift_jis): New function.
4555         (reset_encoding_stream): Set up `encode_char' and `finish' for
4556         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4557         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4558         (char_encode_utf8): Treat `eol_type'.
4559
4560 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4561
4562         * file-coding.c (decode_coding_iso2022): Use
4563         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4564
4565 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4566
4567         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4568         to 0.7 (Hirano).
4569
4570 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4571
4572         * char-lb.h (CHAR_COLUMNS): New macro.
4573
4574 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4575
4576         * text-coding.c (char_encode_ucs4): New function.
4577         (char_finish_ucs4): New function.
4578         (encode_coding_ucs4): Deleted.
4579         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4580         (text_encode_generic): Delete local variable `charset' and `half'.
4581         (ucs_to_mule_table): Deleted.
4582         (mule_to_ucs_table): Deleted.
4583         (Fset_ucs_char): Deleted.
4584         (ucs_to_char): Deleted.
4585         (Fucs_char): Deleted.
4586         (Fset_char_ucs): Deleted.
4587         (Fchar_ucs): Deleted.
4588         (decode_ucs4): Deleted.
4589         (mule_char_to_ucs4): Deleted.
4590         (encode_ucs4): Deleted.
4591         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4592         (decode_coding_utf8): Likewise.
4593         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4594         (char_encode_iso2022): Fixed.
4595         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4596         `Fset_char_ucs' and `Fchar_ucs'.
4597         (complex_vars_of_file_coding): Don't initialize
4598         `ucs_to_mule_table'.
4599
4600         * objects-tty.c (tty_initialize_font_instance): Don't use
4601         `XCHARSET_COLUMNS'.
4602
4603         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4604         UTF-2000.
4605
4606         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4607         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4608
4609         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4610         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4611         (emchar_string_displayed_columns): Likewise.
4612
4613         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4614         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4615         (string_column_at_point): Likewise.
4616         (Fmove_to_column): Likewise.
4617
4618         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4619         `encoding_table' and `decoding_table'.
4620         (CHARSET_REP_BYTES): Deleted.
4621         (XCHARSET_REP_BYTES): Deleted.
4622         (XCHARSET_COLUMNS): Deleted.
4623         (CHAR_COLUMNS): New macro.
4624         (lookup_composite_char): Deleted unconditionally.
4625         (composite_char_string): Likewise.
4626
4627 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4628
4629         * char-ucs.h (Emchar_to_byte_table): New type.
4630         (get_byte_from_character_table): New function interface.
4631         (Vcharset_latin_jisx0201): New variable.
4632         (latin_jisx0201_to_ucs): New variable.
4633         (ucs_to_latin_jisx0201): New variable.
4634         (Vcharset_latin_iso8859_2): New variable.
4635         (latin_iso8859_2_to_ucs): New variable.
4636         (ucs_to_latin_iso8859_2): New variable.
4637         (Vcharset_latin_iso8859_3): New variable.
4638         (latin_iso8859_3_to_ucs): New variable.
4639         (ucs_to_latin_iso8859_3): New variable.
4640         (Vcharset_latin_iso8859_4): New variable.
4641         (latin_iso8859_4_to_ucs): New variable.
4642         (ucs_to_latin_iso8859_4): New variable.
4643         (Vcharset_latin_iso8859_9): New variable.
4644         (latin_iso8859_9_to_ucs): New variable.
4645         (ucs_to_latin_iso8859_9): New variable.
4646         (Vcharset_latin_viscii_lower): New variable.
4647         (latin_viscii_lower_to_ucs): New variable.
4648         (ucs_to_latin_viscii_lower): New variable.
4649         (Vcharset_latin_viscii_upper): New variable.
4650         (latin_viscii_upper_to_ucs): New variable.
4651         (ucs_to_latin_viscii_upper): New variable.
4652         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4653         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4654         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4655         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4656         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4657         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4658         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4659         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4660         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4661         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4662
4663         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4664         (Vcharset_latin_viscii_upper): New variable.
4665         (make_byte_from_character_table): New function.
4666         (put_byte_from_character_table): New function.
4667         (get_byte_from_character_table): New function.
4668         (CHAR96): New macro.
4669         (ucs_to_latin_jisx0201): New variable.
4670         (latin_jisx0201_to_ucs): New variable.
4671         (ucs_to_latin_iso8859_2): New variable.
4672         (latin_iso8859_2_to_ucs): New variable.
4673         (ucs_to_latin_iso8859_3): New variable.
4674         (latin_iso8859_3_to_ucs): New variable.
4675         (ucs_to_latin_iso8859_4): New variable.
4676         (latin_iso8859_4_to_ucs): New variable.
4677         (ucs_to_latin_iso8859_9): New variable.
4678         (latin_iso8859_9_to_ucs): New variable.
4679         (ucs_to_latin_viscii_lower): New variable.
4680         (latin_viscii_lower_to_ucs): New variable.
4681         (ucs_to_latin_viscii_upper): New variable.
4682         (latin_viscii_upper_to_ucs): New variable.
4683         (ucs_to_latin_tcvn5712): New variable.
4684         (latin_tcvn5712_to_ucs): New variable.
4685         (Qlatin_viscii_lower): New variable.
4686         (Qlatin_viscii_upper): New variable.
4687         (syms_of_mule_charset): Set up new symbol
4688         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4689         (complex_vars_of_mule_charset): Set up new charset
4690         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4691         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4692         `ucs_to_<CHARSET>' tables.
4693
4694 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4695
4696         * text-coding.c: New file.
4697
4698 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4699
4700         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4701
4702         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4703         (MAKE_CHAR): Modify for `ucs-bmp'.
4704         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4705         non-MULE characters of BMP.
4706
4707 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4708
4709         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4710         to 0.6.
4711
4712 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4713
4714         * lstream.h:
4715         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4716         - Include character.h for `CHAR_ASCII_P'.
4717
4718         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4719
4720         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4721         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4722
4723         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4724         (BYTE_C0_P): Likewise.
4725         (BYTE_C1_P): Likewise.
4726         (Lstream_get_emchar_1): Likewise.
4727         (Lstream_fput_emchar): Likewise.
4728         (Lstream_funget_emchar): Likewise.
4729         (copy_internal_to_external): Likewise.
4730         (copy_external_to_internal): Likewise.
4731
4732         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4733         (BYTE_C0_P): Likewise.
4734         (BYTE_C1_P): Likewise.
4735         (Lstream_get_emchar_1): Likewise.
4736         (Lstream_fput_emchar): Likewise.
4737         (Lstream_funget_emchar): Likewise.
4738         (copy_internal_to_external): Likewise.
4739         (copy_external_to_internal): Likewise.
4740
4741         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4742         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4743
4744         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4745         (BYTE_ASCII_P): Moved to mb-1byte.h.
4746
4747 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4748
4749         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4750
4751         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4752         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4753         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4754         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4755         (VALIDATE_CHARPTR_FORWARD): Likewise.
4756         (simple_charptr_emchar): Moved to mb-multibyte.h.
4757         (simple_set_charptr_emchar): Likewise.
4758         (simple_charptr_copy_char): Likewise.
4759         (non_ascii_charptr_emchar): Likewise.
4760         (non_ascii_set_charptr_emchar): Likewise.
4761         (non_ascii_charptr_copy_char): Likewise.
4762         (charptr_emchar): Moved to mb-*byte.h.
4763         (set_charptr_emchar): Likewise.
4764         (charptr_copy_char): Likewise.
4765
4766         * mb-1byte.h, mb-multibyte.h: New files.
4767
4768 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4769
4770         * mb-utf-8.h (MULTIBYTE): New macro.
4771         (MAX_EMCHAR_LEN): Moved from buffer.h.
4772         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4773
4774         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4775
4776         * mb-lb.h, multibyte.h: New files.
4777
4778         * char-1byte.h (Charset_ID): Moved from buffer.h.
4779         (MIN_LEADING_BYTE): Likewise.
4780         (LEADING_BYTE_ASCII): Likewise.
4781         (NUM_LEADING_BYTES): Likewise.
4782         (CHARSETP): Likewise.
4783         (CHARSET_BY_LEADING_BYTE): Likewise.
4784         (XCHARSET_LEADING_BYTE): Likewise.
4785         (XCHARSET_GRAPHIC): Likewise.
4786         (XCHARSET_COLUMNS): Likewise.
4787         (XCHARSET_DIMENSION): Likewise.
4788         (CHAR_CHARSET): Likewise.
4789         (CHAR_LEADING_BYTE): Likewise.
4790         (BREAKUP_CHAR): Likewise.
4791         (Vcharset_ascii): Likewise.
4792
4793         * buffer.h: Include multibyte.h unconditionally.
4794         (VALID_CHARPTR_P): Moved to multibyte.h.
4795         (ASSERT_VALID_CHARPTR): Likewise.
4796         (REAL_INC_CHARPTR): Likewise.
4797         (REAL_INC_CHARBYTIND): Likewise.
4798         (REAL_DEC_CHARPTR): Likewise.
4799         (INC_CHARPTR): Likewise.
4800         (INC_CHARBYTIND): Likewise.
4801         (DEC_CHARPTR): Likewise.
4802         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4803         (VALIDATE_CHARPTR_FORWARD): Likewise.
4804         (charptr_n_addr): Likewise.
4805         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4806         (simple_charptr_emchar): Moved to multibyte.h.
4807         (simple_set_charptr_emchar): Likewise.
4808         (simple_charptr_copy_char): Likewise.
4809         (non_ascii_charptr_emchar): Likewise.
4810         (non_ascii_set_charptr_emchar): Likewise.
4811         (non_ascii_charptr_copy_char): Likewise.
4812         (charptr_emchar): Likewise.
4813         (set_charptr_emchar): Likewise.
4814         (charptr_copy_char): Likewise.
4815         (charptr_emchar_n): Likewise.
4816         (Charset_ID): Moved to char-1byte.h.
4817         (Vcharset_ascii): Likewise.
4818         (CHAR_CHARSET): Likewise.
4819         (CHAR_LEADING_BYTE): Likewise.
4820         (LEADING_BYTE_ASCII): Likewise.
4821         (NUM_LEADING_BYTES): Likewise.
4822         (MIN_LEADING_BYTE): Likewise.
4823         (CHARSETP): Likewise.
4824         (CHARSET_BY_LEADING_BYTE): Likewise.
4825         (XCHARSET_LEADING_BYTE): Likewise.
4826         (XCHARSET_GRAPHIC): Likewise.
4827         (XCHARSET_COLUMNS): Likewise.
4828         (XCHARSET_DIMENSION): Likewise.
4829         (BREAKUP_CHAR): Likewise.
4830
4831 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4832
4833         * character.h: Add document about interface for characters.
4834
4835         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4836         (MAKE_CHAR): Delete comment about
4837         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4838         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4839         (BREAKUP_CHAR): Modify name of arguments.
4840         (CHAR_CHARSET): Modify name of argument.
4841
4842         * buffer.h: Delete document about Emchar accessors.
4843
4844 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4845
4846         * character.h (CHAR_INTP): Moved from buffer.h
4847         (CHAR_OR_CHAR_INTP): Likewise.
4848         (XCHAR_OR_CHAR_INT): Likewise.
4849         (CHECK_CHAR_COERCE_INT): Likewise.
4850
4851         * buffer.h (CHAR_INTP): Moved to character.h
4852         (CHAR_OR_CHAR_INTP): Likewise.
4853         (XCHAR_OR_CHAR_INT): Likewise.
4854         (CHECK_CHAR_COERCE_INT): Likewise.
4855
4856 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4857
4858         * character.h:
4859         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4860         - Include char-1byte.h, char-lb.h or char-ucs.h.
4861
4862         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4863
4864         * buffer.h: Include character unconditionally.
4865         (valid_char_p): Moved to char-*.h.
4866         (non_ascii_valid_char_p): Moved to char-lb.h.
4867
4868         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4869
4870 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4871
4872         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4873         in UTF-2000 because it is not ported yet and not to use
4874         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4875         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4876         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4877
4878         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4879         (CHAR_ASCII_P): Moved from character.h.
4880
4881         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4882         (CHAR_ASCII_P): Likewise.
4883         (CHAR_FIELD1_MASK): Deleted.
4884         (CHAR_FIELD2_MASK): Deleted.
4885         (CHAR_FIELD3_MASK): Deleted.
4886         (MAX_CHAR_BASIC_LATIN): New macro.
4887         (CHAR_FIELD1): Deleted.
4888         (CHAR_FIELD2_INTERNAL): Deleted.
4889         (CHAR_FIELD3_INTERNAL): Deleted.
4890         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4891         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4892         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4893         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4894         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4895         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4896         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4897         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4898         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4899         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4900         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4901         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4902         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4903         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4904         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4905         (MIN_CHAR_COMPOSITION): Deleted.
4906         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4907         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4908
4909 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4910
4911         * buffer.h: Include mb-utf-8.h in UTF-2000.
4912
4913         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4914
4915         * mb-utf-8.h: New file.
4916
4917 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4918
4919         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4920         instead of `int'.
4921
4922         * mule-charset.h, buffer.h (Charset_ID): New type.
4923
4924 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4925
4926         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4927         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4928         instead of `MULE_CHAR_PRIVATE_OFFSET',
4929         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4930         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4931         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4932
4933         * character.h (Vcharset_japanese_jisx0212): New variable
4934         definition.
4935
4936 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4937
4938         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4939         (charset_by_attributes): Delete array about direction.
4940         (latin_a_char_to_charset): New variable in UTF-2000.
4941         (latin_a_char_to_byte1): New variable in UTF-2000.
4942         (latin_a_char_to_byte2): New variable in UTF-2000.
4943         (Qucs_bmp): New variable.
4944         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4945         `Bufbyte'.
4946         (next_allocated_2_byte_leading_byte): Likewise.
4947         (non_ascii_set_charptr_emchar): Likewise.
4948         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4949         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4950         `charset_by_attributes'.
4951         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4952         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4953         and `CHARSET_BY_LEADING_BYTE'.
4954         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4955         `utf-2000-version' to `vars_of_mule_charset'.
4956         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4957         define `leading-code-private-11' in UTF-2000; move setting of
4958         `utf-2000-version' from `syms_of_mule_charset'.
4959         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4960         UTF-2000.
4961
4962         * character.h (Charset_ID): New type.
4963         (LEADING_BYTE_UCS_BMP): New macro.
4964         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4965         (CHARSET_ID_OFFSET_94): New macro.
4966         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4967         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4968         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4969         final-byte.
4970         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4971         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4972         (CHARSET_ID_OFFSET_96): New macro.
4973         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4974         CHARSET_ID_OFFSET_96 and final-byte.
4975         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4976         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4977         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4978         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4979         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4980         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4981         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4982         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4983         (LEADING_BYTE_THAI_TIS620): Likewise.
4984         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4985         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4986         (CHARSET_ID_OFFSET_94x94): New macro.
4987         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4988         CHARSET_ID_OFFSET_94x94 and final-byte.
4989         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4990         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4991         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4992         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4993         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4994         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4995         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4996         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4997         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4998         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4999         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5000         (CHARSET_TYPE_128X128): New macro.
5001         (CHARSET_TYPE_256X256): New macro.
5002         (XCHARSET_PRIVATE_P): Delete unconditionally.
5003         (charset_by_attributes): Delete array about direction.
5004         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5005         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5006         (MIN_CHAR_94): New macro.
5007         (MAX_CHAR_94): New macro.
5008         (MIN_CHAR_96): New macro.
5009         (MAX_CHAR_96): New macro.
5010         (MIN_CHAR_94x94): New macro.
5011         (MAX_CHAR_94x94): New macro.
5012         (MIN_CHAR_96x96): New macro.
5013         (MAX_CHAR_96x96): New macro.
5014         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5015         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5016         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5017         - 32)'.
5018         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5019         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5020         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5021         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5022         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5023         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5024         `XCHARSET_LEADING_BYTE' to make code-point.
5025         (latin_a_char_to_charset): New variable.
5026         (latin_a_char_to_byte1): New variable.
5027         (latin_a_char_to_byte2): New variable.
5028         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5029         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5030         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5031
5032         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5033         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5034         (find_charsets_in_emchar_string): Likewise.
5035         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5036
5037         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5038         `int'.
5039         (decode_coding_iso2022): Likewise.
5040
5041         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5042         of `unsigned char'.
5043
5044         * redisplay.c (redisplay_text_width_emchar_string): Use
5045         `Charset_ID' instead of `unsigned char'.
5046         (redisplay_frame_text_width_string): Likewise.
5047
5048         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5049         `unsigned char'.
5050
5051         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5052         instead of `unsigned char'.
5053         (face_cachel_charset_font_metric_info): Likewise.
5054
5055         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5056         (get_non_ascii_char_table_value): Likewise.
5057         (get_char_table): Likewise.
5058         (put_char_table): Likewise.
5059         (map_over_other_charset): Likewise.
5060         (map_char_table): Likewise.
5061
5062         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5063         instead of `unsigned char'.
5064
5065 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5066
5067         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5068         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5069
5070         * mule-charset.c (leading_code_private_11): Don't define in
5071         UTF-2000.
5072
5073         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5074         in UTF-2000 because it is not ported yet and not to use
5075         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5076
5077 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5078
5079         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5080
5081 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5082
5083         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5084         in UTF-2000.
5085
5086         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5087         of unsigned char to store leading-byte.
5088
5089         * chartab.c (get_non_ascii_char_table_value): Don't use
5090         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5091
5092         * file-coding.c (encode_coding_big5): Delete bogus implementation
5093         in UTF2000.
5094
5095         * character.h (LEADING_BYTE_*): Delete definition for
5096         non-UTF-2000.
5097         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5098         (LEADING_BYTE_PREFIX_P): Deleted.
5099         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5100         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5101         (BUFBYTE_LEADING_BYTE_P): Deleted.
5102         (CHARSET_PRIVATE_P): Deleted unconditionally.
5103         (rep_bytes_by_first_byte): Deleted unconditionally.
5104         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5105         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5106         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5107         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5108         (CHAR_FIELD2): Deleted.
5109         (CHAR_FIELD3): Deleted.
5110         (MAKE_CHAR): Delete definition for non-UTF-2000.
5111         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5112         (breakup_char_1): New implementation.
5113         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5114         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5115
5116 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5117
5118         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5119         condition.
5120
5121 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5122
5123         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5124         (CHARSET_PRIVATE_P): Likewise.
5125         (XCHARSET_PRIVATE_P): Likewise.
5126         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5127
5128         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5129         UTF2000.
5130         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5131
5132 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5133
5134         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5135         (NUM_LEADING_BYTES): Changed from 128 to 256.
5136         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5137         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5138         UTF2000.
5139         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5140
5141         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5142         UTF2000.
5143         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5144         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5145         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5146         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5147         (Qchinese_cns11643_3): New variable in UTF2000.
5148         (Qchinese_cns11643_4): New variable in UTF2000.
5149         (Qchinese_cns11643_5): New variable in UTF2000.
5150         (Qchinese_cns11643_6): New variable in UTF2000.
5151         (Qchinese_cns11643_7): New variable in UTF2000.
5152         (syms_of_mule_charset): Define `chinese-cns11643-3',
5153         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5154         and `chinese-cns11643-7' in UTF2000.
5155         (vars_of_mule_charset): Initialize
5156         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5157         + 1 in UTF2000.
5158         (complex_vars_of_mule_charset): Setup charset
5159         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5160         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5161
5162 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5163
5164         * mule-charset.c: Move setting for `leading-code-private-11' from
5165         `syms_of_mule_charset' to `vars_of_mule_charset'.
5166
5167 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5168
5169         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5170         and `NUM_LEADING_BYTES' in assert.
5171
5172 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5173
5174         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5175         instead of 128.
5176         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5177         `NUM_LEADING_BYTES' instead of 128.
5178
5179 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5180
5181         * mule-charset.h (charset_by_leading_byte): Use
5182         `NUM_LEADING_BYTES' instead of 128.
5183         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5184
5185         * mule-charset.c (charset_by_leading_byte): Use
5186         `NUM_LEADING_BYTES' instead of 128.
5187         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5188
5189         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5190         128.
5191
5192 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5193
5194         * mule-charset.c (syms_of_mule_charset): Update to
5195         0.4 (Shin-Imamiya).
5196
5197 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5198
5199         * file-coding.c (encode_coding_sjis): New implementation for
5200         UTF2000.  (decode_coding_sjis): Ditto.
5201
5202 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5203
5204         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5205         Don't define in UTF2000.
5206
5207         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5208         defined.
5209
5210         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5211         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5212         MULE.
5213
5214 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5215
5216         * config.h.in (CHAR_IS_UCS4): New macro.
5217
5218         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5219         conventional MULE representation.
5220         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5221
5222         * mule-charset.h: Reverted to original.
5223
5224         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5225         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5226         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5227
5228         * character.h: New file.
5229
5230         * file-coding.c (Fmake_coding_system): Set 1 to
5231         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5232         defined.
5233         (encode_coding_no_conversion): New implementation for UTF2000.
5234
5235         * file-coding.h (struct Lisp_Coding_System): Add new member
5236         `fixed.size'.
5237
5238 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5239
5240         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5241         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5242         (encode_coding_iso2022): New implementation for UTF2000.
5243
5244 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5245
5246         * mule-canna.c (c2mu): New implementation for UTF2000.
5247         (m2c): Likewise.
5248
5249 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5250
5251         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5252
5253 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5254
5255         * file-coding.c (reset_encoding_stream): Set 0 to
5256         `str->iso2022.current_char_boundary' in UTF2000.
5257         (encode_utf8): Don't define in UTF2000.
5258         (encode_coding_utf8): New implementation for UTF-8 representation
5259         of UTF2000.
5260         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5261
5262 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5263
5264         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5265
5266         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5267         UTF2000.
5268         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5269
5270         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5271
5272         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5273         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5274         as UTF-8 in UTF2000.
5275         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5276         (non_ascii_valid_char_p): Don't define in UTF2000.
5277         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5278         (Lstream_get_emchar_1): Likewise.
5279         (utf-2000-version): New variable in UTF2000.
5280
5281         * lread.c (read_escape): Add new reader `u'.
5282
5283         * insdel.c (three_to_one_table): Don't define in UTF2000.
5284         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5285         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5286         UTF2000.
5287         (bytind_to_bufpos_func): Likewise.
5288         (buffer_mule_signal_inserted_region): Likewise.
5289         (vars_of_insdel): Don't initialize `three_to_one_table'.
5290         (init_buffer_text): Use `buf->text->mule_size' instead of
5291         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5292         UTF2000.
5293
5294         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5295         UTF-8 representation in UTF2000.
5296         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5297         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5298         (decode_coding_iso2022): Don't define local variable `lb' in
5299         UTF2000; don't use LEADING_BYTE in UTF2000; use
5300         `DECODE_ADD_UCS_CHAR' in UTF2000.
5301         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5302
5303         * config.h.in (UTF2000): New macro.
5304
5305         * buffer.h (struct buffer_text): Add new member `mule_size' and
5306         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5307         (valid_char_p): Return always 1 in UTF2000.
5308         (MAX_EMCHAR_LEN): 6 in UTF2000.
5309         (three_to_one_table): Don't define in UTF2000.
5310         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5311         UTF2000.
5312         (real_bytind_to_bufpos): Likewise.
5313
5314         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5315
5316 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5317
5318         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5319         representation change.
5320         (Vutf_2000_version): New variable.
5321         (leading_code_private_11): New variable.
5322         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5323         `leading-code-private-11'.
5324
5325         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5326         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5327         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5328         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5329         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5330         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5331         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5332         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5333         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5334         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5335         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5336         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5337         (MIN_CHAR_GREEK): New macro.
5338         (MAX_CHAR_GREEK): New macro.
5339         (MIN_CHAR_CYRILLIC): New macro.
5340         (MAX_CHAR_CYRILLIC): New macro.
5341         (MIN_CHAR_HEBREW): New macro.
5342         (MAX_CHAR_HEBREW): New macro.
5343         (MIN_CHAR_THAI): New macro.
5344         (MAX_CHAR_THAI): New macro.
5345         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5346         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5347         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5348         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5349         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5350         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5351         (CHAR_FIELD2): New inline function.
5352         (CHAR_FIELD3): New inline function.
5353         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5354         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5355         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5356         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5357         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5358         (MIN_CHAR_COMPOSITION): Likewise.
5359         (CHAR_LEADING_BYTE): Modified for character representation change.
5360         (MAKE_CHAR): Likewise.
5361
5362         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5363         (Vcharset_greek_iso8859_7): Likewise.
5364         (Vcharset_cyrillic_iso8859_5): Likewise.
5365         (Vcharset_hebrew_iso8859_8): Likewise.
5366         (Vcharset_thai_tis620): Likewise.
5367         (Vcharset_katakana_jisx0201): Likewise.
5368
5369 2003-09-03  Vin Shelton <acs@xemacs.org>
5370
5371         * XEmacs 21.4.14 is released
5372
5373 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5374
5375         * config.h.in (REGEX_MALLOC): Make it configure'able.
5376
5377 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5378
5379         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5380         linking.
5381         * sysdll.c (dll_init):
5382         * sysdll.c (dll_open):
5383         * sysdll.c (dll_close):
5384         * sysdll.c (dll_function):
5385         * sysdll.c (dll_variable):
5386         * sysdll.c (dll_error):
5387         Add support for loading bundles using Darwin/MacOSX
5388         native API.
5389
5390 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5391
5392         * process.c (start-process-internal): Document coding systems.
5393
5394 2003-07-30  Jerry James  <james@xemacs.org>
5395
5396         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5397
5398 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5399
5400         * event-msw.c (mswindows_enqueue_mouse_button_event):
5401         * event-msw.c (mswindows_wnd_proc):
5402           enqueue button event when scrollwheel event isn't handled by 
5403           mswindows_handle_mousewheel_event, such as when the scrollbars
5404           are not showing.
5405
5406 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5407
5408         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5409
5410 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5411
5412         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5413
5414 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5415
5416         * regex.c (re_match_2_internal): Fix matching degenerate word
5417         boundaries.
5418
5419 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5420
5421         * XEmacs 21.4.13 is released
5422
5423 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5424
5425         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5426         * lisp.h (<inttypes.h>):
5427         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5428         the definition.
5429
5430 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5431
5432         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5433         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5434         Result: "temacs can only be run in -batch mode."
5435         Fix: Check xemacs executable candidate for directory-ness.
5436
5437 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5438
5439         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5440           they conflict with <sys/types.h>.
5441
5442 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5443
5444         * database.c: Berkeley DB wants __STDC__ to be defined.
5445
5446 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5447
5448         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5449
5450 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5451
5452         * process-unix.c (unix_send_process): Fix C++ compile error.
5453
5454 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5455
5456         * Added .dylib as an acceptable shared library file extension
5457         * to support MacOSX.
5458
5459 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5460
5461         * EmacsFrameP.h (EmacsFramePart):
5462         Kludge to allow compiling with Motif1, but linking with Motif2.
5463
5464 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5465
5466         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5467
5468
5469 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5470
5471         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5472
5473 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5474
5475         * sysdll.c: Included lisp.h to define needed alloca_array.
5476
5477 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5478
5479         Make XEmacs redisplay 10 times faster.
5480         If, that is, you're using a slow X connection and MoveOpaque.
5481         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5482         Use compress_motion = TRUE.
5483         * EmacsFrame.c (emacsFrameClassRec): 
5484         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5485         * EmacsManager.c (emacsManagerClassRec):
5486         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5487
5488 2003-01-30  Vin Shelton  <acs@xemacs.org>
5489
5490         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5491
5492 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5493
5494         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5495         Patch by Martin Buchholz.
5496
5497 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5498
5499         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5500         Thanks to icc for warning and Martin Buchholz for reporting.
5501
5502 2003-01-29  Vin Shelton <acs@xemacs.org>
5503
5504         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5505
5506         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5507         remember to multiply by the element size.
5508
5509 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5510
5511         * XEmacs 21.4.12 "Portable Code" is released.
5512
5513 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5514
5515         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5516         * s/cygwin.sc: new linker file.
5517
5518 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5519
5520         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5521
5522         * redisplay-x.c (x_output_string): Use X11-specified types.
5523         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5524         * emacs.c (__free_hook): Use typeof with Intel compiler.
5525         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5526
5527 2003-01-08  Andy Piper  <andy@xemacs.org>
5528
5529         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5530         reserve size during unexec().
5531
5532 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5533
5534         * process-unix.c (unix_create_process): Don't let outchannel block.
5535
5536 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5537
5538         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5539         Needed for IsBadReadPtr().
5540
5541 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5542
5543         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5544
5545 2002-12-14  Ben Wing  <ben@xemacs.org>
5546
5547         * callint.c: Declaration error.
5548         * dumper.c (pdump):
5549         * dumper.c (pdump_load): Warning fix.
5550         * process.c: GCPRO error.
5551         * glyphs.c (unmap_subwindow):
5552         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5553         * event-stream.c (maybe_kbd_translate): Wrong argument to
5554         character_to_event().
5555
5556         * alloc.c (garbage_collect_1):
5557         * emacs.c:
5558         * emacs.c (debug_can_access_memory):
5559         * emacs.c (fatal_error_signal):
5560         * emacs.c (mswindows_handle_hardware_exceptions):
5561         * emacs.c (main_1):
5562         * emacs.c (main):
5563         * emacs.c (assert_failed):
5564         * emacs.c (syms_of_emacs):
5565         * lisp.h:
5566         * print.c:
5567         * print.c (std_handle_out_va):
5568         * print.c (write_string_to_stdio_stream):
5569         * print.c (write_fmt_string):
5570         * print.c (printing_badness):
5571         * print.c (printing_major_badness):
5572         * print.c (print_internal):
5573         * print.c (debug_print_no_newline):
5574         * print.c (debug_backtrace):
5575         Be more defensive in handling bad values when printing.  Add code
5576         from trunk involving inhibit_non_essential_printing_operations.
5577         When going down or in debug_print(), don't do external conversion
5578         and such and try really, really hard when printing to avoid core
5579         dumping.  Add force-debugging-signal, debug_break().
5580
5581 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5582
5583         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5584         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5585
5586 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5587
5588         * database.c: Fix open_database. Berkeley DB API has changed in
5589         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5590
5591 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5592
5593         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5594
5595 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5596
5597         * event-Xt.c (Xt_timeout):
5598         (Xt_timeout_callback):
5599         (emacs_Xt_add_timeout):
5600         (emacs_Xt_remove_timeout):
5601         (Xt_timeout_to_emacs_event):
5602         Turn completed_timeouts from a stack into a queue.  Fixes
5603         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5604
5605 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5606
5607         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5608         * emacs.c (main): Assert that mmap'd allocation is disabled.
5609
5610 2002-10-14  Andy Piper  <andy@xemacs.org>
5611
5612         * glyphs-widget.c (layout_query_geometry): add in fiddle
5613         factor. Include border text in width layout calculation.
5614         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5615
5616 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5617
5618         * XEmacs 21.4.10 "Military Intelligence" is released.
5619
5620 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5621
5622         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5623         using the NAS private array SoundFileInfo that no longer exists in
5624         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5625         and earlier.  This is broken for some versions between 1.5a and
5626         1.5f.
5627
5628 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5629
5630         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5631
5632         * emacs.c (shut_down_emacs): Improve crash message.
5633
5634 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5635
5636         * file-coding.c (determine_real_coding_system): Check for coding
5637         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5638         shebangs and Python PEP 263.
5639
5640 2002-10-08  Andy Piper  <andy@xemacs.org>
5641
5642         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5643         if static sizes haven't been set.
5644
5645 2002-08-30  Mike Alexander  <mta@arbortext.com>
5646
5647         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5648         to close a socket.
5649
5650 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5651
5652         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5653
5654 2002-09-20  Mike Sperber <mike@xemacs.org>
5655
5656         (This partially gets back my patch from 2002-07-20 without the
5657         bug.)
5658         * callproc.c (child_setup): Remove Ben's comment noting confusion
5659         over the file descriptors >= 3: close_process_descs() doesn't
5660         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5661         * process-unix.c (unix_create_process): Call
5662         begin_dont_check_for_quit to inhibit unwanted interaction (and
5663         thus breaking of X event synchronicity) in the child.
5664
5665 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5666
5667         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5668         widget.
5669
5670 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5671
5672         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5673         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5674         the xemacs process did not exit, but looped infinitely here.  This
5675         fixes that problem.
5676
5677 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5678
5679         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5680         (find_context): Improve comments.
5681
5682         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5683         (re_match_2): An XCHAR_TABLE operation was missing.
5684
5685         Many of the following changes were inspired by Andy Piper's (now
5686         obsolete) patch to make syntax-table text property lookup optional.
5687
5688         [Documentation]
5689
5690         * syntax.h (top level): Document semantics of syntax flags.
5691         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5692         * syntax.c, syntax.h (top level): Document syntax cache better in
5693         comments.
5694
5695         [Instrument syntax caching (temporary change)]
5696
5697         * syntax.h (enum syntax_cache_statistics_functions, struct
5698         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5699         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5700         * syntax.c (scan_words, Fforward_comment, scan_lists,
5701         Fbackward_prefix_characters):
5702         * font-lock.c (find_context):
5703         Use them to instrument syntax caching. 
5704         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5705         syntax_cache_statistics_function_names): New type and variables.
5706         * syntax.c (update_syntax_cache): Update and report statistics.
5707
5708         [Major syntax cache optimizations]
5709
5710         syntax.c (lookup_syntax_properties): Default off.
5711
5712         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5713         * syntax.c (update_syntax_cache):
5714         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5715
5716         [Minor syntax cache optimizations and code clarifications]
5717
5718         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5719         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5720         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5721         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5722         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5723         (Code clarification.)
5724
5725         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5726         scan_lists): Compute code from syncode, use Boolean macros instead
5727         of redundant masking operations.  (Code clarification; any decent
5728         compiler can do this optimization.)
5729
5730         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5731         for clarity.
5732
5733         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5734         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5735         use F*_single_property_change instead of F*_extent_change.
5736         Currently F*_single_property_change is _much_ less efficient.
5737
5738         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5739         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5740         syntax_cache.object properly, don't leave Qt or Qnil.
5741         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5742         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5743         tests for Qt or Qnil.
5744
5745 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5746
5747         * redisplay.c (point_in_line_start_cache): 
5748         * extents.c (print_extent_1):
5749         Fix warnings.
5750
5751         * extents.c (Fset_extent_property): Document `syntax-table' property.
5752
5753         * extents.h (Fnext_single_property_change): EXFUN it.
5754
5755 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5756
5757         * search.c (clear_unused_search_regs): New static function.
5758         (search_buffer): 
5759         (simple_search): 
5760         (boyer_moore):
5761         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5762         Minor clarifications in comments.
5763
5764         * regex.c (re_match_2_internal): Ensure no stale submatches.
5765
5766 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5767
5768         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5769
5770 2002-08-29  Jerry James  <james@xemacs.org>
5771
5772         * lisp.h: structrures -> structures.
5773
5774 2002-06-03  Andy Piper  <andy@xemacs.org>
5775
5776         * frame.c (frame_conversion_internal): add conversion appropriate
5777         for setting frame dimensions in pixels.
5778
5779         * console.h (struct console_methods): add device-specific widget
5780         layout functions.
5781
5782         * emacs.c (main_1): initialize glyph vars.
5783
5784         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5785         (handle_focus_event_2): new function. Allow focus to
5786         be set to a particular window and widget.
5787         (enqueue_focus_event): new function. Create a
5788         synthetic focus event.
5789         (emacs_Xt_handle_magic_event): call
5790         handle_focus_event_2.
5791
5792         * frame.c (Fset_frame_pixel_height): new function. Allow
5793         pixel-based sizing. Does the right thing on character-oriented
5794         displays.
5795         (Fset_frame_pixel_width): ditto.
5796         (Fset_frame_pixel_size): ditto.
5797         (syms_of_frame): declare.
5798
5799         * general-slots.h: add :vertically-justify and
5800         :horizontally-justify.
5801
5802         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5803         (mswindows_widget_border_width): new function.
5804         (mswindows_combo_box_instantiate): set border widths.
5805         (console_type_create_glyphs_mswindows): declare.
5806
5807         * glyphs-widget.c:
5808         (check_valid_justification): allow vertical and horizontal
5809         justification.
5810         (widget_border_width): new function. Call device methods.
5811         (widget_instance_border_width): ditto.
5812         (logical_unit_height): new function. Determine the height of a
5813         logical-unit. Logical units are intended to provide grid-like
5814         layout for subcontrols in a layout. If the layout is
5815         :vertically-justify top then subcontrols will be positioned on
5816         logical-unit boundaries, thus allowing adjacent subcontrols to
5817         line up.
5818         (widget_logical_unit_height): ditto for widgets.
5819         (redisplay_widget): misc cleanup.
5820         (widget_spacing): new function. Call device specific
5821         methods. Intended to be the default gap between adjacent widgets.
5822         (widget_query_geometry): use new spacing functions to determine
5823         appropriate geometry.
5824         (initialize_widget_image_instance): initialize horizontal and
5825         vertical justification.
5826         (widget_instantiate): use logica-units where appropriate for
5827         sizing large widgets.
5828         (button_query_geometry): use widget_instance_border_width.
5829         (tree_view_query_geometry): ditto.
5830         (tab_control_query_geometry): ditto.
5831         (edit_field_query_geometry): new function.
5832         (layout_update): pick up :justify, :horizontally-justify and
5833         :vertically-justify none of which worked previously. :justify is
5834         used as a fallback for both horizontal and vertical justification.
5835         (layout_query_geometry): use logical units to size appropriately.
5836         (layout_layout): ditto.
5837         (Fwidget_logical_to_character_width): new function. Allow users to
5838         convert from logical units to characters so that frame sizes can
5839         be set appropriately.
5840         (Fwidget_logical_to_character_height): ditto.
5841         (syms_of_glyphs_widget): declare.
5842         (image_instantiator_edit_fields): add edit_field_query_geometry.
5843         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5844         :horizontally-justify.
5845         (specifier_vars_of_glyphs_widget): new function. Declare
5846         Vwidget_border_width which is not yet used.
5847
5848         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5849         (x_widget_border_width): new function.
5850         (x_widget_instantiate): create a sensible name for widgets.
5851         (console_type_create_glyphs_x): declare x_widget_border_width.
5852
5853         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5854         (struct Lisp_Image_Instance): add :vertically-justify and
5855         :horizontally-justify.
5856         (LAYOUT_JUSTIFY_TOP): new.
5857         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5858         (ROUND_UP): new macro. Round argument up to next integral
5859         interval.
5860
5861         * redisplay-output.c (redisplay_output_layout): misc formatting.
5862
5863         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5864
5865 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5866
5867         * XEmacs 21.4.9 "Informed Management" is released.
5868
5869 2002-08-19  Andy Piper  <andy@xemacs.org>
5870
5871         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5872         win32 format.
5873
5874         * realpath.c (xrealpath): normalize drive spec also so that dir
5875         sep chars are not mixed on cygwin.
5876
5877 2002-08-06  Jerry James  <james@xemacs.org>
5878
5879         * window.c (Fsplit_window): Count only half of the divider width
5880         against the left window when splitting horizontally. 
5881
5882 2002-06-24  Andy Piper  <andy@xemacs.org>
5883
5884         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5885         toolbar was cleared.
5886
5887         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5888         function. Split out from mswindows_output_frame_toolbars.
5889         (mswindows_output_frame_toolbars): move clear pieces to
5890         mswindows_output_frame_toolbars.
5891
5892         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5893         out from gtk_output_frame_toolbars.
5894         (gtk_output_frame_toolbars): move clear pieces to
5895         gtk_clear_frame_toolbars.
5896
5897         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5898         the frame is cleared. How this ever worked before is a mystery.
5899         (x_output_frame_toolbars): Only output toolbars.
5900         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5901
5902         * gutter.c (update_gutter_geometry):
5903         Mark frame layout changed.
5904         (update_frame_gutter_geometry, update_frame_gutters):
5905         Respect frame_layout_changed.
5906
5907         * console.h (struct console_methods): add
5908         clear_frame_toolbars_method.
5909
5910         * redisplay.c (redisplay_frame): call
5911         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5912
5913         * toolbar.h: declare update_frame_toolbars_geometry.
5914
5915         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5916         out from update_frame_toolbars.  Call clear_frame_toolbars.
5917         (update_frame_toolbars): only output, do not change geometry.
5918
5919         * redisplay.c: add frame_layout_changed.
5920
5921         * redisplay.h: add frame_layout_changed.
5922         (CLASS_RESET_CHANGED_FLAGS): set it.
5923         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5924         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5925         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5926
5927         * device.h (struct device): add frame_layout_changed.
5928         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5929
5930         * frame.h (struct frame): add frame_layout_changed.
5931         (MARK_FRAME_LAYOUT_CHANGED): new.
5932
5933 2002-06-30  Mike Alexander  <mta@arbortext.com>
5934
5935         * event-msw.c (mswindows_need_event): Don't wait for a new message
5936         if the queue is not empty.  Suggested by Paul Moore.
5937
5938 2002-06-12  Andy Piper  <andy@xemacs.org>
5939
5940         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5941         for printing on accurately.
5942
5943 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5944
5945         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5946         WM_ACTIVATE message. Make sure that the frame is visible if the
5947         window is visible. This seemss to fix the problem where XEmacs
5948         appears to freeze after switching desktops with certain virtual
5949         window managers.
5950         (debug_output_mswin_message): Added code to output message
5951         parameters for WM_WINDOWPOSCHANGED, 
5952         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5953
5954 2002-05-25  Andy Piper  <andy@xemacs.org>
5955
5956         * select-x.c (vars_of_select_x): Fix docstring of
5957         x-selection-strict-motif-ownership
5958
5959 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5960
5961         * keymap.c (get_keymap):
5962         Add comment about do_autoload GCPROs own args.
5963
5964 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5965
5966         * bytecode.c (execute_optimized_program): check_opcode ifdef
5967         ERROR_CHECK_BYTE_CODE.
5968
5969 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5970
5971         Thanks to Ben Wing and Michael Sperber.
5972
5973         * eval.c (Fcommand_execute):
5974         (Feval):
5975         (Ffuncall):
5976         (Fmacroexpand_internal):
5977         (function_argcount):
5978         callint.c (Fcall_interactively):
5979         Add comment about do_autoload GCPROs own args.
5980
5981         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5982
5983         * eval.c (Ffuncall): Extra braces to placate GCC.
5984
5985 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5986
5987         * backtrace.h (grow_specpdl):
5988         (SPECPDL_RESERVE):
5989         * EmacsFrame.c (EmacsFrameSetValues):
5990         * eval.c (grow_specpdl):
5991         * ExternalShell.c (hack_event_masks_1):
5992         * glyphs-x.c (convert_EImage_to_XImage): 
5993         (x_finalize_image_instance):
5994         * ralloc.c (page_size):
5995         (r_alloc_sbrk):
5996         * xgccache.c (gc_cache_hash):
5997         Fix unsigned comparison warnings.
5998
5999 2002-07-29  Jerry James  <james@xemacs.org>
6000
6001         * lread.c (locate_file): Any nonnegative return value indicates
6002         success if MODE is nonnegative.
6003
6004 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6005
6006         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6007         argument. 
6008
6009 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6010
6011         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6012
6013         * dumper.c (pdump_get_indirect_count):
6014         (pdump_scan_by_alignment):
6015         (pdump_dump_root_struct_ptrs):
6016         (pdump_dump_rtables):
6017         (pdump_dump_root_objects):
6018         (pdump):
6019         * nas.c (WaveOpenDataForReading):
6020         * fns.c (print_bit_vector):
6021         * font-lock.c (SINGLE_SYNTAX_STYLE):
6022         * glyphs.c (check_for_ignored_expose):
6023         (find_matching_subwindow):
6024         * glyphs-eimage.c:
6025         * imgproc.c (get_histogram):
6026         * redisplay.c (point_in_line_start_cache):
6027         * redisplay-output.c (redisplay_unmap_subwindows):
6028         * symbols.c (defsymbol_massage_name_1):
6029         (defkeyword_massage_name):
6030         (deferror_massage_name_and_message):
6031         * redisplay-x.c (x_output_string): 
6032         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6033         * frame.h (struct frame):
6034         * filelock.c (current_lock_owner):
6035         * doprnt.c (emacs_doprnt_1):
6036         * lisp.h (struct Lisp_Bit_Vector):
6037         (DO_REALLOC):
6038         Fix warnings.
6039
6040 2002-02-13  Ben Wing  <ben@xemacs.org>
6041
6042         * event-stream.c (reset_key_echo):
6043         * event-stream.c (reset_this_command_keys):
6044         * event-stream.c (execute_command_event):
6045         If console is dead as a result of C-x 5 0, then post-command stuff
6046         needs to be careful and do only non-console-specific stuff.
6047
6048 2002-07-01  Mike Sperber <mike@xemacs.org>
6049
6050         * process-unix.c (unix_send_process): Mark coding_outstream as
6051         non-open upon SIGPIPE.
6052
6053         * event-stream.c (Fnext_event): Reorder switch cases to something
6054         that makes sense.
6055
6056 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6057
6058         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6059         Don't bogusly reinitialize ascii_character property.
6060
6061 2002-07-08  Mike Sperber <mike@xemacs.org>
6062
6063         * process.c (Fstart_process_internal): Do error checking before we
6064         fork off the child, so the child can't muck with the state of the
6065         parent.
6066
6067 2002-07-08  Mike Sperber <mike@xemacs.org>
6068
6069         * ralloc.c (init_ralloc): Allocate properly for pdump.
6070
6071 2002-06-12  Andy Piper  <andy@xemacs.org>
6072
6073         * glyphs.c (query_string_geometry): check the string.
6074
6075         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6076         widget names.
6077
6078 2002-06-17  Jerry James  <james@xemacs.org>
6079
6080         * sysdll.c: Remove RTLD_GLOBAL initialization.
6081         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6082
6083 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6084
6085         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6086
6087 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6088
6089         * sysdep.c (sys_rename): Make sys_rename work for the case where
6090         Windows rename sets errno to EACCES if target file exists.
6091
6092 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6093
6094         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6095         Fix detection of metric units to work on Win95
6096
6097 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6098
6099         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6100
6101 2002-04-25  Andy Piper  <andy@xemacs.org>
6102
6103         * redisplay.c (create_text_block): Remove extra comment trailer.
6104
6105 2002-04-24  Andy Piper  <andy@xemacs.org>
6106
6107         * redisplay.c (create_text_block): Don't actually add propagation
6108         data if the line ends after we have added a glyph.
6109
6110 2002-04-22  Andy Piper  <andy@xemacs.org>
6111
6112         * extents.c (extent_fragment_update): check for glyphs we have
6113         previously displayed.
6114         * extents.c (print_extent_1): warning removal.
6115         * extents.h: change prototype.
6116         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6117         widths correctly for wide glyphs.
6118         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6119         * redisplay.c (prop_type): add PROP_GLYPH.
6120         * redisplay.c (struct prop_block): add glyph type
6121         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6122         to the propagation data.
6123         * redisplay.c (create_text_block): if there is a glyph in the
6124         propagation data use it to salt extent_fragment_update.
6125         * redisplay.c (create_string_text_block): ditto.
6126
6127 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6128
6129         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6130         * redisplay-output.c (compare_runes): Compare them.
6131         * redisplay.c: Update copyright date.
6132         * redisplay.c (pos_data): Add need_baseline_computation field.
6133         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6134         need_baseline_computation; zero yoffset. Set max_pixmap_height
6135         for all pixmaps, not just automatically positioned ones.
6136         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6137         * redisplay.c (calculate_baseline): New, compute textual baseline.
6138         * redisplay.c (add_glyph_rune): Call them.
6139         * redisplay.c (create_text_block): Likewise.
6140         * redisplay.c (create_overlay_glyph_block): Likewise.
6141         * redisplay.c (add_margin_runes): Likewise.
6142         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6143
6144         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6145         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6146         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6147         * redisplay-msw.c (mswindows_output_string): Likewise.
6148         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6149         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6150         * redisplay-x.c (x_output_display_block): Likewise.
6151
6152 2002-03-28  Ben Wing  <ben@xemacs.org>
6153
6154         * redisplay.c: Fixed bug in redisplay
6155         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6156         and down of the lines, since they're bigger than the line
6157         size. (It was seen most obviously when there's a horizontal scroll
6158         bar, e.g. do C-h a glyph or something like that.) The problem was
6159         that the glyph-contrib-p setting on glyphs was ignored even if it
6160         was set properly, which it wasn't until now.
6161
6162 2002-04-24  Andy Piper  <andy@xemacs.org>
6163
6164         * lisp.h (Dynarr_end): Fix definition.
6165
6166 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6167
6168         * redisplay.c (mark_redisplay): Remove call to
6169         update_frame_window_mirror.
6170
6171 2001-11-15  Andy Piper  <andy@xemacs.org>
6172
6173         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6174         cygwin (again).
6175
6176 2002-02-13  Andy Piper  <andy@xemacs.org>
6177
6178         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6179         we did in fact enqueue the XM_MAPFRAME event.
6180
6181 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6182
6183         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6184         to fix problem switching between virtual desktops under virtuawin
6185         virtual window manager.
6186
6187 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6188
6189         * event-msw.c: Typo fix.
6190         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6191         magic XM_MAPFRAME event has been sent.
6192
6193 2001-11-23  Andy Piper  <andy@xemacs.org>
6194
6195         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6196
6197 2001-11-21  Andy Piper  <andy@xemacs.org>
6198
6199         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6200         mouse events outside the frame.
6201
6202 2002-03-20  Andy Piper  <andy@xemacs.org>
6203
6204         * menubar-msw.c (mswindows_popup_menu): warning removal.
6205         * dialog-msw.c (dialog_popped_down): ditto.
6206
6207 2001-12-11  Andy Piper  <andy@xemacs.org>
6208
6209         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6210         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6211         popup_up_p.
6212         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6213         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6214         * menubar-msw.c (mswindows_popup_menu): ditto.
6215
6216 2001-10-29  Andy Piper  <andy@xemacs.org>
6217
6218         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6219         cancels.
6220
6221 2002-01-03  Andy Piper  <andy@xemacs.org>
6222
6223         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6224         letters.
6225         (xrealpath): ditto.
6226
6227 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6228
6229         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6230         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6231         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6232         Detect and handle case where machine is set up for metric units
6233
6234 2002-04-02  Andy Piper  <andy@xemacs.org>
6235
6236         * dired-msw.c (mswindows_get_files): 
6237         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6238         completely handled by XEmacs. Suggested by Thomas Vogler
6239         <mail@thomas-vogler.de>.
6240
6241 2001-11-14  Andy Piper  <andy@xemacs.org>
6242
6243         * nt.c (REG_ROOT): change registry key to XEmacs.
6244
6245 2002-04-27  Andy Piper  <andy@xemacs.org>
6246
6247         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6248
6249 2002-04-26  Andy Piper  <andy@xemacs.org>
6250
6251         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6252         behavior.
6253
6254 2002-03-14  Mike Alexander  <mta@arbortext.com>
6255
6256         * event-msw.c (mswindows_unwait_process): New, remove process from
6257         wait list
6258         * process-nt.c (nt_finalize_process_data): Call
6259         mswindows_unwait_process
6260         * console-msw.h: Declare mswindows_unwait_process
6261
6262 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6263
6264         * editfns.c (Fdecode_time):
6265         (Fformat_time_string):
6266         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6267         (make_time): Warning elimination (change arg name).
6268
6269 2001-11-24  Andy Piper  <andy@xemacs.org>
6270
6271         * window.c (Fsplit_window): Doc return type.
6272
6273 2002-04-01  Andy Piper  <andy@xemacs.org>
6274
6275         * emacs.c (Fkill_emacs): Only output message box in interactive
6276         mode.
6277
6278 2002-04-26  Andy Piper  <andy@xemacs.org>
6279  
6280         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6281         cygwin.
6282
6283 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6284
6285         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6286         bit platform.
6287
6288 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6289
6290         * XEmacs 21.4.8 "Honest Recruiter" is released.
6291
6292 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6293
6294         Supersedes 2002-04-17 patch.
6295
6296         * process.h (PROCESS_LIVE_P): Use the process status as
6297         evidence of health, not the state of the input stream.
6298         (PROCESS_READABLE_P): Say if the process is readable
6299         from. (It may be dead nonetheless.)
6300         (CHECK_READABLE_PROCESS): Test for that condition.
6301
6302         * process.c (create_process): Use PROCESS_READABLE_P.
6303         (read_process_output, set_process_filter): Likewise.
6304
6305         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6306         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6307
6308         This code is #if 0'd, this is not the time to add new functions:
6309
6310         * process.c (Fprocess_readable_p): Report readability status.
6311         * process.c (Qprocess_readable_p): New, associated symbol...
6312         * process.c (syms_of_process): ... initialize it.
6313
6314 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6315
6316         * XEmacs 21.4.7 "Economic Science" is released.
6317
6318 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6319
6320         * process.h (PROCESS_LIVE_P): Use the process status as
6321         evidence of health, not the state of the input stream.
6322
6323 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6324
6325         * sysdep.c (sys_siglist): change "signum" to "signal"
6326
6327 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6328
6329         * s/darwin.h: New file.
6330         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6331         
6332 2002-04-23  Andreas Jaeger  <aj@suse.de>
6333
6334         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6335         which use lib64 for 64-bit libs.
6336         (START_FILES): Likewise.
6337
6338 2002-02-11  Mike Sperber  <mike@xemacs.org>
6339
6340         * device-x.c: 
6341         (x_IO_error_handler):
6342         (x_init_device): Temporarily keep device in static variable
6343         `device_being_initialized' so we can recover gracefully from
6344         internal XOpenDevice failure.  (XOpenDevice is documented to
6345         return NULL on failure, but sometimes calls the IO error handler
6346         instead.)
6347
6348 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6349
6350         * dired.c (Ffile_name_all_completions): Change documentation --
6351         remove reference to completion-ignored-extensions.
6352         * dired.c (vars_of_dired): Change documentation for
6353         completion-ignored-extensions -- remove reference to
6354         file-name-all-completions.
6355
6356 2002-03-06  Jerry James  <james@xemacs.org>
6357
6358         * emodules.c (emodules_load): Fix multiple loading of same module.
6359
6360 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6361         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6362         RTLD_LAZY to avoid incorrect symbol binding when using nested
6363         shared libraries on Solaris.
6364
6365 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6366
6367         * fileio.c (Ffind_file_name_handler): Improve docstring.
6368
6369 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6370
6371         * fns.c (Fmapconcat): Improve docstring.
6372
6373 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6374
6375         * device-gtk.c: Add prototype for
6376         emacs_gtk_selection_clear_event_handle.
6377         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6378         selection.  Setup signal handler for "selection_clear_event"
6379         (emacs_gtk_selection_clear_event_handle).
6380
6381         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6382         other applications owning the clipboard (based on
6383         x_handle_selection_clear).
6384
6385 2001-12-23  William M. Perry  <wmperry@gnu.org>
6386
6387         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6388         
6389 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6390
6391         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6392
6393 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6394
6395         * XEmacs 21.4.6 "Common Lisp" is released.
6396
6397 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6398
6399         * search.c (Freplace_match): Add missing sub-expression functionality.
6400
6401         * buffer.c (decode_buffer): Add a check for pointer type to
6402         decode_buffer, before gcc's CSE optimization reorders a
6403         dereference in front of the allow_string test.
6404
6405 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6406
6407         * window.c (window_loop): Fix bug that sometimes prevented
6408         window_loop() from iterating across multiple devices.  Also, at
6409         Ben's request, changed infloop-detecting code to abort() instead
6410         of silently terminating window_loop().
6411
6412 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6413
6414         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6415         * editfns.c (make_time): New function.
6416         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6417         * lisp.h (make_time): Prototype and comment it.
6418         * dired.c (wasteful_word_to_lisp): Deprecate.
6419         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6420
6421 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6422
6423         * fileio.c (auto_save_1): Use current coding system, not
6424         escape-quoted.
6425
6426 2001-11-13  Ben Wing  <ben@xemacs.org>
6427
6428         * window.c:
6429         * window.c (window_truncation_on):
6430         * window.c (syms_of_window):
6431         truncate-partial-width-windows should respect the buffer being
6432         displayed, like other redisplay vars.
6433
6434 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6435
6436         * event-stream.c (Fread_key_sequence): save current buffer.
6437
6438 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6439
6440         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6441
6442 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6443
6444         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6445
6446 2001-10-26  Mike Alexander  <mta@arbortext.com>
6447
6448         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6449
6450 2001-10-25  Andy Piper  <andy@xemacs.org>
6451
6452         * ChangeLog:
6453         * dialog-msw.c (handle_directory_proc): new function.
6454          (handle_directory_dialog_box): new fucntion.
6455          (handle_file_dialog_box): use new directory dialog support.
6456          (mswindows_make_dialog_box_internal): ditto.
6457         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6458         handling.
6459         (mswindows_find_frame): make global.
6460         * fileio.c (Fexpand_file_name): build fix.
6461         * general-slots.h: add Qdirectory.
6462         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6463         handling.
6464         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6465         cygwin not leaving win32 paths unchanged.
6466         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6467         cygwin runtime to do path conversion.
6468         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6469         (syms_of_win32): add new function.
6470         * window.c (window_loop): build fix.
6471
6472 2001-10-15  Andy Piper  <andy@xemacs.org>
6473
6474         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6475
6476 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6477
6478         * XEmacs 21.4.5 "Civil Service" is released.
6479
6480 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6481
6482         * glyphs-x.c: Force buffer-tab highlight update when moving the
6483         buffer, avoiding an ugly black border, used for keyboard focus
6484         indication, on a widget that can never have keyboard focus, the
6485         buffer tab.
6486
6487 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6488
6489         * process-unix.c (unix_open_multicast_group): Remove too much
6490         conversion between host and network byte order.
6491
6492 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6493
6494         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6495         before replacing them.
6496
6497         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6498         operation.
6499
6500         * src/window.c (undedicate_windows): Use it.
6501         * src/window.h: Add prototype.
6502
6503 2001-09-17  Ben Wing  <ben@xemacs.org>
6504
6505         * fileio.c (normalize_filename):
6506         * fileio.c (Fexpand_file_name):
6507         Fix various C++ compile errors in Andy's recent code.
6508         
6509         * callint.c (Fcall_interactively):
6510         * editfns.c (Ftemp_directory):
6511         * editfns.c (Fuser_full_name):
6512         * emacs.c (argmatch):
6513         * lread.c (locate_file_map_suffixes):
6514         * redisplay-x.c (x_ring_bell):
6515         Fix sign-compare warnings.
6516         
6517 2001-09-08  Andy Piper  <andy@xemacs.org>
6518
6519         * fileio.c (normalize_filename): copied from nt.c
6520         * (Ffile_name_directory): enable win32 paths under cygwin.
6521         * (Ffile_name_nondirectory): ditto.
6522         * (directory_file_name): ditto.
6523         * (Fexpand_file_name): ditto.
6524         * (Ffile_truename): ditto.
6525         * (Fsubstitute_in_file_name): ditto.
6526         * (Ffile_name_absolute_p): ditto.
6527         * (Ffile_readable_p): ditto.
6528
6529 2001-09-08  Andy Piper  <andy@xemacs.org>
6530
6531         * device-msw.c (mswindows_finish_init_device): remove dde
6532         initialization.
6533         * device-msw.c (mswindows_init_dde): factor out from
6534         mswindows_finish_init_device()
6535         * device-msw.c (init_mswindows_very_early): new function
6536         initialize but don't enable dde.
6537         * emacs.c (main_1): call init_mswindows_very_early.
6538         * event-msw.c:
6539         * event-msw.c (mswindows_dde_callback): only execute when we are
6540         ready.
6541         * symsinit.h: declare init_mswindows_very_early.
6542
6543 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6544
6545         [sjt: This has been in 21.5 for months with no complaints.]
6546
6547         * console.h (struct console_methods): Added flags member.
6548         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6549         (CONMETH_IMPL_FLAG):
6550         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6551         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6552
6553         * device.c (window_system_pixelated_geometry): Use the above macros.
6554
6555         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6556         implememntation flag.
6557         * device.h (DEVICE_DISPLAY_P): Use it.
6558
6559         * frame.c (delete_frame_internal): Use the above macro.
6560
6561         * redisplay.c (redisplay_device): Use it.
6562         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6563         (redisplay_frame): Ditto.
6564
6565         * device-msw.c (mswindows_device_implementation_flags): Removed.
6566         (msprinter_device_implementation_flags): Removed.
6567         (console_type_create_device_mswindows): Removed references to
6568         implementation_flags methods, set implementation flags here.
6569         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6570
6571         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6572         (console_type_create_device_gtk): Removed method declaration.
6573         Added commented out statement which semantically matches the
6574         commented out statement in the above removed method.
6575
6576 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6577
6578         The attached patch fixes a few warnings. 
6579
6580         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6581         * src/frame-gtk.c: guard against GNOME calls in GTK only
6582         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6583         * src/select-gtk.c: prototype lisp_to_time
6584
6585 2001-06-08  Ben Wing  <ben@xemacs.org>
6586
6587         ------ gc-in-window-procedure fixes ------
6588         
6589         * alloc.c:
6590         * alloc.c (struct post_gc_action):
6591         * alloc.c (register_post_gc_action):
6592         * alloc.c (run_post_gc_actions):
6593         * alloc.c (garbage_collect_1):
6594         Create "post-gc actions", to avoid those dreaded "GC during window
6595         procedure" problems.
6596
6597         * event-msw.c:
6598         Abort, clean and simple, when GC in window procedure.  We want
6599         to flush these puppies out.
6600
6601         * glyphs-msw.c:
6602         * glyphs-msw.c (finalize_destroy_window):
6603         * glyphs-msw.c (mswindows_finalize_image_instance):
6604         Use a post-gc action when destroying subwindows.
6605
6606         * lisp.h:
6607         Declare register_post_gc_action().
6608
6609         * scrollbar-msw.c:
6610         * scrollbar-msw.c (unshow_that_mofo):
6611         Use a post-gc action when unshowing scrollbar windows, if in gc.
6612
6613         * redisplay.c (mark_redisplay):
6614         Add comment about the utter evilness of what's going down here.
6615
6616         ------ cygwin setitimer fixes ------
6617         
6618         * Makefile.in.in (sheap_objs):
6619         * Makefile.in.in (profile_objs):
6620         * Makefile.in.in (objs):
6621         Compile profile.c only when HAVE_SETITIMER.
6622         
6623         * nt.c (mswindows_sigset):
6624         * nt.c (mswindows_sighold):
6625         * nt.c (mswindows_sigrelse):
6626         * nt.c (mswindows_sigpause):
6627         * nt.c (mswindows_raise):
6628         * nt.c (close_file_data):
6629         Style fixes.
6630         
6631         * nt.c:
6632         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6633         
6634         * profile.c:
6635         * profile.c (Fstart_profiling):
6636         * profile.c (Fstop_profiling):
6637         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6638         instead of just plain setitimer().
6639         
6640         * signal.c:
6641         * signal.c (set_one_shot_timer):
6642         * signal.c (alarm):
6643         Define qxe_setitimer() as an encapsulation around setitimer() --
6644         call setitimer() directly unless Cygwin or MS Win, in which case
6645         we use our simulated version in win32.c.
6646         
6647         * systime.h:
6648         * systime.h (struct itimerval):
6649         * systime.h (ITIMER_REAL):
6650         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6651         comment about "qxe" and the policy regarding encapsulation.
6652
6653         * win32.c:
6654         * win32.c (setitimer_helper_proc):
6655         * win32.c (setitimer_helper_period):
6656         * win32.c (setitimer_helper):
6657         * win32.c (mswindows_setitimer):
6658         Move setitimer() emulation here, so Cygwin can use it.
6659         Rename a couple of functions and variables to be longer and more
6660         descriptive.  In setitimer_helper_proc(), send the signal
6661         using either mswindows_raise() or (on Cygwin) kill().  If for
6662         some reason we are still getting lockups, we'll change the kill()
6663         to directly invoke the signal handlers.
6664
6665         ------ windows shell fixes ------
6666         
6667         * callproc.c:
6668         * ntproc.c:
6669         Comments about how these two files must die.
6670
6671         * callproc.c (init_callproc):
6672         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6673         not just COMSPEC. (more correct and closer to FSF.) Don't
6674         force a value for SHELL into the environment. (Comments added
6675         to explain why not.)
6676         
6677         * nt.c (init_user_info):
6678         Don't shove a fabricated SHELL into the environment.  See above.
6679
6680 2001-06-01  Ben Wing  <ben@xemacs.org>
6681
6682         * Makefile.in.in (ldflags):
6683         eliminate that pesky "defaulting to 00401000" warning.
6684         * nt.h:
6685         eliminate warnings.
6686
6687 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6688
6689         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6690         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6691
6692 2001-04-24  Jerry James <james@xemacs.org>
6693
6694         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6695         correct order.
6696
6697 2001-06-01  Ben Wing  <ben@xemacs.org>
6698
6699         * event-msw.c (debug_mswin_messages):
6700         conditionalize the messages that were causing compile errors.
6701         (if only macros could generate #ifdef statements ...)
6702
6703 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6704
6705         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6706
6707 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6708
6709         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6710
6711 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6712
6713         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6714         * process-unix.c (unix_canonicalize_host_name):
6715         sysdep.c (init_system_name):
6716         Use it to conditionally support IPv6 canonicalization.
6717
6718 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6719
6720         * event-msw.c:
6721         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6722
6723 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6724
6725         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6726         attempt is made to scroll when no scroll bar is available.
6727
6728 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6729
6730         * input-method-motif.c (XIM_delete_frame): New callback.
6731         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6732         got deleted from 21.4.3.)
6733
6734 2001-06-01  Ben Wing  <ben@xemacs.org>
6735
6736         * nt.c (mswindows_utime):
6737         * nt.c (close_file_data):
6738         fix off-by-one-indirection error.
6739
6740 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6741
6742         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6743         because set_file_times() now takes Lisp_Object path, instead of
6744         char*.
6745         * nt.c: Include buffer.h.
6746         * nt.c (convert_from_time_t): New.
6747         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6748         not set mtime correctly.
6749         * nt.h: Declare mswindows_utime().
6750         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6751         path, instead of char*.
6752         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6753
6754 2001-05-30  Ben Wing  <ben@xemacs.org>
6755
6756         For 21.4:
6757
6758         (Stephen, just take all event-msw.c patches.  This includes
6759         the "iconify" fix below.)
6760
6761         * event-msw.c:
6762         * event-msw.c (mswindows_dequeue_dispatch_event):
6763         * event-msw.c (assert):
6764         * event-msw.c (emacs_mswindows_quit_p):
6765         * event-msw.c (debug_mswin_messages):
6766         * event-msw.c (debug_output_mswin_message):
6767         * event-msw.c (vars_of_event_mswindows):
6768         Fix yet more problems with C-g handling.
6769         Implement debug-mswindows-events.
6770         
6771 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6772
6773         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6774         
6775 2001-05-23  Ben Wing  <ben@xemacs.org>
6776
6777         * event-msw.c (winsock_writer):
6778         * event-msw.c (winsock_closer):
6779         prior kludgy code was clobbering the buffer, thinking it was
6780         "unused" space to store an unneeded return value; instead, use
6781         the variable we've already got staring us in the face.
6782
6783 2001-05-17  Andy Piper  <andy@xemacs.org>
6784
6785         * sysfile.h: don't assume that file attributes are boolean
6786
6787 2001-05-23  Ben Wing  <ben@xemacs.org>
6788
6789         * device-msw.c (msprinter_init_device):
6790         signal an error rather than crash with an unavailable network
6791         printer (from Mike Alexander).
6792         
6793         * event-msw.c:
6794         * event-msw.c (struct winsock_stream):
6795         * event-msw.c (winsock_writer):
6796         * event-msw.c (winsock_closer):
6797         * event-msw.c (make_winsock_stream_1):
6798         cleanup headers.  fix (hopefully) an error with data corruption
6799         when sending to a network connection.
6800
6801         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6802         to handle the ~user prefix by (a) always assuming we're referencing
6803         ourselves and not even verifying the user -- hence any file with
6804         a tilde as its first char is invalid! (b) if there wasn't a slash
6805         following the filename, the pointer was set *past* the end of
6806         file and we started reading from uninitialized memory.  Now we
6807         simply treat these as files, always.
6808
6809         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6810         
6811 2001-05-19  Ben Wing  <ben@xemacs.org>
6812
6813         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6814
6815         * process-nt.c:
6816         * process-nt.c (vars_of_process_nt):
6817         remove unused mswindows-quote-process-args.  rec for 21.4.
6818         
6819 2001-05-12  Ben Wing  <ben@xemacs.org>
6820
6821         * event-msw.c (mswindows_dde_callback):
6822         * event-msw.c (mswindows_wnd_proc):
6823         eliminate cygwin warnings.
6824
6825 2001-05-06  Ben Wing  <ben@xemacs.org>
6826
6827         * console-msw.h:
6828         * device-msw.c:
6829         * device-msw.c (print_dialog_worker):
6830         * device-msw.c (mswindows_handle_print_dialog_box):
6831         * device-msw.c (syms_of_device_mswindows):
6832         * dialog-msw.c (mswindows_make_dialog_box_internal):
6833         * general-slots.h:
6834         implement printing the selection when it's selected.
6835
6836 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6837
6838         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6839
6840 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6841
6842         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6843         EMACS_INT is signed.
6844
6845 2001-04-15  Michael Lausch  <mla@1012surf.net>
6846
6847         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6848         gtk_widget_request_size() to give scrollbar >0 width for
6849         GTK >1.2.8.
6850
6851 2001-05-30  William M. Perry  <wmperry@gnu.org>
6852
6853         * event-gtk.c: Check for buttons as modifier keys.
6854
6855 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6856
6857         * s\mingw32.h:
6858         Properly find MinGW's <process.h> inside Cygwin's restructured
6859         include directories.  Don't try to include <cygwin/version.h>
6860         since we are dropping support for MinGW in versions of Cygwin
6861         earlier than b21.
6862         * nt.c:
6863         Drop support for MinGW in versions of Cygwin before b21.
6864         * sysdep.c:
6865         Properly find MinGW's <process.h> inside Cygwin's restructured
6866         include directories.
6867         * syswindows.h:
6868         Drop support for MinGW in versions of Cygwin before b21.
6869         * unexcw.c:
6870         Even though a.out.h is no longer detected by configure, allow
6871         MinGW to use it until we figure out how to do the job with Win32.
6872
6873 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6874
6875         * syntax.c (find_start_of_comment):
6876         Fix `unbalanced parentheses' bug when dealing with mixed comment
6877         styles in c++/java/etc. mode
6878
6879 2001-05-29  Mike Alexander  <mta@arbortext.com>
6880
6881         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6882         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6883
6884 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6885
6886         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6887
6888 2001-03-31  Mike Sperber <mike@xemacs.org>
6889
6890         * search.c (Freplace_match): Support FSF-style specification of
6891         match subexpression when applied to a buffer.
6892
6893 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6894
6895         * event-stream.c (is_scrollbar_event): add missing semicolon
6896
6897 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6898
6899         * Makefile.in.in: Use TAR macro instead of hardcoding
6900           tar.  Allows use of GNU tar instead of system tar
6901
6902 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6903
6904         * event-stream.c (is_scrollbar_event): add missing semicolon
6905
6906 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6907
6908         * XEmacs 21.4.3 "Academic Rigor" is released.
6909
6910 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6911
6912         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6913
6914 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6915
6916         * buffer.c (Vcase_fold_search): Remove obsolete
6917           comment about non ASCII case-fold-search.  This
6918           bug has been fixed by case-table changes.
6919
6920 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6921
6922         * event-msw.c: Restore include of events-mod.h.
6923
6924 2001-04-22   zhaoway  <zw@debian.org>
6925
6926         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6927         !HAVE_SCROLLBARS.
6928
6929 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6930
6931         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6932
6933 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6934
6935         * mule-charset.c (Fmake_charset): Add missing else.
6936
6937 2001-04-23  Ben Wing  <ben@xemacs.org>
6938
6939         * event-msw.c (FAKE_MOD_QUIT):
6940         * event-msw.c (mswindows_dequeue_dispatch_event):
6941         * event-msw.c (mswindows_wnd_proc):
6942         * event-msw.c (emacs_mswindows_quit_p):
6943         Get critical quit working.
6944
6945 2001-05-05  Ben Wing  <ben@xemacs.org>
6946
6947         * console-msw.h:
6948         * device-msw.c:
6949         * device-msw.c (mswindows_get_default_margin):
6950         * frame-msw.c (mswindows_size_frame_internal):
6951         * frame-msw.c (msprinter_init_frame_1):
6952         * frame-msw.c (vars_of_frame_mswindows):
6953         Change top/bottom margin defaults to 0.5 inches.
6954
6955 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6956
6957         Fix link error with gcc 3.0 on Linux.
6958         * terminfo.c (UP): Remove.
6959         * terminfo.c (BC): Remove.
6960         * terminfo.c (PC): Remove.
6961         They weren't used, and in any case, these symbols should be
6962         defined in the *library*.
6963
6964 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6965
6966         * s/aix4.h: Fix crash with xlc -O3.
6967         Improve comment explaining how -O3 works.
6968
6969 2001-04-15  Ben Wing  <ben@xemacs.org>
6970
6971         * event-stream.c:
6972         * event-stream.c (Fnext_event):
6973         * event-stream.c (is_scrollbar_event):
6974         * event-stream.c (execute_command_event):
6975         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6976         crash' problem.  His fix introduces other problems.  We filter
6977         out scrollbar events specifically, making them somewhat invisible
6978         to command-building, and not appearing in `this-command-keys'.
6979         More work is still needed (see comments in event-stream.c), but
6980         this fixes all the major problems.
6981
6982 2001-04-20  Ben Wing  <ben@xemacs.org>
6983
6984         * .cvsignore: Added stuff for Windows.
6985
6986 2001-04-28  Ben Wing  <ben@xemacs.org>
6987
6988         * buffer.c (Ferase_buffer):
6989         * editfns.c (buffer_insert1):
6990         * editfns.c (Finsert_before_markers):
6991         * editfns.c (Finsert_string):
6992         * editfns.c (Finsert_char):
6993         * editfns.c (Fdelete_region):
6994         * editfns.c (Fwiden):
6995         * editfns.c (Fnarrow_to_region):
6996         remove bogus lines setting zmacs_region_stays to 0.
6997         
6998 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6999
7000         * process-unix.c (unix_open_network_stream): If connect() fails
7001         invalidate file descriptor after closing it.
7002
7003 2001-03-08  Mike Alexander  <mta@arbortext.com>
7004
7005         * event-msw.c (mswindows_need_event_in_modal_loop):
7006         Don't dispatch a message if we didn't get one.
7007         (mswindows_need_event):
7008         Terminate the correct process when one exits instead of the first
7009         one on Vprocess_list and look for process termination when in
7010         mswindows_protect_modal_loop.
7011
7012 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7013
7014         * XEmacs 21.4.1 "Copyleft" is released.
7015
7016 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7017
7018         * input-method-motif.c (XIM_delete_frame): New callback.
7019         (XIM_init_frame): Register it.
7020
7021 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7022
7023         * XEmacs 21.4.0 "Solid Vapor" is released.
7024
7025 2001-04-15  Ben Wing  <ben@xemacs.org>
7026
7027         * cmdloop.c (call_command_loop):
7028         Fix braino in bit-rotting code.
7029         
7030 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7031
7032         * extents.c (Fset_extent_endpoints): Force creation of extent info
7033         in buffer_or_string.
7034
7035         * extents.c (process_extents_for_insertion_mapper): Correctly
7036         check for open-open zero-length extents.
7037
7038 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7039
7040         * lisp.h: New typedefs Memory_count, Element_count.
7041         * regex.c:
7042         * regex.h:
7043         Sign-compare warning elimination: several unsigned -> signed.
7044         Based on work by Ben Wing <ben@xemacs.org>.
7045
7046 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7047
7048         * XEmacs 21.2.47 "Zephir" is released.
7049
7050 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7051
7052         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7053
7054 2001-04-03  Mike Sperber <mike@xemacs.org>
7055
7056         * search.c: Revert previous patch due because of release.
7057
7058 2001-03-30  Ben Wing  <ben@xemacs.org>
7059
7060         * s\cygwin32.h:
7061         Add missing killpg prototype.
7062
7063         * elhash.c:
7064         Add a comment about fixing problems when a new entry is added
7065         while mapping.
7066
7067         * frame-msw.c (mswindows_init_frame_1):
7068         Fix compile warnings.
7069
7070         * menubar.c (vars_of_menubar):
7071         Provide `menu-accelerator-support' to indicate that we properly
7072         support %_ in menu specifications, so that package code can
7073         conditionalize on this (and remove %_ from menu specifications
7074         on older versions).
7075
7076         * event-msw.c:
7077         * scrollbar-msw.c:
7078         * scrollbar-msw.c (can_scroll):
7079         * scrollbar-msw.h:
7080         Fix handling of mouse wheel under Windows to follow standards --
7081         now scrolls window under pointer, not selected window.
7082
7083 2001-03-31  Mike Sperber <mike@xemacs.org>
7084
7085         * search.c (Freplace_match): Support FSF-style specification of
7086         match subexpression when applied to a buffer.
7087
7088 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7089
7090         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7091         function to modify KEYMAP, so map over a copy of the hash table.
7092
7093 2001-03-21  Martin Buchholz <martin@xemacs.org>
7094
7095         * XEmacs 21.2.46 "Urania" is released.
7096
7097 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7098
7099         * realpath.c (xrealpath): Make file-truename work with symlinks to
7100         /cygdrive paths on cygwin. Always lowercase drive-letters on
7101         native windows.
7102         (cygwin_readlink): Don't try to find canonical filename unless
7103         file exists.
7104
7105 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7106
7107         * ChangeLog: Log GTK merge.
7108
7109         * dumper.c:
7110         * select-x.c:
7111         * specifier.c:
7112         * symeval.h:
7113         Revert gratuitous whitespace changes from GTK merge.
7114
7115         * emacs.c: Document end of complex #ifdef @ l. 1495.
7116
7117
7118 2001-03-12  Andy Piper  <andy@xemacs.org>
7119
7120         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7121         have to do likewise.
7122
7123 2001-03-12  Andy Piper  <andy@xemacs.org>
7124
7125         * sysdep.c: we only support mingw now.
7126
7127 2001-03-09  Andy Piper  <andy@xemacs.org>
7128
7129         * unexcw.c (copy_executable_and_dump_data_section): making approx
7130         overrun a warning only.
7131
7132 2001-03-10  William M. Perry  <wmperry@aventail.com>
7133
7134         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7135         satisfy Stephen's identical-after-cpp plea.
7136
7137 2001-03-02  Ben Wing  <ben@xemacs.org>
7138
7139         * cmds.c:
7140         * cmds.c (Fforward_char):
7141         * syntax.c:
7142         * window.c:
7143
7144         Augment documentation of the most common motion commands to make
7145         note of the shifted-motion support.
7146         
7147 2001-03-02  Ben Wing  <ben@xemacs.org>
7148
7149         * nt.c (mswindows_fstat):
7150         * nt.c (mswindows_stat):
7151         * search.c (boyer_moore):
7152         Fix compile warnings under Windows.
7153         
7154         * sysdep.c (sys_readdir):
7155         Fix buggy filename-conversion code under Mule.
7156
7157 2001-03-09  William M. Perry  <wmperry@aventail.com>
7158
7159         * Makefile.in.in:
7160         * config.h.in:
7161         * console.c:
7162         * console.h:
7163         * device.c:
7164         * device.h:
7165         * dragdrop.c:
7166         * emacs.c:
7167         * event-stream.c:
7168         * events.c:
7169         * events.h:
7170         * faces.c:
7171         * frame.h:
7172         * general-slots.h:
7173         * glyphs.c:
7174         * gutter.c:
7175         * inline.c:
7176         * lisp.h:
7177         * lrecord.h:
7178         * make-src-depend:
7179         * redisplay-output.c:
7180         * redisplay.c:
7181         * symsinit.h:
7182         * sysfile.h:
7183         * toolbar.c:
7184         * window.c:
7185         The Great GTK Merge.
7186
7187         * ChangeLog.GTK:
7188         * console-gtk.c:
7189         * console-gtk.h:
7190         * device-gtk.c:
7191         * emacs-marshals.c:
7192         * emacs-widget-accessors.c:
7193         * event-gtk.c:
7194         * frame-gtk.c:
7195         * gccache-gtk.c:
7196         * gccache-gtk.h:
7197         * glade.c:
7198         * glyphs-gtk.c:
7199         * glyphs-gtk.h:
7200         * gtk-glue.c:
7201         * gtk-xemacs.c:
7202         * gtk-xemacs.h:
7203         * gui-gtk.c:
7204         * gui-gtk.h:
7205         * menubar-gtk.c:
7206         * native-gtk-toolbar.c:
7207         * objects-gtk.c:
7208         * objects-gtk.h:
7209         * redisplay-gtk.c:
7210         * scrollbar-gtk.c:
7211         * scrollbar-gtk.h:
7212         * select-gtk.c:
7213         * toolbar-gtk.c:
7214         * ui-byhand.c:
7215         * ui-gtk.c:
7216         * ui-gtk.h:
7217         The Great GTK Merge: new files.
7218
7219 2001-02-26  Ben Wing  <ben@xemacs.org>
7220
7221         Reapplied Lstream change.
7222
7223 2001-02-26  Ben Wing  <ben@xemacs.org>
7224
7225         Undid the last change, since it is more controversial than I
7226         thought.  It should be back in at some point soon.
7227         
7228 2001-02-25  Ben Wing  <ben@xemacs.org>
7229
7230         * buffer.c:
7231         * callproc.c (Fold_call_process_internal):
7232         * event-msw.c (ntpipe_slurp_reader):
7233         * event-msw.c (ntpipe_shove_writer):
7234         * event-msw.c (winsock_reader):
7235         * event-msw.c (winsock_writer):
7236         * file-coding.c:
7237         * file-coding.c (detect_eol_type):
7238         * file-coding.c (detect_coding_type):
7239         * file-coding.c (determine_real_coding_system):
7240         * file-coding.c (Fdetect_coding_region):
7241         * file-coding.c (decoding_reader):
7242         * file-coding.c (decoding_writer):
7243         * file-coding.c (mule_decode):
7244         * file-coding.c (Fdecode_coding_region):
7245         * file-coding.c (encoding_reader):
7246         * file-coding.c (encoding_writer):
7247         * file-coding.c (mule_encode):
7248         * file-coding.c (Fencode_coding_region):
7249         * file-coding.c (detect_coding_sjis):
7250         * file-coding.c (decode_coding_sjis):
7251         * file-coding.c (encode_coding_sjis):
7252         * file-coding.c (detect_coding_big5):
7253         * file-coding.c (decode_coding_big5):
7254         * file-coding.c (encode_coding_big5):
7255         * file-coding.c (detect_coding_ucs4):
7256         * file-coding.c (decode_coding_ucs4):
7257         * file-coding.c (encode_coding_ucs4):
7258         * file-coding.c (detect_coding_utf8):
7259         * file-coding.c (decode_coding_utf8):
7260         * file-coding.c (encode_coding_utf8):
7261         * file-coding.c (detect_coding_iso2022):
7262         * file-coding.c (decode_coding_iso2022):
7263         * file-coding.c (encode_coding_iso2022):
7264         * file-coding.c (decode_coding_no_conversion):
7265         * file-coding.c (encode_coding_no_conversion):
7266         * glyphs-x.c (write_lisp_string_to_temp_file):
7267         * gpmevent.c (tty_get_foreign_selection):
7268         * lisp.h:
7269         * lstream.c:
7270         * lstream.c (Lstream_flush_out):
7271         * lstream.c (Lstream_adding):
7272         * lstream.c (Lstream_write_1):
7273         * lstream.c (Lstream_write):
7274         * lstream.c (Lstream_raw_read):
7275         * lstream.c (Lstream_read_more):
7276         * lstream.c (Lstream_read):
7277         * lstream.c (Lstream_unread):
7278         * lstream.c (Lstream_fputc):
7279         * lstream.c (stdio_reader):
7280         * lstream.c (stdio_writer):
7281         * lstream.c (filedesc_reader):
7282         * lstream.c (filedesc_writer):
7283         * lstream.c (lisp_string_reader):
7284         * lstream.c (struct fixed_buffer_stream):
7285         * lstream.c (make_fixed_buffer_input_stream):
7286         * lstream.c (make_fixed_buffer_output_stream):
7287         * lstream.c (fixed_buffer_reader):
7288         * lstream.c (fixed_buffer_writer):
7289         * lstream.c (struct resizing_buffer_stream):
7290         * lstream.c (resizing_buffer_writer):
7291         * lstream.c (dynarr_writer):
7292         * lstream.c (lisp_buffer_reader):
7293         * lstream.c (lisp_buffer_writer):
7294         * lstream.h:
7295         * lstream.h (lstream_implementation):
7296         * lstream.h (struct lstream):
7297         * md5.c (Fmd5):
7298         * process-nt.c (nt_send_process):
7299         * process-unix.c (unix_send_process):
7300         
7301         Correct Lstream lossage due to mixing of signed and unsigned
7302         quantities.  All Lstream uses of size_t and ssize_t are now a
7303         single signed data type Lstream_data_count.  This fixes problems
7304         under Windows with sending large quantities of data to a process,
7305         and may well fix other subtle bugs.
7306
7307 2001-02-23  Martin Buchholz <martin@xemacs.org>
7308
7309         * XEmacs 21.2.45 "Thelxepeia" is released.
7310
7311 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7312
7313         * lisp-union.h (XSETINT): 
7314         (XSETCHAR):
7315         (XSETOBJ): 
7316         Reverse previous change of 2001-02-06.
7317
7318 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7319
7320         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7321         buffers.
7322         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7323         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7324         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7325         * regex.c (POS_AS_IN_BUFFER): removed
7326         * regex.c (re_search_2):
7327         * regex.c (re_match_2):
7328         Don't use an offset of 1 when calculating buffer positions, since
7329         `BI_BUF_BEGV' does it already.
7330
7331 2001-02-18  Wim Dumon  <wim@easics.be>
7332
7333         * insdel.c (prepare_to_modify_buffer): Also check for
7334         supersession when clash-detection is enabled. 
7335
7336 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7337
7338         * regex.c (re_match_2_internal):
7339         Convert temp characters from 'const unsigned char' to 're_char'.
7340         Fix crashing bug with extended characters under mule.
7341         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7342         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7343         font-lock, pdump, and new syntax-table code.
7344         * syntax.c (find_start_of_comment):
7345         (find_end_of_comment):
7346         (forward-comment):
7347         Fix crashing bugs involving moving beyond end of buffer.
7348         * syntax.c (find_start_of_comment):
7349         Fixed logic to allow proper detection of cases where the same
7350         character is used to end both a two-char comment start and a
7351         two-char comment end sequence. Fixes `(forward-comment -1)'.
7352         * syntax.c (find_start_of_comment):
7353         Return position just past last comment-end character for all cases
7354         (previously was only done for two-char comment-end sequences).
7355         * syntax.c (forward-comment):
7356         Take value returned from `find_end_of_comment', rather than
7357         incrementing it.
7358         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7359         Properly deal with BUFFERP (syntax_cache.object)
7360
7361 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7362
7363         * alloc.c (Fgarbage_collect): 
7364         * alloc.c (make_bit_vector_from_byte_vector):
7365         -Wsign-compare-correctness.
7366
7367 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7368
7369         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7370         (XSETCHAR): Likewise.
7371         (XSETOBJ): Likewise.
7372
7373 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7374
7375         * mule-canna.c (canna-func-delete_previous): 
7376         Rename to canna-func-delete-previous.
7377
7378 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7379
7380         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7381
7382 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7383
7384         * font-lock.c (find_context): Fix C++ compile errors introduced by
7385         recent patch
7386
7387 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7388
7389         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7390         pragma, but earlier ones barf on the same pragma.
7391
7392 2001-02-06  Mike Sperber <mike@xemacs.org>
7393
7394         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7395         `configure-mule-lisp-directory'.
7396
7397 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7398
7399         Make sure dump-id.c is compiled in the same way as other .c's.
7400         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7401         * dump-id.h: Remove.
7402         * emacs.c: Move dump-id.h into dumper.h.
7403         * dumper.h: Move dump-id.h into dumper.h.
7404         * Makefile.in.in:
7405         Use standard .c.o rule for building dump-id.o.
7406         Remove preprocessor flags from link command.
7407         Add dump-id.o to ${otherobjs} if PDUMP.
7408
7409 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7410
7411         Port FSF 20.7 syntax table improvements.
7412         * syntax.c.
7413         * syntax.h.
7414
7415         Fixups for new syntax table stuff.
7416         * dired.c: Include syntax.c.
7417         (Fdirectory_files): Initialize regex_match_object and
7418         regex_emacs_buffer.
7419         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7420         and Fget_char_property.
7421
7422         Use ported FSF 20.7 syntax table improvements.
7423         * font-lock.c.
7424         * regex.c.
7425         * search.c.
7426         
7427 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7428
7429         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7430         Unixware's enum boolean from sys/types.h.
7431
7432 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7433
7434         Fix support for building with latest Purify.
7435         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7436         (PURIFY_FLAGS): Likewise.
7437
7438 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7439
7440         * fileio.c (lisp_string_set_file_times): New.
7441         * fileio.c (Fcopy_file): Use it.
7442         Fixes bug:
7443         (copy-file filename non-ascii-filename t t)
7444         ==> No such file or directory, non-ascii-filename
7445
7446 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7447
7448         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7449         USHRT_MAX seems clearer than ~0 anyways.
7450
7451 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7452
7453         dumper improvements.  Inspired by Olivier.
7454         * dumper.c (pdump_max_align): New.
7455         * dumper.c (pdump_add_entry): Use pdump_max_align.
7456         * dumper.c (pdump_get_entry_list): Likewise.
7457         * dumper.c (pdump_scan_by_alignment): Likewise.
7458         Don't iterate through unnecessary alignments.
7459         * dumper.c (pdump_file_get): No need to align result of malloc().
7460         * dumper.c (pdump_mallocadr): Remove.  
7461         The result of malloc() is guaranteed to be maximally aligned.
7462         * dumper.c: s/elmt/elt/g;
7463         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7464         * dumper.c (pdump_alert_undump_object): Likewise.
7465         * dumper.c (pdump_align_table): 
7466         Don't support alignments > 64.
7467         Store ALIGNOF's, not shift counts, in table.
7468
7469 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7470
7471         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7472         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7473         * systime.h: Use HAVE_UTIME.
7474         * sysdep.c (struct utimbuf): Remove.
7475         * sysdep.c (set_file_times): Prefer utime() to utimes().
7476         * config.h.in (HAVE_UTIME): New.
7477         * config.h.in (HAVE_UTIME_H): Remove.
7478         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7479
7480 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7481
7482         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7483
7484 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7485
7486         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7487
7488 2001-02-08  Martin Buchholz <martin@xemacs.org>
7489
7490         * XEmacs 21.2.44 "Thalia" is released.
7491
7492 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7493
7494         Fixes crashes in kill-emacs on some systems.
7495         * process-unix.c (unix_kill_child_process):
7496         It's OK for kill() to fail with ESRCH.
7497
7498 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7499
7500         Contortions to make .gdbinit tricks work on most systems.
7501         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7502         * alloc.c (dbg_valmask): Make non-const.
7503         * alloc.c (dbg_typemask): Make non-const.
7504         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7505         * alloc.c (dbg_valbits): Make non-const.
7506         * alloc.c (dbg_gctypebits): Make non-const.
7507         * .gdbinit (decode_object): Make it work with AIX cc.
7508
7509 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7510
7511         * elhash.c (make_general_lisp_hash_table):
7512         Use simpler and more efficient calloc to clear entries.
7513
7514 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7515
7516         * window.c (window_scroll): Work around an AIX C compiler bug.
7517         Fixes 'scroll-up' does nothing problem with xlC.
7518
7519 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7520
7521         * .gdbinit: Remove obsolete comment.
7522
7523 2001-01-31  Mike Alexander  <mta@arbortext.com>
7524
7525         * select.c (Fown_selection_internal): Set owned_p for device
7526         method correctly.
7527
7528 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7529
7530         Port to g++ 2.97.
7531         "not" cannot be used as a macro name as it is an operator in C++
7532         * config.h.in: Stop #defining `not'.
7533         * chartab.c (check_category_char): not ==> not_p
7534         * chartab.h: Likewise.
7535         * regex.c (re_match_2_internal): Likewise.
7536
7537 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7538
7539         * lisp-disunion.h: Fix up comments.
7540
7541 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7542
7543         * keymap.c (define_key_check_and_coerce_keysym):
7544         (syms_of_keymap):
7545         Support mouse-6 and mouse-7 bindings in the obvious way.
7546
7547 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7548
7549         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7550
7551 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7552
7553         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7554         Previous patch missed DEFVAR_INT_MAGIC.
7555         Make sure future DEFVAR_foo use correct types.
7556         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7557         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7558         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7559         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7560         * (DEFVAR_INT): Likewise.
7561         * redisplay.c (vertical_clip): Should be of type Fixnum.
7562         * redisplay.c (horizontal_clip): Likewise.
7563         * lisp.h (dump_add_opaque_int): New.
7564         (dump_add_opaque_fixnum): New.
7565
7566 2001-01-29  Andy Piper  <andy@xemacs.org>
7567
7568         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7569         since they can be eval'ed
7570
7571 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7572
7573         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7574         Oops, XEmacs redefines `class'.  Use `typename' instead.
7575
7576 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7577
7578         * dumper.c: Fix C++ compile errors.
7579
7580 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7581
7582         * tparam.c: Use correct prototypes.
7583
7584 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7585
7586         * sysproc.h: #include util.h for NetBSD's openpty.
7587
7588 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7589
7590         More 64-bit correctness.
7591         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7592         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7593         Fix up comments.
7594         This finally finishes the 64-bit SGI port.
7595         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7596         * symbols.c: Fix up comments and type casts.
7597         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7598         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7599         * symeval.h (Fixnum): New type.
7600         * symeval.h (symbol_value_type): Fix up comment.
7601
7602         * commands.h:
7603         * nt.c:
7604         * emacs.c:
7605         * data.c:
7606         * redisplay.c:
7607         * abbrev.c:
7608         * dired-msw.c:
7609         * event-Xt.c:
7610         * eldap.c:
7611         * window.c:
7612         * sound.c:
7613         * event-stream.c:
7614         * eval.c:
7615         * buffer.c:
7616         * mule-canna.c: A million DEFVAR_INTs here...
7617         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7618         * extents.c:
7619         * cmdloop.c:
7620         * lisp.h:
7621         * select-x.c:
7622         * console-x.h:
7623         * event-msw.c:
7624         * mule-wnnfns.c:
7625         * hpplay.c:
7626         * ralloc.c:
7627         * alloc.c:
7628         * keymap.c:
7629         * profile.c:
7630         s/int/Fixnum/g in DEFVAR_INT declarations.
7631
7632 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7633
7634         Port pdump to SGI alignment-sensitive environment.
7635         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7636         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7637         properly aligned.
7638         Define and use aligned reading and writing macros.
7639         Use buffered stdio instead of posix i/o for faster dumping.
7640         Eliminate kludgy 256 byte space for header.
7641         Read and write from dump file using structs for alignment safety.
7642         * dumper.c (pdump_align_stream): New.
7643         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7644         * dumper.c (PDUMP_READ_ALIGNED): New.
7645         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7646         * dumper.c (pdump_static_Lisp_Object): New struct.
7647         * dumper.c (pdump_static_pointer): New struct.
7648         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7649         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7650         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7651         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7652
7653         * dumper.c (pdump_backtrace):
7654         * dumper.c (pdump_get_indirect_count):
7655         * dumper.c (pdump_register_object):
7656         * dumper.c (pdump_register_struct):
7657         * dumper.c (pdump_reloc_one):
7658         * dumper.c (pdump_scan_by_alignment):
7659         * dumper.c (pdump_dump_from_root_struct_ptrs):
7660         * dumper.c (pdump_dump_opaques):
7661         * dumper.c (pdump_dump_rtables):
7662         * dumper.c (pdump_dump_from_root_objects):
7663         * dumper.c (pdump):
7664         * dumper.c (pdump_load_finish):
7665         Use aligned reading and writing.
7666
7667         * dumper.c (pdump_free): Make static.
7668         * dumper.c (pdump_hFile): Likewise.
7669         * dumper.c (pdump_hMap): Likewise.
7670
7671 2001-01-26  Martin Buchholz <martin@xemacs.org>
7672
7673         * XEmacs 21.2.43 "Terspichore" is released.
7674
7675 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7676
7677         Type fiddling for window_config.saved_windows_count
7678         * window.c (struct window_config): 
7679         Make saved_windows_count member unsigned.
7680         * window.c (sizeof_window_config_for_n_windows): 
7681         Make parameter unsigned.
7682         * window.c (mark_window_config):
7683         * window.c (window_config_equal):
7684         * window.c (free_window_configuration):
7685         * window.c (Fset_window_configuration):
7686         * window.c (count_windows):
7687         * window.c (Fcurrent_window_configuration):
7688         * window.c (reinit_vars_of_window):
7689         Update all callers and users.
7690
7691 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7692
7693         Alignment correctness for flexible arrays.
7694         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7695         Make alignment-correct. Add interesting comments.
7696         * alloc.c (size_vector):
7697         * alloc.c (make_vector_internal):
7698         * alloc.c (make_bit_vector_internal):
7699         * alloc.c (sweep_bit_vectors_1):
7700         * fns.c (size_bit_vector):
7701         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7702         * window.c (sizeof_window_config_for_n_windows): 
7703         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7704
7705 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7706
7707         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7708
7709 2001-01-23  Andy Piper  <andy@xemacs.org>
7710
7711         * select.c (Fown_selection_internal): pass owned_p
7712
7713         * select-msw.c (mswindows_own_selection): New Signature.
7714
7715         * console.h (struct console_methods): add owned_p to
7716         _own_selection.
7717
7718         * select-x.c (x_own_selection): pass owned_p
7719         (hack_motif_clipboard_selection): use owned_p
7720         (vars_of_select_x): new variable -
7721         x_selection_strict_motif_ownership.
7722
7723 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7724
7725         * specifier.h (specifier_data_offset): Remove pointless parens.
7726         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7727
7728 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7729
7730         Make Lisp_Object sizeof methods be alignment-correct.
7731         pdump must restore objects to the same alignment as the C compiler
7732         assumes.  It really matters on SGIs.
7733         * lstream.c (aligned_sizeof_lstream): New.
7734         (sizeof_lstream): Use aligned_sizeof_lstream.
7735         (Lstream_new): Likewise.
7736         * opaque.c (aligned_sizeof_opaque): New.
7737         (sizeof_opaque): Use aligned_sizeof_opaque.
7738         (make_opaque): Likewise.
7739         * specifier.c (aligned_sizeof_specifier): New.
7740         (sizeof_specifier): Use aligned_sizeof_specifier.
7741         (make_specifier_internal): Likewise.
7742
7743 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7744
7745         * lstream.h (struct lstream): Use max_align_t for trailing data.
7746         * specifier.h (struct Lisp_Specifier): Likewise.
7747
7748 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7749
7750         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7751         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7752         (CCL_SUSPEND): Likewise.
7753         (CCL_INVALID_CMD): Likewise.
7754         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7755         (ccl_driver): Likewise.
7756         (CCL_WRITE_CHAR): Macro hygiene.
7757         (CCL_WRITE_STRING): Macro hygiene.
7758
7759 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7760
7761         Port "portable" dumper to SunOS 4 and HP-UX.
7762         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7763         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7764         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7765
7766 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7767
7768         * lisp.h (ALIGNOF): A better definition for C++.
7769
7770 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7771
7772         Macro hygiene.
7773         Fix printf warnings: int format, long int arg.
7774         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7775         (PUSH_FAILURE_POINT): Use correct printf formats.
7776         (POP_FAILURE_POINT): Use correct printf formats.  
7777         Use do {...} while (0)
7778
7779 2001-01-20  Martin Buchholz <martin@xemacs.org>
7780
7781         * XEmacs 21.2.42 "Poseidon" is released.
7782
7783 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7784
7785         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7786
7787 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7788
7789         De-kludgify FIXED_TYPE free list frobbing.
7790         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7791         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7792         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7793         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7794         * alloc.c (LRECORD_FREE_P): New.
7795         * alloc.c (MARK_LRECORD_AS_FREE): New.
7796         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7797         * alloc.c (STRUCT_FREE_P): Deleted.
7798         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7799         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7800         * alloc.c (STRING_CHARS_FREE_P): New.
7801         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7802         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7803         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7804         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7805         * alloc.c (resize_string): Use new definitions.
7806         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7807         * alloc.c (verify_string_chars_integrity): Use new definitions.
7808         * alloc.c (compact_string_chars): Use new definitions.
7809         * alloc.c: Update monster comments.
7810         * lrecord.h (lrecord_type): Add some new lrecord types for
7811         alloc.c's use.
7812
7813 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7814
7815         Improve alignment hackery.
7816         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7817         (max_align_t): Moved from opaque.h - general purpose.
7818         (ALIGN_PTR): Use size_t, not long.
7819         * opaque.h (max_align_t): Move to lisp.h.
7820
7821 2001-01-18  Norbert Koch  <nk@LF.net>
7822
7823         * gui.h: Fix and add prototypes to fix build problems.
7824
7825 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7826
7827         temacs is going away, so `dump-temacs' is now a bad name.
7828         * .dbxrc (dump-temacs): Rename to `dmp'.
7829         * .gdbinit (dump-temacs): Rename to `dmp'.
7830
7831 2001-01-17  Andy Piper  <andy@xemacs.org>
7832
7833         * glyphs.c (print_image_instance): comment to make martin happy.
7834
7835         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7836         change.
7837
7838         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7839         activation.
7840         (mswindows_tab_control_redisplay): warning suppression.
7841
7842         * glyphs-widget.c (widget_update): re-write to cope with updated
7843         items.
7844         (widget_instantiate): use new gui_item functions.
7845         (tab_control_update): deleted.
7846         (progress_gauge_update): deleted.
7847         (image_instantiator_progress_guage): take out update reference.
7848         (image_instantiator_tree_view): ditto.
7849         (image_instantiator_tab_control): ditto.
7850
7851         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7852         Right the new way.
7853         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7854         return whether anything was changed.
7855         (update_gui_item_keywords): as it sounds.
7856
7857         * gui.h: declare widget_gui_parse_item_keywords.
7858
7859         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7860         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7861
7862 2001-01-17  Martin Buchholz <martin@xemacs.org>
7863
7864         * XEmacs 21.2.41 "Polyhymnia" is released.
7865
7866 2001-01-16  Didier Verna  <didier@xemacs.org>
7867
7868         * glyphs.c (image_instantiate): don't use fallbacks when
7869         instantiating a face's background pixmap by inheritance.
7870
7871 2001-01-14  Mike Sperber <mike@xemacs.org>
7872
7873         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7874         Conditionalize accordingly.
7875
7876 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7877
7878         * dumper.c (pdump_file_get): Fix a compiler warning.
7879
7880 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7881
7882         Make Purify happy when pdumping.
7883         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7884         iniitalizing all bits of new lisp object memory.
7885         * symbols.c (Fmake_local_variable): Likewise.
7886         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7887         * symbols.c (Fdefvaralias): Likewise.
7888         * mule-charset.c (vars_of_mule_charset): Likewise.
7889
7890 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7891         Add the `-nd' flag when running pre-dump operations under the debugger.
7892         * .dbxrc (run-temacs): Add `-nd'.
7893         * .dbxrc (update-elc): Likewise.
7894         * .dbxrc (dump-temacs): Likewise.
7895         * .gdbinit (run-temacs): Likewise.
7896         * .gdbinit (check-temacs): Likewise.
7897         * .gdbinit (update-elc): Likewise.
7898         * .gdbinit (dump-temacs): Likewise.
7899
7900 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7901
7902         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7903         export OBJECT_MODE=64
7904         configure --pdump --use-union-type=no
7905         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7906         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7907
7908         * miscplay.c (sndcnv8U_2mono):
7909         Avoid two uses of `++' in the same expression.
7910         Suppresses a GCC warning.
7911
7912 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7913
7914         Make sure future compilers don't miscompile alloc.c.
7915         * alloc.c:
7916         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7917         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7918
7919 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7920
7921         * dumper.c: A little post-pdump-rename comment fixup.
7922
7923 2001-01-09  Jerry James  <james@eecs.ku.edu>
7924
7925         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7926
7927 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7928
7929         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7930         script:
7931         #!/bin/sh
7932         replace_symbol () {
7933           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7934         }
7935
7936         replace_symbol pdump_wire_lists pdump_weak_object_chains
7937         replace_symbol pdump_wire_list dump_add_weak_object_chain
7938
7939         replace_symbol pdump_wires pdump_root_objects
7940         replace_symbol pdump_wire dump_add_root_object
7941
7942         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7943         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7944
7945         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7946         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7947         replace_symbol dumpstructinfo pdump_root_struct_ptr
7948         replace_symbol dumpstruct dump_add_root_struct_ptr
7949
7950         replace_symbol dumpopaque dump_add_opaque
7951         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7952         replace_symbol dumpopaqueinfos pdump_opaques
7953         replace_symbol dumpopaqueinfo pdump_opaque
7954
7955         replace_symbol nb_structdump nb_root_struct_ptrs
7956         replace_symbol nb_opaquedump nb_opaques
7957
7958         replace_symbol align_table pdump_align_table
7959         replace_symbol dump_header pdump_header
7960
7961         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7962         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7963
7964
7965 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7966
7967         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7968         optimizing bytecount_to_charcount().
7969
7970 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7971
7972         * config.h.in:
7973         (HAVE_DLFCN_H): Removed.
7974         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7975
7976 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7977
7978         Portable dumper maintainability improvements.
7979         * alloc.c (staticpro):
7980         * alloc.c (staticpro_nodump):
7981         * alloc.c (garbage_collect_1):
7982         * alloc.c (reinit_alloc_once_early):
7983         * alloc.c (init_alloc_once_early):
7984         * alloc.c: Move dumper functions to alloc.c.
7985         * dumper.c (pdump_backtrace):
7986         * dumper.c (pdump_dump_structs):
7987         * dumper.c (pdump_dump_opaques):
7988         * dumper.c (pdump_dump_rtables):
7989         * dumper.c (pdump_dump_wired):
7990         * dumper.c (pdump):
7991         * dumper.c (pdump_load_check):
7992         * dumper.c (pdump_load_finish):
7993         * dumper.c (pdump_file_unmap):
7994         * dumper.c (pdump_file_get):
7995         * dumper.c (pdump_resource_free):
7996         * dumper.c (pdump_resource_get):
7997         * dumper.c (pdump_file_free):
7998         * dumper.c (pdump_file_try):
7999         * dumper.c (pdump_load):
8000         Remove fixed size limits on staticpro(), staticpro_nodump(),
8001         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8002         Remove custom code for dumping lrecord_implementations_table - use
8003         dumpopaque instead.
8004         Remove (most of the) custom code for dumping staticpros - dump it
8005         like any other dynarr.
8006
8007         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8008         * dumper.c: Moved functions from alloc.c.
8009         * alloc.c (dumpstruct): Moved to dumper.c.
8010         * alloc.c (dumpopaque): Likewise.
8011         * alloc.c (pdump_wire): Likewise.
8012         * alloc.c (pdump_wire_list): Likewise.
8013
8014         * lisp.h (Dynarr_sizeof): New.
8015         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8016         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8017         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8018
8019         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8020         * lisp.h (dumpopaque): ditto.
8021         * lisp.h (pdump_wire): ditto.
8022         * lisp.h (pdump_wire_list): ditto.
8023
8024 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8025
8026         * make-src-depend (PrintPatternDeps):
8027         Use `sort' to make output independent of perl version.
8028
8029 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8030
8031         Port to Netbsd 1.5.
8032         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8033         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8034
8035 2001-01-03  Didier Verna  <didier@xemacs.org>
8036
8037         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8038         that `focus_frame' is alive before thinking of calling
8039         `redisplay_redraw_cursor' on it.
8040
8041 2001-01-08  Martin Buchholz <martin@xemacs.org>
8042
8043         * XEmacs 21.2.40 is released.
8044
8045 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8046
8047         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8048
8049 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8050
8051         * alloc.c (dbg_valmask): Make const.
8052         * alloc.c (dbg_typemask): Make const.
8053         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8054         * alloc.c (dbg_valbits): Make const.
8055         * alloc.c (dbg_gctypebits): Make const.
8056
8057 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8058
8059         * redisplay-x.c (x_bevel_area):
8060         redisplay.h (struct rune):
8061         Typo fixes in comments.
8062
8063 2001-01-05  Andy Piper  <andy@xemacs.org>
8064
8065         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8066         adjustment.
8067
8068         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8069
8070 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8071
8072         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8073
8074         * mule-ccl.c (stack_idx_of_map_multiple):
8075         Non const global data must not be initialized!
8076         Found by MIYASHITA Hisashi.
8077
8078 2001-01-02  Andy Piper  <andy@xemacs.org>
8079
8080         * frame.c (change_frame_size): make sure frame size is always
8081         marked as changed.
8082
8083         * glyphs.c (image_instance_layout): minor code reuse.
8084
8085         * window.c (Fcurrent_window_configuration): revert previous
8086         change.
8087
8088 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8089
8090         * glyphs.h:
8091         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8092
8093 2000-12-31  Andy Piper  <andy@xemacs.org>
8094
8095         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8096         when widget gets unmapped.
8097
8098         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8099         function. Make sure widgets losing focus don't just drop it.
8100         (handle_focus_event_1): record the widget with focus.
8101
8102 2000-12-31  Andy Piper  <andy@xemacs.org>
8103
8104         * window.c (allocate_window): use
8105         make_image_instance_cache_hash_table.
8106         (make_dummy_parent): ditto.
8107         (Fset_window_configuration): ditto.
8108
8109         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8110
8111         * glyphs.c (process_image_string_instantiator): use
8112         INSTANTIATOR_TYPE.
8113         (get_image_instantiator_governing_domain): ditto.
8114         (normalize_image_instantiator): ditto.
8115         (instantiate_image_instantiator): ditto.
8116         (make_image_instance_1): ditto.
8117         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8118         (instantiator_eq_equal): new function for use with instance hash
8119         tables.
8120         (instantiator_eq_hash): ditto.
8121         (make_image_instance_cache_hash_table): create a suitable hash
8122         table for storing image instances.
8123
8124         * elhash.h (hash_table_weakness): new internal weakness type
8125         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8126         declare new functions.
8127
8128         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8129         another weakness type for glyphs.
8130         (make_standard_lisp_hash_table): new function split out from
8131         make_general_lisp_hash_table.
8132         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8133         (hash_table_instantiate): ditto.
8134         (Fmake_hash_table): ditto.
8135
8136 2000-12-31  Martin Buchholz <martin@xemacs.org>
8137
8138         * XEmacs 21.2.39 is released.
8139
8140 2000-12-29  Andy Piper  <andy@xemacs.org>
8141
8142         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8143
8144         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8145         the frame has changed so that we pick up geometry changes such as
8146         menubar visibility.
8147
8148 2000-12-28  Andy Piper  <andy@xemacs.org>
8149
8150         * lastfile.c (my_ebss): make a char array so we can pad the
8151         bss. Fixes cygwin unexec.
8152
8153         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8154
8155 2000-12-26  Andy Piper  <andy@xemacs.org>
8156
8157         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8158         comments and try and be more precise about a non-/SIGIO world.
8159         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8160         SIGIO.
8161
8162         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8163         we don't normalize to zero width or height.
8164
8165 2000-12-24  Andy Piper  <andy@xemacs.org>
8166
8167         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8168
8169 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8170
8171         * s/sco5.h: SCO 5 has pty support.
8172
8173 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8174
8175         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8176         input-method-xlib.c contains whole contents of input-method-xfs.c,
8177         so we can use input-method-xlib.c's code for USE_XFONTSET
8178         using #ifdefs.
8179         * input-method-xfs.c: removed.
8180
8181 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8182
8183         * file-coding.h (enum coding_category_type): reorder enumerators to
8184         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8185         (now one greater than largest real coding_category_type enumerator).
8186         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8187         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8188         Fcoding_category_list, Fset_coding_priority_list,
8189         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8190         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8191
8192 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8193
8194         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8195         * redisplay-output.c (redisplay_output_window): Clear top of window
8196         when face is changed.
8197         * redisplay-x.c (x_redraw_exposed_window): Call
8198         redisplay_clear_top_of_window.
8199         * redisplay.h: Publish redisplay_clear_top_of_window.
8200
8201 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8202
8203         * buffer.c (Fkill_buffer): Map over all devices.
8204         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8205         (list_windows): New function.
8206         (list_all_windows): Ditto.
8207         (Freplace_buffer_in_windows): Use them.
8208
8209 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8210
8211         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8212         (Fopen_database): Use `db_create' instead of `db_open'.
8213         (syms_of_database): Initialize Qqueue.
8214
8215 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8216
8217         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8218         buffer_local_face_property.
8219         * buffer.h (struct buffer): New member buffer_local_face_property.
8220         * window.c (Fset_window_buffer):  Mark window's face as changed
8221         when buffer has buffer local face.
8222         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8223         * objects.c (color_after_change): Set buffer_local_face_property
8224         when locale of face specifier is buffer.
8225         * objects.c (font_after_change): Ditto.
8226         * objects.c (face_boolean_after_change): Ditto.
8227         * glyphs.c (image_after_change): Ditto.
8228
8229 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8230
8231         * nt.c (mswindows_fstat): Report file permissions, volume serial
8232         number, etc. Code adapted from FSF Emacs 20.7.
8233
8234 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8235
8236         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8237         of stat when we don't have symbolic links, to make sure
8238         mswindows_stat is called on mswindows.
8239
8240 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8241
8242         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8243
8244 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8245
8246         * doprnt.c (emacs_doprnt_1): More printing fixes.
8247         Make printing of numbers compatible with libc and FSF Emacs.
8248         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8249         Use the system printf to do most of the hard work of formatting,
8250         instead of doprnt_1().
8251         Calculate memory to allocate for format string.
8252         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8253         (doprnt_1): Cleaner code and documentation.
8254
8255 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8256
8257         * Makefile.in.in: Use the loop variable to install headers.
8258
8259 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8260
8261         * window.c (Fsplit_window): Don't invalidate face cache.
8262
8263 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8264
8265         * minibuf.c (Fall_completions): Undo the previous change
8266         which removed checking elements start with space.
8267
8268 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8269
8270         * mule-canna.c: Didier suppression.
8271
8272 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8273
8274         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8275         (warning suppression).  Add English comment translations.
8276
8277 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8278
8279         * unexelfsgi.c (unexec): Better test for mmap failure.
8280
8281 2000-12-05  Martin Buchholz <martin@xemacs.org>
8282
8283         * XEmacs 21.2.38 is released.
8284
8285 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8286
8287         * redisplay.c (bar-cursor): Make a user variable.
8288
8289         * symsinit.h: Add init_postgresql_from_environment.
8290
8291 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8292
8293         * regex.c: Convert to clean C.
8294
8295 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8296
8297         * realpath.c:
8298         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8299         initialization.
8300         (sys_readlink): renamed to system_readlink to avoid conflict with
8301         the other sys_readlink.
8302
8303 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8304
8305         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8306
8307 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8308
8309         * postgresql.c (init_postgresql_from_environment): new function.
8310         (vars_of_postgresql): Move code initializing Lisp variables out and
8311         into init_postgresql_from_environment.
8312         emacs.c (main_1): Call init_postgresql_from_environment if and only
8313         if running a dumped XEmacs.
8314
8315 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8316
8317         * buffer.c: Make find-file-compare-truenames default to true on
8318         windows.
8319
8320         * realpath.c (win32_abs_start):
8321         (cygwin_readlink):
8322         (win32_readlink): New functions.
8323         (xrealpath): Return really real filenames on windows.
8324
8325         * fileio.c (Ffile_truename): Make file-truename work on windows.
8326
8327 2000-11-29  Didier Verna  <didier@xemacs.org>
8328
8329         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8330         * faces.c (update_face_cachel_data): use it.
8331         * faces.c (add_face_cachel): use it. Complete background pixmap
8332         frobbing in face cache if `update_face_cachel_data' has not done so.
8333
8334 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8335
8336         * search.c (string_match_1): Don't set last_thing_searched
8337         when search failed.
8338
8339 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8340
8341         * buffer.c: Include casetab.h
8342         (common_init_complex_vars_of_buffer): Use new case-table object.
8343         * buffer.h: Include casetab.h
8344         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8345         (DOWNCASE_TABLE_OF): Ditto.
8346         * bufslots.h: Remove char-tables and add case-table.
8347         * casetab.c: Include casetab.h
8348         (CASE_TABLE_P): Removed.
8349         (mark_case_table): New function.
8350         (allocate_case_table): New function.
8351         (Fcase_table_p): Use new case-table.
8352         (case_table_char): New function.
8353         (Fget_case_table): Ditto.
8354         (Fput_case_table): Ditto.
8355         (Fput_case_table_pair): Ditto.
8356         (Fcopy_case_table): Ditto.
8357         (Fcurrent_case_table): Return case-table.
8358         (Fstandard_case_table): Return case-table.
8359         (Fset_case_table): Fix doc-string.
8360         (set_case_table): Use case-table
8361         (syms_of_casetab): DEFSUBR new functions.
8362         (complex_vars_of_casetab): Set up standard case-table.
8363         * casetab.h: New file.
8364         * editfns.c: Include casetab.h
8365         (Fcompare_buffer_substrings): Use case-table.
8366         * inline.c: Include casetab.h
8367         * lisp.h: Remove bogus extern.
8368         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8369         * search.c: Include casetab.h
8370         (TRANSLATE_ASCII): Removed.
8371         (TRANSLATE): Unconditionally translate character.
8372         (looking_at_1): Use case-table.
8373         (string_match_1): Ditto.
8374         (fast_string_match): Ditto.
8375         (search_command): Ditto.
8376         (search_buffer): Separate boyer_moore.  Check whether
8377         boyer_moore is possible.
8378         (simple_search): New function.
8379         (boyer_moore): Separated from search_buffer. Translate char.
8380
8381 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8382
8383         * regex.c (RE_TR_ASCII): Removed.
8384         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8385         (PATFETCH): Call PATFETCH_RAW.
8386         (PATFETCH_RAW): Fetch Emchar.
8387         (PATUNFETCH): Decrement charptr.
8388         (GET_BUFFER_SPACE): Rename b to buf_end.
8389         (BUF_PUSH): Ditto.
8390         (BUF_PUSH_2): Ditto.
8391         (BUF_PUSH_3): Ditto.
8392         (EXTEND_BUFFER): Ditto.
8393         (SET_LIST_BIT): Ditto.
8394         (regex_compile): Ditto.  Translate non ASCII char.
8395         (compile_range): Ditto.
8396         (re_search_2): Ditto.
8397         (re_match_2_internal): Compare Emchar.
8398         (bcmp_translate): Ditto.
8399
8400 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8401
8402         * lisp.h (basic char/int typedefs):  comment improvement.
8403
8404 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8405
8406         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8407         unstomp inhibit_site_lisp.  Improve comments.
8408
8409 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8410
8411         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8412
8413 2000-11-28  Andy Piper  <andy@xemacs.org>
8414
8415         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8416         clipped display for windows in the gutter also.
8417         (redisplay_display_boxes_in_window_p): change semantics of return
8418         codes to be more intuitive.
8419
8420         * gutter.h: declare display_boxes_in_gutter_p.
8421
8422         * gutter.c (display_boxes_in_gutter_p): new function for
8423         redisplay.
8424
8425 2000-11-22  Andy Piper  <andy@xemacs.org>
8426
8427         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8428         autodetect domain.
8429
8430 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8431
8432         * callproc.c (Fold_call_process_internal):
8433         * gpm.c (Freceive_gpm_event):
8434         (tty_get_foreign_selection): Might be just warning supression.
8435         * fileio.c (Fwrite_region_internal):
8436         (Fset_visited_file_modtime):
8437         * keymap.c (event_matches_key_specifier_p):
8438         Initialize GCPROed variable.
8439
8440         * menubar-x.c (command_builder_find_menu_accelerator):
8441         Initialize before use.
8442
8443 2000-11-23  Andy Piper  <andy@xemacs.org>
8444
8445         * unexcw.c (unexec): make the resulting executable executable.
8446
8447 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8448
8449         * doc.c (get_doc_string):
8450         Use size_t, not int, for result of XSTRING_LENGTH.
8451
8452         * cmds.c (Fdelete_char):
8453         * cmds.c (Fpoint_at_eol):
8454         * cmds.c (Fself_insert_command):
8455         Use EMACS_INT, not int, for result of XINT.
8456         Someday, someone will want to insert more than 2**31 identical characters.
8457
8458         * cmds.c (Fdelete_char):
8459         * cmds.c (Fdelete_backward_char):
8460         * syntax.c (Fforward_word):
8461         * syntax.c (Fforward_comment):
8462         Make COUNT argument optional, for consistency with forward-char et al.
8463
8464 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8465
8466         * lisp.h:
8467         * print.c (long_to_string):
8468         Return a useful value: the pointer at end of data written.
8469
8470         * doprnt.c:
8471         Use `static const char * const' for constant strings.
8472         (union printf_arg): Delete `i', `ui' members.
8473         (get_doprnt_args):
8474         (emacs_doprnt_1):
8475         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8476         Do all printf-ing via the `l' specifier.
8477         Use EMACS_INT instead of int.
8478         Optimize.
8479
8480 2000-11-20  Didier Verna  <didier@xemacs.org>
8481
8482         * faces.c (update_face_cachel_data): don't frob the background
8483         pixmap when the window is being created. The face is needed but
8484         does not exist yet.
8485
8486 2000-11-20  Andy Piper  <andy@xemacs.org>
8487
8488         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8489         messing with a debug environment.
8490
8491 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8492
8493         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8494
8495 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8496
8497         * casetab.c (Fcase_table_p): Fix compile error and crash.
8498
8499 2000-11-18  Philip Aston  <philipa@mail.com>
8500
8501         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8502
8503 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8504
8505         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8506         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8507
8508 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8509
8510         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8511         * unexelf.c: Use HAVE_ELF_H.
8512         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8513         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8514         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8515         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8516         for testing.
8517         So this is an unexelfsgi.c from a different line of development.
8518
8519 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8520
8521         * regex.c (RE_TR_ASCII): New function.
8522         (RE_TRANSLATE): Call it.
8523
8524 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8525
8526         * buffer.h (TRT_TABLE_OF): Remove assert.
8527         (IN_TRT_TABLE_DOMAIN): Removed.
8528
8529 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8530
8531         * free-hook.c (log_gcpro):
8532         (show_gcprohist): Add support for GCPRO5.
8533
8534 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8535
8536         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8537
8538 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8539
8540         * symeval.h: Declare flush_all_buffer_local_cache.
8541
8542         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8543         (flush_buffer_local_cache): Added.
8544         (flush_all_buffer_local_cache): Added.
8545
8546         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8547
8548         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8549         (pdump_dump_data): Ditto.
8550         (pdump_reloc_one): Ditto.
8551         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8552         before dumping.
8553
8554
8555 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8556
8557         * buffer.c: Remove if 0'ed entry.
8558         * buffer.h: Rewrite TRT to use char-table.
8559         * bufslots.h: Remove mirror tables.
8560         * casetab.c: Remove mirror tables.
8561         (CASE_TABLE_P): New macro.
8562         (Fcase_table_p): Element of a case table is string or char-table.
8563         (make_mirror_trt_table): Removed.
8564         (set_case_table): Setup char-table from strings for backward
8565         compatibility.
8566         * dired.c (Fdirectory_files):
8567         * dired-msw.c: (mswindows_get_files):
8568         * lisp.h: Change prototype of re_pattern_buffer.
8569         * regex.c: (RE_TRANSLATE): New macro.
8570         (TRANSLATE_P): Ditto.
8571         Change translate to type RE_TRANSLATE_TYPE.
8572         * regex.h: Define RE_TRANSLATE_TYPE
8573         * search.c (TRANSLATE): New macro.
8574         (TRANSLATE_ASCII): New macro.
8575         Translate table is changed to Lisp_Object.
8576         (signal_failure): Inhibit return.
8577
8578 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8579
8580         * device-msw.c:
8581         * eldap.c:
8582         * event-Xt.c:
8583         * event-stream.c:
8584         * print.c:
8585         Do UNGCPRO before return.
8586
8587 2000-11-14  Martin Buchholz <martin@xemacs.org>
8588
8589         * XEmacs 21.2.37 is released.
8590
8591 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8592
8593         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8594         Add comments about discarded return value.
8595
8596 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8597
8598         * callint.c:
8599         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8600
8601 2000-10-27  Andy Piper  <andy@xemacs.org>
8602
8603         * gutter.c (Fset_default_gutter_position): default left and right
8604         gutters to visible.
8605         (calculate_gutter_size): calculate resonable heuristic for left
8606         and right gutter sizes.
8607         (specifier_vars_of_gutter): change left and right gutter sizes to
8608         autodetect.
8609         (calculate_gutter_size_from_display_lines): new function.
8610         (output_gutter): check for resizing on left and right gutters.
8611         (clear_gutter): don't special case top and left gutters.
8612         (specifier_vars_of_gutter): use new signature for
8613         set_specifier_caching.
8614
8615         * glyphs-x.c (x_redisplay_widget): spelling fix.
8616         * glyphs.c (specifier_vars_of_glyphs):
8617         * menubar.c (specifier_vars_of_menubar):
8618         * redisplay.c (specifier_vars_of_redisplay):
8619         * toolbar.c (specifier_vars_of_toolbar):
8620         * window.c (specifier_vars_of_window):
8621         * scrollbar.c (specifier_vars_of_scrollbar):
8622         (complex_vars_of_scrollbar): use new signature for
8623         set_specifier_caching.
8624
8625         * specifier.c (set_specifier_caching): include recompute flag.
8626         (recompute_one_cached_specifier_in_window): always recompute if
8627         flag set.
8628         (recompute_one_cached_specifier_in_frame): ditto.
8629
8630         * specifier.h (struct specifier_caching): add recompute flag.
8631
8632 2000-10-24  Andy Piper  <andy@xemacs.org>
8633
8634         * unexcw.c (copy_executable_and_dump_data_section): add new
8635         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8636         5.0 happy.
8637
8638 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8639
8640         * console-x.h (x_device): New member modifier_release_time.
8641         * event-Xt.c (x_handle_sticky_modifiers):
8642         Bound interval modifier keys are sticky.
8643         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8644         * events.h: extern it.
8645
8646 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8647
8648         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8649
8650 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8651
8652         * event-stream.c (execute_command_event): Preserve current_events
8653         and the like when event is misc-user-event.
8654         Inhibit quit during the call to maybe_echo_keys.
8655
8656 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8657
8658         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8659         symlink when buffer is killed.
8660         (inhibit_clash_detection): New variable.
8661
8662 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8663
8664         * console.c (Fset_input_method): Trigger redisplay on tty.
8665
8666 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8667
8668         * process.c (Fprocess_status): Revert to previous behavior:
8669         (process-status "nosuchprocess") ==> nil
8670
8671 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8672
8673         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8674         Work around another GCC 2.95.2 optimizer bug.
8675
8676 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8677
8678         * process.c (Fget_process): Use LIST_LOOP_2.
8679         (kill_buffer_processes): Use LIST_LOOP_2.
8680
8681         * minibuf.c (Fall_completions):
8682         Delete old non-functional code for FSF fourth argument.
8683
8684         * frame.c (frame_matches_frame_spec):
8685         Renamed from `frame_matches_frametype'.  Update all callers.
8686         (device_matches_device_spec):
8687         Renamed from 'device_matches_console_spec'.  Update all callers.
8688
8689         * doc.c (Fsubstitute_command_keys):
8690         Remove buffer overflow crash.  Small code cleanups.
8691
8692         * casetab.c (check_case_table): Simpler code.
8693
8694         * window.c (Freplace_buffer_in_windows):
8695         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8696         (and similar implementation) as Fdelete_windows_on.
8697         Update all callers.
8698
8699         * alloc.c (Fmake_list):
8700         * alloc.c (make_vector):
8701         * alloc.c (Fmake_vector):
8702         * alloc.c (make_bit_vector):
8703         * alloc.c (Fmake_bit_vector):
8704         * alloc.c (Fbit_vector):
8705         * alloc.c (Fmake_string):
8706         * alloc.c (Fpurecopy):
8707         * alloc.c (Fmemory_limit):
8708         * buffer.c:
8709         * buffer.c (Fget_buffer):
8710         * buffer.c (Fkill_buffer):
8711         * buffer.c (complex_vars_of_buffer):
8712         * bytecode.c (Fcompiled_function_stack_depth):
8713         * callint.c (Fprefix_numeric_value):
8714         * event-stream.c:
8715         * event-stream.c (Fread_key_sequence):
8716         * casetab.c:
8717         * casetab.c (Fcase_table_p):
8718         * casetab.c (check_case_table):
8719         * casetab.c (Fset_case_table):
8720         * casetab.c (Fset_standard_case_table):
8721         * chartab.c:
8722         * chartab.c (Fchar_table_type):
8723         * chartab.c (Freset_char_table):
8724         * chartab.c (Fget_char_table):
8725         * chartab.c (Fget_range_char_table):
8726         * chartab.c (Fput_char_table):
8727         * chartab.c (Fmap_char_table):
8728         * chartab.c (Fcategory_table_p):
8729         * chartab.c (Fcheck_category_at):
8730         * chartab.c (Fchar_in_category_p):
8731         * chartab.c (Fcategory_table):
8732         * chartab.c (Fcopy_category_table):
8733         * chartab.c (Fset_category_table):
8734         * chartab.c (Fcategory_designator_p):
8735         * chartab.c (Fcategory_table_value_p):
8736         * cmds.c (Fdelete_char):
8737         * cmds.c (Fdelete_backward_char):
8738         * cmds.c (Fself_insert_command):
8739         * cmds.c (Fself_insert_internal):
8740         * console.c (Fvalid_console_type_p):
8741         * console.c (Fcdfw_console):
8742         * console.c (Fconsole_type):
8743         * console.c (Fconsole_name):
8744         * console.c (Fconsole_device_list):
8745         * console.c (Fconsole_on_window_system_p):
8746         * data.c:
8747         * data.c (Feq):
8748         * data.c (Fold_eq):
8749         * data.c (Fsubr_interactive):
8750         * data.c (Fchar_to_int):
8751         * data.c (Fint_to_char):
8752         * data.c (Fsetcar):
8753         * data.c (Fsetcdr):
8754         * data.c (Fnumber_to_string):
8755         * data.c (Fstring_to_number):
8756         * data.c (Frem):
8757         * database.c (mark_database):
8758         * database.c (finalize_database):
8759         * database.c (Fdatabase_live_p):
8760         * database.c (Fdatabasep):
8761         * device-x.c (Fx_get_resource):
8762         * device.c (Fdfw_device):
8763         * dired.c:
8764         * dired.c (Ffile_name_completion):
8765         * dired.c (Ffile_name_all_completions):
8766         * dired.c (Fuser_name_completion):
8767         * dired.c (Fuser_name_completion_1):
8768         * dired.c (Fuser_name_all_completions):
8769         * doc.c (Fdocumentation):
8770         * doc.c (Fdocumentation_property):
8771         * doc.c (Fsubstitute_command_keys):
8772         * editfns.c:
8773         * editfns.c (Fchar_to_string):
8774         * editfns.c (Fstring_to_char):
8775         * editfns.c (Ftemp_directory):
8776         * editfns.c (Finsert_char):
8777         * editfns.c (Fbuffer_substring_no_properties):
8778         * editfns.c (Fnarrow_to_region):
8779         * editfns.c (Fchar_equal):
8780         * editfns.c (Fchar_Equal):
8781         * editfns.c (Ftranspose_regions):
8782         * emacs.c (Fdump_emacs):
8783         * eval.c (Fthrow):
8784         * eval.c (Fcommand_execute):
8785         * eval.c (Fautoload):
8786         * eval.c (Fbacktrace):
8787         * eval.c (Fbacktrace_frame):
8788         * events.c:
8789         * events.c (Fcopy_event):
8790         * events.c (Fcharacter_to_event):
8791         * events.c (Fevent_button):
8792         * events.c (Fevent_process):
8793         * extents.c:
8794         * extents.c (Fnext_extent_change):
8795         * extents.c (Fextent_property):
8796         * faces.c (Ffacep):
8797         * faces.c (Fmake_face):
8798         * file-coding.c:
8799         * file-coding.c (Fencode_shift_jis_char):
8800         * file-coding.c (Fencode_big5_char):
8801         * fileio.c (Ffile_name_directory):
8802         * fileio.c (Ffile_name_nondirectory):
8803         * fileio.c (Ffile_name_as_directory):
8804         * fileio.c (Fdirectory_file_name):
8805         * fileio.c (Ffile_truename):
8806         * fileio.c (Fsubstitute_in_file_name):
8807         * fileio.c (Ffile_modes):
8808         * fileio.c (Fset_file_modes):
8809         * fileio.c (Fset_default_file_modes):
8810         * fileio.c (Fverify_visited_file_modtime):
8811         * floatfns.c (Facos):
8812         * floatfns.c (Fasin):
8813         * floatfns.c (Fatan):
8814         * floatfns.c (Fcos):
8815         * floatfns.c (Fsin):
8816         * floatfns.c (Ftan):
8817         * floatfns.c (Fbessel_j0):
8818         * floatfns.c (Fbessel_j1):
8819         * floatfns.c (Fbessel_jn):
8820         * floatfns.c (Fbessel_y0):
8821         * floatfns.c (Fbessel_y1):
8822         * floatfns.c (Fbessel_yn):
8823         * floatfns.c (Ferf):
8824         * floatfns.c (Ferfc):
8825         * floatfns.c (Flog_gamma):
8826         * floatfns.c (Fexp):
8827         * floatfns.c (Fexpt):
8828         * floatfns.c (Flog):
8829         * floatfns.c (Flog10):
8830         * floatfns.c (Fsqrt):
8831         * floatfns.c (Fcube_root):
8832         * floatfns.c (Facosh):
8833         * floatfns.c (Fasinh):
8834         * floatfns.c (Fatanh):
8835         * floatfns.c (Fcosh):
8836         * floatfns.c (Fsinh):
8837         * floatfns.c (Ftanh):
8838         * floatfns.c (Fabs):
8839         * floatfns.c (Ffloat):
8840         * floatfns.c (Flogb):
8841         * floatfns.c (Fceiling):
8842         * floatfns.c (Ffloor):
8843         * floatfns.c (Fround):
8844         * floatfns.c (Ftruncate):
8845         * floatfns.c (Ffceiling):
8846         * floatfns.c (Fffloor):
8847         * floatfns.c (Ffround):
8848         * floatfns.c (Fftruncate):
8849         * fns.c (Fstring_equal):
8850         * fns.c (Fstring_lessp):
8851         * fns.c (concat2):
8852         * fns.c (concat3):
8853         * fns.c (vconcat2):
8854         * fns.c (vconcat3):
8855         * fns.c (Fsubstring):
8856         * fns.c (Fassoc):
8857         * fns.c (Fold_assoc):
8858         * fns.c (assoc_no_quit):
8859         * fns.c (Fassq):
8860         * fns.c (Fold_assq):
8861         * fns.c (assq_no_quit):
8862         * fns.c (Frassoc):
8863         * fns.c (Fold_rassoc):
8864         * fns.c (Frassq):
8865         * fns.c (Fold_rassq):
8866         * fns.c (rassq_no_quit):
8867         * fns.c (Fremassoc):
8868         * fns.c (remassoc_no_quit):
8869         * fns.c (Fremassq):
8870         * fns.c (remassq_no_quit):
8871         * fns.c (Fremrassoc):
8872         * fns.c (Fremrassq):
8873         * fns.c (remrassq_no_quit):
8874         * fns.c (Fsort):
8875         * fns.c (Fplist_get):
8876         * fns.c (Fplist_put):
8877         * fns.c (Fplist_remprop):
8878         * fns.c (Fplist_member):
8879         * fns.c (Flax_plist_get):
8880         * fns.c (Flax_plist_put):
8881         * fns.c (Flax_plist_remprop):
8882         * fns.c (Flax_plist_member):
8883         * fns.c (Fequal):
8884         * fns.c (Fold_equal):
8885         * fns.c (Frequire):
8886         * fns.c (Fbase64_encode_region):
8887         * fns.c (Fbase64_encode_string):
8888         * fns.c (Fbase64_decode_region):
8889         * frame.c:
8890         * frame.c (frame_matches_frame_spec):
8891         * frame.c (device_matches_device_spec):
8892         * frame.c (next_frame):
8893         * frame.c (previous_frame):
8894         * frame.c (Fnext_frame):
8895         * frame.c (Fprevious_frame):
8896         * frame.c (Fframe_property):
8897         * frame.c (Fset_frame_height):
8898         * frame.c (Fset_frame_size):
8899         * frame.h:
8900         * glyphs.c:
8901         * glyphs.c (if):
8902         * glyphs.c (decode_error_behavior_flag):
8903         * glyphs.c (Fmake_image_instance):
8904         * indent.c (Findent_to):
8905         * intl.c (Fignore_defer_gettext):
8906         * keymap.c (Fkeymapp):
8907         * keymap.c (Flookup_key):
8908         * lread.c:
8909         * lread.c (Fload_internal):
8910         * lread.c (Feval_buffer):
8911         * lread.c (Feval_region):
8912         * macros.c (Fexecute_kbd_macro):
8913         * marker.c (set_marker_internal):
8914         * marker.c (Fset_marker):
8915         * marker.c (set_marker_restricted):
8916         * marker.c (Fcopy_marker):
8917         * marker.c (noseeum_copy_marker):
8918         * menubar.c:
8919         * menubar.c (Fpopup_menu):
8920         * minibuf.c:
8921         * mule-charset.c (Fcharset_name):
8922         * mule-charset.c (Fchar_charset):
8923         * mule-charset.c (Fchar_octet):
8924         * mule-charset.c (Fsplit_char):
8925         * mule-wnnfns.c (Fwnn_open):
8926         * mule-wnnfns.c (Fwnn_dict_comment):
8927         * mule-wnnfns.c (Fwnn_quit_henkan):
8928         * mule-wnnfns.c (Fwnn_word_toroku):
8929         * mule-wnnfns.c (Fwnn_word_sakujo):
8930         * mule-wnnfns.c (Fwnn_word_use):
8931         * mule-wnnfns.c (Fwnn_hindo_set):
8932         * objects.c:
8933         * objects.c (Fmake_color_instance):
8934         * objects.c (Fmake_font_instance):
8935         * print.c (Fwrite_char):
8936         * process.c:
8937         * process.c (mark_process):
8938         * process.c (print_process):
8939         * process.c (get_process_from_usid):
8940         * process.c (Fprocessp):
8941         * process.c (Fprocess_live_p):
8942         * process.c (Fget_process):
8943         * process.c (Fget_buffer_process):
8944         * process.c (get_process):
8945         * process.c (Fprocess_id):
8946         * process.c (Fprocess_name):
8947         * process.c (Fprocess_command):
8948         * process.c (init_process_io_handles):
8949         * process.c (start_process_unwind):
8950         * process.c (Fstart_process_internal):
8951         * process.c (Fopen_multicast_group_internal):
8952         * process.c (Fset_process_window_size):
8953         * process.c (read_process_output):
8954         * process.c (send_process):
8955         * process.c (Fprocess_tty_name):
8956         * process.c (Fset_process_buffer):
8957         * process.c (Fprocess_buffer):
8958         * process.c (Fprocess_mark):
8959         * process.c (set_process_filter):
8960         * process.c (Fset_process_filter):
8961         * process.c (Fprocess_filter):
8962         * process.c (Fprocess_send_region):
8963         * process.c (Fprocess_send_string):
8964         * process.c (exec_sentinel):
8965         * process.c (Fset_process_sentinel):
8966         * process.c (Fprocess_sentinel):
8967         * process.c (status_notify):
8968         * process.c (Fprocess_status):
8969         * process.c (Fprocess_exit_status):
8970         * process.c (process_send_signal):
8971         * process.c (Fprocess_send_eof):
8972         * process.c (deactivate_process):
8973         * process.c (remove_process):
8974         * process.c (Fdelete_process):
8975         * process.c (kill_buffer_processes):
8976         * process.c (Fprocess_kill_without_query):
8977         * process.c (Fprocess_kill_without_query_p):
8978         * rangetab.c:
8979         * rangetab.c (Fget_range_table):
8980         * rangetab.c (Fput_range_table):
8981         * rangetab.c (Fremove_range_table):
8982         * rangetab.c (Fclear_range_table):
8983         * search.c:
8984         * search.c (Fskip_chars_forward):
8985         * search.c (Fskip_chars_backward):
8986         * search.c (Fskip_syntax_forward):
8987         * search.c (Fskip_syntax_backward):
8988         * search.c (search_command):
8989         * search.c (Freplace_match):
8990         * search.c (Fregexp_quote):
8991         * select.c (Fown_selection_internal):
8992         * select.c (Fselection_owner_p):
8993         * select.c (Fselection_exists_p):
8994         * select.c (Fget_selection_internal):
8995         * specifier.c:
8996         * symbols.c:
8997         * symbols.c (Fintern):
8998         * symbols.c (Fintern_soft):
8999         * symbols.c (Funintern):
9000         * symbols.c (Fapropos_internal):
9001         * symbols.c (Fset_default):
9002         * syntax.c:
9003         * syntax.c (Fsyntax_table_p):
9004         * syntax.c (Fcopy_syntax_table):
9005         * syntax.c (Fset_syntax_table):
9006         * syntax.c (Fchar_syntax):
9007         * syntax.c (syntax_match):
9008         * syntax.c (Fmatching_paren):
9009         * syntax.c (Fforward_word):
9010         * syntax.c (scan_lists):
9011         * syntax.c (Fscan_lists):
9012         * syntax.c (Fscan_sexps):
9013         * syntax.c (Fparse_partial_sexp):
9014         * toolbar.c (Fcheck_toolbar_button_syntax):
9015         * tooltalk.doc:
9016         * window.c:
9017         * window.c (Fwindowp):
9018         * window.c (Fwindow_live_p):
9019         * window.c (Fwindow_point):
9020         * window.c (Fdelete_window):
9021         * window.c (Fnext_window):
9022         * window.c (Fprevious_window):
9023         * window.c (Fother_window):
9024         * window.c (window_loop):
9025         * window.c (Fget_lru_window):
9026         * window.c (Fsplit_window):
9027         * window.c (Fenlarge_window):
9028         * window.c (Fenlarge_window_pixels):
9029         * window.c (Fshrink_window):
9030         * window.c (Fshrink_window_pixels):
9031         * window.c (change_window_height):
9032         * window.c (Fwindow_configuration_p):
9033         * window.c (Fcurrent_window_configuration):
9034         * window.h:
9035         * casefiddle.c (casify_object):
9036         * casefiddle.c (Fupcase):
9037         * casefiddle.c (Fdowncase):
9038         * casefiddle.c (Fcapitalize):
9039         * casefiddle.c (Fupcase_initials):
9040         * casefiddle.c (casify_region_internal):
9041         * casefiddle.c (casify_region):
9042         * casefiddle.c (Fupcase_region):
9043         * casefiddle.c (Fdowncase_region):
9044         * casefiddle.c (Fcapitalize_region):
9045         * casefiddle.c (Fupcase_initials_region):
9046         * casefiddle.c (Fupcase_word):
9047         * casefiddle.c (Fdowncase_word):
9048         * casefiddle.c (Fcapitalize_word):
9049         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9050         Replace 0 with '\0' when working with bytes.
9051         Replace initial "(" with "\(" in docstrings.
9052
9053 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9054
9055         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9056
9057         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9058
9059 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9060
9061         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9062
9063 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9064
9065         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9066         correctly.
9067
9068 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9069
9070         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9071         (inhibit_auto_save_session): New variable.
9072         (vars_of_fileio): Declare and initialize them.
9073         * fileio.c (Fdo_auto_save): Don't create session file if
9074         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9075
9076 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9077
9078         * sgiplay.c (play_internal): C++ compilability.
9079         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9080         * callproc.c (Fold_call_process_internal):
9081         Remove unused vars `env', `first'.
9082         * scrollbar.c (update_scrollbar_instance):
9083         #### unused var `current_window'.
9084         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9085         etc. within #ifdef NOT_YET.
9086         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9087         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9088         * specifier.c (specifier_instance):
9089         #### unused var `tag'.
9090         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9091
9092 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9093
9094         * fns.c (Fbutlast):
9095         * fns.c (list_sort):
9096         * fns.c (Ffillarray):
9097         * fns.c (bytecode_nconc2):
9098         * fns.c (Fnconc):
9099         * fns.c (mapcar1):
9100         * fns.c (Fmapconcat):
9101         Be pedantically 64-bit correct.  For the time when someone will
9102         want to have a list with length > 2**32.
9103
9104         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9105         Work around MIPSpro compiler bug.
9106
9107         * process-unix.c (unix_kill_child_process): Add snarky comment.
9108         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9109
9110         * config.h.in: Oops, _getpt ==> _getpty
9111
9112 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9113
9114         * config.h.in:
9115         * regex.c:
9116         Use void*, not char*, as return type of alloca().
9117
9118         * alloc.c (free_marker): Side effect inside assert expression!
9119
9120 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9121
9122         * mule-charset.c (Fset_charset_ccl_program): To check
9123         if the given ccl program is valid, use setup_ccl_program()
9124         instead of CHECK_VECTOR().
9125         (Fmake_charset): Likewise.
9126
9127 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9128
9129         * faces.c (get_extent_fragment_face_cache_index):
9130         Fix cachel.merged_faces memory leak.
9131
9132 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9133
9134         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9135         Reset MSB of octets obtained by DECODE_SJIS
9136         because of the incompatibility with Emacs.
9137         (ccl_driver)<CCL_ENCODE_SJIS>:
9138         Set MSB of octets before passing them to
9139         ENCODE_SJIS because of the incompatibility
9140         with Emacs.
9141
9142 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9143
9144         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9145         (DECLARE_LRECORD): Undo the last change.
9146         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9147
9148 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9149
9150         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9151         the implementation to lrecord_implementations_table.
9152
9153 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9154
9155         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9156         initial value of `lrecord_type_##c_name' and
9157         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9158         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9159         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9160         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9161         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9162
9163 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9164
9165         * miscplay.c (sndcnv8S_2mono):
9166         (sndcnv2monounsigned):
9167         (sndcnvULaw_2linear):
9168         (sndcnv16swap):
9169         Remove implementation-defined behavior.
9170
9171 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9172
9173         * input-method-xlib.c: Warning suppression.
9174
9175 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9176
9177         * mule-ccl.c: Sync up with Emacs 21.0.90.
9178         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9179         Do nothing.
9180         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9181         Likewise.
9182         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9183         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9184         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9185         leading char belongs to official 2-dimensional charset.
9186         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9187         write the given character as is.  Otherwise,
9188         if it is a multibyte char, convert it by
9189         non_ascii_set_charptr_emchar, then write it.
9190         (CCL_WRITE_STRING): Likewise.
9191         (ccl_get_compiled_code): New function.
9192         (setup_ccl_program): When ccl_prog is invalid,
9193         return -1.
9194         (Fregister_code_conversion_map): New function.
9195         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9196
9197         * mule-ccl.h: Sync up with Emacs 21.0.90.
9198         (Fregister_ccl_program): export it.
9199
9200         * redisplay-msw.c (separate_textual_runs):
9201         If ccl program is not valid, don't do ccl conversion.
9202
9203         * redisplay-x.c (separate_textual_runs): Ditto.
9204
9205         * file-coding.c (Fmake_coding_system):
9206         When type is ccl and value is vector, register it
9207         with a proper symbol.  And checks whether the
9208         given ccl program is valid.
9209         (mule_decode): When calling ccl_driver, if src indicates
9210         NULL pointer, set an empty string instead.
9211         (mule_encode): Likewise.
9212
9213 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9214
9215         The following large batch of changes gets us back to a state of
9216         C++ compilability.  Extbyte is now a char, which means that
9217         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9218
9219         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9220
9221         * sound.c (Fplay_sound): Type correctness.
9222
9223         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9224         (x_get_window_property): Type correctness.
9225         (receive_incremental_selection): unsigned char ==> Extbyte
9226         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9227         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9228         (Fx_store_cutbuffer_internal): Type correctness.
9229
9230         * process-unix.c (try_to_initialize_subtty): Type correctness.
9231
9232         * objects-x.c (x_print_color_instance): Type correctness.
9233         (x_print_font_instance): Type correctness.
9234         (x_list_fonts): SExtbyte ==> Extbyte.
9235         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9236         (x_find_charset_font): SExtbyte ==> Extbyte.
9237         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9238         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9239         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9240         Use bufbyte_strcmp.
9241
9242         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9243         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9244         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9245         (BYTE_C0_P): Use bit ops for char-signedness safety.
9246         (BYTE_C1_P): Use bit ops for char-signedness safety.
9247         (CHARSET_BY_LEADING_BYTE):
9248         (CHARSET_BY_ATTRIBUTES):
9249         Always use inline function.
9250         Use type_checking_assert.
9251         Hide chlook.
9252
9253         * mule-charset.c (non_ascii_charptr_copy_char):
9254         Modify to work with both ASCII and non-ASCII characters.
9255         Improve docs and variable names.
9256         Replace over-clever fall-through switch with a simple loop.
9257         (Lstream_get_emchar_1):
9258         Replace over-clever fall-through switch with a simple loop.
9259
9260         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9261         Warning suppression.
9262
9263         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9264         the return value of Lstream_getc, which could be EOF as well.
9265
9266         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9267
9268         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9269         APIs can be used on Extbytes without casts.  Risky!
9270         (SExtbyte): Remove.
9271         (UExtbyte): Remove.
9272
9273         * input-method-xlib.c (XIM_init_device):
9274         Use Xlib.h instead of IntrinsicP.h.
9275         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9276         which will break in X11R7.
9277         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9278         to call XRegisterIMInstantiateCallback with correct types.
9279
9280         * gui-x.c (button_item_to_widget_value): Type correctness.
9281
9282         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9283
9284         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9285         (xbm_instantiate_1): Type correctness.
9286         (BUILD_GLYPH_INST):  Type correctness.
9287
9288         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9289
9290         * file-coding.c:
9291         (decode_coding_sjis):
9292         (decode_coding_big5):
9293         (decode_coding_ucs4):
9294         (decode_coding_utf8):
9295         (decode_coding_iso2022):
9296         (decode_coding_no_conversion):
9297         Make all decoding functions take an Extbyte * arg.
9298         (encode_coding_sjis):
9299         (encode_coding_big5):
9300         (encode_coding_ucs4):
9301         (encode_coding_utf8):
9302         (encode_coding_iso2022):
9303         (encode_coding_no_conversion):
9304         Make all encoding functions take a Bufbyte * arg.
9305         Use size_t instead of unsigned int for memory sizes.
9306         Only cast to unsigned char whenever dereferencing Extbyte *.
9307
9308         * doc.c (unparesseuxify_doc_string): Type correctness.
9309
9310         * console-x.c (split_up_display_spec):
9311         Rewrite without using details of internal string representation.
9312         (x_semi_canonicalize_device_connection): Type correctness.
9313
9314         * config.h.in:
9315         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9316         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9317         (HAVE_XFREE386): Removed.
9318
9319         * buffer.h (DEC_CHARPTR): `const' correctness.
9320         (bufbyte_strcmp): New.
9321         (bufbyte_memcmp): New.
9322
9323         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9324
9325         * buffer.h (XCHAR_OR_CHAR_INT):
9326         Always use inline function.
9327         Remove redundant type checking assert() - XINT will abort quite nicely.
9328
9329 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9330
9331         * search.c (Freplace_match): Set newtext to an empty string.
9332
9333 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9334
9335         * s/decosf1-3.h: Remove #include of stropts.h
9336         * s/ptx.h: Remove #include of stropts.h
9337         * s/usg5-4.h: Remove #include of stropts.h
9338         * sysproc.h:
9339         * config.h.in:
9340         Use stropts.h, not sys/stropts.h.
9341         Use strtio.h, not sys/strtio.h.
9342
9343 2000-10-04  Martin Buchholz <martin@xemacs.org>
9344
9345         * XEmacs 21.2.36 is released.
9346
9347 2000-09-21  Andy Piper  <andy@xemacs.org>
9348
9349         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9350         changes still involve copying the widget tree.
9351         (update_widget_face): make sure a change is register in the widget
9352         tree. Call update_tab_widget_face appropriately.
9353         (update_tab_widget_face): ditto.
9354         (x_tab_control_redisplay): make sure non-structural changes still
9355         involve copying the widget tree.
9356
9357 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9358
9359         * lread.c (locate_file): Check the path element is non-nil.
9360
9361 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9362
9363         * lisp.h: Warning suppression for SCO compilers.
9364
9365         * redisplay-tty.c (reset_tty_modes): Fix crash.
9366         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9367
9368 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9369
9370         Big signal/process handling overhaul.  Bugs fixed:
9371         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9372         M-x comint-kill-subjob should work for both values nil and t of
9373         process-connection-type. It was broken on most platforms.
9374         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9375         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9376         * process-unix.c: Signal/Process handling overhaul.
9377         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9378         (allocate_pty): Use all available modern methods of allocating
9379         ptys, falling back to old style BSD allocation as a last resort.
9380         Use allegedly more secure Unix98 pty allocation by default.
9381         (allocate_pty_the_old_fashioned_way): New. the last resort.
9382         (unix_create_process): Push ptem, ldterm, ttcompat where
9383         available.  Autoconfiscate.
9384         (try_to_initialize_subtty): New.
9385         (unix_kill_child_process): Proper signal handling for ptys on most
9386         platforms, using special knowledge of AIX, BSD, etc...
9387         (unix_create_process): Always disconnect_controlling_terminal() for
9388         subprocesses, whether using ptys or not.
9389         * process.h: Remove old getpt-dependent PTY code.
9390         * process.c (Fprocess_send_signal): New, obvious generic function.
9391         (decode_signal): New.
9392         (Finterrupt_process):
9393         (Fkill_process):
9394         (Fquit_process):
9395         (Fstop_process):
9396         (Fcontinue_process):
9397         (Fsignal_process): Use decode_signal.
9398         (process_send_signal):
9399         Many docstring corrections.
9400         Allow any signal to be sent to a process object.
9401         * config.h.in: Add symbols for big signal/process overhaul.
9402         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9403         * sysproc.h: Include process-related headers, where available:
9404         sys/stropts.h sys/strtio.h pty.h libutil.h
9405         * s/irix4-0.h:
9406         * s/irix5-0.h:
9407         * s/cygwin32.h:
9408         * s/gnu.h:
9409         * s/linux.h:
9410         * s/hpux.h:
9411         * s/aix3-1.h:
9412         Remove old S&M pty stuff.
9413         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9414         * systty.h: Simplify cpp hackery, improve comments.
9415         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9416
9417         * editfns.c (Fformat_time_string):
9418         Be a little more paranoid with the return value of ctime.
9419
9420         * fileio.c (check_executable):
9421         (check_writable):
9422         Use symbolic constants X_OK, W_OK.
9423
9424         * console-x.c (split_up_display_spec): Fix a warning.
9425
9426 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9427
9428         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9429         * ntproc.c (sys_spawnve): make_string ==> build_string
9430         Small clarity improvements.
9431
9432 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9433
9434         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9435
9436         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9437
9438         * config.h.in (HAVE_STRCASECMP): Remove.
9439
9440 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9441
9442         * redisplay-output.c (redisplay_output_pixmap):
9443         Cleaner and possibly more 64-bit correct code.
9444
9445 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9446
9447         * dumper.c (pdump_load_finish): move restoration of
9448         `noninteractive1' to emacs.c (main_1).
9449         * emacs.c (main_1): protect LISP-visible command-line flags
9450         from pdump_load().
9451
9452 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9453
9454         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9455         DUMP_TARGET instead of literal program names.
9456
9457 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9458
9459         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9460
9461 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9462
9463         * *: Spelling mega-patch
9464
9465 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9466
9467         * fns.c (bad_bad_turtle):
9468         Delete "Eek!" comment, since we fixed the bug to which it refers.
9469
9470 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9471
9472         * alloca.c: Replace REGISTER with register.
9473
9474 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9475
9476         * file-coding.c (ucs_to_char): Use countof.
9477
9478 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9479
9480         * file-coding.c: (ucs_to_char):
9481         (complex_vars_of_file_coding):
9482         Use countof instead of sizeof.
9483         Use CHECK_NATNUM instead of CHECK_INT.
9484
9485         * sysdep.c (strcasecmp): Remove.
9486         * device-x.c (ascii_strcasecmp): New.
9487         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9488         Avoid using non-standard non-portable strcasecmp.
9489
9490 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9491
9492         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9493         * font-lock.c: remove reference to emacsfns.h.
9494         * search.c: small doc improvement.
9495         * event-Xt.c: correct file names in comments.
9496         * console-x.h Correct file names in comments.
9497         * frame.c: Correct file names in comments.
9498         * event-stream.c: remove Energize from comments.
9499
9500 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9501
9502         * symeval.h (DEFERROR_STANDARD):
9503         (DEFERROR):
9504         (DEFSYMBOL):
9505         (DEFSYMBOL_NO_DUMP):
9506         (DEFSYMBOL_MULTIWORD_PREDICATE):
9507         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9508         (DEFKEYWORD):
9509         The construct &##name is not sensible C.
9510         Fixes compilation errors with Unixware native compiler.
9511
9512 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9513
9514         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9515         (next_frame_internal): Removed.  We now just have next_frame.
9516         (next_frame):
9517         Write a simpler and cleaner one-pass algorithm.
9518         Remove called_from_delete_device arg and #ifdefed-out code.
9519         (previous_frame):
9520         Renamed from prev_frame.  Update callers.
9521         Cleaned up to have an analogous implementation to next_frame.
9522         (other_visible_frames_internal): Remove the
9523         called_from_delete_device bogus arg, and hence, remove this
9524         function.  Just use other_visible_frames().
9525
9526         * window.c (Fnext_window):
9527         Prettify docstring.
9528         Since next_frame() is guaranteed to return a frame, remove check
9529         for nil inserted in previous patch.
9530         (Fprevious_window):
9531         Prettify docstring.
9532         Make code look more like Fnext_window.
9533         (window_loop):
9534         Respect the `console' arg when iterating through windows.
9535         Fixes bug: (get-buffer-window buffer t device) not respecting
9536         the `device' arg.
9537         This function needs more work, as others have pointed out.
9538
9539         * frame.h: Rename prev_frame to previous_frame.
9540         device_matches_console_spec no longer takes a `frame' arg.
9541
9542         * s/gnu.h:
9543         * s/linux.h:
9544         * s/hpux.h:
9545         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9546         From "Golubev I. N." <gin@mo.msk.ru>.
9547
9548         * make-src-depend: Fix typo.
9549
9550 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9551
9552         * window.c (Fnext_window):
9553         next_frame() might return nil, not a frame.
9554         Fixes this crash:
9555         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9556
9557         * frame.c (next_frame_internal):
9558         We've passed a frame if we've passed its device.
9559         Fixes this crash:
9560         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9561 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9562
9563 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9564
9565         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9566         Allow option to suppress accelerators in menu/dialog items.
9567         (populate_or_checksum_helper): Pass dialog title through above.
9568
9569 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9570
9571         * event-msw.c (mswindows_key_to_emacs_keysym):
9572         Add "pause" key, fix "menu" key.
9573
9574 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9575
9576         * eval.c (reinit_vars_of_eval):
9577         Increase max_lisp_eval_depth to 1000,
9578         required for thai-xtis.el to byte-compile under some circumstances.
9579
9580 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9581
9582         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9583         From Kenichi Handa.
9584
9585 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9586
9587         * make-src-depend: Make the generated Makefiles smaller.
9588
9589         * s/hpux.h (SETUP_SLAVE_PTY):
9590         Provide a %d in the format string for the errno argument.
9591
9592         * editfns.c (Ftemp_directory):
9593         Warning fix.
9594         Avoid buffer overrun on very long file name.
9595
9596         * input-method-xlib.c (XIM_init_device):
9597         6th parameter of XRegisterIMInstantiateCallback has different
9598         pointer types on different OSes, so simply cast to (void *).
9599
9600         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9601
9602         * sysdll.c (dll_open):
9603         shl_load will hang hard if passed a NULL filename.
9604         Simply return NULL for compatibility with dlopen.
9605         * sysdll.c: Conform to XEmacs coding standards.
9606
9607         * sysdep.c (get_pty_max_bytes):
9608         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9609
9610 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9611
9612         * tooltalk.c: Add #include <syssignal.h>
9613
9614 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9615
9616         * s/hpux.h: Don't use undefined function sigunblock().
9617
9618 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9619
9620         * config.h.in: Add HAVE_BALLOON_HELP.
9621         * emacs.c: Use HAVE_BALLOON_HELP.
9622         * Makefile.in.in (x_objs):
9623         Make Balloon Help conditional on finding shape.h.
9624
9625 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9626
9627         * syntax.c (regex_emacs_buffer_p): New variable.
9628         * syntax.h (regex_emacs_buffer_p): extern.
9629         * search.c (looking_at_1):
9630         (string_match_1):
9631         (fast_string_match):
9632         (search_buffer): Set regex_emacs_buffer_p.
9633         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9634         when before_dot, at_dot, after_dot.
9635
9636 2000-08-23  Andy Piper  <andy@xemacs.org>
9637
9638         * gui-x.c (popup_selection_callback): Only set action_occurred
9639         when we really have an image instance.
9640         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9641
9642 2000-08-23  Andy Piper  <andy@xemacs.org>
9643
9644         * gui-msw.c (mswindows_handle_gui_wm_command): set
9645         action_occurred.
9646         * gui-x.c (popup_selection_callback): ditto.
9647
9648         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9649         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9650         (struct Lisp_Image_Instance): add action_occurred flag.
9651
9652         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9653         (image_instance_changed): ditto.
9654         (reset_frame_subwindow_instance_cache): only unmap windows - do
9655         not remove them from the cache also.
9656
9657         * glyphs-widget.c (tab_control_update): better debug.
9658         (progress_gauge_update): ditto.
9659         (layout_update): ditto.
9660         (layout_instantiate): ditto.
9661         (tab_control_order_only_changed): cope with null pending items.
9662
9663         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9664         debug. Force selection of an item when an action occurred. Cope
9665         with null pending_items.
9666         (mswindows_progress_gauge_redisplay): better debug.
9667         * glyphs-x.c (x_tab_control_redisplay): ditto.
9668
9669         * redisplay.c (redisplay_frame): reset the frame cache if the
9670         frame is garbaged.
9671
9672         * window.c (Fset_window_configuration): potentially re-enable
9673         frame cache reset.
9674         (window_unmap_subwindows): need to finalize instances here since
9675         it is only used in mark_window_as_deleted.
9676
9677 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9678
9679         * nas.c (SndOpenDataForReading):
9680         nas.c (WaveOpenDataForReading):
9681         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9682         Somehow escaped from the 2000-08-14 patch.
9683
9684 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9685
9686         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9687         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9688
9689 2000-08-21  Andy Piper  <andy@xemacs.org>
9690
9691         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9692         window if it is not already displayed.
9693
9694         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9695         it is not already displayed.
9696
9697         * window.c (Fset_window_configuration): don't reset the frame
9698         cache.
9699
9700         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9701         instances from the frame cache if we are actually finalizing them.
9702         (reset_frame_subwindow_instance_cache): reset frame cache only
9703         after unmapping everything.
9704         (map_subwindow): set displayed flag after mapping.
9705
9706 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9707
9708         * data.c (indirect_function):
9709         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9710
9711         * eval.c (function_argcount):
9712         Use original function when signaling errors.
9713
9714 2000-08-18  Andy Piper  <andy@xemacs.org>
9715
9716         * frame.c (delete_frame_internal): use new
9717         free_frame_subwindow_instances name.
9718
9719         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9720         (add_tab_item): make return type correct.
9721         (mswindows_tab_control_instantiate): assert index of tab.
9722         (mswindows_tab_control_redisplay): Re-code to use
9723         gui_item_equal_sans_selected and gui_item_list_find_selected.
9724
9725         * glyphs-widget.c (tab_control_update): Correct comment.
9726
9727         * window.c (window_unmap_subwindows): use new
9728         unmap_subwindow_instance_cache_mapper.
9729         (window_unmap_subwindows_cache_mapper): deleted.
9730         (Fset_window_configuration): comparisons should now be with
9731         EQ. Preserve the subwindow instance cache across configuration
9732         changes.
9733         (allocate_window): ditto.
9734         (make_dummy_parent): ditto.
9735
9736         * glyphs.c (free_frame_subwindow_instances): rename from
9737         free_frame_subwindow_instance_cache. finalize all instances rather
9738         than just those in the display cache.
9739         (finalize_all_subwindow_instances): walk windows unmapping and
9740         finalizing subwindows.
9741         (unmap_subwindow_instance_cache_mapper): moved from
9742         window.c. Allow finalization as well as unmapping.
9743
9744         * gui.c (gui_item_list_find_selected): new function.
9745
9746         * gui.h (gui_item_list_find_selected): declare.
9747
9748         * glyphs-x.c (x_tab_control_redisplay): pick tab
9749         explicitly. Re-code to use gui_item_equal_sans_selected and
9750         gui_item_list_find_selected.
9751
9752         * glyphs-x.h: add lwlib-utils.h
9753
9754         * buffer.c (Frecord_buffer): undo previous change.
9755
9756 2000-08-09  Vin Shelton  <acs@xemacs.org>
9757
9758         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9759         possible.  Create temporary files more securely.  The patch was
9760         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9761         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9762         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9763         for details.
9764
9765 2000-08-07  Ben Wing  <ben@xemacs.org>
9766
9767         * getloadavg.c: remove duplicate (and windows-breaking)
9768         includes of fcntl.h and sys/file.h.
9769
9770         * nt.c: remove duplicate getloadavg() definition.
9771
9772         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9773         encodings.
9774
9775 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9776
9777         * eval.c (function_argcount): If function needs to be autoloaded
9778         actually use the loaded definition.
9779         GCPRO function.
9780
9781 2000-08-05  Ben Wing  <ben@xemacs.org>
9782
9783         * getloadavg.c: add prototype for getloadavg().  remove
9784         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9785         of the code).  remove duplicate header includes.
9786
9787         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9788
9789         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9790         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9791         useful load average.
9792
9793         * alloc.c (reinit_alloc_once_early): removed references to
9794         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9795         the lisp vars are the only things referencing the malloc_sbrk_*
9796         vars, and they were already if 0'd out.  these vars only exist
9797         in the older malloc.c, which is basically unused, and they're
9798         only for informational purposes.
9799
9800         * m\*.h: removed useless VIRT_ADDR_VARIES.
9801
9802         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9803
9804 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9805
9806         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9807         color if the image is a mono pixmap.
9808
9809 2000-07-30  Ben Wing  <ben@xemacs.org>
9810
9811         * Makefile.in.in (release):
9812         Remove stray @.
9813
9814         * buffer.c (directory_is_current_directory):
9815         * dired-msw.c (mswindows_get_files):
9816         * dired.c:
9817         * dired.c (Fdirectory_files):
9818         * dired.c (file_name_completion_stat):
9819         * dired.c (Ffile_attributes):
9820         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9821         preprocessor tricks, to avoid problems on some machines
9822         (e.g. SCO).
9823
9824         * callproc.c (egetenv): GC docs.
9825
9826         * console-msw.h:
9827         * console-msw.h (struct mswindows_dialog_id):
9828         * lrecord.h (lrecord_type):
9829         New object for use with MSW dialogs.
9830
9831         * console.h (struct console_methods):
9832         New enable/disable frame methods, for proper modal dialogs.
9833
9834         * device-msw.c (msprinter_default_printer): Fix to follow
9835         proper Mule conventions.
9836
9837         * device-msw.c:
9838         * device-msw.c (signal_open_printer_error):
9839         * device-msw.c (msprinter_init_device):
9840         * device-msw.c (ensure_not_printing):
9841         * device-msw.c (plist_get_margin):
9842         * device-msw.c (Fmsprinter_select_settings):
9843         * device-msw.c (finalize_devmode):
9844         * device-msw.c (Fmsprinter_settings_despecialize):
9845         * device-msw.c (signal_enum_priner_error):
9846         * extents.c (decode_extent):
9847         * extents.c (decode_map_extents_flags):
9848         * extents.c (decode_extent_at_flag):
9849         * extents.c (Fextent_at):
9850         * extents.c (Fextents_at):
9851         * extents.c (symbol_to_glyph_layout):
9852         [[[[2]]]] Use structured errors.
9853
9854         * dialog-msw.c:
9855         * dialog-msw.c (mswindows_is_dialog_msg):
9856         * dialog-msw.c (mark_mswindows_dialog_id):
9857         * dialog-msw.c (dialog_proc):
9858         * dialog-msw.c (handle_question_dialog_box):
9859         * dialog-msw.c (syms_of_dialog_mswindows):
9860         Define new object to clean up marking; use it as a dialog identifier.
9861         Call new delete-dialog-box-hook.
9862
9863         * dialog-x.c (dbox_selection_callback):
9864         * dialog-x.c (dbox_descriptor_to_widget_value):
9865         * dialog-x.c (x_make_dialog_box_internal):
9866         Call new delete-dialog-box-hook.
9867         Return an id.
9868
9869         * dialog.c:
9870         * dialog.c (syms_of_dialog):
9871         * dialog.c (vars_of_dialog):
9872         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9873
9874         * eval.c:
9875         * eval.c (signal_call_debugger):
9876         when noninteractive, output stack traces on the console instead
9877         of in a (never-seen) buffer.
9878
9879         * eval.c (signal_type_error):
9880         * eval.c (invalid_argument_2):
9881         * lisp.h:
9882         new funs for use w/structured errors.
9883
9884         * event-Xt.c:
9885         * event-Xt.c (x_to_emacs_keysym):
9886         * event-Xt.c (describe_event):
9887         * event-Xt.c (emacs_Xt_event_handler):
9888         * event-Xt.c (vars_of_event_Xt):
9889         * event-msw.c:
9890         * event-msw.c (mswindows_wnd_proc):
9891         * event-msw.c (vars_of_event_mswindows):
9892         rename {x,mswindows}-debug-events to debug-{}-events for
9893         consistency with other debug-foo variables.
9894
9895         * event-stream.c:
9896         document next-event more clearly.
9897
9898         * fileio.c (Ffile_name_directory):
9899         * fileio.c (Ffile_name_nondirectory):
9900         * fileio.c (Funhandled_file_name_directory):
9901         * fileio.c (file_name_as_directory):
9902         * fileio.c (Ffile_name_as_directory):
9903         * fileio.c (directory_file_name):
9904         * fileio.c (Fdirectory_file_name):
9905         * fileio.c (Fmake_temp_name):
9906         * fileio.c (Ffile_truename):
9907         * fileio.c (Fsubstitute_in_file_name):
9908         * fileio.c (expand_and_dir_to_file):
9909         * fileio.c (barf_or_query_if_file_exists):
9910         * fileio.c (check_executable):
9911         * fileio.c (Ffile_exists_p):
9912         * fileio.c (Ffile_writable_p):
9913         * fileio.c (Ffile_directory_p):
9914         * fileio.c (Ffile_regular_p):
9915         * fileio.c (Ffile_modes):
9916         * fileio.c (Ffile_newer_than_file_p):
9917         * fileio.c (Fverify_visited_file_modtime):
9918         * fileio.c (Fset_visited_file_modtime):
9919         * fileio.c (auto_save_1):
9920         (1). (2).
9921         fix up gcpro's.
9922
9923         * frame-msw.c:
9924         * frame-msw.c (mswindows_init_frame_1):
9925         * frame-msw.c (mswindows_enable_frame):
9926         * frame-msw.c (error_frame_unsizable):
9927         * frame-msw.c (msprinter_init_frame_1):
9928         * frame-msw.c (msprinter_init_frame_3):
9929         * frame-msw.c (console_type_create_frame_mswindows):
9930         (2).
9931         implement new enable/disable frame methods.
9932
9933         * frame-x.c:
9934         * frame-x.c (x_enable_frame):
9935         * frame-x.c (console_type_create_frame_x):
9936         implement new enable/disable frame methods.
9937
9938         * frame.c:
9939         * frame.c (Fdisable_frame):
9940         * frame.c (syms_of_frame):
9941         * frame.h (struct frame):
9942         implement new enable/disable frame methods/functions.
9943
9944         * general-slots.h:
9945         add initial-focus.
9946
9947         * glyphs-msw.c (mswindows_widget_instantiate):
9948         comment that initial-focus should be implemented.
9949
9950         * glyphs-widget.c:
9951         * glyphs-widget.c (check_valid_instantiator):
9952         * glyphs-widget.c (check_valid_orientation):
9953         * glyphs-widget.c (check_valid_tab_orientation):
9954         * glyphs-widget.c (check_valid_justification):
9955         * glyphs-widget.c (check_valid_border):
9956         * glyphs-widget.c (check_valid_callback):
9957         * glyphs-widget.c (check_valid_int_or_function):
9958         * glyphs-widget.c (check_valid_string_or_vector):
9959         * glyphs-widget.c (check_valid_item_list_1):
9960         * glyphs-widget.c (widget_validate):
9961         * glyphs-widget.c (combo_box_validate):
9962         * glyphs-widget.c (widget_instantiate):
9963         * glyphs-widget.c (syms_of_glyphs_widget):
9964         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9965         * glyphs-widget.c (image_instantiator_combo_box):
9966         * glyphs-widget.c (image_instantiator_scrollbar):
9967         * glyphs-widget.c (image_instantiator_tab_control):
9968         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9969         (2).
9970         support (unimplemented) keyword initial-focus.
9971         reindent long macros.
9972
9973         * glyphs-x.c (x_redisplay_widget):
9974         * glyphs-x.c (x_button_instantiate):
9975         * glyphs-x.c (x_button_redisplay):
9976         * glyphs-x.c (x_progress_gauge_instantiate):
9977         * glyphs-x.c (x_edit_field_instantiate):
9978         * glyphs-x.c (x_combo_box_instantiate):
9979         * glyphs-x.c (x_tab_control_instantiate):
9980         * glyphs-x.c (x_label_instantiate):
9981         * gui-x.c:
9982         * gui-x.c (button_item_to_widget_value):
9983         * gui-x.c (gui_items_to_widget_values_1):
9984         * gui-x.c (gui_item_children_to_widget_values):
9985         * gui-x.c (gui_items_to_widget_values):
9986         * gui-x.h:
9987         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9988         add new flag to gui-parsing routines to indicate whether
9989         accelerator specs should be supported.
9990
9991         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9992
9993         * glyphs.h (struct Lisp_Image_Instance):
9994         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9995         add initial-focus flag.
9996
9997         * gui.c:
9998         * gui.c (syms_of_gui):
9999         * gui.c (vars_of_gui):
10000         clean up menu-no-selection-hook.
10001
10002         * gui.h:
10003         support delete-dialog-box-hook.
10004
10005         * lread.c (Fload_internal):
10006         * lread.c (locate_file_in_directory_mapper):
10007         (1).
10008
10009         * lrecord.h:
10010         * lrecord.h (struct toolbar_button):
10011         * lrecord.h (syms_of_toolbar):
10012         document how to create a new object.
10013
10014         * menubar-msw.c (mswindows_char_is_accelerator):
10015         may be called on frames w/o menus.
10016
10017         * menubar.c (vars_of_menubar):
10018         clean up :filter docs.
10019
10020         * nt.c (readdir):
10021         * ntproc.c:
10022         (1).
10023
10024         * process-nt.c:
10025         * process-nt.c (validate_signal_number):
10026         * process-nt.c (signal_cannot_launch):
10027         * process-nt.c (nt_create_process):
10028         * process-nt.c (nt_send_process):
10029         * process-nt.c (nt_kill_child_process):
10030         * process-nt.c (nt_open_network_stream):
10031         * process-nt.c (syms_of_process_nt):
10032         (2).
10033         delete quote-handling.  call new lisp code that does it better.
10034
10035         * process-unix.c (connect_to_file_descriptor):
10036         * process-unix.c (allocate_pty):
10037         * process-unix.c (unix_send_process):
10038         * process-unix.c (unix_kill_child_process):
10039         * process-unix.c (unix_open_network_stream):
10040         * process-unix.c (unix_open_multicast_group):
10041         (1). (2).
10042
10043         * process.c:
10044         * process.c (Fstart_process_internal):
10045         (2).  need to canonicalize process path even if absolute.
10046
10047         * select-msw.c (symbol_to_ms_cf):
10048         * select-msw.c (ms_cf_to_symbol):
10049         * select-msw.c (cf_is_autofreed):
10050         * select-msw.c (mswindows_destroy_selection):
10051         * select.c:
10052         * select.c (syms_of_select):
10053         * select.h:
10054         support dibv5, fix bugs. (from Mike Alexander)
10055
10056         * select.c (Fget_selection_internal):
10057         * select.c (select_convert_out):
10058
10059         * sysdep.c:
10060         * sysdep.c (xemacs_stat):
10061         renamed.
10062
10063         * sysdep.c (mkdir):
10064         * sysdep.c (rmdir):
10065         but keep original stat() here because we provide encapsulation
10066         around these funs.
10067
10068         * sysfile.h:
10069         * sysfile.h (fstat):
10070         remove stat garbage.
10071
10072         * syswindows.h:
10073         fix X/MSW conflict.
10074         don't include tchar.h.  it's inappropriate because it makes
10075         compile-time distinctions when we want runtime distinctions.
10076         (we provide our own tchar replacements)
10077
10078         * toolbar.c:
10079         use default object printer for toolbar-button.
10080
10081         * unexcw.c:
10082         make sure we don't encapsulate.
10083
10084         * window.c (vars_of_window):
10085         emphasize that temp-buffer-show-hook is obsolete.
10086
10087 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10088
10089         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10090         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10091
10092         * events.c (Fevent_timestamp_lessp):
10093         Not 64-bit clean.  Use EMACS_INT, not int.
10094
10095 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10096
10097         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10098         unsigned int and changed the last enum to
10099         lrecord_type_last_built_in_type.
10100         (lrecord_implementations_table): changed prototype to know how
10101         long the array is supposed to be.
10102         (lrecord_type_count): new unsigned int to keep track of the
10103         current number of lisp lrecord types.
10104         (DEFINE_EXTERNAL_LRECORD):
10105         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10106         dynamic-modules to declare new lisp types. They are the same
10107         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10108         int for each new type, and increment lrecord_type_count by 1.
10109
10110         * alloc.c (lrecord_implementations_table): Changed to reference
10111         lrecord_type_last_built_in_type for the size of the array.
10112         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10113
10114 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10115
10116         * glyphs.h (check_valid_item_list): Renamed from
10117         check_valid_item_list_1.
10118
10119 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10120
10121         * select.c (Qselect_coerce): New.
10122         * select.c (Vselection_coercion_alist): New.
10123         * select.c (syms_of_select): Declare.
10124         * select.c (get-selection-internal): Use it.
10125         Use the new select-coerce functionality.
10126
10127         * select.c (select_coerce): New.
10128         * select.h (select_coerce): Declare.
10129         New function to coerce one type of data into another.
10130
10131 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10132
10133         * callproc.c (Fcall_process_internal):
10134         (Fcall_process_internal):
10135         * process-unix.c (unix_create_process):
10136         Save and restore the value of errno, so that error messages are accurate.
10137
10138 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10139
10140         * elhash.c (print_hash_table):
10141         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10142         Prettify docstrings and indentation.
10143
10144 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10145
10146         * window.c (Fwindow_pixel_edges): Subtract frame border and
10147         gutter size.
10148
10149 2000-07-31  Andy Piper  <andy@xemacs.org>
10150
10151         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10152         will acknowledge the change.
10153
10154         * glyphs.h: declare tab_control_order_only_changed.
10155
10156         * glyphs-x.c (x_tab_control_redisplay): use
10157         tab_control_order_only_changed.
10158
10159         * glyphs-widget.c (tab_control_order_only_changed): new function.
10160
10161         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10162         tab_control_order_only_changed.
10163
10164         * gui.c (gui_item_equal_sans_selected): new function.
10165         (gui_item_equal): use it.
10166
10167         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10168         :properties in favor of :items..
10169
10170         * glyphs-widget.c (check_valid_item_list): rename from
10171         check_valid_item_list_1.
10172         (check_valid_item_list_1): renamed.
10173         (combo_box_validate): deprecate :properties in favor of :items.
10174         (widget_instantiate): ditto.
10175         (tab_control_update): ditto.
10176         (image_instantiator_combo_box): ditto.
10177         (image_instantiator_tree_view): ditto.
10178         (image_instantiator_tab_control): ditto.
10179         (layout_post_instantiate): remove dead code.
10180
10181         * print.c (debug_print_no_newline): only write to debugger if in
10182         WIN32_NATIVE.
10183
10184         * elhash.c (Fmake_hash_table): update doc string.
10185
10186         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10187         messages whilst in GC. This at least stops XEmacs crashing but has
10188         the potential for wierd behaviour.
10189
10190 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10191
10192         * config.h.in:
10193         Make existence of s&m files optional.
10194
10195         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10196         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10197         * s/gnu.h: Remove HAVE_GETLOADAVG.
10198         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10199         * s/sol2.h: Remove HAVE_GETLOADAVG.
10200         * lisp.h: Remove getloadavg() declaration.
10201         * fns.c:
10202         Include <sys/loadavg.h> if available.
10203         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10204         * config.h.in:  Group together getloadavg()-related macros.
10205         Use only configure-time tests to detect getloadavg().
10206
10207 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10208
10209         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10210
10211 2000-07-25  Andy Piper  <andy@xemacs.org>
10212
10213         * syswindows.h: add tchar.h for native builds.
10214
10215         * frame.c (syms_of_frame): remove set-glyph-image.
10216
10217         * general-slots.h: add Qset_glyph_image.
10218
10219         * glyphs-widget.c (layout_update): add domain arg to
10220         set-glyph-image.
10221         (syms_of_glyphs_widget): remove set-glyph-image.
10222
10223 2000-07-23  Ben Wing  <ben@xemacs.org>
10224
10225         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10226         Vpopup_frame_list.
10227
10228 2000-07-22  Andy Piper  <andy@xemacs.org>
10229
10230         * symsinit.h: add syms_of_win32().
10231
10232         * gui-msw.c (syms_of_gui_mswindows): remove
10233         Fmswindows_shell_execute.
10234         (Fmswindows_shell_execute): moved to win32.c.
10235
10236         * emacs.c (main_1): add syms_of_win32 ().
10237
10238         * win32.c (init_potentially_nonexistent_functions): rewrite in
10239         compiler-friendly terms.
10240         (Fmswindows_shell_execute): move here from gui-msw.c.
10241         (syms_of_win32): new.
10242
10243         * device-msw.c (Fmswindows_printer_list): clean up args to
10244         EnumPrinters.
10245         Don't include tchar under cygwin or mingw.
10246         (msprinter_default_printer): make cygwin-friendly.
10247
10248 2000-07-21  Andy Piper  <andy@xemacs.org>
10249
10250         * glyphs-widget.c (image_instantiator_tree_view): use tab
10251         control's update function.
10252         (layout_property): new function. Retrieve items.
10253
10254         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10255         function. Re-populate the tree view from the pending items.
10256
10257         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10258         is designated the parent if the domain is an image instance. This
10259         is needed so that dirtiness can be cascade up the hierarchy and
10260         thus for layout children to be redisplayed correctly.
10261         (allocate_image_instance): rename glyph -> parent.
10262
10263         * redisplay.h: change redisplay_output_layout signature.
10264
10265         * redisplay-msw.c (mswindows_output_display_block): use domain
10266         arg.
10267
10268         * redisplay-x.c (x_output_display_block): use domain arg.
10269
10270 2000-07-10  Andy Piper  <andy@xemacs.org>
10271
10272         * window.c (Fset_window_configuration): add comment.
10273
10274         * redisplay-output.c (compare_runes):
10275         (redisplay_output_subwindow): redisplay rather than update subwindow.
10276         (redisplay_output_layout): ditto.
10277
10278         * redisplay-msw.c (mswindows_frame_output_end):
10279         (mswindows_frame_output_end): make defer window pos optional.
10280
10281         * lisp.h: add Flast.
10282
10283         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10284         normalize method. Change update method to be for changed
10285         instantiators. Add redisplay method. Change signature of layout
10286         method.
10287         (struct Lisp_Image_Instance): add instantiator.
10288         (IMAGE_INSTANCE_INSTANTIATOR): new.
10289         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10290         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10291         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10292
10293         * glyphs.c:
10294         (find_instantiator_differences): new function.
10295         (Fset_instantiator_property): new convenience function.
10296         (check_image_instance_structure): strictly check for vector
10297         instantiators.
10298         (normalize_image_instantiator): make non-static.
10299         (instantiate_image_instantiator): pass on dest_mask and use new
10300         signatures for image_instance_layout and friends.
10301         (mark_image_instance): mark the instantiator. Mark the subwindow
10302         face not the widget face.
10303         (image_instance_equal): add instantiator.
10304         (image_instance_hash): ditto.
10305         (allocate_image_instance): ditto.
10306         (Fset_image_instance_property): removed.
10307         (Fimage_instance_file_name): ditto.
10308         (Fcolorize_image_instance): ditto.
10309         (image_instance_layout): add offsets to be set.
10310         (update_image_instance): new function. update an image instance
10311         from its changed instantiator.
10312         (inherit_normalize): add dest_mask.
10313         (xbm_normalize): ditto.
10314         (xface_normalize): ditto.
10315         (xpm_normalize): ditto.
10316         (text_update): set_property -> update.
10317         (image_instantiate): use the glyph identity as a hash key, not the
10318         instantiator.
10319         (glyph_width): use new image_instance_layout signature.
10320         (glyph_ascent): ditto.
10321         (glyph_descent): ditto.
10322         (glyph_height): ditto.
10323         (glyph_query_geometry): ressurrect.
10324         (glyph_layout): ditto.
10325         (redisplay_subwindow): update -> redisplay.
10326         (syms_of_glyphs): add Fset_instantiator_property.
10327         (image_instantiator_format_create): set_property -> update.
10328
10329         * glyphs-x.c:
10330         (autodetect_normalize): add dest_maks to signature.
10331         (x_redisplay_subwindow): update -> redisplay.
10332         (x_redisplay_widget): ditto.
10333         (x_button_redisplay): ditto.
10334         (x_progress_gauge_redisplay): ditto.
10335         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10336         stacking order.
10337         (console_type_create_glyphs_x): update -> redisplay.
10338         (image_instantiator_format_create_glyphs_x): ditto.
10339
10340         * glyphs-widget.c:
10341         (check_valid_instantiator): disallow glyphs in the instantiator,
10342         they must now be vectors.
10343         (check_valid_instantiator_list): ditto.
10344         (glyph_instantiator_to_glyph): use internal symbol rather than
10345         intern.
10346         (widget_update): renamed from widget_set_property. Call cascaded
10347         update methods.
10348         (redisplay_widget): renamed from update_widget.
10349         (widget_layout): image_instance_layout now takes position as well
10350         as size.
10351         (widget_normalize): ditto.
10352         (widget_instantiate): ditto.
10353         (tab_control_query_geometry) ditto.:
10354         (tab_control_update): renamed from tab_control_set_property.
10355         (progress_gauge_update): set_property -> update.
10356         (layout_normalize): rewrite so that child instantiators are
10357         normalized also.
10358         (layout_update): new function. Create glyphs from the normalized
10359         children and cope with any other layout keywords. We do not
10360         instantiate children here that will be take care of by
10361         redisplay_output_layout.
10362         (layout_instantiate): call layout_update and not much else.
10363         (layout_post_instantiate): not sure whether this is needed
10364         anymore.
10365         (layout_query_geometry): query glyph geometry rather than
10366         image_instance geometry.
10367         (layout_layout): set offsets from pass in parameters. Use glyph
10368         geometry and layout functions rather than image instance ones.
10369         (native_layout_layout): ditto.
10370         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10371         (image_instantiator_widget): set_property -> update.
10372         (image_instantiator_buttons): ditto.
10373         (image_instantiator_progress_guage): ditto.
10374         (image_instantiator_tab_control): ditto.
10375         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10376         (image_instantiator_layout): add update method.
10377
10378         * glyphs-msw.c (bmp_normalize):
10379         (mswindows_resource_normalize): add dest_mask so that it can be
10380         proprogated by layout_normalize.
10381         (begin_defer_window_pos): make optional because it may not be the
10382         right thing to do and it introduces differences with X.
10383         (mswindows_unmap_subwindow): ditto.
10384         (mswindows_map_subwindow): ditto.
10385         (mswindows_redisplay_subwindow): renamed from
10386         mswindows_update_subwindow.
10387         (mswindows_redisplay_widget): ditto.
10388         (mswindows_button_redisplay): renamed from
10389         mswindows_button_update. Update is now what the instantiation
10390         function does for a changed instantiator.
10391         (mswindows_progress_gauge_instantiate): set the progress value
10392         here if appropriate.
10393         (mswindows_tab_control_redisplay): cope with re-ordering of the
10394         members of the tab widget by simply selecting the new top
10395         widget. This makes things appear ok if you click on a tab.
10396         (mswindows_combo_box_instantiate): image_instance_layout now takes
10397         position as well as size.
10398         (mswindows_progress_gauge_redisplay): renamed from
10399         mswindows_progress_gauge_update.
10400         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10401         (image_instantiator_format_create_glyphs_mswindows): ditto.
10402
10403         * glyphs-eimage.c (jpeg_normalize):
10404         (gif_normalize):
10405         (png_normalize):
10406         (tiff_normalize): add dest_mask so that it can be proprogated by
10407         layout_normalize.
10408
10409         * elhash.c:
10410         (print_hash_table):
10411         (hash_table_weakness_validate):
10412         (decode_hash_table_weakness):
10413         (Fhash_table_weakness):
10414         (Fhash_table_type):
10415         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10416
10417         * console.h (struct console_methods): move update_* to
10418         redisplay_*.
10419
10420 2000-07-20  Ben Wing  <ben@xemacs.org>
10421
10422         * *.[ch] (XSETOBJ): remove unused middle argument.
10423         lisp-disunion.h: correct wrap_object() to one argument.
10424
10425 2000-07-15  Ben Wing  <ben@xemacs.org>
10426
10427         * s/cygwin32.h:
10428         * s/cygwin32.h (CYGWIN_CONV_PATH):
10429         Add missing logb prototype for v1.1.
10430         Use post-b20 names and alias to pre-b20 names when pre-b20.
10431
10432         * s/windowsnt.h: [5].
10433
10434 2000-07-15  Ben Wing  <ben@xemacs.org>
10435
10436         * Makefile.in.in (x_objs):
10437         * Makefile.in.in (sheap_objs):
10438         * Makefile.in.in (objs):
10439         added win32.o, cosmetic cleanups.
10440
10441         * alloc.c (Fmake_byte_code):
10442         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10443         etc. macros which declare their own args now.
10444
10445         * alloc.c (syms_of_alloc):
10446         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10447
10448         * buffer.c:
10449         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10450
10451         * buffer.c (Fget_file_buffer):
10452         Fixed GCPRO problem.
10453
10454         * buffer.c (get_truename_buffer):
10455         Fixed comment about GC checking.
10456
10457         * buffer.c (syms_of_buffer):
10458         Undeclared those dedicated frame funs.
10459         [2].
10460
10461         * buffer.h:
10462         Define convenience macros for internal/external conversions.
10463         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10464         and Qenvironment_variable_encoding for cleaner code.
10465
10466         * bufslots.h:
10467         Remove dedicated-frame; in lisp.
10468
10469         * bytecode.c (funcall_compiled_function):
10470         [1].
10471
10472         * bytecode.c (syms_of_bytecode):
10473         [2].
10474
10475         * console-msw.c:
10476         * console-msw.c (mswindows_show_console): Rewrote.
10477
10478         * console-msw.c (Fmswindows_debugging_output): New.
10479         Sends to OutputDebugString (special MSWin debugger interface).
10480
10481         * console-msw.c (Fmswindows_message_box):
10482         Fixed stupid bugs so it works when called from kill-emacs.
10483
10484         * console-msw.c (syms_of_console_mswindows):
10485         Declare Fmswindows_debugging_output.
10486
10487         * console-msw.h:
10488         New MSWin prototypes.
10489
10490         * console-msw.h (struct mswindows_frame):
10491         New entry last-click-mods for improved button-modifier support.
10492
10493         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10494         New struct entry `popup' with corresponding accessor.
10495
10496         * console-x.c:
10497         * console-x.c (split_up_display_spec):
10498         * console-x.c (get_display_arg_connection):
10499         * console-x.c (x_semi_canonicalize_console_connection):
10500         * console-x.c (x_canonicalize_device_connection):
10501         [[[6]]]: Change char to more specific type.
10502         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10503
10504         * console-x.c (x_semi_canonicalize_console_connection):
10505         * console-x.c (x_canonicalize_device_connection):
10506         [[[9]]]: Fix up error signalling to use new structured error system.
10507
10508         * console-x.h:
10509         [[[4]]]: Define codesys aliases:
10510         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10511         Qx_color_name_encoding, Qx_display_name_encoding.
10512
10513         * console.h (struct console_methods):
10514         New method make_dialog_box_internal supersedes older
10515         popup_dialog_box method.
10516
10517         * data.c:
10518         Define many new errors, part of new structured errors.
10519
10520         * data.c (init_errors_once_early):
10521         * data.c (syms_of_data):
10522         [2].
10523
10524         * device-msw.c (mswindows_init_device):
10525         [[[5]]]: Cleanup to support NT 3.51.
10526
10527         * device-msw.c (decode_devmode): Cleanup.
10528
10529         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10530         * device-msw.c (mswindows_handle_print_dialog_box):
10531         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10532         * device-msw.c (syms_of_device_mswindows):
10533         Delete the dialog box primitives recently introduced by Kirill and
10534         instead interface to general dialog box interface.
10535
10536         * device-x.c:
10537         * device-x.c (compute_x_app_name):
10538         * device-x.c (x_init_device):
10539         * device-x.c (Fx_valid_keysym_name_p):
10540         * device-x.c (Fx_set_font_path):
10541         [6].
10542         [7].
10543
10544         * device.h (wrap_device): New.
10545         First of its kind; meant to replace XSETDEVICE.
10546
10547         * dialog-msw.c: Many file-dialog symbols.
10548
10549         * dialog-msw.c (mswindows_register_popup_frame): New.
10550         * dialog-msw.c (mswindows_is_dialog_msg): New.
10551         For supporting kbd traversal in dialog boxes.
10552
10553         * dialog-msw.c (dialog_proc):
10554         Support hitting ESC in dialogs.
10555
10556         * dialog-msw.c (struct):
10557         Common dialog box errors.
10558
10559         * dialog-msw.c (handle_file_dialog_box): New.
10560         Add file dialog code.
10561
10562         * dialog-msw.c (handle_question_dialog_box):
10563         Redo existing code to support new question dialog syntax.
10564
10565         * dialog-msw.c (console_type_create_dialog_mswindows):
10566         We support new dialog console method.
10567
10568         * dialog-msw.c (syms_of_dialog_mswindows):
10569         * dialog-msw.c (vars_of_dialog_mswindows):
10570         New file dialog symbols, vars.
10571
10572         * dialog-x.c:
10573         * dialog-x.c (maybe_run_dbox_text_callback):
10574         * dialog-x.c (dbox_descriptor_to_widget_value):
10575         * dialog-x.c (x_make_dialog_box_internal):
10576         * dialog-x.c (console_type_create_dialog_x):
10577         Mule-ize entire file.
10578         Redo to support question dialog syntax.
10579         [6].
10580
10581         * dialog.c:
10582         * dialog.c (Fmake_dialog_box_internal):
10583         * dialog.c (syms_of_dialog):
10584         Kill old popup-dialog-box, replace with new primitive.
10585         Just call device method or signal error.
10586
10587         * eldap.c (Fldap_open):
10588         * eldap.c (Fldap_search_basic):
10589         * eldap.c (Fldap_add):
10590         * eldap.c (Fldap_modify):
10591         [1].
10592         [7].
10593
10594         * emacs.c:
10595         * emacs.c (make_arg_list_1):
10596         * emacs.c (make_arg_list):
10597         Mule-ize call to dll_init().
10598         [6].
10599         [8].
10600
10601         * emacs.c (make_argc_argv):
10602         * emacs.c (free_argc_argv):
10603         * emacs.c (init_cmdargs):
10604         * emacs.c (main_1):
10605         * emacs.c (Fkill_emacs):
10606         * emacs.c (Fdump_emacs):
10607         Update comments about what can be used in syms_* etc.
10608         Call init_win32() when necessary.
10609         Fix up MS Win dialog box in kill-buffer to actually work right.
10610         [7].
10611
10612         * eval.c:
10613         * eval.c (For):
10614         * eval.c (Fand):
10615         * eval.c (Fprogn):
10616         * eval.c (Fprog1):
10617         * eval.c (Fprog2):
10618         * eval.c (FletX):
10619         * eval.c (Flet):
10620         * eval.c (condition_case_3):
10621         * eval.c (Feval):
10622         * eval.c (function_argcount):
10623         * eval.c (funcall_lambda):
10624         [1].
10625
10626         * eval.c (type_error): New.
10627         * eval.c (maybe_type_error): New.
10628         * eval.c (continuable_type_error): New.
10629         * eval.c (maybe_continuable_type_error): New.
10630         * eval.c (type_error_with_frob): New.
10631         * eval.c (maybe_type_error_with_frob): New.
10632         * eval.c (continuable_type_error_with_frob): New.
10633         * eval.c (maybe_continuable_type_error_with_frob): New.
10634         New functions for use with structured errors.
10635
10636         * event-Xt.c:
10637         * event-Xt.c (x_event_to_emacs_event):
10638         Buttons are now modifiers too.
10639
10640         * event-Xt.c (emacs_Xt_current_event_timestamp):
10641         Implement new event method.
10642         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10643
10644         * event-msw.c:
10645         * event-msw.c (ntpipe_shove_writer): [5].
10646         * event-msw.c (mswindows_enqueue_mouse_button_event):
10647         * event-msw.c (mswindows_drain_windows_queue):
10648         * event-msw.c (mswindows_wnd_proc): [7].
10649         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10650         * event-msw.c (mswindows_modifier_state):
10651         Throughout: support new button modifiers.
10652
10653         * event-msw.c (emacs_mswindows_current_event_timestamp):
10654         Implement new event method.
10655         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10656
10657         * event-stream.c:
10658         * event-stream.c (event_stream_current_event_timestamp): New.
10659         * event-stream.c (maybe_kbd_translate): New functionality.
10660         * event-stream.c (vars_of_event_stream):
10661         Document new kbd-translate-table functionality.
10662
10663         * event-stream.c (Fcurrent_event_timestamp): New.
10664         New primitive for use in fabricated events.
10665         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10666
10667         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10668
10669         * events.c:
10670         * events.c (Fmake_event):
10671         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10672         [1].
10673         [9].
10674
10675         * events.c (format_event_object): fix gcc warnings.
10676
10677         * events.c (Fevent_timestamp): Document new primitives.
10678
10679         * events.c (TIMESTAMP_HALFSPACE): New.
10680
10681         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10682         comparing timestamps correctly (half-space algorithm).
10683
10684         * events.c (Fevent_modifier_bits): Doc fix.
10685
10686         * events.c (Fevent_modifiers): Major doc addition.
10687         * events.c (event_x_y_pixel_internal): Typo fix.
10688         * events.c (syms_of_events): Declare new primitives.
10689
10690         * events.h:
10691         Update long comment for button modifiers, timestamps.
10692
10693         * events.h (struct event_stream):
10694         New current_event_timestamp method.
10695
10696         * extents.c:
10697         * extents.c (extent_in_region_p):
10698         * extents.c (decode_extent):
10699         * extents.c (Fset_extent_parent):
10700         * extents.c (decode_map_extents_flags):
10701         Fix gcc warnings.
10702         [9].
10703
10704         * extents.c (struct extent_at_arg):
10705         * extents.c (decode_extent_at_flag):
10706         * extents.c (extent_at_mapper):
10707         * extents.c (extent_at_bytind):
10708         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10709         * extents.c (Fextents_at): New primitive. [9].
10710         * extents.c (symbol_to_glyph_layout): [9].
10711         Support new primitive `extents-at'.
10712
10713
10714         * extents.c (get_text_property_bytind):
10715         extent_at_bytind has another arg.
10716         [9].
10717
10718         * extents.c (syms_of_extents): New primitive.
10719
10720         * file-coding.c (Fmake_coding_system): [1].
10721         * file-coding.c (subsidiary_coding_system): fix gcc warning
10722         * file-coding.c (syms_of_file_coding): [2].
10723
10724         * fileio.c (Fexpand_file_name):
10725         * fileio.c (Fsysnetunam):
10726         * fileio.c (Ffile_exists_p):
10727         * fileio.c (Ffile_executable_p):
10728         * fileio.c (Fverify_visited_file_modtime):
10729         Clean up GCPROing.
10730
10731         * fileio.c (syms_of_fileio): [2].
10732
10733         * filelock.c (lock_file_1):
10734         * filelock.c (current_lock_owner):
10735         * filelock.c (lock_if_free):
10736         * filelock.c (lock_file):
10737         * filelock.c (unlock_file):
10738         Clean up GCPROing.
10739
10740         * fns.c (concat): Fix gcc warning.
10741
10742         * fns.c (Fmember):
10743         * fns.c (Fold_member):
10744         * fns.c (Fmemq):
10745         * fns.c (Fold_memq):
10746         * fns.c (memq_no_quit):
10747         * fns.c (Fassoc):
10748         * fns.c (Fold_assoc):
10749         * fns.c (Fassq):
10750         * fns.c (Fold_assq):
10751         * fns.c (assq_no_quit):
10752         * fns.c (Frassoc):
10753         * fns.c (Fold_rassoc):
10754         * fns.c (Frassq):
10755         * fns.c (Fold_rassq):
10756         * fns.c (rassq_no_quit):
10757         * fns.c (Fdelete):
10758         * fns.c (Fold_delete):
10759         * fns.c (Fdelq):
10760         * fns.c (Fold_delq):
10761         * fns.c (delq_no_quit):
10762         * fns.c (Fremassoc):
10763         * fns.c (Fremassq):
10764         * fns.c (remassq_no_quit):
10765         * fns.c (Fremrassoc):
10766         * fns.c (Fremrassq):
10767         * fns.c (remrassq_no_quit):
10768         * fns.c (Freverse):
10769         * fns.c (mapcar1):
10770         [1].
10771
10772         * frame-msw.c (mswindows_init_frame_1):
10773         * frame-msw.c (mswindows_delete_frame):
10774         Register popups with dialog code so keyboard traversing works.
10775
10776         * frame-tty.c (tty_raise_frame_no_select): [1].
10777
10778         * frame-x.c:
10779         * frame-x.c (x_set_frame_text_value):
10780         * frame-x.c (x_set_frame_properties):
10781         * frame-x.c (x_create_widgets):
10782         [7].
10783
10784         * frame.c:
10785         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10786
10787         * frame.h (wrap_frame): New.
10788         Macro like wrap_device.
10789
10790         * general.c:
10791         * general.c (SYMBOL):
10792         * general.c (syms_of_general):
10793         Major reorg.  This is now just a wrapper and symbols themselves
10794         are listed in general-slots.h.
10795
10796         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10797         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10798
10799         * glyphs-msw.c (mswindows_native_layout_instantiate):
10800         Add DS_CONTROL so keyboard traversal will work.
10801
10802         * glyphs-widget.c:
10803         * glyphs-widget.c (syms_of_glyphs_widget):
10804         Move some symbols to general-slots.h.
10805
10806         * glyphs-x.c:
10807         * glyphs-x.c (xbm_instantiate_1):
10808         * glyphs-x.c (x_xbm_instantiate):
10809         * glyphs-x.c (x_xface_instantiate):
10810         * glyphs-x.c (autodetect_instantiate):
10811         * glyphs-x.c (cursor_font_instantiate):
10812         * glyphs-x.c (x_update_widget):
10813         * glyphs-x.c (x_widget_instantiate):
10814         * glyphs.c (bitmap_to_lisp_data):
10815         * glyphs.c (pixmap_to_lisp_data):
10816         [7].
10817
10818         * glyphs.c (syms_of_glyphs):
10819         [2].
10820
10821         * gui-x.c:
10822         * gui-x.c (print_widget_value):
10823         * gui-x.c (menu_separator_style_and_to_external):
10824         * gui-x.c (add_accel_and_to_external):
10825         * gui-x.c (button_item_to_widget_value):
10826         * gui-x.c (gui_items_to_widget_values_1):
10827         * gui-x.c (gui_items_to_widget_values):
10828         * gui-x.c (syms_of_gui_x):
10829         * gui-x.c (vars_of_gui_x):
10830         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10831         [9].
10832
10833         * gui-x.h:
10834         Muleize, prototype changes matching gui-x.c.
10835
10836         * gui.c:
10837         * gui.c (separator_string_p):
10838         * gui.c (gui_item_add_keyval_pair):
10839         * gui.c (make_gui_item_from_keywords_internal):
10840         * gui.c (signal_too_long_error):
10841         * gui.c (parse_gui_item_tree_item):
10842         * gui.c (syms_of_gui):
10843         * gui.c (vars_of_gui):
10844         * gui.h:
10845         menu-no-selection-hook moved here (used by MSWin).
10846         Move some symbols to general-slots.h.
10847         [6].
10848         [9].
10849
10850         * insdel.c (get_buffer_pos_char):
10851         * insdel.c (get_buffer_range_char):
10852         Add GC comments.
10853
10854         * keymap.c (keymap_lookup_directly):
10855         * keymap.c (keymap_store):
10856         * keymap.c (ensure_meta_prefix_char_keymapp):
10857         * keymap.c (describe_map):
10858         * keymap.h:
10859         Support new button modifiers.
10860
10861         * lisp-disunion.h (wrap_object):
10862         * lisp-disunion.h (XSETOBJ):
10863         Rename make_obj to wrap_object.
10864
10865         * lisp-union.h:
10866         * lisp-union.h (make_int):
10867         * lisp-union.h (make_char):
10868         Support wrap_object.
10869
10870         * lisp.h:
10871         * lisp.h (LIST_LOOP):
10872         * lisp.h (EXTERNAL_LIST_LOOP):
10873         * lisp.h (LIST_LOOP_2):
10874         * lisp.h (EXTERNAL_LIST_LOOP_1):
10875         * lisp.h (EXTERNAL_LIST_LOOP_2):
10876         * lisp.h (EXTERNAL_LIST_LOOP_3):
10877         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10878         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10879         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10880         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10881         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10882         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10883         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10884         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10885         * lisp.h (struct Lisp_Symbol):
10886         * lisp.h (maybe_continuable_error_with_frob):
10887         Fix up section comments.
10888         Add new types for char to indicate usage.
10889         Delete symbols auto-generated from general-slots.h.
10890         Add prototypes for structured error functions.
10891         Add long comments describing looping macros and change interface
10892         so that lvalues are automatically declared.
10893         Add NO_DECLARE macro in case callers want to declare lvalues
10894         themselves.
10895
10896         * lread.c (read_syntax_error):
10897         * lread.c (continuable_read_syntax_error):
10898         * lread.c (read_structure):
10899         * lread.c (sequence_reader):
10900         * lread.c (read_list_conser):
10901         * lread.c (read_compiled_function):
10902         Rename syntax_error and continuable_syntax_error to avoid clash
10903         with same-named structured error functions.
10904
10905         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10906         * menubar-msw.c (populate_menu_add_item):
10907         * menubar-msw.c (populate_or_checksum_helper):
10908         [5].
10909         [9].
10910
10911         * menubar-x.c:
10912         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10913         Mule-ize whole file.
10914
10915         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10916
10917         * mule-charset.c (Fmake_charset):
10918         * mule-wnnfns.c (Fwnn_set_param):
10919         [1].
10920
10921         * ntproc.c (create_child):
10922         * ntproc.c (Fwin32_set_current_locale):
10923         Add comments portending doom.
10924
10925         * objects-msw.c:
10926         * objects-msw.c (old_font_enum_callback_2):
10927         * objects-msw.c (font_enum_callback_1):
10928         * objects-msw.c (mswindows_enumerate_fonts):
10929         [5].
10930
10931         * objects-x.c:
10932         * objects-x.c (allocate_nearest_color):
10933         * objects-x.c (x_parse_nearest_color):
10934         * objects-x.c (x_initialize_color_instance):
10935         * objects-x.c (x_print_color_instance):
10936         * objects-x.c (x_finalize_color_instance):
10937         * objects-x.c (x_valid_color_name_p):
10938         * objects-x.c (x_initialize_font_instance):
10939         * objects-x.c (x_print_font_instance):
10940         * objects-x.c (valid_x_font_name_p):
10941         * objects-x.c (truename_via_FONT_prop):
10942         * objects-x.c (truename_via_random_props):
10943         * objects-x.c (truename_via_XListFonts):
10944         * objects-x.c (x_font_truename):
10945         * objects-x.c (x_font_instance_truename):
10946         * objects-x.c (x_font_instance_properties):
10947         * objects-x.c (x_list_fonts):
10948         * objects-x.c (x_find_charset_font):
10949         Mule-ize entire file.
10950         [7].
10951
10952         * objects-x.h:
10953         Mule-verify.
10954
10955         * print.c:
10956         * print.c (std_handle_out_external):
10957         * print.c (debug_print_no_newline):
10958         * print.c (syms_of_print):
10959         Output to all debugger kinds in debug-print.
10960         Fix console-output code under MSWin to actually work.
10961
10962         * process-nt.c (send_signal):
10963         * process-nt.c (nt_create_process):
10964         Use newer Unicode macros.
10965
10966         * process-unix.c (unix_create_process):
10967         * process-unix.c (unix_canonicalize_host_name):
10968         * process-unix.c (unix_open_network_stream):
10969         [7].
10970
10971         * scrollbar-x.c:
10972         Mule-verify.
10973
10974         * search.c (syms_of_search):
10975         [2].
10976
10977         * select-msw.c (mswindows_destroy_selection):
10978         Use LIST_LOOP_2.
10979
10980         * select-x.c (symbol_to_x_atom):
10981         [7].
10982
10983         * select.c (syms_of_select):
10984         [2].
10985
10986         * sound.c (Fplay_sound_file):
10987         [7].
10988
10989         * specifier.c:
10990         * specifier.c (decode_specifier_type):
10991         * specifier.c (Fvalid_specifier_locale_type_p):
10992         * specifier.c (check_valid_locale_or_locale_type):
10993         * specifier.c (decode_locale):
10994         * specifier.c (decode_locale_type):
10995         * specifier.c (decode_locale_list):
10996         * specifier.c (check_valid_domain):
10997         * specifier.c (decode_specifier_tag_set):
10998         * specifier.c (Fcanonicalize_tag_set):
10999         * specifier.c (Fdefine_specifier_tag):
11000         * specifier.c (Fspecifier_tag_predicate):
11001         * specifier.c (check_valid_inst_list):
11002         * specifier.c (check_valid_spec_list):
11003         * specifier.c (decode_how_to_add_specification):
11004         * specifier.c (check_modifiable_specifier):
11005         * specifier.c (specifier_add_spec):
11006         * specifier.c (boolean_validate):
11007         * specifier.c (display_table_validate):
11008         [9].
11009
11010         * specifier.c (syms_of_specifier):
11011         Move some symbols to general-slots.h.
11012         [2].
11013
11014         * symbols.c:
11015         * symbols.c (Fmapatoms):
11016         * symbols.c (Fapropos_internal):
11017         Add GCPROs.
11018
11019         * symbols.c (set_default_buffer_slot_variable):
11020         * symbols.c (set_default_console_slot_variable):
11021         [1].
11022
11023         * symbols.c (defsymbol_massage_name_1):
11024         * symbols.c (defkeyword_massage_name):
11025         * symbols.c (deferror_1):
11026         * symbols.c (deferror):
11027         * symbols.c (deferror_massage_name_and_message):
11028         * symeval.h:
11029         * symeval.h (DEFSYMBOL):
11030         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11031
11032         * symbols.c (syms_of_symbols):
11033         [2].
11034
11035         * symsinit.h:
11036         * symsinit.h (init_win32): New.
11037         Also new is syms_of_dialog_mswindows.
11038
11039         * syswindows.h:
11040         Add new Unicode macros, missing Cygwin wide-char functions,
11041         convenience conversion macros for Qmswindows_tstr, macros for
11042         encapsulating required MSWin <-> Cygwin filename conversions,
11043         prototype for dynamically-extracted (not in NT 3.51) functions.
11044
11045         * toolbar-x.c:
11046         Mule-verify.
11047
11048         * tooltalk.c (Fadd_tooltalk_message_arg):
11049         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11050         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11051         [7].
11052
11053         * tooltalk.c (syms_of_tooltalk):
11054         [2].
11055
11056         * unexnt.c:
11057         * unexnt.c (unexec):
11058         Fix up headers, declaration of unexec() to be more standard.
11059
11060 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11061
11062         * offix.h: Revert change to guard macros - they're used in offix.c!
11063
11064 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11065
11066         * lisp.h: Defsubred Fdelete.
11067
11068         * console-msw.h:  (msprinter_default_printer): Added.
11069
11070         * console-msw.c (msprinter_canonicalize_console_connection):
11071         (msprinter_canonicalize_device_connection): Added.
11072
11073         * device-msw.c (msprinter_default_printer):
11074         (Fmswingows_get_default_printer):
11075         (signal_enum_priner_error):
11076         (Fmswingows_printer_list): Added.
11077
11078 2000-07-19  Martin Buchholz <martin@xemacs.org>
11079
11080         * XEmacs 21.2.35 is released.
11081
11082 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11083
11084         * select-x.c (x_handle_selection_request):
11085         Text selected in xemacs and pasted into xterm failed to appear.
11086         Spelling fixes and cosmetic changes.
11087
11088 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11089
11090         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11091         XEmacs frame (fix for doubling chars in dialog boxes).
11092
11093 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11094
11095         * select.c (select_convert_in, select_convert_out):
11096         Don't call intern() every time.
11097
11098         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11099         * select.c (vars_of_select): Initialise them.
11100
11101 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11102
11103         * select.c (selection-coercible-types): New.
11104
11105         * select.c (own-selection-internal):
11106         * select.c (get-selection-internal):
11107         MULE bug fix - these should default to COMPOUND_TEXT and not
11108         STRING for MULE. I think.
11109
11110         * select.c (select_convert_out): Use selection-coercible-types
11111         to find types that we can attempt to perform coercions on.
11112
11113 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11114
11115         * mule-wnnfns.c:
11116         * mule-canna.c:
11117         Add coding: cookie to identify encoding.
11118
11119         * mule-canna.c (CANNA_mode_keys): make static.
11120         Use proper prototypes, even for functions of no arguments.
11121         Remove external prototype for Fding().
11122
11123         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11124
11125         * select.c (syms_of_select): Add missing DEFSUBR.
11126
11127 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11128
11129         * select.c (get_selection_internal, own_selection_internal):
11130         Make the type default to STRING, rather than placing a nil type
11131         into Vselection_alist.
11132
11133 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11134
11135         * gpmevent.c (tty_selection_exists_p):
11136         * gpmevent.c (tty_own_selection):
11137         Updated parameter lists.
11138
11139 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11140
11141         * select.h (selection-alist): Removed declaration.
11142
11143         * select.h (get_local_selection):
11144         * select.c (get_local_selection):
11145         Made static.
11146
11147         * select.h (convert_selection): Removed declaration.
11148         * select.c (convert_selection): Removed.
11149         This function belongs in Lisp.
11150
11151         * select.h (select_convert_in): Declare.
11152         * select.h (select_convert_out): Declare.
11153         * select.c (select_convert_in): New.
11154         * select.c (select_convert_out): New.
11155         New conversion functions for other files to call.
11156
11157         * select.h (select_notify_buffer_kill): Declare.
11158         * select.c (select_notify_buffer_kill): New.
11159         New functions that get called from kill-buffer.
11160
11161         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11162         X-specific lisp code.
11163
11164         * select.h: Declare some of the lisp-visible functions for
11165         external use.
11166
11167         * select.c (clean_local_selection_data): Removed. This was
11168         a disgusting function, and previously should have been in
11169         select-x.c in any case. The functionality is now provided
11170         in select-convert-from-integer (select.el).
11171
11172         * select.c (available-selection-types): Fixed stupidity where
11173         INTEGER and ATOM got added twice. Also add STRING when we see an
11174         extent.
11175
11176         * select.c (get-selection-internal): Removed symbol stripping. No
11177         longer causes conversion when data comes from the internal cache.
11178
11179         * select.c (syms_of_select): Added new functions.
11180
11181         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11182         error checking - previously this called abort!
11183
11184         * select-x.c (x_own_selection): Changed comment.
11185
11186         * select-x.c (x_handle_selection_request): Use select_convert_out.
11187         Don't mess with selection-alist; it's an internal variable of select.c.
11188
11189         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11190
11191         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11192         rather than messing with selection-alist.
11193
11194         * select-msw.c (mswindows_get_foreign_selection):
11195         Use TO_INTERNAL_FORMAT rather than hacking.
11196
11197 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11198
11199         * process-unix.c (unix_open_multicast_group):
11200         (unix_open_multicast_group): Remove useless casts.
11201
11202 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11203
11204         * sound.c (Fplay_sound): Fix `unused variable' warning.
11205
11206         * emacs.c (main): Use correct type for _environ on SCO5.
11207
11208 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11209
11210         * console.h (own_selection_method):
11211         * console.h (selection_exists_p_method):
11212         * console.h (available_selection_types_method): New.
11213         * console.h (register_selection_data_type_method): New.
11214         * console.h (selection_data_type_name): New.
11215
11216         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11217         function & alist to track GlobalAlloc()'d handles that need
11218         releasing when the clipboard data gets replaced or emptied.
11219
11220         * event-msw.c (mswindows_wnd_proc): Call it.
11221
11222         * lisp.h, general.c (Qappend): New symbol representing a
11223         `how-to-add' mode.
11224
11225         * select.c (own-selection-internal):
11226         * select.c (selection-exists-p):
11227         * select.c (available-selection-types): New.
11228         * select.c (register-selection-data-type): New.
11229         * select.c (selection-data-type-name): New.  New functions to deal
11230         with device-specific selection data formats.
11231         * select.c (selection-converter-out-alist): Renamed.
11232         * select.c (selection-converter-in-alist): New.
11233         * select.c (selection-appender-alist): New.  Added new alists.
11234         * select.c (syms_of_select, vars_of_select): Added new symbols &
11235         variables.
11236         * select.c (get_local_selection): Split.
11237         * select.c: Removed spurious type checking - selections may now be
11238         of any type, not just strings.
11239         * select.c (own-selection-internal):
11240
11241         * select.h, select.c (convert_selection): New. Created
11242         convert_selection() function based on get_local_selection().
11243         * select.h, select.c (QCF_*): New symbols representing mswindows
11244         clipboard formats.
11245         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11246         symbols representing `how-to-add' modes.
11247
11248         * select-msw.c (x_sym_p): New.
11249         * select-msw.c (symbol_to_ms_cf): New.
11250         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11251         symbols & clipboard formats. Can also handle string names.
11252         * select-msw.c (mswindows_own_selection):
11253         * select-msw.c (mswindows_selection_exists_p):
11254         Added `data-type' parameter. Use it.
11255         * select-msw.c (mswindows_available_selection_types): New.
11256         * select-msw.c (mswindows_register_selection_data_type): New.
11257         * select-msw.c (mswindows_selection_data_type_name): New.
11258         * select-msw.c (mswindows_own_selection):
11259         * select-msw.c (mswindows_get_foreign_selection):
11260         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11261         * select-msw.c (console_create_select_mswindows): Added new methods.
11262         * select-msw.c (mswindows_destroy_selection): New.
11263         * select-msw.c (Vhandle_alist): New list.
11264         * select-msw.c (mswindows_own_selection):
11265
11266         * select-x.c (x_own_selection):
11267         * select-x.c (x_selection_exists_p):
11268         * select-x.c: Added some comments about maybe using new
11269         functionality.
11270         * select-x.c (x_own_selection):
11271
11272         * specifier.c: Remove definition of Qappend (now in general.c)
11273         * specifier.c (syms_of_specifier): Remove Qappend.
11274
11275 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11276
11277         * config.h.in: Add socklen_t.
11278
11279         * s/decosf4-0.h: No special compiler flags needed or desired.
11280         In particular, undefine _BSD for DEC OSF 4.0.
11281
11282 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11283
11284         * redisplay-msw.c (msprinter_frame_output_end): Added.
11285         (console_type_create_redisplay_mswindows): Referred the above.
11286
11287         * frame.c (setup_frame_without_minibuffer): Do not create a
11288         default minibuffer frame on a printer device.
11289
11290         * frame-msw.c (apply_dc_geometry): Added.
11291         (msprinter_start_page):
11292         (msprinter_init_frame_3):
11293         (msprinter_eject_page): Use it.
11294
11295         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11296         and removed residual duplex and orientation properties.
11297
11298 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11299
11300         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11301
11302         * unexalpha.c: Remove system prototypes from C sources!
11303
11304 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11305
11306         * eval.c: Remove references to M-x edit-options in DEFUNs for
11307         `defvar' and `defconst'.
11308
11309 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11310
11311         * config.h.in: Remove SMART_INCLUDE hackery.
11312
11313         PostgreSQL hacking:
11314         * config.h.in: Don't use SMART_INCLUDE.
11315
11316         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11317         * inline.c: Simply #include "postgresql.h"
11318         * postgresql.c:
11319         - Don't use SMART_INCLUDE
11320         - Use simply "const".
11321         - Use standard doc string conventions.
11322         - Use correct type for result of PQstatus.
11323
11324 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11325
11326         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11327
11328         C++ compilation changes.
11329         * config.h.in (EXTERN_C): Define.
11330         * config.h.in (not): This is also a C++ keyword.
11331         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11332         * cm.c: Use EXTERN_C.
11333         * redisplay-tty.c: Use EXTERN_C.
11334         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11335
11336 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11337
11338         * general.c: Remove duplicate definition for Qfunction.
11339
11340 2000-07-08  Ben Wing  <ben@xemacs.org>
11341
11342         * device-msw.c (msprinter_init_device):
11343         * device-msw.c (sync_printer_with_devmode):
11344         * device-msw.c (handle_devmode_changes):
11345         * device-msw.c (print_dialog_worker):
11346         * device-msw.c (Fmsprinter_apply_settings):
11347         * device-msw.c (hash_devmode):
11348         * device-msw.c (Fmsprinter_settings_despecialize):
11349         use Qmswindows_tstr, not Qctext.
11350
11351         * vm-limit.c (check_memory_limits):
11352         avoid infinite loop printing warning messages.
11353
11354 2000-07-05  Craig Lanning  <lanning@scra.org>
11355
11356         * Makefile.in.in: Add support for including the Windows resources
11357         when building with the cygwin and mingw targets.
11358
11359         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11360         not set or not correct.
11361         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11362         (init_initial_directory): Don't try to use $PWD on the
11363         WIN32_NATIVE target.
11364
11365         * s\cygwin32.h:
11366         [[Add -mwindows to eliminate console window.]] not required --ben
11367         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11368         (MAIL_USE_POP): removed; now handled by configure.
11369
11370         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11371         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11372         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11373         (MAIL_USE_POP): removed; now handled by configure.
11374         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11375         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11376         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11377         constant string.
11378         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11379         up from <winsock.h> via systime.h.
11380         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11381         (getpagesize): from Dan Holmsand, added.
11382         Added #endif which was left dangling by Ben's mega patch; added
11383         comment to help prevent this in the future.
11384
11385         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11386
11387 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11388
11389         * console-msw.h (struct mswindows_device): Removed unnecessary
11390         cached device geometry values.
11391         Added update_tick and an accessor macro.
11392         (Lisp_Devmode): Added lrecord declaration.
11393         (struct msprinter_device): Contain devmode as a Lisp object.
11394         Added mswindows_get_selected_frame_hwnd();
11395
11396         * console.h (struct console_methods): Indentation nitpicking.
11397
11398         * device-msw.c (mswindows_init_device): Do not initialize geometry
11399         cache. Initialize update tick.
11400         (mswindows_device_system_metrics): Ask the device for its geometry.
11401         (global_free_2_maybe):
11402         (devmode_to_hglobal):
11403         (handle_printer_changes):
11404         (ensure_not_printing):
11405         (print_dialog_worker):
11406         (Fmsprinter_print_setup_dialog):
11407         (Fmsprinter_print_dialog):
11408         (plist_get_margin):
11409         (plist_set_margin):
11410         (Fmsprinter_page_setup_dialog): Added functions.
11411         (sync_printer_with_devmode):
11412         (handle_devmode_changes):
11413         (Fmsprinter_get_settings):
11414         (Fmsprinter_select_settings):
11415         (Fmsprinter_apply_settings):
11416         (allocate_devmode):
11417         (Fmsprinter_settings_copy):
11418         (Fmsprinter_settings_despecialize):
11419         (print_devmode):
11420         (finalize_devmode):
11421         (equal_devmode):
11422         (hash_devmode): Added functions
11423         (syms_of_device_mswindows): Init devmode lrecord class.
11424
11425         * device.h: Added an exfun for find-device.
11426
11427         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11428         geometry; although, recreate the device compatible DC.
11429
11430         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11431         (msprinter_init_frame_3):
11432         (msprinter_frame_property):
11433         (msprinter_internal_frame_property_p):
11434         (msprinter_frame_properties):
11435         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11436         print job properties (will move to device settings).
11437
11438         * lisp.h: Added symbols.
11439
11440         * general.c (syms_of_general): Declared them.
11441
11442         * hash.c (string_hash): Added.
11443
11444         * lrecord.h (lrecord_type): Added devmode lrecord type.
11445
11446 2000-07-02  Mike Sperber <mike@xemacs.org>
11447
11448         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11449         FreeBSD 4.0.
11450
11451 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11452
11453         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11454         integer.
11455
11456 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11457
11458         * data.c (Fstring_to_number): Don't recognize floating point if
11459         base is not 10.
11460
11461 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11462
11463         * glyphs-widget.c (tab_control_query_geometry):
11464         (widget_query_geometry):
11465         (button_query_geometry):
11466         * glyphs.c (text_query_geometry):
11467         Enforce type correctness.
11468
11469 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11470
11471         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11472         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11473
11474 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11475
11476         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11477         conflicts with gcc's fixincluded version of FOO.h.
11478
11479         * glyphs.h (image_instance_geometry): Remove trailing `,'
11480
11481 2000-06-08  Mike Alexander  <mta@arbortext.com>
11482
11483         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11484         (shove_thread): Don't write the same output twice
11485         (make_ntpipe_output_stream): Increase priority of shove thread
11486         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11487         chance to run
11488         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11489         it.
11490
11491 2000-06-12  Ben Wing  <ben@xemacs.org>
11492
11493         * s\mingw32.h (sigset):
11494         * s\windowsnt.h (sigset):
11495         rename msw_ to mswindows_ for consistency with general convention.
11496
11497 2000-06-12  Ben Wing  <ben@xemacs.org>
11498
11499         * console-msw.c:
11500         * console-msw.c (mswindows_get_console_hwnd):
11501         * console-msw.c (mswindows_ensure_console_allocated):
11502         * console-msw.c (mswindows_hide_console):
11503         * console-msw.c (mswindows_show_console):
11504         * console-msw.c (mswindows_ensure_console_buffered):
11505         * console-msw.c (mswindows_output_console_string):
11506         * console-msw.c (mswindows_windows9x_p):
11507         * console-msw.h:
11508         * device-msw.c (mswindows_get_workspace_coords):
11509         * device-msw.c (mswindows_device_system_metrics):
11510         * dialog-msw.c (mswindows_popup_dialog_box):
11511         * event-msw.c (mswindows_wnd_proc):
11512         * frame-msw.c (mswindows_size_frame_internal):
11513         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11514         * menubar-msw.c (displayable_menu_item):
11515         * menubar-msw.c (mswindows_char_is_accelerator):
11516         * nt.c:
11517         * nt.c (mswindows_sigset):
11518         * nt.c (mswindows_sigrelse):
11519         * nt.c (mswindows_sigpause):
11520         * nt.c (mswindows_raise):
11521         * nt.c (timer_proc):
11522         * ntproc.c:
11523         * ntproc.c (find_child_console):
11524         * ntproc.c (sys_kill):
11525         * print.c:
11526         * print.c (std_handle_out_external):
11527         * process-nt.c (find_child_console):
11528         * process-nt.c (send_signal_the_95_way):
11529         * process-nt.c (ensure_console_window_exists):
11530         * process-nt.c (nt_create_process):
11531         * syssignal.h:
11532         rename msw_ to mswindows_ for consistency with general convention.
11533
11534         * emacs.c:
11535         * dumper.c:
11536         include nt.h, not syswindows.h.
11537
11538         * nt.c (mswindows_fstat):
11539         * nt.c (mswindows_stat):
11540         prefix mswindows_ instead of attempting to directly override the
11541         library functions.  fix declarations.
11542
11543         * nt.h:
11544         include syswindows.h.  move some sysdep.h stuff here.
11545
11546         * ntheap.h:
11547         include syswindows.h, not <windows.h>.
11548
11549         * ntplay.c:
11550         clean up headers.
11551
11552         * sysdep.c:
11553         clean up headers.
11554
11555         * sysdep.c (sys_fstat):
11556         * sysdep.c (sys_stat):
11557         call mswindows versions when appropriate.
11558
11559         * sysdep.h:
11560         move mswin decls to nt.h.
11561
11562         * syswindows.h:
11563         add long comment describing appropriate use of the various windows
11564         headers.
11565
11566 2000-06-11  Ben Wing  <ben@xemacs.org>
11567
11568         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11569
11570 2000-06-10  Ben Wing  <ben@xemacs.org>
11571
11572         * Makefile.in.in (release):
11573         Correction to make sure xemacs.exe always dumped when correct.
11574
11575         * alloca.c:
11576         * balloon_help.c:
11577         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11578
11579         * buffer.c (set_buffer_internal):
11580         [[[[2]]]]: Remove HAVE_FEP code.
11581
11582         * buffer.c (init_initial_directory):
11583         [3].
11584
11585         * bytecode.c:
11586         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11587         individual files.
11588
11589         * callproc.c:
11590         * callproc.c (call_process_cleanup):
11591         * callproc.c (Fold_call_process_internal):
11592         * callproc.c (child_setup):
11593         * callproc.c (getenv_internal):
11594         * callproc.c (init_callproc):
11595         * callproc.c (vars_of_callproc):
11596         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11597         __CYGWIN32__ -> CYGWIN.
11598         DOS_NT -> WIN32_NATIVE.
11599         Remove MSDOS support/references, converting to WIN32_NATIVE
11600           where correct.
11601         __MINGW32__ -> MINGW.
11602         Fix windows.h includes.
11603         Remove bogus HAVE_NTGUI.
11604
11605         * config.h.in:
11606         [2].
11607
11608         * console-msw.c:
11609         mswindows_message_outputted added for use in allowing startup
11610         errors on the console to be seen.
11611
11612         * console-msw.c (msw_ensure_console_allocated):
11613         * console-msw.c (msw_output_console_string):
11614         * console-msw.c (DHEADER):
11615         * console-msw.c (DOPAQUE_DATA):
11616         * console-msw.c (DEVENT):
11617         * console-msw.c (DCONS):
11618         * console-msw.c (DCONSCDR):
11619         * console-msw.c (DSTRING):
11620         * console-msw.c (DVECTOR):
11621         * console-msw.c (DSYMBOL):
11622         * console-msw.c (DSYMNAME):
11623         Fix warnings.
11624
11625         * console-stream.c (stream_init_console):
11626         Fix text/binary problems.
11627
11628         * device-msw.c:
11629         * device-msw.c (mswindows_finish_init_device):
11630         * device-msw.c (mswindows_delete_device):
11631         [1].
11632
11633         * device.c (handle_asynch_device_change):
11634         [3].
11635
11636         * dgif_lib.c:
11637         * dgif_lib.c (DGifOpenFileName):
11638         * dgif_lib.c (DGifOpenFileHandle):
11639         * dgif_lib.c (DGifGetLine):
11640         * dgif_lib.c (DGifGetPixel):
11641         Added config.h/lisp.h, fix up includes.
11642         [1].
11643
11644         * dired-msw.c:
11645         [4].
11646
11647         * dired.c:
11648         * dired.c (file_name_completion):
11649         * dired.c (Ffile_attributes):
11650         * dired.c (syms_of_dired):
11651         [1].
11652
11653         * dumper.c:
11654         * dumper.c (pdump_file_unmap):
11655         * dumper.c (pdump_load):
11656         [1].
11657
11658         * editfns.c:
11659         * editfns.c (Ftemp_directory):
11660         * editfns.c (user_login_name):
11661         * editfns.c (Fuser_real_login_name):
11662         * editfns.c (get_home_directory):
11663         [1].
11664
11665         * elhash.c (finish_marking_weak_hash_tables):
11666         [[[[5]]]]: Fix GCC warnings.
11667
11668         * emacs.c:
11669         * emacs.c (mswindows_handle_hardware_exceptions):
11670         * emacs.c (make_arg_list_1):
11671         * emacs.c (main_1):
11672         * emacs.c (Fkill_emacs):
11673         * emacs.c (Fdump_emacs):
11674         [1].
11675         Fix problems with nested crashes, add long comment.
11676
11677         * event-Xt.c (init_event_Xt_late):
11678         [1].
11679
11680         * event-msw.c:
11681         * event-msw.c (mswindows_dde_callback):
11682         * event-msw.c (mswindows_handle_sticky_modifiers):
11683         * event-msw.c (mswindows_wnd_proc):
11684         [1].
11685         [5].
11686
11687         * events.c (character_to_event):
11688         [1].
11689
11690         * fileio.c:
11691         * fileio.c (Ffile_name_directory):
11692         * fileio.c (Ffile_name_nondirectory):
11693         * fileio.c (directory_file_name):
11694         * fileio.c (Fexpand_file_name):
11695         * fileio.c (Fsubstitute_in_file_name):
11696         * fileio.c (Ffile_name_absolute_p):
11697         * fileio.c (check_executable):
11698         * fileio.c (Ffile_readable_p):
11699         * fileio.c (Ffile_accessible_directory_p):
11700         * fileio.c (Ffile_modes):
11701         * fileio.c (Funix_sync):
11702         * fileio.c (vars_of_fileio):
11703         [1]. [4].
11704
11705         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11706
11707         Expand getdefdir defn.
11708         Fix bogus rename() comment.
11709
11710         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11711         to use standard XEmacs include files, e.g. sysfile.h, rather
11712         than system-specific includes.
11713
11714         * fns.c:
11715         * fns.c (Fsubseq):
11716         [5]. [6].
11717
11718         * frame.c (vars_of_frame):
11719         [1].
11720
11721         * getloadavg.c:
11722         * getloadavg.c (getloadavg):
11723         [1]. [6].
11724         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11725         (We don't use it elsewhere in the code; just add a comment.)
11726
11727         * gif_io.c:
11728         [6].
11729         Add config.h.
11730
11731         * glyphs-msw.c:
11732         * glyphs-msw.c (mswindows_resource_instantiate):
11733         [1].
11734
11735         * glyphs-x.c (x_native_layout_instantiate):
11736         [5].
11737
11738         * gui-msw.c (Fmswindows_shell_execute):
11739         [1].
11740
11741         * insdel.c:
11742         [4].
11743
11744         * lisp.h:
11745         [4]. [5].
11746
11747         * lread.c (locate_file_in_directory_mapper):
11748         [1].
11749
11750         * lstream.c:
11751         [4].
11752
11753         * mem-limits.h:
11754         * mem-limits.h (get_lim_data):
11755         [1].
11756
11757         * menubar-msw.c:
11758         [4].
11759
11760         * ndir.h:
11761         [1].
11762
11763         * nt.c:
11764         * nt.c (getwd):
11765         * nt.c (closedir):
11766         * nt.c (rva_to_section):
11767         * nt.c (mswindows_executable_type):
11768         [1]. [6].
11769         Fix closedir() defn.
11770
11771         * nt.h:
11772         [[[[8]]]]: *_OK defs moved to sysfile.h.
11773
11774         * ntproc.c:
11775         [6]. [7].
11776
11777         * objects-x.c:
11778         [4].
11779
11780         * print.c:
11781         * print.c (std_handle_out_external):
11782         [1]. [4].
11783
11784         * process-nt.c:
11785         * process-nt.c (nt_create_process):
11786         [6].
11787         try to fix process quoting somewhat.
11788
11789         * process-unix.c (unix_create_process):
11790         [1].
11791
11792         * process.c:
11793         * process.c (vars_of_process):
11794         Add Vnull_device.
11795
11796         * process.h:
11797         [1].
11798
11799         * realpath.c:
11800         * realpath.c (xrealpath):
11801         [1].
11802
11803         * redisplay-tty.c (init_tty_for_redisplay):
11804         [3].
11805
11806         * redisplay.c:
11807         [4]. [6].
11808
11809         * scrollbar-msw.c:
11810         [4].
11811
11812         * sheap.c:
11813         * sheap.c (more_static_core):
11814         * sheap.c (report_sheap_usage):
11815         [5]. [6].
11816
11817         * signal.c:
11818         * signal.c (alarm_signal):
11819         [1]. [6].
11820
11821         * sound.c:
11822         [6].
11823
11824         * strftime.c:
11825         * strftime.c (zone_name):
11826         [1]. [5].
11827
11828         * symsinit.h (init_sunpro):
11829         [1].
11830
11831         * syscommctrl.h:
11832         commctrl.h not in Cygwin b20.1.
11833
11834         * sysdep.c:
11835         * sysdep.c (endif):
11836         * sysdep.c (sys_subshell):
11837         * sysdep.c (init_baud_rate):
11838         * sysdep.c (emacs_get_tty):
11839         * sysdep.c (emacs_set_tty):
11840         * sysdep.c (tty_init_sys_modes_on_device):
11841         * sysdep.c (init_system_name):
11842         * sysdep.c (sys_open):
11843         * sysdep.c (interruptible_open):
11844         * sysdep.c (sys_fopen):
11845         * sysdep.c (sys_mkdir):
11846         * sysdep.c (sys_rename):
11847         * sysdep.c (get_process_times_1):
11848         [1]. [6].
11849
11850         * sysdep.h:
11851         [1].
11852
11853         * sysdir.h:
11854         * sysdir.h (DIRENTRY_NONEMPTY):
11855         [1]. [6].
11856
11857         * sysdll.c (dll_init):
11858         * sysdll.h:
11859         [1].
11860
11861         * sysfile.h:
11862         [1]. [6]. [8].
11863         added text/binary defs.
11864
11865         * sysfloat.h:
11866         [1].
11867
11868         * sysproc.h:
11869         * sysproc.h (EDESTADDRREQ):
11870         * sysproc.h (poll_fds_for_input):
11871         [1]. [6].
11872
11873         * syspwd.h:
11874         [6].
11875
11876         * syssignal.h:
11877         [1].
11878
11879         * systime.h:
11880         [1]. [6].
11881
11882         * systty.h:
11883         [1].
11884
11885         * syswindows.h:
11886         [1].
11887         Always define WIN32_LEAN_AND_MEAN.
11888
11889         * unexcw.c (unexec):
11890         [5].
11891
11892         * unexec.c:
11893         * unexec.c (copy_text_and_data):
11894         * unexec.c (adjust_lnnoptrs):
11895         [1].
11896
11897         * unexnt.c:
11898         * unexnt.c (_start):
11899         [1].
11900
11901 2000-06-07  Ben Wing  <ben@xemacs.org>
11902
11903         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11904         was used only as a model.  We've long since extracted any useful
11905         logic or code out of this. (I just did an exhaustive search.)
11906
11907         * s\msdos.h: Removed.
11908
11909         * s\windows95.h: Removed.
11910
11911 2000-06-10  Ben Wing  <ben@xemacs.org>
11912
11913         * s\cygwin32.h:
11914         [1]. [5].
11915         Don't use extern with fun defs.
11916
11917         * s\mingw32.h:
11918         [1]. [7].
11919         Remove nt\inc include.
11920         Remove getdisk, getdefdir. (The former is unused, the latter
11921         expanded in fileio.h.)
11922
11923         * s\windowsnt.h:
11924         * s\windowsnt.h (WIN32_NATIVE):
11925         * s\windowsnt.h (HAVE_STRCASECMP):
11926         [1]. [7].
11927         Add long comment about preprocessor changes.
11928         Remove getdisk, getdefdir. (The former is unused, the latter
11929         expanded in fileio.h.)
11930
11931 2000-06-10  Ben Wing  <ben@xemacs.org>
11932
11933         * m\arm.h:
11934         * m\delta.h:
11935         * m\intel386.h:
11936         * m\sequent.h:
11937         * m\template.h:
11938         * m\windowsnt.h:
11939         [1].
11940         Remove bogus/unused NO_SOCK_SIGIO.
11941
11942 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11943
11944         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11945         not an Emchar.
11946
11947 2000-06-04  Mike Sperber <mike@xemacs.org>
11948
11949         * casetab.c (set_case_table): For `set-standard-case-table',
11950         actually deposit the new case tables where the rest of XEmacs can
11951         see them.
11952
11953 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11954
11955         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11956
11957 2000-06-05  Ben Wing  <ben@xemacs.org>
11958
11959         * callproc.c (child_setup): Don't do close_load_descs() under
11960         MS Windows.  Put in a comment explaining why.
11961
11962 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11963
11964         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11965         Toolkit shell" which breaks `kill-compilation' on Windows NT
11966         native, retaining STDERR handling improvements.
11967
11968 2000-06-01  Andreas Jaeger  <aj@suse.de>
11969
11970         * s/s390.h: Support for S390, based on a patch by Martin
11971         Schwidefsky <schwidefsky@de.ibm.com>.
11972
11973 2000-05-30  Andy Piper  <andy@xemacs.org>
11974
11975         * window.c (allocate_window):
11976         (make_dummy_parent):
11977         (Fset_window_configuration): use new hashtable type.
11978
11979         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11980         (struct image_instantiator_methods):
11981         (struct Lisp_Image_Instance): make instance geometry signed.
11982
11983         * glyphs.c (instantiate_image_instantiator):
11984         (image_instance_query_geometry):
11985         (image_instance_layout):
11986         (image_instance_layout):
11987         (query_string_geometry):
11988         (text_query_geometry):
11989         (image_instantiate):
11990         (image_instantiate):
11991         (cache_subwindow_instance_in_frame_maybe):
11992         (subwindow_query_geometry): make instance geometry signed.
11993
11994         * glyphs-widget.c (widget_query_geometry):
11995         (widget_layout):
11996         (button_query_geometry):
11997         (tree_view_query_geometry):
11998         (tab_control_query_geometry):
11999         (layout_query_geometry):
12000         (layout_layout):
12001         (native_layout_layout): make instance geometry signed.
12002
12003 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12004
12005         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12006         constant.
12007
12008         * general.c (syms_of_general): Add Qfull_assoc symbol.
12009
12010         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12011         correctly.
12012         (decode_weak_list_type): Decode full-assoc type.
12013         (encode_weak_list_type): Encode full-assoc type.
12014         (Fmake_weak_list): Update doc string.
12015
12016 2000-05-30  Andy Piper  <andy@xemacs.org>
12017
12018         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12019
12020         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12021         (decode_hash_table_weakness): ditto.
12022         (Fhash_table_weakness): ditto.
12023         (Fhash_table_type): ditto.
12024         (finish_marking_weak_hash_tables): ditto.
12025         (hash_table_weakness_validate): ditto.
12026         (syms_of_elhash): ditto.
12027
12028 2000-05-28  Martin Buchholz <martin@xemacs.org>
12029
12030         * XEmacs 21.2.34 is released.
12031
12032 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12033
12034         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12035         start cache.
12036         (updating_line_start_cache): Gone.
12037         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12038         generic code to force a minimum of 1 line laid out in the
12039         CMOTION_DISP case.
12040
12041 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12042
12043         * glyphs.c (instantiate_image_instantiator): Check for initialized
12044         height & width no longer special cases IMAGE_NOTHING.
12045         (nothing_instantiate): Set height and width of instance.
12046
12047 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12048
12049         * unexelf.c (unexec): Search for ".data" section.
12050         Initialize new_data2_offset from old_data_index.
12051         Remove redundant check for ElfW.
12052
12053 2000-05-23  Andy Piper  <andy@xemacs.org>
12054
12055         * glyphs.c (get_image_instantiator_governing_domain): allow more
12056         specific domains as the governing domain rather than expecting an
12057         exact match. This fixes problems with layouts.
12058
12059 2000-05-22  Andy Piper  <andy@xemacs.org>
12060
12061         * redisplay-output.c (compare_runes): check for non-images
12062
12063         * glyphs.c (set_glyph_dirty_p): ditto.
12064         (update_glyph_cachel_data): ditto.
12065
12066         * glyphs-widget.c (layout_post_instantiate): ditto.
12067         (layout_post_instantiate): ditto.
12068
12069         * event-msw.c (mswindows_wnd_proc): warning removal.
12070
12071 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12072
12073         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12074
12075         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12076
12077         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12078
12079         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12080         (mswindows_executable_type): mingw32 now has enough headers for
12081         this to work.
12082
12083 2000-05-20  Andy Piper  <andy@xemacs.org>
12084
12085         * console-msw.c (mswindows_output_last_error): ; -> ,
12086
12087 2000-05-12  Andy Piper  <andy@xemacs.org>
12088
12089         * console-msw.c (FROB): compare ints with ints.
12090
12091 2000-05-11  Andy Piper  <andy@xemacs.org>
12092
12093         * glyphs-x.c (x_finalize_image_instance): make minimal build
12094         happy.
12095
12096 2000-05-20  Ben Wing  <ben@xemacs.org>
12097
12098         * event-Xt.c:
12099         * event-Xt.c (vars_of_event_Xt):
12100         move modifier-keys-are-sticky to event-stream.c.
12101
12102         * event-msw.c:
12103         * event-msw.c (mswindows_enqueue_mouse_button_event):
12104         * event-msw.c (key_needs_default_processing_p):
12105         * event-msw.c (XEMSW_LCONTROL):
12106         * event-msw.c (mswindows_handle_sticky_modifiers):
12107         * event-msw.c (FROB):
12108         * event-msw.c (clear_sticky_modifiers):
12109         * event-msw.c (output_modifier_keyboard_state):
12110         * event-msw.c (output_alt_keyboard_state):
12111         * event-msw.c (mswindows_wnd_proc):
12112         * event-msw.c (mswindows_modifier_state):
12113         * event-msw.c (emacs_mswindows_handle_magic_event):
12114         implement sticky modifiers.
12115
12116         * event-stream.c:
12117         * event-stream.c (vars_of_event_stream):
12118         move modifier-keys-are-sticky here.
12119
12120         * lisp.h:
12121         add CHECK_FUNCTION.
12122
12123         * rangetab.c:
12124         implement map-range-table.
12125
12126
12127 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12128
12129         * redisplay-tty.c (reset_tty_modes):
12130         (tty_redisplay_shutdown): Adjust argument type to
12131         tty_frame_output_end.
12132
12133 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12134
12135         * eval.c (Fbacktrace): Don't output a line with only right
12136         parenthesis.
12137
12138 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12139
12140         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12141         (Fpq_reset_poll): Ditto.
12142
12143 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12144
12145         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12146
12147 2000-05-16  Ben Wing  <ben@xemacs.org>
12148
12149         * buffer.c:
12150         * buffer.c (dfc_convert_to/from_internal_format):
12151         * buffer.c (reinit_vars_of_buffer):
12152         Fix conversion functions to allow reentrancy.
12153
12154         * console-msw.c:
12155         * console-msw.c (mswindows_output_last_error):
12156         New fun, generally useful -- output a human-readable
12157         version of GetLastError() on the console.
12158
12159         * console-msw.h:
12160         * console-msw.h (struct mswindows_frame):
12161         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12162
12163         * console-stream.c (stream_output_begin):
12164         * console-stream.c (stream_output_end):
12165         * console-stream.c (stream_output_vertical_divider):
12166         * console-stream.c (stream_clear_region):
12167         * console-stream.c (stream_flash):
12168         * console-stream.c (console_type_create_stream):
12169         Delete blank stream methods, not needed.
12170
12171         * console.h (struct console_methods):
12172         Split begin/end methods into window and frame.
12173
12174         * event-msw.c:
12175         * event-msw.c (mswindows_handle_paint):
12176         * event-msw.c (output_alt_keyboard_state):
12177         * event-msw.c (mswindows_wnd_proc):
12178         * event-msw.c (vars_of_event_mswindows):
12179         Comment about problems with ignored-expose.
12180         Define mswindows-debug-events; not really implemented.
12181
12182         * frame-msw.c (mswindows_init_frame_1):
12183         random cleanups.
12184
12185         * glyphs-msw.c:
12186         * glyphs-msw.c (begin_defer_window_pos):
12187         * glyphs-msw.c (mswindows_unmap_subwindow):
12188         * glyphs-msw.c (mswindows_map_subwindow):
12189         * glyphs-msw.c (mswindows_resize_subwindow):
12190         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12191
12192         * glyphs.c (make_image_instance_1):
12193         Fix crash.
12194
12195         * gutter.c (Fredisplay_gutter_area):
12196         Use new begin/end methods.
12197
12198         * lisp.h (Dynarr_new2):
12199         New creation fun.
12200
12201         * redisplay-msw.c:
12202         * redisplay-msw.c (mswindows_frame_output_begin):
12203         * redisplay-msw.c (mswindows_frame_output_end):
12204         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12205         New begin/end methods -- handle DeferWindowPos.
12206
12207         * redisplay-output.c (redisplay_move_cursor):
12208         * redisplay-output.c (redraw_cursor_in_window):
12209         * redisplay-output.c (redisplay_update_line):
12210         * redisplay-output.c (redisplay_output_window):
12211         New begin/end methods.
12212
12213         * redisplay-tty.c:
12214         * redisplay-tty.c (tty_frame_output_begin):
12215         * redisplay-tty.c (tty_frame_output_end):
12216         * redisplay-tty.c (console_type_create_redisplay_tty):
12217         New begin/end methods.
12218
12219         * redisplay-x.c:
12220         * redisplay-x.c (x_window_output_begin):
12221         * redisplay-x.c (x_window_output_end):
12222         * redisplay-x.c (console_type_create_redisplay_x):
12223         New begin/end methods.
12224
12225         * redisplay.c (redisplay_frame):
12226         * redisplay.c (Fredisplay_echo_area):
12227         New begin/end methods.
12228         use MAYBE_DEVMETH for clear_frame; it may not exist.
12229
12230         * window.h (WINDOW_XFRAME):
12231         WINDOW_XFOO macros -- get locale and decode struct pointer.
12232
12233
12234 2000-05-12  Ben Wing  <ben@xemacs.org>
12235
12236         * emacs.c:
12237         * emacs.c (ensure_no_quitting_from_now_on):
12238         * emacs.c (fatal_error_signal):
12239         * emacs.c (mswindows_handle_hardware_exceptions):
12240         * emacs.c (main):
12241         * emacs.c (Fkill_emacs):
12242         * emacs.c (shut_down_emacs):
12243         * emacs.c (assert_failed):
12244         various improvements in fatal error handling.
12245
12246         * eval.c:
12247         move preparing_for_armageddon to emacs.c.
12248
12249         * lisp.h:
12250         declare fatal_error_in_progress.
12251
12252         * print.c:
12253         * print.c (std_handle_out_external):
12254         * print.c (std_handle_out_va):
12255         * print.c (stderr_out):
12256         * print.c (stdout_out):
12257         use console under mswin when no standard output.
12258         don't do code conversion during fatal error.
12259
12260         * scrollbar.c (Fscrollbar_page_up):
12261         * scrollbar.c (Fscrollbar_page_down):
12262         fix missing else.  reindent.
12263
12264 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12265
12266         Emergency fix.
12267
12268         * glyphs.h (GLYPH_CACHEL_DESCENT):
12269         (GLYPH_CACHEL_DESCENT):
12270         (GLYPH_CACHEL_DESCENT):
12271         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12272         used in case these are inline functions.
12273         Use more absurd values to error check.
12274
12275         include window.h for error check functions.
12276
12277 2000-05-11  Ben Wing  <ben@xemacs.org>
12278
12279         * cmdloop.c (Freally_early_error_handler):
12280         Display message box under windows; otherwise, message will disappear
12281         before it can be viewed.
12282
12283         * console-msw.c:
12284         * console-msw.c (Fmswindows_message_box):
12285         * console-msw.c (FROB):
12286         * console-msw.c (syms_of_console_mswindows):
12287         Define new fun `mswindows-message-box'.
12288         #### I will merge this into `popup-dialog-box'; just give me
12289         a bit of time.
12290
12291         * general.c:
12292         * general.c (syms_of_general):
12293         Some new symbols used in `mswindows-message-box'.
12294
12295         * glyphs.c:
12296         * glyphs.c (Fset_image_instance_property):
12297         put warning in this fun.
12298
12299         * glyphs.h:
12300         * glyphs.h (GLYPH_CACHEL_WIDTH):
12301         * glyphs.h (GLYPH_CACHEL_ASCENT):
12302         * glyphs.h (GLYPH_CACHEL):
12303         * glyphs.h (GLYPH_CACHEL_GLYPH):
12304         define error-checking versions to try to catch a bug i've seen --
12305         redisplay gets in an infinite loop because the glyph width of the
12306         continuation glyph is 65535.
12307
12308         * lisp.h:
12309         Extern message-box stuff.
12310
12311         * window.c (allocate_window):
12312         * window.c (make_dummy_parent):
12313         * window.c (Fset_window_configuration):
12314         Use EQUAL not EQ for subwindow caches to make them work a bit
12315         better. (Something is still very broken.)
12316
12317
12318 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12319
12320         * glyphs.c (image_instantiate): Suppress gcc warnings.
12321         (Fmake_image_instance): Fix doc string.
12322         * specifier.c (Fmake_specifier): Ditto.
12323
12324 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12325
12326         * paths.h.in (PATH_LOCK): Removed.
12327         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12328         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12329
12330 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12331
12332         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12333         Document (featurep '(and xemacs 21.02)).
12334
12335 2000-05-09  Ben Wing  <ben@xemacs.org>
12336
12337         * buffer.c (complex_vars_of_buffer):
12338         update modeline-format doc.
12339
12340         * device.h:
12341         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12342
12343         * emacs.c:
12344         timeline of all released versions of Emacs, for use in creating
12345         authorship comments and in synching up.
12346
12347         * glyphs-widget.c (image_instantiator_buttons):
12348         * glyphs-widget.c (image_instantiator_edit_fields):
12349         * glyphs-widget.c (image_instantiator_combo_box):
12350         * glyphs-widget.c (image_instantiator_scrollbar):
12351         * glyphs-widget.c (image_instantiator_progress_guage):
12352         * glyphs-widget.c (image_instantiator_tree_view):
12353         * glyphs-widget.c (image_instantiator_tab_control):
12354         * glyphs-widget.c (image_instantiator_labels):
12355         * glyphs-widget.c (image_instantiator_layout):
12356         * glyphs-widget.c (image_instantiator_native_layout):
12357         rename decode_domain method to governing_domain.
12358
12359         * glyphs.c:
12360         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12361         * glyphs.c (add_entry_to_device_ii_format_list):
12362         make sure we don't put an entry more than once into the list.
12363         * glyphs.c (check_instance_cache_mapper):
12364         *************************************************************
12365         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12366         HAVE BEEN GETTING.
12367         *************************************************************
12368         * glyphs.c (get_image_instantiator_governing_domain):
12369         clean up, expand on new concept of governing domain.
12370         * glyphs.c (instantiate_image_instantiator):
12371         * glyphs.c (allocate_image_instance):
12372         use governing_domain instead of cache_domain in naming.
12373         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12374         * glyphs.c (make_image_instance_1):
12375         * glyphs.c (Fmake_image_instance):
12376         allow for any domain (not just device), and process the
12377         governing domain correctly.  very big doc fix.
12378         * glyphs.c (Fimage_instance_domain):
12379         new primitive, to retrieve the governing domain of an image instance.
12380         * glyphs.c (image_instantiate):
12381         use new governing_domain stuff.  this fixes a crash you could get
12382         by instantiating certain widget glyphs in frame locales. (should
12383         signal an error instead of crashing.)
12384         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12385         * glyphs.c (Fglyphp): clean up doc.
12386         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12387         * glyphs.c (syms_of_glyphs):
12388         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12389         * glyphs.c (image_instantiator_format_create): add some comments about
12390         bogus code.
12391         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12392         for current-display-table. (Apparently Hrjove implemented in 1998 a
12393         design I wrote up in 1996, but didn't update the doc string.)
12394
12395         * glyphs.h: clean up a doc string.
12396         * glyphs.h (governing_domain):
12397         * glyphs.h (struct image_instantiator_methods):
12398         changes for governing_domain stuff.
12399
12400         * gutter.c:
12401         * gutter.c (Fgutter_specifier_p):
12402         * gutter.c (Fgutter_size_specifier_p):
12403         * gutter.c (Fgutter_visible_specifier_p):
12404         * objects.c:
12405         * objects.c (Fcolor_specifier_p):
12406         * objects.c (Ffont_specifier_p):
12407         * objects.c (Fface_boolean_specifier_p):
12408         doc strings moved to make-*-specifier.
12409
12410         * redisplay.c (add_disp_table_entry_runes_1):
12411         * redisplay.c (generate_fstring_runes):
12412         * redisplay.c (screen):
12413         add random comments and doc strings.
12414
12415         * specifier.c:
12416         * specifier.c (Fmake_specifier):
12417         major overhaul of this doc string.
12418
12419         * specifier.c (Fvalid_specifier_domain_p):
12420         comment about the bogosity of image instances being domains.
12421         * specifier.c (decode_domain):
12422         now non-static, used in glyphs.c.
12423         * specifier.c (specifier_instance):
12424         comment about the bogosity of image instances being domains.
12425         * specifier.c (Fgeneric_specifier_p):
12426         move doc string to make-generic-specifier.
12427         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12428         rebackslashify.
12429
12430         * specifier.h:
12431         * specifier.h (DOMAIN_FRAME):
12432         * specifier.h (DOMAIN_LIVE_P):
12433         * specifier.h (DOMAIN_XDEVICE):
12434         rebackslashify.
12435         add comments about problems with these macros.
12436         prototype for decode_domain.
12437
12438         * toolbar.c:
12439         * toolbar.c (Ftoolbar_specifier_p):
12440         move doc string to `make-toolbar-specifier'.
12441
12442         * window.c (window_unmap_subwindows_cache_mapper):
12443         *************************************************************
12444         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12445         HAVE BEEN GETTING.
12446         *************************************************************
12447
12448 2000-05-09  Andy Piper  <andy@xemacs.org>
12449
12450         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12451
12452         * window.c (Fset_window_configuration): reset the frame subwindow
12453         cache and re-initialize the window subwindow caches.
12454
12455         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12456
12457 2000-05-09  Ben Wing  <ben@xemacs.org>
12458
12459         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12460         DWORD.
12461
12462 2000-04-26  Mike Woolley  <mike@bulsara.com>
12463
12464         * ntheap.c: Changed recreate_heap to limit the amount reserved
12465         for the heap to that which is actually available. Also now
12466         displays a message box (with some dignostics) in the event that
12467         it still can't start.
12468
12469 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12470
12471         * callproc.c (Fold_call_process_internal): GCPRO path
12472
12473 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12474
12475         Patch by Bill Perry.
12476
12477         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12478         back data instead of #ifdef.
12479         (Fscrollbar_page_down): ditto.
12480
12481 2000-05-07  Ben Wing  <ben@xemacs.org>
12482
12483         * buffer.h:
12484         Kludge for defining Qmswindows_tstr.
12485
12486         * nt.c:
12487         * nt.c (open_input_file):
12488         * nt.c (open_output_file):
12489         * nt.c (rva_to_section):
12490         * nt.c (mswindows_executable_type):
12491         Move all memory-mapped-file routines here (some were in unexnt.c,
12492         which is bad because they are used by process-nt.c, and unexnt
12493         won't be around when portable dumping).  Synched the above routines
12494         with FSF 20.6.
12495
12496         * nt.h:
12497         Removed ifdef'd out bogus code.
12498         Fixed some prototypes.
12499
12500         * nt.h (file_data):
12501         * nt.h (OFFSET_TO_RVA):
12502         * nt.h (RVA_TO_OFFSET):
12503         * nt.h (RVA_TO_PTR):
12504         Moved the memory-mapped-file structures, macros and prototypes
12505         here, to parallel nt.c.  ntheap.h should really be removed
12506         entirely, and it's a non-portable-dumper specific file.
12507
12508         * ntheap.h (round_to_next):
12509         Moved the memory-mapped-file structures, macros and prototypes
12510         to nt.h.
12511
12512         * ntproc.c (compare_env):
12513         Moved rva_to_section and mswindows_executable_type to nt.c.
12514         Moved compare_env to process-nt.c.
12515         ntproc.c will die, one day.
12516
12517         * ntproc.c (sys_spawnve):
12518         Account for win32_ -> mswindows_.
12519
12520         * process-nt.c:
12521         * process-nt.c (struct nt_process_data):
12522         * process-nt.c (ensure_console_window_exists):
12523         * process-nt.c (compare_env):
12524         * process-nt.c (nt_create_process):
12525         * process-nt.c (nt_kill_process_by_pid):
12526         * process-nt.c (syms_of_process_nt):
12527         * process-nt.c (vars_of_process_nt):
12528         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12529         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12530         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12531         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12532         Move compare_env here from ntproc.c.
12533
12534         * process.c (Fprocess_send_region):
12535         Takes an optional fourth argument, BUFFER, which should fix some
12536         problems with call-process.
12537
12538         * syscommctrl.h:
12539         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12540
12541         * syswindows.h:
12542         Move ICC_BAR_CLASSES to syscommctrl.h.
12543         Add preliminary macros for MSWindows/Mule.  More to come.
12544
12545         * unexnt.c:
12546         * unexnt.c (unexec):
12547         open_output_file moved to nt.c.
12548
12549
12550 2000-05-05  Andy Piper  <andy@xemacs.org>
12551
12552         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12553         instance from the frame cache also since GC may catch up too late
12554         to make frame deletion sane.
12555
12556 2000-05-04  Andy Piper  <andy@xemacs.org>
12557
12558         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12559         (x_finalize_image_instance): ungcpro on deletion.
12560
12561         * glyphs.c (image_instantiator_format_create): give pointers a
12562         query geometry method so that the geometry is at least set.
12563
12564         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12565         initialize layouts if using widgets.
12566
12567 2000-05-03  Andy Piper  <andy@xemacs.org>
12568
12569         * nt.c: remove bogus reference to sysmmsystem.h
12570
12571         * gui-x.c (popup_selection_callback): fix no selection abort.
12572
12573 2000-05-02  Andy Piper  <andy@xemacs.org>
12574
12575         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12576         (mswindows_widget_instantiate): ditto.
12577
12578         * glyphs-widget.c (initialize_widget_image_instance): initialize
12579         children correctly.
12580         (widget_instantiate): cope with children and items in the same
12581         instance.
12582
12583         * glyphs.c (mark_image_instance): cope with children as a first
12584         class member.
12585         (image_instance_equal): ditto.
12586         (image_instance_hash): ditto.
12587         (image_instance_changed): ditto.
12588
12589 2000-04-30  Andy Piper  <andy@xemacs.org>
12590
12591         * glyphs.c (subwindow_query_geometry): new function. Return some
12592         defaults.
12593         (subwindow_instantiate): don't assign dimensions if none have been
12594         given.
12595         (image_instantiator_format_create): add subwindow_query_geometry.
12596         (print_image_instance): cope with layouts as widgets.
12597
12598 2000-04-29  Andy Piper  <andy@xemacs.org>
12599
12600         * frame.c (delete_frame_internal): call
12601         free_frame_subwindow_instance_cache so that all subwindows are
12602         finalized before their parent.
12603         (mark_frame): remove subwindow_cachels.
12604         (Fmake_frame): remove subwindow_cachel manipulation.
12605         (allocate_frame_core): subwindow_instance_cache is a weak list.
12606         (delete_frame_internal): set subwindow_instance_cache to nil.
12607
12608         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12609         finalization safe.
12610         (mswindows_finalize_image_instance): use the device
12611         not the domain as the domain may have died already.
12612
12613         * glyphs-x.c (x_finalize_image_instance): ditto.
12614         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12615         HEIGHT.
12616
12617         * redisplay-output.c (redisplay_unmap_subwindows): update for
12618         subwindow instance cache as a weak list.
12619         (redisplay_unmap_subwindows_maybe): ditto.
12620         (redisplay_unmap_subwindows_except_us): ditto.
12621
12622         * glyphs.c (unmap_subwindow): error checking will check the domain
12623         so don't deal with it here. Don't use cachels anymore.
12624         (map_subwindow): ditto.
12625         (update_subwindow_cachel_data): remove old accessor names.
12626         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12627         (Fresize_subwindow): don't update cachel.
12628         (mark_subwindow_cachels):
12629         (update_subwindow_cachel_data):
12630         (add_subwindow_cachel):
12631         (get_subwindow_cachel_index):
12632         (update_subwindow_cachel):
12633         (reset_subwindow_cachels):
12634         (mark_subwindow_cachels_as_not_updated): deleted.
12635         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12636         subwindow instance to the frame cache.
12637         (find_matching_subwindow): update for subwindow instance cache as
12638         a weak list.
12639         (update_widget_instances): ditto.
12640         (image_instance_type_to_mask):inlined.
12641         (free_frame_subwindow_instance_cache): new function. finalize all
12642         subwindows that are instantiated.
12643
12644         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12645         of cachel information.
12646         (IMAGE_INSTANCE_DISPLAY_X):
12647         (IMAGE_INSTANCE_DISPLAY_Y):
12648         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12649         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12650         (XIMAGE_INSTANCE_DISPLAY_X):
12651         (XIMAGE_INSTANCE_DISPLAY_Y):
12652         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12653         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12654         remove subwindow_cachel structure and function references.
12655         (image_instance_type_to_mask): inline from glyphs.c
12656
12657         * redisplay.c (redisplay_frame): remove subwindow_cachel
12658         references.
12659
12660         * frame.h (struct frame): remove subwindow_cachels.
12661         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12662
12663         * frameslots.h: add subwindow_instance_cache.
12664
12665         * window.c (replace_window): check subwindow cache of replacement.
12666         (window_unmap_subwindows_cache_mapper):
12667         (window_unmap_subwindows): new functions. Unmap all subwindows
12668         cached on this window.
12669         (mark_window_as_deleted): unmap all subwindows.
12670
12671 2000-04-27  Andy Piper  <andy@xemacs.org>
12672
12673         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12674
12675         * glyphs-widget.c (widget_layout): return something.
12676         (layout_layout): return something. Fail if not initialized.
12677         (layout_query_geometry): ditto.
12678         (image_instantiator_native_layout): new function. Initialized the
12679         native layout type.
12680         (widget_instantiate): don't do layout stuff here.
12681
12682         * glyphs.c (instantiate_image_instantiator): reorded calling or
12683         instantiate and post_instantiate with layout in between.
12684         (image_instance_layout): be more selective about deciding whether
12685         the layout has been done or not.
12686
12687         * glyphs.h (struct image_instantiator_methods): return a value
12688         from layout_method.
12689
12690 2000-04-26  Andy Piper  <andy@xemacs.org>
12691
12692         * glyphs.c (allocate_image_instance): make initial width and
12693         height unspecified. Set initialized to 0.
12694
12695         * syscommctrl.h new file. Encapsulates commctrl.h.
12696
12697         * syswindows.h new file. Encapsulates windows.h.
12698
12699         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12700         * nt.c: ditto.
12701         * console-msw.h: ditto.
12702
12703         * redisplay-tty.c (tty_output_display_block): remove layout references.
12704
12705         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12706         window handle rather than just the frame.
12707
12708         * glyphs.c (mark_image_instance): remove layout references.
12709         (print_image_instance): ditto.
12710         (image_instance_equal): ditto.
12711         (image_instance_hash): ditto.
12712         (decode_image_instance_type): ditto.
12713         (encode_image_instance_type): ditto.
12714         (image_instantiate): ditto.
12715         (allocate_glyph): ditto.
12716         (Fimage_instance_height): ditto.
12717         (Fimage_instance_width): ditto.
12718         (update_subwindow): ditto.
12719
12720         * redisplay-x.c (x_output_display_block): recode for layouts as
12721         widgets.
12722
12723         * redisplay-output.c (redisplay_output_layout): recode for layouts
12724         as widgets.
12725         (compare_runes): remove layout references.
12726
12727         * redisplay-msw.c (mswindows_output_display_block): recode for
12728         layouts as widgets.
12729
12730         * glyphs-widget.c (image_instantiator_layout): remove
12731         layout_possible_dest_types.
12732         (layout_possible_dest_types): deleted.
12733
12734         * glyphs.h (image_instance_type): remove layout references.
12735         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12736         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12737         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12738
12739 2000-04-25  Andy Piper  <andy@xemacs.org>
12740
12741         * glyphs-widget.c (image_instantiator_buttons):
12742         (image_instantiator_edit_fields):
12743         (image_instantiator_combo_box):
12744         (image_instantiator_scrollbar):
12745         (image_instantiator_progress_guage):
12746         (image_instantiator_tree_view):
12747         (image_instantiator_tab_control):
12748         (image_instantiator_labels):
12749         (image_instantiator_layout): call default post_instantiate method.
12750         (widget_post_instantiate): new function. Simply lays out the
12751         widgets.
12752
12753         * glyphs.h (struct image_instantiator_methods): add
12754         post_instantiate method.
12755
12756         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12757         method calls.
12758
12759 2000-04-23  Andy Piper  <andy@xemacs.org>
12760
12761         * glyphs.h (struct image_instantiator_methods): add
12762         decode_domain_method.
12763         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12764         derived from the domain.
12765         (IMAGE_INSTANCE_FRAME): new accessor.
12766         (XIMAGE_INSTANCE_FRAME): ditto.
12767
12768         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12769         instead of _SUBWINDOW_FRAME.
12770         (finalize_image_instance): ditto.
12771         (Fimage_instance_foreground): ditto.
12772         (Fimage_instance_background): ditto.
12773         (image_instantiate): ditto.
12774         (update_subwindow_cachel): ditto.
12775         (update_subwindow): ditto.
12776         (unmap_subwindow): ditto.
12777         (map_subwindow): ditto
12778         (subwindow_instantiate): ditto.
12779         * glyphs-msw.c (mswindows_update_widget): ditto.
12780         (mswindows_progress_gauge_instantiate): ditto.
12781         (mswindows_tab_control_update): ditto.
12782         * glyphs-x.c (x_update_widget): ditto.
12783         (x_widget_instantiate): ditto.
12784         (x_tab_control_instantiate): ditto.
12785         (x_tab_control_update): ditto.
12786         * event-msw.c (mswindows_wnd_proc): ditto
12787
12788         * glyphs-widget.c (image_instantiator_layout): use
12789         subwindow_decode_domain.
12790         (image_instantiator_buttons): ditto.
12791         (image_instantiator_edit_fields): ditto.
12792         (image_instantiator_combo_box): ditto.
12793         (image_instantiator_scrollbar): ditto.
12794         (image_instantiator_progress_guage): ditto.
12795         (image_instantiator_tree_view): ditto.
12796         (image_instantiator_tab_control): ditto.
12797         (image_instantiator_labels): ditto.
12798         (image_instantiator_layout): ditto.
12799
12800         * glyphs.c: add instance error checking to many functions.
12801         (instantiate_image_instantiator): decode device from cache_domain.
12802         (image_instantiate): partially rewrite by using
12803         decode_image_instantiator_domain to determine what domain the
12804         instance needs to be cached in.
12805         (decode_image_instantiator_domain): new function. Determine what
12806         domain the image needs to be cached in.
12807         (check_window_subwindow_cache): new error checking function.
12808         (check_instance_cache_mapper): ditto.
12809         (check_image_instance_structure): ditto.
12810         (subwindow_decode_domain): new function. Encodes a window as a
12811         subwindow's cache domain.
12812         (image_instantiator_format_create): use it for text and
12813         subwindows.
12814
12815 2000-04-21  Andy Piper  <andy@xemacs.org>
12816
12817         * glyphs.c (image_instance_device): new function.
12818         (image_instance_frame): new function.
12819         (image_instance_window): new function.
12820         (image_instance_live_p): new function.
12821
12822         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12823         cache to nil.
12824
12825         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12826         (IMAGE_INSTANCE_DOMAIN): new accessor.
12827         (XIMAGE_INSTANCE_DOMAIN): ditto.
12828
12829         * glyphs-x.c (x_finalize_image_instance): device->domain.
12830
12831         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12832         (mswindows_finalize_image_instance): ditto.
12833
12834         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12835         (gif_instantiate): ditto.
12836         (png_instantiate): ditto.
12837         (tiff_instantiate): ditto.
12838
12839         * glyphs.c (instantiate_image_instantiator): use domain rather
12840         than device.
12841         (mark_image_instance): device -> domain.
12842         (print_image_instance): ditto.
12843         (finalize_image_instance): ditto.
12844         (image_instance_equal): ditto.
12845         (allocate_image_instance): ditto.
12846         (Fcolorize_image_instance): ditto.
12847         (query_string_geometry): ditto.
12848         (image_instantiate): ditto
12849         (query_string_font): ditto.
12850         (image_instantiate): ditto.
12851         (update_subwindow): ditto.
12852         (unmap_subwindow): ditto.
12853         (map_subwindow): ditto.
12854         (subwindow_instantiate): ditto.
12855
12856         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12857         (DOMAIN_FRAME): ditto.
12858         (DOMAIN_WINDOW): ditto.
12859         (DOMAIN_LIVE_P): ditto.
12860         (XDOMAIN_DEVICE): ditto.
12861         (XDOMAIN_FRAME): ditto.
12862         (XDOMAIN_WINDOW): ditto.
12863
12864         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12865         a valid specifier domain.
12866
12867 2000-04-19  Andy Piper  <andy@xemacs.org>
12868
12869         * glyphs-widget.c (syms_of_glyphs_widget): remove
12870         widget-callback-current-channel.
12871         (vars_of_glyphs_widget): ditto.
12872         * glyphs.h: ditto
12873
12874         * gui.c (get_gui_callback): revert to previous behaviour.
12875
12876 2000-04-18  Andy Piper  <andy@xemacs.org>
12877
12878         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12879         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12880         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12881
12882         * glyphs.c (image_instance_equal): add margin_width.
12883         (image_instance_hash): ditto.
12884
12885         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12886         (layout_query_geometry): ditto.
12887         (layout_layout): ditto.
12888         (syms_of_glyphs_widget): add margin-width.
12889         (image_instantiator_layout): allow margin-width.
12890
12891         * glyphs.c (update_widget_instances): make a normal function.
12892         (syms_of_glyphs): remove Qupdate_widget_instances.
12893         * glyphs.h: ditto.
12894
12895         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12896         so that we don't corrupt ideas about the last event or
12897         command. Remove widget-callback-current-channel fiddling.
12898         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12899
12900 2000-05-01  Martin Buchholz <martin@xemacs.org>
12901
12902         * XEmacs 21.2.33 is released.
12903
12904 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12905
12906         * make-src-depend: Allow dots in header file name.
12907
12908 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12909
12910         * mule-charset.h (struct charset_lookup): Add
12911         next_allocated_1_byte_leading_byte and
12912         next_allocated_2_byte_leading_byte.
12913         * mule-charset.c: Move above two variables so that those values
12914         will be dumped.
12915
12916 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12917
12918         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12919         when string length is zero.
12920         (find_charsets_in_emchar_string): Ditto.
12921
12922 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12923
12924         * lisp.h: extern Qdialog and Qmenubar.
12925
12926         * gui-x.c: added events.h.
12927                 also fixed typo which made the file uncompilable.
12928
12929         * general.c: Added Qmenubar and Qdialog
12930
12931 2000-04-28  Ben Wing  <ben@xemacs.org>
12932
12933         * frame-msw.c (mswindows_init_frame_1):
12934         * frame-msw.c (mswindows_mark_frame):
12935         * event-msw.c (mswindows_enqueue_dispatch_event):
12936         * console-msw.h:
12937         * console-msw.h (struct mswindows_frame):
12938         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12939         there are now three hash tables for callbacks.
12940         mswindows_enqueue_dispatch_event is no longer static.
12941
12942         * dialog-x.c (maybe_run_dbox_text_callback):
12943         * dialog-x.c (dbox_descriptor_to_widget_value):
12944         switch to new cons3 form for callbacks.
12945
12946         * glyphs-msw.c (mswindows_register_gui_item):
12947         * glyphs-msw.c (mswindows_widget_instantiate):
12948         * glyphs-msw.c (add_tree_item):
12949         * glyphs-msw.c (add_tab_item):
12950         new image instance parameter, so it can be passed to callback-ex.
12951         respect :callback-ex as well as :callback.
12952
12953         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12954         add :callback-ex.
12955
12956         * glyphs.c (print_image_instance):
12957         prettify, e.g. now prints widget type.
12958
12959         * gui-x.h:
12960         certain funs have new image instance parameter.
12961
12962         * gui.c:
12963         * gui.c (get_gui_callback):
12964         * gui.c (gui_item_add_keyval_pair):
12965         * gui.c (gui_item_init):
12966         * gui.c (gui_add_item_keywords_to_plist):
12967         * gui.c (mark_gui_item):
12968         * gui.c (gui_item_hash):
12969         * gui.c (gui_item_equal):
12970         * gui.c (copy_gui_item):
12971         * gui.c (syms_of_gui):
12972         recognize callback-ex in a number of places.
12973         also, fix the annoying "can't get out of yes-no dialog" bug.
12974
12975         * gui.h:
12976         * gui.h (struct Lisp_Gui_Item):
12977         recognize callback-ex in a number of places.
12978
12979         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12980         new parameter in button_item_to_widget_value.
12981
12982         * glyphs-x.c (x_update_widget):
12983         * glyphs-x.c (x_button_instantiate):
12984         * glyphs-x.c (x_button_update):
12985         * glyphs-x.c (x_progress_gauge_instantiate):
12986         * glyphs-x.c (x_edit_field_instantiate):
12987         * glyphs-x.c (x_combo_box_instantiate):
12988         * glyphs-x.c (x_tab_control_instantiate):
12989         * glyphs-x.c (x_label_instantiate):
12990         new image instance parameter in various places.
12991
12992         * event-Xt.c:
12993         * event-Xt.c (enqueue_Xt_dispatch_event):
12994         this fun gets exported.
12995
12996         * gui-msw.c:
12997         * gui-msw.c (mswindows_handle_gui_wm_command):
12998         handle both :callback and :callback-ex, and generate our own
12999         event because it's one of the callback-ex arguments.
13000
13001         * gui-x.c:
13002         * gui-x.c (popup_selection_callback):
13003         handle both :callback and :callback-ex, and generate our own
13004         event because it's one of the callback-ex arguments.
13005         * gui-x.c (button_item_to_widget_value):
13006         * gui-x.c (gui_items_to_widget_values_1):
13007         * gui-x.c (gui_item_children_to_widget_values):
13008         * gui-x.c (gui_items_to_widget_values):
13009         new image instance parameter in various places.
13010
13011         * fns.c (Freplace_list):
13012         fix small typo in doc string.
13013
13014         * lisp.h:
13015         declare enqueue_Xt_dispatch_event.
13016
13017 2000-04-28  Ben Wing  <ben@xemacs.org>
13018
13019         * buffer.c:
13020         * buffer.c (Frecord_buffer):
13021         * buffer.c (syms_of_buffer):
13022         delete record-buffer-hook.
13023
13024         * fns.c:
13025         * fns.c (Freplace_list):
13026         * fns.c (syms_of_fns):
13027         new primitive replace-list.
13028
13029         * frameslots.h:
13030         slot for old buffer-alist.
13031
13032         * lisp.h:
13033         exfun replace-list.
13034
13035         * redisplay.c:
13036         * redisplay.c (redisplay_frame):
13037         * redisplay.c (syms_of_redisplay):
13038         * redisplay.c (vars_of_redisplay):
13039         new hook buffer-list-changed-hook.
13040         call it.
13041
13042 2000-04-27  Ben Wing  <ben@xemacs.org>
13043
13044         * extents.h: extern in_modeline_generation.
13045
13046         * redisplay.c (generate_formatted_string_db): set
13047         in_modeline_generation.
13048
13049         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13050         flags if in modeline generation.  otherwise frame-modified-tick
13051         is ticked far too often.
13052         Declare in_modeline_generation.
13053
13054 2000-04-26  Ben Wing  <ben@xemacs.org>
13055
13056         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13057         option.
13058         (vars_of_emacs): add quick-build as an error-checking option.
13059         A bit kludgy, but there doesn't seem much point in creating
13060         a real var for this.
13061
13062         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13063
13064 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13065
13066         * redisplay.h (struct display_line): Add a new variable,
13067         line_continuation.
13068
13069         * redisplay.c (create_text_block): Set dl->line_continuation if
13070         the line continues.
13071         (create_string_text_block): Ditto.
13072         (regenerate_window_incrementally): Use line_continuation instead
13073         of searching continuation glyph.
13074         (add_margin_runes): Call add_glyph_rune.
13075         (add_glyph_rune): Handle margin glyph.
13076
13077 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13078
13079         * filelock.c (fill_in_lock_file_name):
13080         ANSIfy.
13081         Check for IS_ANY_SEP instead of '/'.
13082         (lock_file_1):
13083         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13084         Never check errno without first seeing that system call failed.
13085         (unlock_file): Add GCPRO.
13086         (Flock_buffer): Fix docstring.
13087         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13088
13089 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13090
13091         * sysdep.c (get_pty_max_bytes):
13092         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13093         strings longer than 252 bytes.
13094
13095         * md5.c: Unconditionally include ANSI header <limits.h>
13096
13097         * glyphs-x.c (convert_EImage_to_XImage):
13098         * lisp-union.h (union Lisp_Object):
13099         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13100
13101 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13102
13103         * filelock.c (current_lock_owner): Remove unused variable o, p.
13104
13105 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13106
13107         * callint.c: Remove multiply defined symbol Qlet
13108         (syms_of_callint): ditto.
13109
13110 2000-04-14  Andy Piper  <andy@xemacs.org>
13111
13112         * general.c (syms_of_general): add last-command, this-command, let
13113         and funcall.
13114
13115         * lisp.h: declare various symbols.
13116
13117         * glyphs.h: declare Qwidget_callback_current_channel;
13118
13119         * glyphs-widget.c (syms_of_glyphs_widget): add
13120         Qgui_callback_current_channel.
13121         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13122
13123         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13124         widget-callback-current-channel when invoking the interactive
13125         arg. Also bind last-command and next-command when invoking the
13126         widget updates.
13127         * gui-x.c (popup_selection_callback): ditto.
13128
13129         * gui.c (get_gui_callback): massage args so that we are always
13130         calling eval. This allows us to add our own variable bindings
13131         outside.
13132
13133         * glyphs-x.c (x_button_instantiate): use
13134         gui_items_to_widget_values since this is GC safe.
13135         (x_progress_gauge_instantiate): ditto.
13136         (x_edit_field_instantiate): ditto.
13137         (x_label_instantiate): ditto.
13138
13139         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13140         (emacs_Xt_event_widget_focus_out): new function
13141         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13142         focus.
13143         (emacs_Xt_event_add_widget_actions): new function. add focus
13144         functions as actions.
13145         (init_event_Xt_late): use it.
13146
13147 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13148
13149         * event-stream.c (Fdispatch_event): Doc fix.
13150
13151 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13152
13153         * postgresql.c: Remove all references to PQsetenv*.
13154
13155         * postgresql.h: Remove references to PGsetenvHandler object.
13156         * lrecord.h (lrecord_type): Ditto.
13157
13158 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13159
13160         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13161         real_heigh and real_width members, and accessor macros for these.
13162
13163         * glyphs-msw.c (init_image_instance_geometry): New function.
13164         (init_image_instance_from_dibitmap): Use it.
13165         (mswindows_resource_instantiate): Use it.
13166         (init_image_instance_from_xbm_inline): Use it.
13167         (mswindows_initialize_image_instance_mask): Use real bitmap
13168         geometry.
13169         (mswindows_create_resized_bitmap): Ditto.
13170         (mswindows_create_resized_mask): Ditto.
13171
13172         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13173         and bitmap to their surface size.
13174
13175 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13176
13177         * process-unix.c (unix_send_process): Guard against process MIA
13178         after Faccept_process_output.
13179
13180 2000-04-11  Ben Wing  <ben@xemacs.org>
13181
13182         * eval.c (unbind_to_hairy): fix brokenness introduced by
13183         nanosecond speed improvements.
13184
13185 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13186
13187         * sunplay.c (init_device): To play sounds correctly, the device
13188         apparently needs to be initialized at least once by XEmacs.  Make
13189         it so.
13190
13191 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13192
13193         * redisplay.c (add_margin_runes): Add text image glyph
13194           handling.
13195
13196 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13197
13198         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13199         gcc is newer than 2.5.
13200
13201 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13202
13203         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13204
13205         * fns.c (size_bit_vector):
13206         * alloc.c (size_vector):
13207         (make_vector_internal):
13208         (make_bit_vector_internal):
13209         (sweep_bit_vectors_1):
13210         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13211
13212 2000-04-06  Andy Piper  <andy@xemacs.org>
13213
13214         * gmalloc.c (malloc): undo previous change.
13215         (malloc): ditto.
13216         (free): ditto.
13217         (realloc): ditto.
13218
13219 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13220
13221         * line-number.c (buffer_line_number): Revert to former version.
13222
13223 2000-04-06  Andy Piper  <andy@xemacs.org>
13224
13225         * gmalloc.c (malloc): add error checking.
13226         (malloc): ditto.
13227         (free): ditto.
13228         (realloc): ditto.
13229
13230         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13231         button_item_to_widget_value arg.
13232
13233         * glyphs-x.c (x_button_instantiate): add extra
13234         button_item_to_widget_value arg.
13235         (x_progress_gauge_instantiate): ditto.
13236         (x_edit_field_instantiate): ditto.
13237         (x_label_instantiate): ditto.
13238
13239         * gui-x.c (gui_items_to_widget_values_1): add extra
13240         button_item_to_widget_value arg.
13241         (button_item_to_widget_value): add extra menu_item_p arg.
13242
13243         * gui-x.h: change signature of button_item_to_widget_value.
13244
13245         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13246         button_item_to_widget_value arg.
13247
13248 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13249
13250         * buffer.h (struct buffer): auto_save_modified should be long.
13251
13252 2000-04-05  Andy Piper  <andy@xemacs.org>
13253
13254         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13255         type.
13256         (button_query_geometry): give a little more room so that athena
13257         buttons fit.
13258
13259 2000-04-05  Andy Piper  <andy@xemacs.org>
13260
13261         * faces.c (complex_vars_of_faces): The widget face should inherit
13262         the font of the gui-element face.
13263
13264 2000-04-04  Andy Piper  <andy@xemacs.org>
13265
13266         * glyphs-x.c (x_button_update): new function. unconditionally
13267         update a button's state when the instance is dirty.
13268         (image_instantiator_format_create_glyphs_x): add x_button_update.
13269         (x_widget_instantiate): remove old resize cruft.
13270
13271 2000-04-02  Andy Piper  <andy@xemacs.org>
13272
13273         * frame.c (change_frame_size_1): The introduction of gutters means
13274         that we need to allow 0 as a potential frame dimension.
13275
13276 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13277
13278         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13279         image glyph if allow_cursor.
13280         (add_hscroll_rune): Don't allow cursor to border glyph.
13281         (create_text_block): Ditto.
13282
13283         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13284         text not in buffer.
13285         (redisplay_output_layout): Call ensure_face_cachel_complete for
13286         text image glyph.
13287
13288
13289 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13290
13291         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13292
13293         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13294         not in buffer
13295
13296         * redisplay-tty.c (tty_output_display_block): Delete the routine
13297         for text image glyph
13298         * redisplay-x.c (x_output_display_block): ditto
13299         * redisplay-msw.c (mswindows_output_display_block): ditto
13300
13301 2000-02-02  Mike Alexander  <mta@arbortext.com>
13302
13303         Note: Some of these were committed by accident as part of other
13304         patches.
13305
13306         * regex.c (regex_compile): Avoid compiler warnings.
13307
13308         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13309
13310         * nt.h: Declare term_ntproc correctly.
13311
13312         * nt.c: Remove incorrect declaration of get_home_directory which
13313         is declared correctly in lisp.h.
13314
13315         * keymap.c (get_keyelt): Avoid compiler warnings.
13316         (raw_lookup_key_mapper): Avoid compiler warnings.
13317
13318         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13319
13320         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13321
13322         * filemode.c (mode_string): Avoid compiler warnings.
13323
13324         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13325         avoid warning.
13326
13327         * events-mod.h: Undef some things that winuser.h defines differently.
13328
13329         * data.c (Faset): Avoid compiler warnings.
13330
13331         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13332
13333 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13334
13335         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13336         Fall through to simple beep on error.
13337         Replace "extern" by real header file.
13338
13339         * linuxplay.c: Use nativesound.h
13340         (play_sound_data): Return error code. Be less verbose on error.
13341
13342         * sunplay.c: Use nativesound.h
13343         (play_sound_data): Return error code. Be less verbose on error.
13344
13345         * ntplay.c: Use nativesound.h
13346         (play_sound_data): Return fake error code
13347
13348         * sgiplay.c: Use nativesound.h
13349         (play_sound_data): Return error code
13350
13351         * hpplay.c: Use nativesound.h, partially implement
13352         new error code. Break compilation until finished.
13353         (play_sound_data): error code.
13354
13355         * nativesound.h (play_sound_file):
13356           (play_sound_data): Prototype in new header.
13357
13358 2000-03-31  Andy Piper  <andy@xemacs.org>
13359
13360         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13361         for toggle and radio buttons.
13362         (image_instantiator_buttons): use it.
13363
13364 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13365
13366         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13367         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13368         found. Scrollbar event probably belonged to some old config.
13369
13370 2000-03-31  Andy Piper  <andy@xemacs.org>
13371
13372         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13373         than 1.
13374         (initialize_widget_image_instance): default layout to
13375         LAYOUT_HORIZONTAL rather than 0.
13376         (widget_instantiate): reverse the item list at the end rather than
13377         every iteration.
13378         (layout_layout): re-code for the border text at the front of the
13379         item list rather than at the end.
13380         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13381         provided by the user.
13382         (widget_query_geometry): comment.
13383
13384 2000-03-30  Andy Piper  <andy@xemacs.org>
13385
13386         * glyphs-widget.c (image_instantiator_layout): allow standard
13387         widget keywords in layouts.
13388
13389         * gutter.c (output_gutter): cope with nil gutter contents.
13390
13391         * frame.c (Fset_frame_properties): add gutter docs.
13392
13393 2000-03-29  Andy Piper  <andy@xemacs.org>
13394
13395         * toolbar-msw.c (TBSTYLE_FLAT): add.
13396         (mswindows_output_toolbar): minor fiddling.
13397
13398 2000-03-29  Andy Piper  <andy@xemacs.org>
13399
13400         * gutter.c (output_gutter): force gutter size recalculation if
13401         what we are trying to display won't fit.
13402         (update_gutter_geometry): new function. A per-gutter version of
13403         update_frame_gutter_geometry.
13404         (update_frame_gutter_geometry): use it.
13405         (redraw_exposed_gutter): add extra debugging output.
13406
13407 2000-03-28  Mike Alexander  <mta@arbortext.com>
13408
13409         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13410         (pdump_file_unmap): Implement it on Windows
13411         (pdump_file_get): Save alocated handles for pdump_file_unmap
13412
13413 2000-03-28  Andy Piper  <andy@xemacs.org>
13414
13415         * gui.c (get_gui_callback): treat Quit specially.
13416
13417 2000-03-27  Andy Piper  <andy@xemacs.org>
13418
13419         * glyphs.c (image_instantiate): be careful to check in the same
13420         way we assigned.
13421
13422 2000-03-27  Didier Verna  <didier@xemacs.org>
13423
13424         * config.h.in: define the proper SMART_INCLUDE macro.
13425         handle renaming of `foo_h_path' to `foo_h_file'.
13426
13427         * database.c: ditto.
13428
13429         * emacs.c: ditto.
13430
13431         * linuxplay.c: ditto.
13432
13433         * terminfo.c: ditto.
13434
13435         * tooltalk.h: ditto.
13436
13437 2000-03-27  Andy Piper  <andy@xemacs.org>
13438
13439         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13440         gets updated whenever the face might have changed.
13441
13442 2000-03-26  Mike Alexander  <mta@arbortext.com>
13443
13444         * dumper.c (pdump_resource_free): Fix the comment.
13445
13446 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13447
13448         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13449
13450 2000-03-22  Mike Alexander  <mta@arbortext.com>
13451
13452         * dumper.c: Include Windows headers on Windows
13453         (pdump_resource_free): Add a body to the function
13454         (pdump_load): exe_name -> exe_path and add some comments.
13455
13456 2000-03-25  Mike Alexander  <mta@arbortext.com>
13457
13458         * gui.c (copy_gui_item_tree): Return a value in all cases
13459
13460 2000-03-21  Didier Verna  <didier@xemacs.org>
13461
13462         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13463         lwlib/config.h.in.
13464         (SMART_INCLUDE): new macro.
13465         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13466         the proper location.
13467
13468         * postgresql.c: use it.
13469
13470         * inline.c: ditto.
13471
13472 2000-03-24  Andy Piper  <andy@xemacs.org>
13473
13474         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13475         do this.
13476
13477 2000-03-24  Andy Piper  <andy@xemacs.org>
13478
13479         * redisplay-output.c (compare_runes): use image_instance_changed
13480         to detect changes. Do not depend on glyphs_changed, only depend on
13481         dirtiness.
13482          (redisplay_output_layout): add debug messages.
13483         (compare_runes): ditto.
13484
13485         * glyphs.h: declare new functions.
13486         (struct Lisp_Image_Instance): remove percent and associated
13487         accessors.
13488
13489         * gui.h: declare new copying functions.
13490
13491         * gui.c (copy_gui_item_tree): new function.
13492         (copy_gui_item): new function.
13493         (gui_item_id_hash): revert to standard hash.
13494         (gui_item_hash): ditto.
13495         (gui_item_hash_internal): deleted.
13496         (mark_gui_item): mark value.
13497         (gui_item_add_keyval_pair): add value.
13498         (gui_item_init): ditto.
13499         (gui_add_item_keywords_to_plist): ditto.
13500         (gui_item_equal): ditto.
13501         (syms_of_gui): add Q_value.
13502
13503         * glyphs-x.c (x_progress_gauge_update): use pending items and
13504         value for setting the state.
13505         (x_update_widget): don't set items from pending here.
13506
13507         * glyphs-widget.c (update_widget): update items here.
13508         (progress_gauge_set_property): use items for storing value. Put
13509         new value in pending items.
13510
13511         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13512         items for new value. Convert percent -> value.
13513         (mswindows_tab_control_update): don't update items here.
13514
13515         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13516         (update_subwindow): ditto.
13517         (image_instance_changed): new function. Compare hash values and
13518         past and present widget items.
13519         (image_instantiate): We more careful about where we instantiate
13520         things.
13521         (image_instantiate): add error checking.
13522
13523         * gutter.c (syms_of_gutter): use -hook.
13524
13525 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13526
13527         * console-tty.c (Fset_console_tty_input_coding_system): Use
13528         Qkeyboard.
13529         (Fset_console_tty_output_coding_system): Use Qterminal.
13530         (tty_init_console): Use Qkeyboard and Qterminal.
13531
13532 2000-03-21  Ben Wing  <ben@xemacs.org>
13533
13534         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13535         From Mike Alexander <mta@arbortext.com>.
13536
13537 2000-03-21  Ben Wing  <ben@xemacs.org>
13538
13539         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13540         process brokenness.  Proper implementation to come.
13541         * callproc.c:
13542         Rename call-process-internal to old-call-process-internal.
13543         New impl. in process.el.
13544
13545 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13546
13547         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13548
13549 2000-03-20  Andy Piper  <andy@xemacs.org>
13550
13551         * glyphs.c (full_list_hash): make hashes of the same elements in
13552         different orders return different values.
13553
13554 2000-03-20  Martin Buchholz <martin@xemacs.org>
13555
13556         * XEmacs 21.2.32 is released.
13557
13558 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13559
13560         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13561         (DFC_MALLOC_USE_CONVERTED_DATA):
13562         Add aliasing-safe casts to allow use with char* or unsigned char*
13563         lvalues.
13564
13565         * eldap.c (Fldap_open):
13566         (Fldap_search_basic):
13567         (Fldap_add):
13568         (Fldap_modify):
13569         Make C++-compilable.
13570         Make sure GCPRO'ed variables are initialized.
13571         Use temp variables to avoid repeated calls to Flength.
13572
13573 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13574
13575         * sysfile.h:
13576         Make sure PATH_MAX is always defined.
13577         Include limits.h for PATH_MAX.
13578         Deprecate use of MAXPATHLEN.
13579
13580 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13581
13582         * emacs.c: Add reinit_vars_of_fileio.
13583         * symsinit.h: Add reinit_vars_of_fileio.
13584         * fileio.c (reinit_vars_of_fileio): New.
13585         * fileio.c (Fmake_temp_name):
13586         Initialize temp_name random number from microseconds to make
13587         collisions even less likely.  Initialize always at process startup
13588         time.  (make-temp-name) used to return the same file name twice in
13589         a row when PDUMP.
13590         Random stylistic fiddling.
13591         Comment fixes.
13592
13593 2000-03-20  Andy Piper  <andy@xemacs.org>
13594
13595         * glyphs.c (image_instantiate): allow text glyphs to be
13596         instantiated in the minibuffer window.
13597
13598 2000-03-19  Andy Piper  <andy@xemacs.org>
13599
13600         * glyphs.c (image_instance_hash): be careful about which items we
13601         hash on.
13602
13603         * glyphs-widget.c (tab_control_set_property): record into pending
13604         items rather than the actual items.
13605
13606         * glyphs-x.c (x_update_widget): use pending items to update with.
13607
13608         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13609         to update with.
13610
13611         * glyphs.c (mark_image_instance): mark pending items.
13612
13613         * window.c (Fset_window_configuration): record the buffer.
13614         (Fselect_window): totally revert previous change which breaks many
13615         things.
13616
13617 2000-03-18  Andy Piper  <andy@xemacs.org>
13618
13619         * glyphs-msw.c (mswindows_tab_control_update): force selected
13620         item.
13621
13622         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13623         window domain cache, otherwise we get inconsistencies at
13624         startup. There is something fishy at startup which can lead to the
13625         minibuffer being the selected window when the gutter content is
13626         instantiated.
13627
13628         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13629         gcpros.
13630         (parse_gui_item_tree_children): ditto.
13631         (parse_gui_item_tree_item): ditto.
13632
13633         * glyphs.c (Fupdate_widget_instances): return something.
13634
13635 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13636
13637         * window.c (Fselect_window): Undo 2000-03-17 change.
13638
13639 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13640
13641         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13642         against v7.0 libraries.  Insta-coredump city until the postgres
13643         folks fix it.
13644
13645 2000-03-17  Andy Piper  <andy@xemacs.org>
13646
13647         * faces.c (complex_vars_of_faces): don't give the widget face an
13648         inherited background pixmap.
13649
13650         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13651         selected item.
13652
13653         * event-stream.c (Fdispatch_non_command_events): return something.
13654
13655         * gutter.c (output_gutter): use widget face.
13656         (clear_gutter): ditto.
13657
13658         * NEWS: adjust again.
13659
13660         * window.c (Fselect_window): make sure this runs to completion to
13661         avoid oddities with Fset_window_configuration.
13662         (Fcurrent_window_configuration): in general do not save the
13663         minibuffer as the selected window.
13664
13665         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13666
13667 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13668
13669         * emacs.c (Frunning_temacs_p): Revert previous patch.
13670         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13671
13672 2000-03-16  Andy Piper  <andy@xemacs.org>
13673
13674         * glyphs-x.c (x_tab_control_update): if no widget values then
13675         return.
13676
13677         * NEWS: update for new features.
13678
13679         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13680         synthetic event to the native system.
13681         (reinit_vars_of_event_Xt): set force_event_pending to
13682         emacs_Xt_force_event_pending.
13683
13684         * events.h (struct event_stream): add force_event_pending.
13685
13686         * specifier.c (recompute_one_cached_specifier_in_window): add
13687         comment.
13688
13689         * redisplay.c (redisplay_frame): don't call
13690         update_frame_subwindows. Reset subwindow cachels when
13691         subwindows_changed, removing this was an optimization too far.
13692
13693         * redisplay-output.c (compare_runes): reorganize so that we catch
13694         glyph changes when we want them. Set optimize_output when this
13695         would help layouts.
13696         (redisplay_output_layout): remove frame_really_changed, use
13697         optimize_output instead.
13698
13699         * redisplay-msw.c (mswindows_output_display_block): reset
13700         optimize_output after outputting a glyph.
13701         * redisplay-x.c (x_output_display_block): ditto.
13702         * redisplay-tty.c (tty_output_display_block): ditto.
13703
13704         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13705         functions.
13706         (gutter_specs_changed): do specific gutter positions.
13707         (top_gutter_specs_changed): new function. Only update the
13708         specified gutter specs.
13709         (bottom_gutter_specs_changed): ditto.
13710         (left_gutter_specs_changed): ditto.
13711         (right_gutter_specs_changed): ditto.
13712
13713         * gui.c (gui_item_hash_internal): new function, does a real hash.
13714         (gui_item_id_hash): use it.
13715         (gui_item_hash): hash the eval'ed gui_item.
13716
13717         * gui-x.c (popup_selection_callback): send an eval event to call
13718         Fupdate_widget_instances.
13719
13720         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13721         to call Fupdate_widget_instances.
13722
13723         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13724         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13725
13726         * glyphs.c: (update_frame_subwindows): deleted.
13727         (Fupdate_widget_instances): new function for updating the dirty
13728         state of widgets that might have changed.
13729         (syms_of_glyphs): add Qupdate_widget_instances.
13730         (full_list_hash): hash a list completely.
13731         (image_instance_hash): use it for items and properties.
13732
13733         * frame-msw.c (mswindows_size_frame_internal): remove unused
13734         variable.
13735
13736         * faces.h (struct face_cachel): fix comment.
13737
13738         * event-stream.c (Fdispatch_non_command_events): new
13739         function. Process non-command events, forcing an event cycle
13740         beforehand.
13741         (syms_of_event_stream): declare.
13742         (event_stream_force_event_pending): new function. Force an event
13743         on the native event queue so that an event cycle will occur next
13744         time we check.
13745
13746         * event-msw.c:
13747         (struct ntpipe_shove_stream):
13748         (mswindows_enqueue_dispatch_event):
13749         (mswindows_dequeue_dispatch_event):
13750         (mswindows_cancel_dispatch_event):
13751         (mswindows_pump_outstanding_events):
13752         (mswindows_drain_windows_queue):
13753         (mswindows_handle_paint):
13754         (mswindows_wnd_proc):
13755         (mswindows_key_to_emacs_keysym):
13756         (get_process_input_waitable):
13757         (emacs_mswindows_delete_stream_pair): re-indent file.
13758         (mswindows_need_event): do not process further fds if the windows
13759         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13760         fixes the 100% cpu problem.
13761         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13762
13763 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13764
13765         * alloc.h: New.
13766         * dumper.h: New.
13767         * dumper.c: New.
13768
13769         * emacs.c: Moved dump file searching to dumper.c.
13770         (Frunning_temacs_p): Fixed.
13771
13772         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13773         last_lrecord_type_index_assigned.
13774
13775 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13776
13777         * symsinit.h: Added reinit parameter to init_console_stream
13778         declaration.
13779
13780         * lisp.h: Added file parameter to pdump_load declaration.
13781
13782         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13783         support.  Added dump file searching.
13784
13785         * config.h.in: Added EMACS_PROGNAME.
13786
13787         * console-stream.c (init_console_stream): Fix reinitialisation
13788         when running from temacs.
13789
13790         * alloc.c (pdump): Add id support.
13791         (pdump_load): Add file parameter and signature/id support.
13792
13793         * Makefile.in.in: Add full pdump support.
13794
13795 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13796
13797         * postgresql.c: Update documentation to reflect latest code
13798         status.
13799         (print_result): Show tuple counts in printed representation when
13800         appropriate.
13801         (Fpq_put_nbytes): MULE-ize.
13802         (Fpq_get_line_async): Ditto.
13803
13804 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13805
13806         * postgresql.c (Fpq_lo_import): Fix return value.
13807         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13808
13809 2000-03-13  Ben Wing  <ben@xemacs.org>
13810
13811         * alloc.c (pdump_load):
13812         Fix compile warning under mswin.
13813
13814 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13815
13816         * postgresql.c: Mule-ization, bug fixes.
13817         Use PG_CODING to encapsulate coding system name changes.
13818         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13819         (pg-coding-system): Create.
13820
13821         (Fpq_conn_defaults): Mule-ize.
13822         (Fpq_connectdb): Mule-ize & bug fix.
13823         (Fpq_connect_start): Mule-ize.
13824         (Fpq_set_client_encoding): Mule-ize.
13825         (Fpq_finish): Document `DEAD' connection status.
13826         (Fpq_clear): Ditto.
13827         (Fpq_pgconn): Mule-ize.
13828         (Fpq_exec): Mule-ize & bug fix.
13829         (Fpq_send_query): Ditto.
13830         (Fpq_get_result): Ditto.
13831         (Fpq_res_status): Mule-ize.
13832         (Fpq_result_error_message): Mule-ize.
13833         (Fpq_ntuples): fix comments.
13834         (Fpq_fname): Mule-ize.
13835         (Fpq_fnumber): Mule-ize.
13836         (Fpq_ftype): fix comments.
13837         (Fpq_get_value): Mule-ize.
13838         (Fpq_cmd_status): Ditto.
13839         (Fpq_cmd_tuples): Ditto.
13840         (Fpq_oid_value): Ditto.
13841         (Fpq_notifies): Ditto.
13842         (Fpq_lo_import): Ditto.
13843         (Fpq_lo_export): Ditto.
13844         (Fpq_get_line): Ditto.
13845         (Fpq_put_line): Mule-ize and bug fix.
13846         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13847
13848 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13849
13850         * postgresql.c (vars_of_postgresql): Mule-ize.
13851         (Fpq_conn_defaults): Ditto.
13852
13853 2000-03-12  Ben Wing  <ben@xemacs.org>
13854
13855         * alloc.c (Fmake_byte_code):
13856         * alloc.c (debug_string_purity_print):
13857         * alloc.c (pdump_backtrace):
13858         * alloc.c (pdump_get_indirect_count):
13859         * alloc.c (pdump_register_sub):
13860         * alloc.c (pdump_register_object):
13861         * alloc.c (pdump_register_struct):
13862         * alloc.c (pdump_dump_data):
13863         * alloc.c (pdump_reloc_one):
13864         Minor cleanups.
13865
13866         * console-msw.c:
13867         * console-msw.c (GetConsoleHwnd):
13868         * console-msw.c (msw_hide_console):
13869         * console-msw.c (msw_show_console):
13870         * console-msw.c (msw_ensure_console_buffered):
13871         * console-msw.c (msw_output_console_string):
13872         * console-msw.c (console_type_create_mswindows):
13873
13874         a) Added functions to manipulate the console window for use with
13875         shell support.
13876
13877         b) Added support for writing text to the console, which is now
13878         used under Windows when xemacs is not being run non-interactively,
13879         to write text that would otherwise be destined for stdout because
13880         under these circumstances, text written to stdout tends to
13881         disappear and not be seen.
13882
13883         * console-msw.h:
13884         * event-Xt.c:
13885         * event-Xt.c (x_event_to_emacs_event):
13886         * event-Xt.c (describe_event_window):
13887         * events-mod.h (XEMACS_MOD_CONTROL):
13888         * events.c:
13889         * events.c (Fmake_event):
13890         * events.c (character_to_event):
13891         * events.c (event_to_character):
13892         * events.c (format_event_object):
13893         * events.c (Fevent_modifiers):
13894         * events.h:
13895         * events.h (struct key_data):
13896         * events.h (struct button_data):
13897         * events.h (struct misc_user_data):
13898         * frame-x.c (Fcde_start_drag_internal):
13899         * frame-x.c (Foffix_start_drag_internal):
13900         * gpmevent.c (Freceive_gpm_event):
13901         * keymap.c:
13902         * keymap.c (bucky_sym_to_bucky_bit):
13903         * keymap.c (control_meta_superify):
13904         * keymap.c (make_key_description):
13905         * keymap.c (keymap_lookup_directly):
13906         * keymap.c (create_bucky_submap):
13907         * keymap.c (keymap_store):
13908         * keymap.c (define_key_check_and_coerce_keysym):
13909         * keymap.c (define_key_parser):
13910         * keymap.c (define_key_alternate_name):
13911         * keymap.c (Fdefine_key):
13912         * keymap.c (raw_lookup_key_mapper):
13913         * keymap.c (struct map_keymap_unsorted_closure):
13914         * keymap.c (map_keymap_unsorted_mapper):
13915         * keymap.c (map_keymap_sort_predicate):
13916         * keymap.c (map_keymap_sorted):
13917         * keymap.c (accessible_keymaps_mapper_1):
13918         * keymap.c (where_is_recursive_mapper):
13919         * keymap.c (describe_map_mapper):
13920         * keymap.c (describe_map_sort_predicate):
13921         * keymap.c (describe_map):
13922         * keymap.c (complex_vars_of_keymap):
13923         And a number of other files, the key modifier preprocessor
13924         constants that xemacs uses have names that conflict with constants
13925         defined under MS Windows for other purposes, so they were renamed
13926         to begin with the prefix XEMACS_. The variables that hold such
13927         modifiers were changed to consistently be of type int to fix
13928         various compile warnings.
13929
13930         * console.c (complex_vars_of_console):
13931         * device.c:
13932         * device-msw.c:
13933         * device-msw.c (mswindows_finish_init_device):
13934         * device-msw.c (msw_get_workspace_coords):
13935         * device-msw.c (mswindows_device_system_metrics):
13936         and various other files, added support for a new
13937         device property called offset-workspace which returns the position
13938         of the upper left corner of the workspace area and goes along with
13939         the existing size-workspace property.
13940
13941         * dialog-msw.c:
13942         * dialog-msw.c (push_bufbyte_string_as_unicode):
13943         * dialog-msw.c (mswindows_popup_dialog_box):
13944         Added support for XEmacs-style accelerator specifications in
13945         button text.  Note: I didn't add support for this under X Windows,
13946         and somebody needs to do this.
13947
13948         * dialog.c:
13949         * dialog.c (Fpopup_dialog_box):
13950         Documented the support for accelerators that was just mentioned.
13951
13952         editfns.c (get_home_directory): Changed behavior under Windows
13953         when HOME not defined; former behavior was irretrievably broken.
13954
13955         * emacs.c:
13956         * emacs.c (main_1):
13957         * emacs.c (main):
13958         * minibuf.c (clear_echo_area_internal):
13959         * minibuf.c (echo_area_append):
13960         * print.c:
13961         * print.c (std_handle_out_external):
13962         * print.c (std_handle_out_va):
13963         * print.c (fatal):
13964         * print.c (write_string_to_stdio_stream):
13965         * print.c (output_string):
13966         * print.c (debug_print):
13967         * print.c (debug_backtrace):
13968         * print.c (debug_short_backtrace):
13969         Cleaned up the code that prints text to stdout so that this can be
13970         changed to output into a console window instead under MS Windows,
13971         as described above.
13972
13973         * eval.c:
13974         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13975         * eval.c (internal_catch):
13976         * eval.c (unwind_to_catch):
13977         * eval.c (throw_or_bomb_out):
13978         * eval.c (condition_case_1):
13979         * eval.c (signal_1):
13980         * eval.c (check_error_state_sanity):
13981         * eval.c (call_with_suspended_errors_1):
13982         * eval.c (call_with_suspended_errors):
13983         * eval.c (reinit_vars_of_eval):
13984         Added code to catch throw loops and check for a pesky bug that may
13985         be gone now.
13986
13987         * event-msw.c:
13988         * event-msw.c (key_needs_default_processing_p):
13989         * event-msw.c (mswindows_wnd_proc):
13990         * event-msw.c (mswindows_modifier_state):
13991         * event-msw.c (emacs_mswindows_quit_p):
13992         * event-msw.c (vars_of_event_mswindows):
13993         a) Added support for using the alt key to select menu items as is
13994         standard under MS Windows.  This is controlled using the variable
13995         menu-accelerator-enabled, just like under X Windows.  There is an
13996         option on the options menu to turn this support on.  I really
13997         think that it should be on by default under Windows, but I'm not
13998         going to make this change yet.
13999
14000         b)  Added support for dynamic display size changes under Windows.
14001
14002         * event-stream.c:
14003         * event-stream.c (maybe_echo_keys):
14004         * event-stream.c (Fnext_event):
14005         * event-stream.c (command_builder_find_leaf):
14006         * event-stream.c (lookup_command_event):
14007         * event-stream.c (execute_command_event):
14008         * event-stream.c (pre_command_hook):
14009         * event-stream.c (post_command_hook):
14010         * event-stream.c (syms_of_event_stream):
14011         * event-stream.c (vars_of_event_stream):
14012         * event-stream.c (complex_vars_of_event_stream):
14013         * events.h (struct command_builder):
14014
14015         a) Tried to clean up a little bit the horribly written x-specific
14016         accelerator code that crept into this file.  I moved this code
14017         into menubar-x.c where it belongs. I also needed to move the
14018         command builder structure into the file events.h because it is
14019         accessed directly by this accelerator code.  What I didn't do, but
14020         which should be done at some point, is to properly abstract this
14021         code using device methods instead of the kludgy way that it
14022         currently hooks into the event code.
14023
14024         b) Added the lisp variables this-command-properties and
14025         last-command- properties, which should be used to synchronize two
14026         adjacent commands in preference to playing games with the variable
14027         this-command, which is typically what happens.
14028
14029         c) Added some slightly nasty code to hook into the lisp support
14030         for shifted- motion-key selection.  This is actually necessary for
14031         somewhat complicated reasons, which are described in
14032         simple.el. (NB: I think the proper thing would be to have the code
14033         that calls the pre and post command hooks also call out to generic
14034         lisp functions in simple.el, where all built-in stuff could be
14035         added.  I will think about this more.)
14036
14037         * event-unixoid.c (poll_fds_for_input):
14038         * lread.c (readchar):
14039         * redisplay-tty.c (tty_clear_frame):
14040         * redisplay-x.c (x_get_gc):
14041         * signal.c (interrupt_signal):
14042         And a whole bunch of other files: fixed up places that printed
14043         directly to stderr to instead call the function stderr_out so that
14044         the changes I made under Windows work correctly.
14045
14046         * filemode.c (mode_string):
14047         Warning fixes.
14048
14049         * frame-msw.c:
14050         * frame-msw.c (mswindows_size_frame_internal):
14051         Fixed the computation of frame size and position to keep the frame
14052         within the workspace area, rather than within the physical
14053         dimensions of the screen, so that the frame doesn't overlap window
14054         manager decorations, such as the start menu and toolbar, typically
14055         at the bottom of the screen.
14056
14057         * frame.c (vars_of_frame):
14058         Changed the default frame title format under MS Windows to consist
14059         of buffername-XEmacs, which is standard under MS Windows.  I think
14060         it might be a good idea to change this everywhere because I think
14061         it is superior to the current frame title format, but this is the
14062         kind of change that is likely to cause some people to get annoyed,
14063         so I'm not making it.
14064
14065         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14066
14067         * gui-msw.c (mswindows_handle_gui_wm_command):
14068         Fixed compile warnings.
14069
14070         * gui-x.c:
14071         * gui-x.c (strdup_and_add_accel):
14072         * gui-x.c (button_item_to_widget_value):
14073         * gui-x.h:
14074         Added code to automatically put an accelerator onto the beginning
14075         of menu items that don't have one as is now the standard, and is
14076         described more later.  Also fixed things so that the menu item
14077         name can be an evaluated expression, again a new standard.
14078
14079         * gui.c:
14080         * gui.c (gui_item_add_keyval_pair):
14081         * gui.c (make_gui_item_from_keywords_internal):
14082         * gui.c (gui_add_item_keywords_to_plist):
14083         * gui.c (gui_item_accelerator):
14084         * gui.c (gui_name_accelerator):
14085         * gui.c (gui_item_included_p):
14086         * gui.c (gui_item_display_flush_left):
14087         * gui.c (gui_item_display_flush_right):
14088         * gui.c (parse_gui_item_tree_item):
14089         * gui.c (parse_gui_item_tree_children):
14090         * gui.c (parse_gui_item_tree_list):
14091         Mule-ized.  Cleanup.  GCPRO addition.
14092
14093         * line-number.c (buffer_line_number):
14094         * lisp.h:
14095         * lisp.h (EMACS_INT_MAX):
14096         Added the manifest constant EMACS_INT_MIN corresponding to the
14097         existing constant EMACS_INT_MAX.  This is partially to fix compile
14098         warnings under Windows, and partly for cleanliness.
14099
14100         * menubar-msw.c:
14101         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14102         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14103         * menubar-msw.c (displayable_menu_item):
14104         * menubar-msw.c (populate_menu_add_item):
14105         * menubar-msw.c (populate_or_checksum_helper):
14106         * menubar-msw.c (populate_menu):
14107         * menubar-msw.c (update_frame_menubar_maybe):
14108         * menubar-msw.c (prune_menubar):
14109         * menubar-msw.c (msw_char_is_accelerator):
14110         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14111         * menubar-msw.c (mswindows_handle_wm_command):
14112         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14113         * menubar-msw.c (mswindows_handle_wm_initmenu):
14114         * menubar-msw.c (mswindows_update_frame_menubars):
14115         * menubar-msw.c (mswindows_free_frame_menubars):
14116         * menubar-msw.c (mswindows_popup_menu):
14117         Fixed a bug in handling accelerators where an extra character
14118         would be displayed in the menu item.  Also generalized the
14119         function displayable_menu_item because it is now used by the
14120         dialog box code as well.  And finally, added code in the functions
14121         that create the menubar to extract a list of accelerators for the
14122         top level menubar, which is used in the event code to determine
14123         whether a particular alt-key combination should be used to invoke
14124         a menu item, or should be passed through to access the standard
14125         XEmacs keymap binding for this key combination.
14126
14127         Much needed GCPROing.
14128
14129         * menubar-x.c:
14130         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14131         * menubar-x.c (menu_item_descriptor_to_widget_value):
14132         * menubar-x.c (restore_in_menu_callback):
14133         * menubar-x.c (x_popup_menu):
14134         * menubar-x.c (menu_move_up):
14135         * menubar-x.c (menu_move_down):
14136         * menubar-x.c (menu_move_left):
14137         * menubar-x.c (menu_move_right):
14138         * menubar-x.c (menu_select_item):
14139         * menubar-x.c (command_builder_operate_menu_accelerator):
14140         * menubar-x.c (menu_accelerator_junk_on_error):
14141         * menubar-x.c (command_builder_find_menu_accelerator):
14142         * menubar-x.c (Faccelerate_menu):
14143         * menubar.h:
14144         Moved a whole bunch of code here that was previously in
14145         event-stream.c as described above.  There is also code connected
14146         to the new standard of adding an accelerator to the beginning of
14147         menu items that don't have one as described above and below.
14148
14149         * menubar.c:
14150         * menubar.c (menu_parse_submenu_keywords):
14151         * menubar.c (Fmenu_find_real_submenu):
14152         * menubar.c (Fnormalize_menu_item_name):
14153         * menubar.c (syms_of_menubar):
14154         * menubar.c (vars_of_menubar):
14155         * menubar.c (complex_vars_of_menubar):
14156
14157         a) Cleaned up a bunch of documentation and improved it.
14158
14159         b) XEmacs now automatically adds an accelerator onto the beginning
14160         of any menu items that don't have one.  I did this because there
14161         will inevitably be some menu items on the main menubar that don't
14162         have accelerators on them because the package that adds that
14163         particular menu item hasn't yet been fixed up to have accelerators
14164         in them and it looked rather strange to have some items with and
14165         some items without accelerators, especially since even in items
14166         without accelerators, you can, at least under windows, still
14167         access the item through an accelerator corresponding to the first
14168         character in the item's name.  If people don't like this behavior,
14169         I can add a variable to turn it off optionally, but I'm not sure
14170         this is a good idea because we really do need to have accelerators
14171         on all of the menu items, and if a package doesn't like the
14172         accelerators being put on the first character, then it should put
14173         the accelerators where they belong.
14174
14175         c) I made a behavior change, which is that the descriptor that
14176         specifies the text of the menu item, which formerly was just a
14177         string, can now also be an evaluated expression.  This makes this
14178         descriptor parallel with all of the others, which could also be
14179         evaluated expressions.  This also obviates the need for the
14180         keyword :label, which was previously listed in the documentation
14181         as unimplemented, and which was for the same purpose.
14182
14183         d) GCPROing.
14184
14185         * ntproc.c:
14186         * ntproc.c (new_child):
14187         * ntproc.c (sys_spawnve):
14188         * ntproc.c (find_child_console):
14189         * ntproc.c (sys_kill):
14190         Fixed compile warnings.  By the way, this file should really go
14191         away entirely, and this will happen as soon as Kirill makes his
14192         final round of process cleanups, which affect the function
14193         call-process.
14194
14195         * process-nt.c:
14196         * process-nt.c (struct nt_process_data):
14197         * process-nt.c (find_process_from_pid):
14198         * process-nt.c (send_signal_the_nt_way):
14199         * process-nt.c (enable_child_signals):
14200         * process-nt.c (find_child_console):
14201         * process-nt.c (send_signal_the_95_way):
14202         * process-nt.c (nt_finalize_process_data):
14203         * process-nt.c (ensure_console_window_exists):
14204         * process-nt.c (nt_create_process):
14205         * process-nt.c (nt_kill_child_process):
14206         * process-nt.c (nt_kill_process_by_pid):
14207         * process-nt.c (nt_open_network_stream):
14208         * process-nt.c (vars_of_process_nt):
14209         Copied over code from Emacs 20.5 to correctly send signals to sub-
14210         processes under Windows 95.  Also added code to automatically
14211         create and hide console window when a sub-process is created under
14212         Windows 95, which obviates the need for the separate runemacs.exe
14213         executable, and finally implemented some variables that were
14214         implemented in Emacs 20.5, but previously not in XEmacs.  These
14215         include mswindows- start-process-share-console and
14216         mswindows-start-process-inherit-error-mode. (Both of these only
14217         apply to Windows 95.)
14218
14219         * regex.c (regex_compile): Fixed a compile warning.
14220
14221         * select-msw.c:
14222         * select-msw.c (mswindows_own_selection):
14223         * select-msw.c (mswindows_get_foreign_selection):
14224         * select-msw.c (mswindows_disown_selection):
14225         * select-msw.c (console_type_create_select_mswindows):
14226         * select-msw.c (syms_of_select_mswindows):
14227         Cleaned up the file and implemented the device method
14228         selection_exists_p, which had accidentally been left out.  Also
14229         removed four lisp functions that were remnants from before the
14230         time when the selection code was properly device abstracted.
14231         These functions are no longer needed because there are generic
14232         equivalents, and because they were added recently and don't exist
14233         in FSF Emacs, I don't think there's any problem with just deleting
14234         them.
14235
14236         * sysdep.c:
14237         * sysdep.c (sys_subshell):
14238         Fixed a compile warning, although in this case there's probably
14239         something wrong with this code, and it ought to be looked into
14240         more thoroughly by somebody who understands it.
14241
14242         * window.c:
14243         * window.c (Fwindow_text_area_height):
14244         * window.c (Fwindow_width):
14245         * window.c (Fwindow_full_width):
14246         * window.c (Fwindow_pixel_width):
14247         * window.c (debug_print_window):
14248         * window.c (syms_of_window):
14249         Added functions window-text-area-height and window-full-width,
14250         which are functions for returning various width and height
14251         characteristics of a window. (One of these functions is necessary
14252         for making the file dialog box work correctly, and the other one
14253         was added for completeness.)  Also added a table to the
14254         documentation for window-height which describes the entire scheme
14255         for accessing width and height characteristics of a window.
14256
14257 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14258
14259         * nt.c (fstat): Added a comment for another problem with
14260         non-encapsulated [f]stat(), reported by Adrian Aichner
14261         <aichner@ecf.teradyne.com>.
14262
14263 2000-03-11  Andy Piper  <andy@xemacs.org>
14264
14265         * window.c (make_dummy_parent): initialize subwindow instance
14266         cache.
14267         (Fset_window_configuration): zero extent_modiff.
14268
14269 2000-03-10  Andy Piper  <andy@xemacs.org>
14270
14271         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14272         more changes can be triggered.
14273         (Fredisplay_frame): ditto.
14274         (Fredraw_device): ditto.
14275         (Fredisplay_device): ditto.
14276         (redisplay_frame): make non-static.
14277         (redisplay_frame): call update_frame_gutter_geometry outside of
14278         display proper.
14279
14280         * gutter.h: declare update_frame_gutter_geometry.
14281
14282         * redisplay.h: declare redisplay_frame.
14283
14284         * gutter.c (update_frame_gutter_geometry): move geometry changes
14285         in update_frame_gutters here. Geometry changes can only occur
14286         outside of redisplay.
14287         (update_frame_gutters): remove geometry change code.
14288         (Fredisplay_gutter_area): make sure that we are in display when we
14289         update and that we have flushed any size changes.
14290
14291 2000-03-11  Andy Piper  <andy@xemacs.org>
14292
14293         * alloc.c (pdump_dump_data): remove i & count shadows.
14294
14295 2000-02-27  Mike Alexander  <mta@arbortext.com>
14296
14297         * sysdep.h: Declare pdump_read_file
14298
14299         * sysdep.c (pdump_read_file): New function
14300
14301         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14302         dump data
14303
14304 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14305
14306         * lrecord.h: add `lrecord_type_pgsetenv'.
14307
14308 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14309
14310         * symsinit.h: declare (vars|syms)_of* functions.
14311         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14312
14313 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14314
14315         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14316
14317         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14318         GCCs.
14319
14320         * emacs.c (main_1): Call postgres initialization code.
14321
14322         * postgresql.h: New file.  PostgreSQL RDBMS support.
14323         * postgresql.c: New file.
14324
14325 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14326
14327         * redisplay-output.c (redisplay_output_display_block): Disable
14328         redundant code.
14329
14330 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14331
14332         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14333         (Fcanna_henkan_next): Ditto.
14334         (Fcanna_bunsetu_henkou): Ditto.
14335         (Fcanna_henkan_kakutei): Ditto.
14336         (Fcanna_henkan_end): Ditto.
14337         (Fcanna_henkan_quit): Ditto.
14338         (Fcanna_henkan_next): Set retun value correctly.
14339         (c2mu): Use unsigned char instead of signed char.
14340
14341 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14342
14343         * emacs.c (main_1): Always call syms_of_gui.
14344         * inline.c: include gui.h
14345
14346 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14347
14348         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14349         converted to Lisp_Object.
14350         (Qtop_bottom): New variable.
14351         (syms_of_redisplay): Initialize it.
14352         * redisplay.h (Vvisible_bell): Ditto.
14353         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14354         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14355         only flash top and bottom.
14356
14357 2000-03-08  Andy Piper  <andy@xemacs.org>
14358
14359         * buffer.c (Frename_buffer): record new buffer name the right way.
14360
14361 2000-03-08  Andy Piper  <andy@xemacs.org>
14362
14363         * glyphs.c (update_subwindow): increase hash depth so that widget
14364         items get picked up properly.
14365
14366         * redisplay-output.c (compare_runes): increase hash depth so that
14367         widget items get picked up properly.
14368
14369 2000-03-08  Andy Piper  <andy@xemacs.org>
14370
14371         * gutter.c (output_gutter): add some debug.
14372
14373         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14374         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14375         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14376
14377         * redisplay-output.c (compare_runes): use display_hash to
14378         determine if glyphs really are not the same.
14379
14380         * glyphs.c (update_subwindow): check display_hash to see if
14381         anything really needs to be updated. If not then do
14382         nothing. Record the display_hash after updating.
14383         (image_instance_equal): compare the image_instance face also.
14384
14385 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14386
14387         * redisplay.h: Fix comment style.
14388
14389 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14390
14391         * consle-msw.h (struct mswindows_frame):
14392         Added new member paint_pending to indicate whether a WM_PAINT
14393         magic event has been queued for this frame.
14394
14395         * event-msw.c (mswindows_drain_windows_queue):
14396         Don't queue a WM_PAINT magic event if one is already queued.
14397         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14398
14399         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14400
14401 2000-03-07  Didier Verna  <didier@xemacs.org>
14402
14403         * dired.c: #include `regex.h' after `sysfile.h'.
14404
14405 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14406
14407         * sound.c (init_nas_sound): Fix compiler warning.
14408
14409         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14410         (FREE_STRUCT_P):
14411         (MARK_STRUCT_AS_FREE):
14412         (MARK_STRUCT_AS_NOT_FREE):
14413         Make `gcc -fstrict-aliasing' work properly.
14414
14415 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14416
14417         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14418         (mswindows_delete_device): Call CoUnnitialize().
14419
14420         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14421
14422 2000-02-25    <CraigL@DyCon.com>
14423
14424         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14425         <errno.h>.
14426
14427         * sysdep.c: This extern declaration for environ prevents MinGW
14428         from finding the variable in CRTDLL.DLL.
14429
14430         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14431         windows headers.
14432         (SHGFI_EXETYPE): ..
14433         (WM_MOUSEWHEEL): ..
14434         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14435         definitions.
14436         (MMRESULT): Removed, now defined in cygwin's windows headers.
14437         (TIMECAPS): ..
14438         (uid_t,gid_t,pid_t,ssize_t): ..
14439         (_timeb): Removed, MinGW defines both _timeb and timeb.
14440         (HAVE_H_ERRNO): Added.
14441         (HAVE_TZNAME): Added, configure is not detecting this.
14442
14443 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14444
14445         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14446         * syntax.c (syntax_match): Use it.
14447
14448         * cmds.c: Import auto-fill-chars from FSF Emacs.
14449         (Vauto_fill_chars): New variables.
14450         (internal_self_insert): Check Vauto_fill_chars.
14451         (vars_of_cmds):
14452         Declare auto-fill-chars as a Lisp variable and initialize it.
14453
14454 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14455
14456         * fileio.c (Fmake_symbolic_link):
14457         (Ffile_symlink_p):
14458         Run handlers even if local machine doesn't have symlinks.
14459
14460 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14461
14462         * event-msw.c (mswindows_drain_windows_queue):
14463         Don't generate paint magic events for non-XEmacs frames.
14464
14465 2000-03-05  Andy Piper  <andy@xemacs.org>
14466
14467         * redisplay.c (redisplay_frame): generate_displayable_area and
14468         friends assumes that we are not in GC, we therefore have to make
14469         sure that this doesn't happen.
14470
14471         * gutter.c (calculate_gutter_size): generate_displayable_area
14472         assumes that we are not in GC, we therefore have to make sure that
14473         this doesn't happen.
14474
14475 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14476
14477         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14478
14479 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14480
14481         * redisplay.c (regenerate_window): Make sure we set a sane value
14482         for end_pos even if we jump out of the loop.
14483         (regenerate_window): Answer Ben's question :-).
14484         (start_end_of_last_line): Add may_error argument.
14485         (start_of_last_line):
14486         (end_of_last_line): Pass may_error = 0.
14487         (end_of_last_line_may_error): New function.
14488         (pixel_to_glyph_translation): Use it, so we don't crash in
14489         event_to_glyph.
14490
14491 2000-03-04  Andy Piper  <andy@xemacs.org>
14492
14493         * window.h (struct window): add gutter_extent_modiff.
14494
14495         * window.c (allocate_window): zero out gutter_extent_modiff.
14496
14497         * redisplay.h: declare sync_display_line_structs.
14498
14499         * redisplay.c (add_glyph_rune): add a better comment.
14500
14501         * redisplay-output.c (sync_display_line_structs): made non-static.
14502         (compare_runes): remove unneccesary glyph cachel access.
14503
14504         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14505
14506         * gutter.c (output_gutter): don't output the gutter if extent
14507         changes only involve extents in buffers. use 4 sets of display
14508         lines.
14509         (gutter_extent_signal_changed_region_maybe): new function. Mark
14510         extents in gutters as changed.
14511         (update_frame_gutters): use 4 sets of display lines.
14512         (reset_gutter_display_lines): ditto.
14513         (free_frame_gutters): ditto.
14514         (redraw_exposed_gutter): force output of gutters.
14515
14516         * frame.h (struct frame): add 4 sets of gutter display lines.
14517
14518         * extents.c: (extent_changed_for_redisplay): signal changes to
14519         extents in strings in the gutter as well as extents in buffers.
14520
14521 2000-03-02  Andy Piper  <andy@xemacs.org>
14522
14523         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14524
14525         * frame.c (Fmake_frame): make sure the gutters get initialized
14526         after the frame is visible.
14527         (set_frame_selected_window): re-arrange compilation macros a
14528         little.
14529         (change_frame_size_1): mark gutters changed.
14530
14531         * device.c (Fset_device_class): mark gutters changed.
14532
14533 2000-03-01  Andy Piper  <andy@xemacs.org>
14534
14535         * window.c (window_top_frame_gutter_height): deleted.
14536         (window_bottom_frame_gutter_height): ditto.
14537         (window_left_frame_gutter_height): ditto.
14538         (window_right_frame_gutter_height): ditto.
14539         (window_top_gutter_height): don't use them.
14540         (window_bottom_gutter_height): ditto.
14541         (window_left_gutter_width): ditto.
14542         (window_right_gutter_width): ditto.
14543         (Fsplit_window): ditto.
14544         (Fwindow_pixel_edges): don't use border dimensions here.
14545
14546         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14547         (update_scrollbar_instance): ditto.
14548
14549         * redisplay.c (generate_modeline): don't take gutters into account.
14550         (generate_modeline): ditto.
14551         (redisplay_frame): small gutter display optimization.
14552
14553         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14554
14555         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14556         gutters into account.
14557
14558         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14559         for window position and type.
14560
14561         * gutter.c (get_gutter_coords): fix for frame gutters.
14562         (update_frame_gutters): update frame geometry if the gutters have
14563         changed.
14564         (init_frame_gutters): record current gutter geometries.
14565
14566         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14567         var.
14568         (mswindows_widget_instantiate): ditto.
14569
14570         * frame.h (struct frame): add current_gutter_bounds.
14571
14572         * frame.c (change_frame_size_1): position window and minibuffer
14573         appropriately taking into account the frame gutters.
14574
14575         * frame-x.c: (x_initialize_frame_size): take into account the
14576         frame gutters.
14577
14578 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14579
14580         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14581
14582 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14583
14584         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14585
14586 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14587
14588         * file-coding.c (reset_decoding_stream): Clear previous
14589         detection state when autodetect.
14590
14591 2000-02-29  Didier Verna  <didier@xemacs.org>
14592
14593         * extents.c (set_extent_glyph_1): don't require extents to be
14594         attached.
14595
14596 2000-02-27  Andy Piper  <andy@xemacs.org>
14597
14598         * gutter.c (Fset_default_gutter_position): don't default left and
14599         right gutter visibility to t.
14600         (Fset_default_gutter_position): run
14601         default-gutter-position-changed-hook.
14602         (syms_of_gutter): add default-gutter-position-changed-hook.
14603
14604 2000-02-26  Andy Piper  <andy@xemacs.org>
14605
14606         * specifier.c (Fmake_specifier): add gutter references.
14607
14608         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14609
14610         * lisp.h: declare Fvalid_plist_p.
14611
14612         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14613         as changed.
14614         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14615         well as its visibility so that it gets reconstructed.
14616         (construct_window_gutter_spec): new function. Construct a string
14617         to be displayed in the gutter from a plist of strings. Take care
14618         to only use elements that are declared as visible.
14619         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14620         WINDOW_GUTTER.
14621         (gutter_validate): allow plists of strings in the specifier.
14622         (gutter_specs_changed): construct the real_gutter from the gutter
14623         specs using construct_window_gutter_spec.
14624         (gutter_visible_validate): gutter-visible is a new specifier type.
14625         (Fgutter_visible_specifier_p): new function for the new specifier.
14626         (syms_of_gutter): declare gutter-visible and
14627         Fgutter_visible_specifier_p.
14628         (specifier_type_create_gutter): intitalize new gutter-visible
14629         specifier.
14630         (reinit_specifier_type_create_gutter): ditto.
14631         (specifier_vars_of_gutter): use new specifier type for gutter
14632         visibility.
14633         (init_frame_gutters): construct real_gutter correctly.
14634         (Fgutter_specifier_p): beef up documentation.
14635         (Fgutter_size_specifier_p): ditto.
14636
14637         * winslots.h: add real_gutter slots.
14638
14639 2000-02-25  Andy Piper  <andy@xemacs.org>
14640
14641         * device-msw.c: Be kind to older cygwin versions. From Raymond
14642         Toy <toy@rtp.ericsson.se>.
14643
14644         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14645         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14646
14647 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14648
14649         * elhash.c (MARK_OBJ): Practice macro hygiene.
14650
14651 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14652
14653         * miscplay.c: s/__inline__/inline/g;
14654         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14655         (get_device_compdc): INLINE ==> static inline
14656         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14657         find -name '*.h' | \
14658         xargs global-replace \
14659         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14660
14661 2000-02-25  Andy Piper  <andy@xemacs.org>
14662
14663         * window.c (window_top_frame_gutter_height): new function.
14664         (window_top_window_gutter_height): ditto.
14665         (window_top_gutter_height): use them.
14666         (window_bottom_frame_gutter_height): new function.
14667         (window_bottom_window_gutter_height): ditto.
14668         (window_bottom_gutter_height): use them.
14669         (window_left_window_gutter_width): new function.
14670         (window_left_frame_gutter_width): ditto.
14671         (window_left_gutter_width): use them.
14672         (window_right_window_gutter_width): new function.
14673         (window_right_frame_gutter_width): ditto.
14674         (window_right_gutter_width): use them.
14675         (window_pixel_height): new function. calulate window pixel height
14676         with frame gutter involvement.
14677         (Fsplit_window): calculate new sizes taking frame gutters into
14678         account.
14679         (window_char_height_to_pixel_height): don't include frame gutters.
14680         (window_char_height): use window_pixel_height.
14681         (window_pixheight): rename from window_pixel_height.
14682         (change_window_height): use it.
14683         (window_pixel_height_to_char_height): don't include frame gutters.
14684         (window_char_width_to_pixel_width): ditto.
14685
14686 2000-02-25  Andy Piper  <andy@xemacs.org>
14687
14688         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14689         if it is.
14690
14691 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14692
14693         * alloc.c (staticpro):
14694         (staticpro_nodump):
14695         (dumpstruct):
14696         (dumpopaque):
14697         (pdump_wire):
14698         (pdump_wire_list):
14699         (compact_string_chars):
14700         (pdump_dump_wired):
14701         Convert:  if (foo) abort();  ==>  assert (! foo);
14702
14703         * eldap.c (Fldap_search_basic):
14704         (Fldap_add):
14705         (Fldap_modify):
14706         (Fldap_delete):
14707         Fix compiler warnings, and possible crashes if (random) return
14708         value were to be used.
14709
14710 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14711
14712         * device-msw.c: Workaround ResetDC failure.
14713
14714         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14715         applying a devmode.
14716
14717         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14718         (mswindows_text_width): Do not start printer page.
14719
14720         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14721
14722         * glyphs-msw.c: Added image methods to msprinter console and
14723         msprinter-specific image instantiation.
14724
14725 2000-02-20  Mike Alexander  <mta@arbortext.com>
14726
14727         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14728         to avoid crashes when selection-sets-clipboard is on
14729         (mswindows_own_selection): ditto
14730
14731 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14732
14733         * glyphs-msw.c:
14734         * redisplay-msw.c (get_frame_dc):
14735         (get_frame_compdc):
14736         * console-msw.h:
14737         * device-msw.c (mswindows_init_device):
14738         (mswindows_delete_device):
14739         (msprinter_init_device):
14740         (msprinter_delete_device):
14741         * frame-msw.c (mswindows_init_frame_1):
14742         (mswindows_delete_frame):
14743         (msprinter_init_frame_3):
14744         (msprinter_delete_frame): Move compatible DC to device object from
14745         frame object, for both mswindows and msprinter. Only one at a time
14746         is needed, it is a real waste to have one per frame!
14747
14748 2000-02-23  Andy Piper  <andy@xemacs.org>
14749
14750         * glyphs.c: add dynamic width and height elements.
14751         (image_instance_equal): ditto.
14752
14753         * glyphs-widget.c (widget_query_geometry): calculate width and
14754         height dynamically if required.
14755         (initialize_widget_image_instance): initialize dynamic dimensions.
14756         (widget_instantiate): pick-up dynamic dimensions.
14757
14758         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14759         dynamic determination. Add appropriate macros.
14760
14761         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14762         dimensions safe.
14763         (WINDOW_GUTTER_SIZE): ditto.
14764         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14765
14766         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14767         inline.
14768         (get_frame_dc): ditto.
14769
14770         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14771         here.
14772
14773 2000-02-23  Martin Buchholz <martin@xemacs.org>
14774
14775         * XEmacs 21.2.31 is released.
14776
14777 2000-02-22  Ben Wing <ben@xemacs.org>
14778
14779         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14780
14781 2000-02-22  Andy Piper  <andy@xemacs.org>
14782
14783         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14784
14785 2000-02-21  Mike Sperber <mike@xemacs.org>
14786
14787         * .dbxrc:
14788         * .gdbinit:
14789         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14790         variables.
14791
14792 2000-02-21  Mike Sperber <mike@xemacs.org>
14793
14794         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14795
14796 2000-02-21  Martin Buchholz <martin@xemacs.org>
14797
14798         * XEmacs 21.2.30 is released.
14799
14800 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14801
14802         Performance hacking.
14803         * *.c (syms_of_*):
14804         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14805         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14806         * emacs.c (main_1):
14807         * lisp.h (DEFUN):
14808         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14809         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14810         * symeval.h (DEFVAR_SYMVAL_FWD):
14811         * symbols.c (guts_of_unbound_marker):
14812         Make all c_readonly objects also lisp_readonly and marked for life.
14813         * lrecord.h (struct lrecord_implementation):
14814         Document flags better.
14815         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14816         * lrecord.h (DECLARE_LRECORD):
14817         * lrecord.h (XSETRECORD):
14818         * lrecord.h (RECORDP):
14819         * lrecord.h (RECORD_TYPEP):
14820         * lrecord.h (RECORD_MARKER): New.
14821         * lrecord.h (error_check_*):
14822         * lrecord.h (CONCHECK_NONRECORD):
14823         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14824         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14825         * lrecord.h (set_lheader_implementation):
14826         * lrecord.h (enum lrecord_type): New.
14827         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14828         * alloc.c (disksave_object_finalization_1):
14829         * alloc.c (mark_object):
14830         * alloc.c (lrecord_type_index):
14831         * alloc.c (tick_lcrecord_stats):
14832         * alloc.c (Fgarbage_collect):
14833         * alloc.c (init_alloc_once_early):
14834         * alloc.c (pdump_load):
14835         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14836         * alloc.c (lrecord_type_index): Delete.
14837         Make lisp object type indexes be constant.
14838           Makes (byte-compile) 5% faster.
14839         Put all marker functions into their own array.
14840           Makes (garbage-collect) 5% faster.
14841         Optimize SYMBOL_VALUE_MAGIC_P.
14842           Makes (byte-compile) 2-3% faster.
14843         * config.h.in (gc_checking_assert): New.
14844         * alloc.c: Use gc_checking_assert().
14845         * .dbxrc: Make compatible with new object type implementation.
14846         * .gdbinit: Make compatible with new object type implementation.
14847         * alloc.c: Delete all symbols defined only for debugging, such as
14848         Lisp_Type_Vector and lrecord_charset.
14849
14850 2000-02-21  Andy Piper  <andy@xemacs.org>
14851
14852         * gui-msw.c (Fmswindows_shell_execute): fix file location
14853         problems.
14854
14855         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14856         unshowing so that set_window_buffer doesn't undo
14857         kill_buffer_hook's hard work.
14858
14859         * glyphs-widget.c (tab_control_query_geometry): don't count the
14860         first item when calculating geometry.
14861
14862         * glyphs.c (map_subwindow): remove redundant code.
14863         (update_frame_subwindows): be more circumspect about when to
14864         update subwindows.
14865
14866         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14867         when items haven't changed. Update faces if faces have changed as
14868         well as just the widget face.
14869         (x_tab_control_update): Update faces if faces have changed as well
14870         as just the widget face.
14871
14872 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14873
14874         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14875         registration.
14876         (build_syscolor_string): Use mswindows_color_to_string to try to
14877         get a named color.
14878         (mswindows_device_system_metrics): Reverse the foreground and
14879         background colors so that they match the documentation.
14880
14881         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14882         they match the default Windows palette.
14883         (mswindows_color_to_string): New function.
14884
14885 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14886
14887         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14888
14889 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14890
14891         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14892         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14893
14894         * symbols.c (init_symbols_once_early): Removed obsolete
14895         DATA_SEG_BITS related kludge.
14896         (defvar_magic): Ditto.
14897
14898         * malloc.c: Removed obsolete DATA_SEG_BITS
14899         * ralloc.c: Ditto.
14900         * mem-limits.h: Ditto.
14901
14902         * Makefile.in.in: Removed obsolete HAVE_SHM
14903         * emacs.c: Ditto.
14904
14905 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14906
14907         *  device-msw.c (mswindows_delete_device): Free DDE string
14908         handles.
14909
14910 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14911
14912         * keymap.c (get_keyelt):
14913         * unexnt.c (unexec):
14914         * vm-limit.c (memory_warnings):
14915         * ntheap.c (recreate_heap):
14916         * ntheap.h (UNINIT_PTR):
14917         * select-msw.c (Fmswindows_get_clipboard):
14918         (Fmswindows_set_clipboard):
14919         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14920         * objects-msw.c:
14921         * menubar-msw.c (displayable_menu_item):
14922         * glyphs-msw.c:
14923         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14924         * sysdep.c (sys_subshell):
14925         * process-nt.c (nt_create_process):
14926         * nt.c (normalize_filename):
14927         (dostounix_filename):
14928         (unixtodos_filename):
14929         * ntproc.c (win32_executable_type):
14930         * ntplay.c (play_sound_data_1):
14931         (play_sound_file):
14932         * editfns.c (get_home_directory):
14933         * event-msw.c (struct winsock_stream):
14934         (mswindows_dde_callback):
14935         * device-msw.c (msprinter_init_device):
14936         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14937
14938         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14939         mswindows_clear_toolbar were swapped!
14940
14941         * objects-msw.c:(colormap_t):
14942         (fontmap_t):
14943         * emacs.c (struct standard_args): Fixed const jumble.
14944
14945         * glyphs-widget.c (update_widget): Fixed comparison notation.
14946
14947         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14948
14949         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14950         __declspec(noreturn) syntax.
14951
14952 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14953
14954         * eldap.c (Fldap_open):
14955         (Fldap_search_basic):
14956         (Fldap_add):
14957         (Fldap_modify):
14958         Use new coding system conversion macros.
14959
14960 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14961
14962         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14963
14964 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14965
14966         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14967         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14968
14969         * eldap.c (Qadd, Qreplace): New constant symbols
14970         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14971         interruptions by XEmacs signals
14972         Remove unnecessary calls to slow_down_interrupts and
14973         speed_up_interrupts
14974         (Fldap_search_basic): Renamed from Fldap_search_internal
14975         Added new optional parameter VERBOSE that triggers the
14976         display of progress messages
14977         Remove unnecessary calls to slow_down_interrupts and
14978         speed_up_interrupts
14979         LDAP result code analysis rewritten
14980         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14981         (syms_of_eldap): Define the new symbols and functions
14982
14983
14984 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14985
14986         * realpath.c: Determine PATH_MAX maximally portably.
14987
14988         * insdel.c (bytecount_to_charcount): Optimize.
14989         The function used to be optimized for entirely ASCII sequences.
14990         Now it is optimized for successive characters from the same
14991         charset.  This also wins big for _mostly_ ASCII sequences.
14992
14993         * fileio.c (Ffile_truename): convert return from realpath() using
14994         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14995         - Rewrite GCPROing slightly.
14996
14997         * sysdep.c (sys_open): Do filename conversion, like all other
14998         sys_* functions.  Fixes bug:
14999         (let ((file-name-coding-system 'iso-8859-2))
15000            (write-region x y latin2-name))
15001         ==> writes filename using internal encoding.
15002
15003 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15004
15005         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15006         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15007         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15008         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15009         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15010         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15011         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15012         (CONST_IF_NOT_DEBUG): Delete.
15013         * alloc.c (this_one_is_unmarkable): Delete.
15014         (mark_object): Don't check for this_one_is_unmarkable. Use the
15015         c_readonly flag instead.
15016         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15017
15018 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15019
15020         * event-msw.c (mswindows_drain_windows_queue):
15021         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15022         away redundant repaint events.
15023
15024 2000-02-17  Andy Piper  <andy@xemacs.org>
15025
15026         * redisplay.h: declare mark_redisplay_structs.
15027
15028         * redisplay.c (redisplay_window):
15029         (redisplay_frame): don't check subwindows_state_changed.
15030         (mark_redisplay): mark gutters here.
15031
15032         * glyphs.c: (instantiate_image_instantiator): always layout if we
15033         haven't done so already.
15034         (allocate_image_instance): don't mark as dirty.
15035         (update_subwindow): bind inhibit_quit.
15036
15037         * gutter.c (mark_gutters): new function.
15038
15039         * glyphs-x.c (x_update_widget): Always resize to get round a
15040         widget bug.
15041
15042         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15043         breaking absolutely everything.
15044
15045         * gutter.h: declare mark_gutters.
15046
15047 2000-02-16  Martin Buchholz <martin@xemacs.org>
15048
15049         * XEmacs 21.2.29 is released.
15050
15051 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15052
15053         * fns.c (size_bit_vector): Fix computation of the size.
15054
15055 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15056
15057         * *.[ch]: Change CONST to const globally.
15058         find -name '*.[ch]' | \
15059         xargs global-replace \
15060         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15061         - Remove vestigial references to CONST_IS_LOSING
15062
15063 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15064
15065         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15066         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15067         events instead of dispatching them directly.
15068         (mswindows_handle_paint): New function to do repainting.
15069         (mswindows_wnd_proc):
15070         (emacs_mswindows_handle_magic_event): Call above function.
15071
15072 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15073
15074         * objects-msw.c (mswindows_create_font_variant): Return the new
15075         font handle.
15076         (initialize_font_instance): Get font metrics from the underlined
15077         variant of the font to cope with the case where the underlined
15078         font has a bigger descent.
15079
15080 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15081
15082         * gui.c (gui_item_accelerator): Return the first underlined
15083         character in item name.
15084
15085 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15086
15087         * lisp.h: Added Qprinter.
15088
15089         * general.c (syms_of_general): Initialized it.
15090
15091         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15092         (get_frame_dc):
15093         (get_frame_compdc): Made inline.
15094
15095         * console.h (struct console_methods): Added eject_page method.
15096
15097         * frame.h: Added FRAME_DISPLAY_P and friends.
15098         Aligned backslahes in many macros in more readable fashion.
15099         Added page_number to struct frame, and an accessor macro
15100         for it.
15101
15102         * defice.h: Added DEVICE_DISPLAY_P and friends.
15103
15104         * device.c (Fdevice_printer_p): Used these.
15105
15106         * frame.c (allocate_frame_core): Initialize page number.
15107         (Fprint_job_page_number):
15108         (Fprint_job_eject_page): Implemented.
15109
15110         * frame-msw.c (msprinter_eject_page): Added method.
15111         (msprinter_start_page): Added.
15112
15113         * window.c (Fwindow_truncated_p): Fixed docstring.
15114         (Fwindow_last_line_visible_height): Implemented.
15115
15116 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15117
15118         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15119
15120 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15121
15122         * syntax.c (scan_words): Always advance at least one character.
15123
15124 2000-02-13  Andy Piper  <andy@xemacs.org>
15125
15126         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15127         to make sure the glyph is in the cachels.
15128
15129         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15130         global image instance flag.
15131         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15132         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15133
15134         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15135         (Fset_image_instance_property): mark layout as changed.
15136         (invalidate_glyph_geometry_maybe): mark layout as changed.
15137         (glyph_width): use new NEEDS_LAYOUT macro.
15138         (glyph_ascent): ditto.
15139         (glyph_descent): ditto.
15140         (glyph_height): ditto.
15141         (image_instance_layout): mark layout as clean after laying out.
15142         (update_subwindow): don't mark layout as clean here.
15143
15144         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15145         should no longer be needed.
15146
15147         * glyphs-x.c (x_update_widget): sanitize asserts.
15148         (x_finalize_image_instance): sanitize assignment to widgets.
15149
15150         * glyphs-widget.c (widget_instantiate): don't need to clear the
15151         layout flag here.
15152
15153 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15154
15155         * sysdep.c (getcwd): Use standard prototype.
15156         * sysdep.h (getcwd): Use standard prototype.
15157
15158         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15159         (sequence, start, end).
15160         Remove redundant type checking.
15161         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15162         view of `caller-protects') to avoid a crash where the real fix was
15163         found elsewhere.
15164
15165 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15166
15167         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15168
15169         * s/sol2.h: Remove feature macro initialization.
15170
15171         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15172         (vector_hash): New.  Code from internal_hash.
15173         * lrecord.h:
15174         Fix up allocation subsystem comments.
15175
15176         * config.h.in: Add __EXTENSIONS__ for Solaris.
15177
15178         * systime.h (EMACS_GETTIMEOFDAY): New.
15179         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15180         Remove Solaris-specific code.
15181         Use void* for the (ignored) second arg for gettimeofday().
15182
15183         * elhash.c (hash_table_hash): Implement it, finally.
15184         * elhash.c:  Use hashcode_t.
15185
15186         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15187         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15188
15189         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15190         * fns.c (size_bit_vector):
15191         * alloc.c (size_vector):
15192         (make_vector_internal):
15193         (make_bit_vector_internal):
15194         (sweep_bit_vectors_1):
15195         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15196
15197 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15198
15199         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15200         Include strings.h to avoid warnings for bzero and strcasecmp.
15201
15202 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15203
15204         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15205         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15206
15207         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15208         sequence.
15209
15210 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15211
15212         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15213         use a value field instead.
15214         (symbol_value_forward_forward): Use value field.
15215         (DEFVAR_SYMVAL_FWD): Use value field.
15216         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15217         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15218         (DEFVAR_CONST_INT): Ditto.
15219         (DEFVAR_BOOL): Ditto.
15220         (DEFVAR_CONST_BOOL): Ditto.
15221         (DEFVAR_INT_MAGIC): Ditto.
15222         (DEFVAR_BOOL_MAGIC): Ditto.
15223
15224         * symbols.c (guts_of_unbound_marker): Use value field.
15225         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15226         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15227
15228         * lisp.h: Declare dumpopaque and noninteractive1.
15229
15230         * alloc.c (dumpopaque): Added.
15231         (pdump_dump_opaquevec): Added.
15232         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15233         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15234         noninteractive.
15235
15236 2000-02-10  Andy Piper  <andy@xemacs.org>
15237
15238         * glyphs.c (image_instance_layout): if the size changes, mark it
15239         as such.
15240
15241         * redisplay-output.c (redisplay_output_layout): Update the
15242         subwindow here.
15243         (redisplay_output_subwindow): ditto.
15244
15245         * glyphs.c (update_subwindow): make sure we reset flags for
15246         layouts as well as everything else.
15247
15248         * glyphs-widget.c (layout_layout): don't need to set the instances
15249         dimensions here.
15250
15251 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15252
15253         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15254         not HAVE_DLOPEN, which is a lower-level thing.
15255
15256         * .cvsignore: Ignore gmon.out
15257
15258 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15259
15260         * .cvsignore: Ignore portable dumper xemacs.dmp file
15261
15262 2000-02-09  Andy Piper  <andy@xemacs.org>
15263
15264         * redisplay-output.c (redisplay_output_layout): be more clever
15265         about when we output based on the changed flags.
15266
15267         * glyphs.h (struct image_instantiator_methods): add update_method.
15268         (struct Lisp_Image_Instance): add changed flags. Declare new
15269         macros for manipulating them.
15270
15271         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15272         (image_instance_parent_glyph): find an image_instance's parent
15273         glyph or image_instance.
15274         (image_instance_layout): mark the size as changed.
15275         (set_image_instance_dirty_p): new function. mark an image
15276         instance, plus all of its parents, as dirty.
15277         (Fset_image_instance_property): use it.
15278         (Fglyph_animated_timeout_handler): use it.
15279         (update_subwindow): call update_widget and device methods for
15280         update_subwindow. Mark all changed flags as clean.
15281         (Fresize_subwindow): mark size as changed.
15282
15283         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15284         failures.
15285         (x_update_subwindow): only resize subwindows here.
15286         (x_update_widget): new function. Update all changed properties of
15287         a widget.
15288         (x_resize_subwindow): deleted.
15289         (x_widget_set_property): deleted.
15290         (x_progress_gauge_set_property): deleted.
15291         (x_progress_gauge_update): new function. Implement recorded
15292         changes.
15293         (x_tab_control_update): ditto.
15294         (x_tab_control_set_property): deleted.
15295         (console_type_create_glyphs_x): declare new functions.
15296         (image_instantiator_format_create_glyphs_x): ditto.
15297
15298         * glyphs-widget.c (widget_set_property): mark text changed.
15299         (update_widget): new function. Update properties of a widget.
15300         (widget_instantiate): for layouts make sure we set their
15301         children's parent correctly.
15302         (tab_control_set_property): new function. Record changes that will
15303         take place under redisplay's control.
15304         (progress_gauge_set_property): ditto.
15305         (image_instantiator_progress_guage): declare new functions.
15306         (image_instantiator_tab_control): ditto.
15307
15308         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15309         now.
15310         (mswindows_update_widget): new function. Update all properties on
15311         a widget that have changed.
15312         (mswindows_button_update): new function. Update a button's set
15313         state.
15314         (mswindows_tab_control_update): new function. Update the items in
15315         a tab.
15316         (mswindows_tab_control_set_property): deleted.
15317         (mswindows_progress_gauge_update): new function. Update the
15318         progress gauge's progress.
15319         (mswindows_widget_set_property): deleted. This is all done
15320         asynchronously now.
15321         (mswindows_progress_gauge_set_property): ditto.
15322         (console_type_create_glyphs_mswindows): declare new methods.
15323         (image_instantiator_format_create_glyphs_mswindows): ditto.
15324
15325         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15326         (msprinter_set_frame_properties): ditto.
15327
15328         * console.h (struct console_methods): Add update_widget_method.
15329
15330 2000-02-09  Andy Piper  <andy@xemacs.org>
15331
15332         * gui-msw.c (Fmswindows_shell_execute): Make
15333         mswindows-shell-execute industrial strength.
15334
15335 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15336
15337         * lrecord.h: Make macro argument `props' match member function `plist'.
15338         * fns.c (Fget):
15339         * fns.c (Fput):
15340         * fns.c (Fremprop):
15341         * fns.c (Fobject_plist):
15342         * alloc.c:
15343         * symbols.c:
15344         Object property list frobbing cleanup.
15345         - Allow any lisp object (compared with `eq'), not just symbols, as
15346           keys in object plists.
15347         - Move symbol plist frobbing into symbols.c, where it belongs.
15348         - Move string plist frobbing into alloc.c, where it belongs.
15349         - Everything's an lrecord now, so no need to test for symbolp, etc.
15350         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15351
15352         * extents.c: Reorder code to remove declarations.
15353
15354         * frame.h (store_in_alist): Remove useless declaration.
15355
15356 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15357
15358         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15359         * config.h.in: Add HAVE_XCONVERTCASE.
15360
15361 2000-02-07  Andy Piper  <andy@xemacs.org>
15362
15363         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15364         it breaks many things.
15365
15366 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15367
15368         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15369         actually can start a common comment type.
15370         * src/syntax.h (SYNTAX_END_P): ditto for end.
15371
15372 2000-02-07  Martin Buchholz <martin@xemacs.org>
15373
15374         * XEmacs 21.2.28 is released.
15375
15376 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15377
15378         * event-Xt.c (x_keysym_to_character): New.
15379         (maybe_define_x_key_as_self_inserting_character): New.
15380         (x_has_keysym): New.
15381         Auto-define all keys on the keyboard as self-insert-key.
15382
15383 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15384
15385         * menubar.c (vars_of_menubar): A small code simplification.
15386
15387         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15388
15389         * ExternalShell.c:
15390         * ExternalClient.c:
15391         * EmacsShell-sub.c:
15392         * EmacsManager.c:
15393         * EmacsFrame.c:
15394         Use consistent style for specifying X resources.
15395
15396         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15397         This makes (dontusethis-set-symbol-value-handler) actually usable.
15398
15399         * lrecord.h (lrecord_decription_type):
15400         * alloc.c (pdump_register_sub):
15401         (pdump_dump_data):
15402         (pdump_reloc_one):
15403         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15404         Comply with XEmacs coding style.
15405         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15406         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15407
15408         * keymap.c (Faccessible_keymaps):
15409         Make (accessible-keymaps map "\C-h") do the Right Thing.
15410         Make (accessible-keymaps map []) do the Right Thing.
15411         Make (accessible-keymaps map "") do the Right Thing.
15412         (check_keymap_definition_loop): New function.
15413         (keymap_store_internal): Keep luser from shooting self in foot,
15414           via (define-key ctl-x-4-map "p" global-map).
15415         Remove fullness slot from struct Lisp_Keymap, since hash tables
15416         are now reliable.
15417         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15418
15419 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15420
15421         * redisplay.c (init_redisplay): Fix small memory leak.
15422         * elhash.h:
15423         * elhash.c (pdump_reorganize_hash_table):
15424         Rename from reorganize_hash_table. Change prototype.
15425         Reuse the original memory for hentries.  Save 100k.
15426         * alloc.c (PDUMP_READ): new macro.
15427         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15428         * alloc.c: No need to #ifndef before #undef.
15429
15430         * print.c: Allow debug_print() to print readably by modifying
15431         debug_print_readably.  Use consistent variable names.
15432
15433         * .dbxrc: Try to get things to work even if stopped in a function
15434         without source available by explicitly specifying source files.
15435 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15436
15437         * unexnt.c (_start): Removed bogus code which caused loading heap
15438         from differrent executable file.
15439         Removed bogus assignment to _fmode, which caused inconsistencies.
15440
15441 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15442
15443         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15444         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15445         Do not preliminary `#define signal sigset'.
15446
15447         * systime.h: Do not prototype environ on windows nt and cygwin,
15448         this conflicts with system header.
15449
15450         * syssignal.h: Use correct define for WINDOWSNT
15451
15452         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15453         with system header.
15454
15455         * sysdep.c (near start of file): Fixed commentary and rearranged
15456         ifdefs in readable order.
15457         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15458         (start_of_text):
15459         (end_of_text):
15460         (end_of_data): Do not compile in if using PDUMP.
15461
15462         * symsinit.h: Prototyped vars_of_nt().
15463
15464         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15465         (find_child_console): Use it.
15466         (sys_kill): Use it.
15467
15468         * ntheap.h: Do not extern os_subtype.
15469
15470         * ntheap.c (cache_system_info): Do not cache unneeded:
15471         nt_major_version, nt_minor_version and os_subtype.
15472         (recreate_heap): Do not compile in when PDUMPing.
15473
15474         * nt.c (geteuid and friends): Use the new varibale
15475         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15476         (init_user_info): Removed the above mentioned hackery.
15477         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15478         stat has been fixed in the C runtime.
15479         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15480
15481         * file-coding.c (struct file_coding_dump): Do not define
15482         ucs_to_mule_table in the struct if not MULE.
15483         (struct struct lrecord_description fcd_description_1): Do not dump
15484         the above.
15485
15486         * emacs.c (main_1): Call vars_of_nt().
15487         (right before Fdump_emacs_data): Don't need lastfile if using both
15488         portabe dumper and system malloc.
15489
15490         * alloc.c (Fmemory_limit): Conditionalized out.
15491         (pdump): Use OPEN_BINARY for the portable dump file.
15492         (pdump_load): Ditto.
15493
15494 2000-02-02  Mike Alexander  <mta@arbortext.com>
15495
15496         * nt.c (convert_time): Set tm_isdst before calling mktime and
15497         avoid calling it at all if the compiler supports 64 bit integers.
15498         Also initialize utc_base_ft before using it.
15499
15500 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15501
15502         * frame.c (change_frame_size_1): Take f->internal_border_width
15503         into consideration when calculating the width of the frame.
15504
15505 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15506
15507         * window.c (frame_min_height):
15508         (frame_size_valid_p):
15509         (frame_pixsize_valid_p): Added.
15510         (check_frame_size): Generalized.
15511
15512         * window.h: Prototyped the above.
15513
15514         * lisp.h:
15515         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15516         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15517         Deleted Vwin32_* and Vbinary_process_* unused variables.
15518
15519         * device-msw.c (msprinter_init_device): Do not get printer font
15520         list; Added DEVMODE functions.
15521
15522         * frame-msw.c: Added lots of printer code.
15523
15524         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15525         general.c.
15526
15527         * console-msw.h: Added more msprinter device private slots.
15528
15529 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15530
15531         * event-msw.c (key_needs_default_processing_p): Added.
15532         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15533
15534 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15535
15536         * glyphs.c (image_instance_layout): Mark image instance as clean
15537         after layout.
15538         (glyph_dirty_p): Removed redundant function.
15539         (invalidate_glyph_geometry_maybe): Added.
15540         (update_glyph_cachel_data): Call it.
15541
15542         * glyphs.h: Prototyped it.
15543
15544         * redisplay.c (add_glyph_rune): Call it.
15545         (redisplay_window): Reset glyphs cachels when frame faces have
15546         changed, thus forcing recomputation of built-in border glyphs.
15547
15548 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15549
15550         * Makefile.in.in: Make portable dumper and purify play well together.
15551         Add imperfect, but better than nothing, support for pdump.
15552         Remove xemacs.dmp when temacs is re-generated.
15553         Don't ignore errors when dumping xemacs.
15554
15555         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15556
15557 2000-01-28  Andy Piper  <andy@xemacs.org>
15558
15559         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15560         (setup_normal_frame): ditto.
15561         (setup_frame_without_minibuffer): ditto.
15562         (setup_minibuffer_frame): ditto.
15563         (delete_frame_internal): ditto.
15564         (Fmake_frame_invisible): ditto.
15565         (Ficonify_frame): ditto.
15566
15567         * window.h: change Fset_window_buffer signature.
15568
15569         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15570         (Fset_window_buffer): allow recording of buffer if the window is
15571         the selected window.
15572         (window_loop): Use new Fset_window signature.
15573
15574 2000-01-23  Daniel Pittman  <daniel@danann.net>
15575
15576         * config.h.in: Added template for `HAVE_ATHENA_3D'
15577
15578 2000-01-29  Andy Piper  <andy@xemacs.org>
15579
15580         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15581
15582         * gutter.c (output_gutter): Don't output if the window isn't live.
15583
15584 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15585
15586         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15587         of 01/12/00: Moved SetFocus back here where it belongs.
15588
15589 2000-01-23  Andy Piper  <andy@xemacs.org>
15590
15591         * s/cygwin32.h: declare printer things.
15592
15593 2000-01-26  Andy Piper  <andy@xemacs.org>
15594
15595         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15596         Alexander.
15597
15598 2000-01-24  Andy Piper  <andy@xemacs.org>
15599
15600         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15601         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15602
15603         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15604
15605         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15606
15607         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15608
15609         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15610         (mswindows_output_display_block): Avoid local shadows.
15611
15612         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15613         (mswindows_enqueue_mouse_button_event): ditto.
15614         (mswindows_handle_gui_wm_command): remove declaration.
15615
15616         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15617         warnings.
15618
15619         * console-msw.h: Avoid shadows.
15620         (mswindows_get_toolbar_button_text):
15621         (emacs_mswindows_create_stream_pair):
15622         (emacs_mswindows_delete_stream_pair):
15623         (mswindows_handle_toolbar_wm_command): declare.
15624
15625         * device-msw.c (build_syscolor_string): Avoid shadows.
15626
15627 2000-01-23  Andy Piper  <andy@xemacs.org>
15628
15629         * glyphs-widget.c (widget_instantiate): reverse the items for
15630         layouts so that children are in the expected order.
15631
15632 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15633
15634         * ralloc.c: safe_bcopy ==> memmove
15635         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15636         * s/msdos.h: Remove BCOPY macros.
15637         * insdel.c (gap_right): Remove BCOPY conditional code.
15638         * insdel.c (gap_left): Remove BCOPY conditional code.
15639         XEmacs demands a working ANSI C compiler - hence memmove.
15640
15641         * regex.c (regex_compile): Remove accidental use of trigraphs.
15642
15643 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15644
15645         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15646         event timestamp.
15647
15648 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15649
15650         * event-msw.c (mswindows_drain_windows_queue): Added the
15651         parameter.
15652         (mswindows_need_event): Commented the call to
15653         mswindows_drain_windows_queue().
15654         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15655         only.
15656
15657         * console-msw.h: Moved a few function prototypes here from
15658         event-msw.c.
15659
15660         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15661         parameter from unsigned short to unsigned long.
15662         (Fmswindows_shell_execute): Added return value.
15663
15664 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15665
15666         * sysdep.c (init_system_name):
15667           process-unix.c (unix_canonicalized_host_name):
15668         Don't call freeaddrinfo() if getaddrinfo() fails.
15669
15670         * process-unix.c (unix_open_unix_network_stream):
15671         Moved the code to get a port # into address loop.
15672
15673 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15674
15675         * buffer.c (reinit_vars_of_buffer):
15676         The right place to initialize conversion_in_dynarr and
15677         conversion_out_dynarr.
15678
15679         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15680
15681         * process-unix.c (unix_canonicalize_host_name): Muleize.
15682         (unix_open_network_stream): Muleize.
15683
15684         * buffer.h: Fix up prototypes for ralloc.c functions.
15685
15686 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15687         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15688         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15689                 instead of gethostbyname()
15690         * process-unix.c: In unix_canonicalize_host_name() and
15691                 unix_open_network_stream(), add code to use getaddrinfo()
15692                 instead of gethostbyname().
15693
15694 2000-01-27  Daniel Pittman <daniel@danann.net>
15695
15696         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15697         libs when built with flat Athena.
15698
15699 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15700
15701         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15702         Use coding standards for function prototypes.
15703
15704 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15705
15706         * dialog-msw.c (push_lisp_string_as_unicode):
15707         * doc.c (unparesseuxify_doc_string):
15708         * dired.c (Fuser_name_completion_1):
15709         * dired.c (Fuser_name_all_completions):
15710         * dired.c (free_user_cache):
15711         * dired.c (user_name_completion):
15712         * console-x.c (get_display_arg_connection):
15713         * minibuf.c (clear_echo_area_internal):
15714         * minibuf.c (echo_area_append):
15715         * eldap.c (Fldap_open):
15716         * eldap.c (Fldap_search_internal):
15717         * frame-x.c (x_set_frame_text_value):
15718         * frame-x.c (x_set_frame_properties):
15719         * frame-x.c (x_create_widgets):
15720         * redisplay-tty.c (term_get_fkeys_1):
15721         * objects-x.c (x_parse_nearest_color):
15722         * objects-x.c (x_valid_color_name_p):
15723         * objects-x.c (x_initialize_font_instance):
15724         * objects-x.c (x_list_fonts):
15725         * objects-x.c (x_find_charset_font):
15726         * tooltalk.c (Fadd_tooltalk_message_arg):
15727         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15728         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15729         * process-unix.c (unix_create_process):
15730         * ntproc.c (sys_spawnve):
15731         * sound.c (Fplay_sound_file):
15732         * sound.c (Fplay_sound):
15733         * buffer.c (init_initial_directory):
15734         * buffer.c (init_buffer):
15735         * editfns.c (init_editfns):
15736         * editfns.c (Ftemp_directory):
15737         * editfns.c (Fuser_full_name):
15738         * editfns.c (uncache_home_directory):
15739         * editfns.c (get_home_directory):
15740         * editfns.c (Fuser_home_directory):
15741         * editfns.c (Fformat_time_string):
15742         * editfns.c (Fcurrent_time_string):
15743         * gui-x.c (button_item_to_widget_value):
15744         * database.c (Fopen_database):
15745         * event-Xt.c (x_to_emacs_keysym):
15746         * event-Xt.c (x_event_to_emacs_event):
15747         * event-Xt.c (describe_event_window):
15748         * event-msw.c (mswindows_wnd_proc):
15749         * glyphs-eimage.c (jpeg_instantiate):
15750         * glyphs-eimage.c (gif_instantiate):
15751         * glyphs-eimage.c (png_instantiate):
15752         * glyphs-eimage.c (tiff_instantiate):
15753         * glyphs-x.c (xbm_instantiate_1):
15754         * glyphs-x.c (x_xbm_instantiate):
15755         * glyphs-x.c (x_xface_instantiate):
15756         * glyphs-x.c (autodetect_instantiate):
15757         * glyphs-x.c (cursor_font_instantiate):
15758         * glyphs-x.c (x_widget_instantiate):
15759         * glyphs-x.c (x_widget_set_property):
15760         * glyphs-x.c (x_widget_property):
15761         * glyphs-x.c (BUILD_GLYPH_INST):
15762         * print.c (write_string_to_stdio_stream):
15763         * print.c (output_string):
15764         * print.c (Falternate_debugging_output):
15765         * print.c (Fexternal_debugging_output):
15766         * glyphs-msw.c (extract_xpm_color_names):
15767         * glyphs-msw.c (mswindows_xpm_instantiate):
15768         * glyphs-msw.c (bmp_instantiate):
15769         * glyphs-msw.c (resource_name_to_resource):
15770         * glyphs-msw.c (mswindows_resource_instantiate):
15771         * glyphs-msw.c (xbm_instantiate_1):
15772         * glyphs-msw.c (mswindows_xbm_instantiate):
15773         * glyphs-msw.c (mswindows_xface_instantiate):
15774         * glyphs-msw.c (mswindows_widget_instantiate):
15775         * glyphs-msw.c (add_tree_item):
15776         * glyphs-msw.c (add_tab_item):
15777         * glyphs-msw.c (mswindows_combo_box_instantiate):
15778         * glyphs-msw.c (mswindows_widget_property):
15779         * glyphs-msw.c (mswindows_combo_box_property):
15780         * glyphs-msw.c (mswindows_widget_set_property):
15781         * console.c (stuff_buffered_input):
15782         * objects-msw.c (mswindows_initialize_color_instance):
15783         * objects-msw.c (mswindows_valid_color_name_p):
15784         * objects-msw.c (mswindows_list_fonts):
15785         * objects-msw.c (mswindows_font_instance_truename):
15786         * bytecode.c (optimize_compiled_function):
15787         * select-x.c (symbol_to_x_atom):
15788         * select-x.c (x_atom_to_symbol):
15789         * select-x.c (hack_motif_clipboard_selection):
15790         * select-x.c (selection_data_to_lisp_data):
15791         * select-x.c (lisp_data_to_selection_data):
15792         * select-x.c (Fx_get_cutbuffer_internal):
15793         * select-x.c (Fx_store_cutbuffer_internal):
15794         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15795         * buffer.h (TO_INTERNAL_FORMAT): New function.
15796         * emacs.c (make_arg_list_1):
15797         * emacs.c (make_argc_argv):
15798         * emacs.c (main_1):
15799         * emacs.c (Fdump_emacs):
15800         * emacs.c (split_string_by_emchar_1):
15801         * file-coding.h:
15802         * lisp.h:
15803         * lstream.h:
15804         * symsinit.h:
15805         * device-x.c (x_init_device):
15806         * device-x.c (Fx_valid_keysym_name_p):
15807         * device-x.c (Fx_get_font_path):
15808         * device-x.c (Fx_set_font_path):
15809         * glyphs.c (bitmap_to_lisp_data):
15810         * glyphs.c (pixmap_to_lisp_data):
15811         * alloc.c (make_ext_string): Use coding system arguments.  Update
15812         all callers.
15813         * alloc.c (build_string):
15814         * callproc.c (child_setup):
15815         * callproc.c (init_callproc):
15816         * fileio.c (lisp_strerror):
15817         * fileio.c (directory_file_name):
15818         * fileio.c (Fexpand_file_name):
15819         * fileio.c (Ffile_truename):
15820         * fileio.c (Fsysnetunam):
15821         * fileio.c (Fdo_auto_save):
15822         * sysdep.c (sys_readdir):
15823         * tests.c: New file.  Allow adding C tests.
15824         Replace GET_* macros with a more comprehensible and flexible
15825         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15826         Modify all calls.
15827         Any coding system can be used to do format conversion.
15828         Eliminate enum external_data_format.
15829         Eliminate convert_to_external_format.
15830         Eliminate convert_to_internal_format.
15831         Make sure file-name, keyboard, terminal, and ctext are always
15832         defined as coding systems or aliases.  Make
15833         file-name-coding-system, terminal-coding-system, and
15834         keyboard-coding-system magical variables that are equivalent to
15835         defining the corresponding coding system aliases.
15836
15837         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15838         * file-coding.c (Fcoding_system_alias_p): New function.
15839         * file-coding.c (Fcoding_system_aliasee): New function.
15840         * file-coding.c (append_suffix_to_symbol): New function.
15841         * file-coding.c (dangling_coding_system_alias_p): New function.
15842         * file-coding.c (Ffind_coding_system):
15843         * file-coding.c (Fcopy_coding_system):
15844         * file-coding.c (encode_coding_no_conversion):
15845         * file-coding.c (syms_of_file_coding):
15846         * file-coding.c (vars_of_file_coding):
15847         Rewrite coding system alias code.
15848         Allow nested aliases, like symbolic links.
15849         Allow redefinition of coding system aliases.
15850         Prevent existence of dangling coding system aliases.
15851
15852         * dired.c (Fuser_name_completion_1):
15853         * dired.c (Fuser_name_all_completions):
15854         A crash would happen if user did QUIT in the middle of building
15855         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15856
15857         * lisp.h:
15858         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15859
15860         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15861         an unsigned char *.  Update all callers.
15862
15863 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15864
15865         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15866
15867 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15868
15869         * elhash.c (hentry_description): Use more portable definition.
15870         (resize_hash_table): Initialize new hentries using
15871         xnew_array_and_zero, thereby simplifying the code.
15872
15873         * mule-charset.c (make_charset): Make sure entire object is
15874         initialized, to avoid Purify warnings.
15875
15876         * alloc.c (resize_string): Fix unlikely crash with big strings.
15877
15878 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15879
15880         * realpath.c (xrealpath):
15881         Don't call getwd().
15882
15883 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15884
15885         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15886
15887 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15888
15889         * unexelfsgi.c (unexec): Change the way we decide which segment
15890         should be extended.
15891
15892         Assumption that .bss section should be outside the PT_LOADable
15893         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15894         it's present) is inside the 'data' segment. This would fail the
15895         test which was used to find a segment to grow and cover new
15896         heap. Instead of this assumption, I created another one - on IRIX
15897         the segment to grow should start below .bss and it's address
15898         should extent above the end of .bss. Once this segment is
15899         identified, it's grown to accommodate the new heap and new
15900         zero-length .bss section is added at the end of .data2.
15901
15902 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15903
15904         * eval.c (Feval): Wrong number of arguments should use original
15905         function, not the indirect_function version of it.
15906
15907 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15908
15909         * glyphs-x.c (x_button_instantiate): Don't add image if
15910         it is not a pixmap.
15911         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15912         is relative.
15913
15914 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15915
15916         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15917         declaration.
15918         (DEFVAR_INT_MAGIC): Ditto.
15919         (DEFVAR_BOOL_MAGIC): Ditto.
15920         * glyphs.h: Reindent backslash.
15921
15922 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15923
15924         * glyphs-widget.c (layout_query_geometry):
15925         (layout_layout): Use correct types for gheight, gwidth.
15926
15927 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15928
15929         * EmacsManager.c (QueryGeometry): Purified.
15930
15931 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15932
15933         * alloc.c (make_float): Make sure entire object is initialized, to
15934         avoid Purify warnings.
15935         (pdump_register_sub): Remove useless assignment.
15936         (pdump): Use xmalloc, not malloc.
15937         (pdump_load): Use xmalloc, not malloc.
15938
15939 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15940
15941         * callproc.c:
15942         * dired-msw.c:
15943         * fileio.c:
15944         * process-nt.c:
15945         * redisplay-msw.c:
15946         * sysdep.c: Removed redundant #include <windows.h>
15947
15948 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15949
15950         * frame.c (delete_frame_internal): Do not delete device when its
15951         implementation so declares.
15952         (delete_frame_internal): Set device selected frame to nil when
15953         last frame goes away.
15954
15955         * device-msw.c (msprinter_device_system_metrics): Implemented.
15956         (mswindows_device_system_metrics): Added 'device-dpi property.
15957
15958         * device.c: (Fdevice_printer_p): Added.
15959         Added 'offset-workspace device metric.
15960
15961         * console.h (device_metrics): Declared DM_offset_workspace.
15962
15963 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15964
15965         * fileio.c (Ffile_truename): Remove pointless and confusing
15966         initialization of elen.
15967
15968         * glyphs-widget.c: Compiler warning fixes.
15969
15970 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15971
15972         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15973         instead of a Lisp_Object as argument to make it consistent with
15974         the other LIVE_P macros.
15975         (CHECK_LIVE_PROCESS): New macro.
15976
15977         * process.c: Declare Qprocess_live_p.
15978         (Fprocess_live_p): New function.
15979         (create_process): Use PROCESS_LIVE_P.
15980         (read_process_output): Ditto.
15981         (set_process_filter): Ditto.
15982         (Fdelete_process): Ditto.
15983         (kill_buffer_processes): Ditto
15984         (process_send_signal): Use CHECK_LIVE_PROCESS.
15985         (Fprocess_input_coding_system): Check whether process is still
15986         alive (fix PR#1061).
15987         (Fprocess_output_coding_system): Ditto.
15988         (Fprocess_coding_system): Ditto.
15989         (Fset_process_input_coding_system): Ditto.
15990         (Fset_process_output_coding_system): Ditto.
15991
15992 2000-01-23  Andy Piper  <andy@xemacs.org>
15993
15994         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15995         layout and widget.
15996
15997         * glyphs.c (mark_image_instance): take into account changed
15998         image_instance format.
15999         (image_instance_equal): ditto.
16000         (image_instance_hash): ditto.
16001
16002         * glyphs-widget.c (widget_instantiate): Incorporate layout
16003         instantiation here. Delay layout of the layout until later.
16004         (layout_instantiate): deleted.
16005         (layout_query_geometry): new function. get the geometry of a
16006         layout.
16007         (layout_layout): layout a layout dynamically.
16008         (image_instantiator_widget): New function - splitting up
16009         image_instantiator_format_create_glyphs_widget for netwinder
16010         compilation.
16011         (image_instantiator_buttons):
16012         (image_instantiator_edit_fields):
16013         (image_instantiator_combo_box):
16014         (image_instantiator_scrollbar):
16015         (image_instantiator_progress_guage):
16016         (image_instantiator_tree_view):
16017         (image_instantiator_tab_control):
16018         (image_instantiator_labels):
16019         (image_instantiator_layout): ditto.
16020         (image_instantiator_format_create_glyphs_widget): Call preceding
16021         functions.
16022
16023 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16024
16025         * process.c (Fset_process_coding_system):
16026         * device-x.c (Fx_keysym_hash_table):
16027         Docstring fixes.
16028
16029         * lstream.c (Lstream_write): Return documented value, not 0.
16030
16031         * fileio.c (directory_file_name):
16032         (Fsubstitute_in_file_name):
16033         (Fsubstitute_insert_file_contents_internal):
16034         (Fwrite_region_internal):
16035         * emacs.c:
16036         * sysdep.c:
16037         * getloadavg.c:
16038         * systty.h:
16039         Remove vestigial APOLLO-conditional code.
16040
16041 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16042
16043         * getpagesize.h: Add guard macros.
16044         * libsst.h: Add guard macros.
16045         * libst.h: Add guard macros.
16046         * line-number.h: Add guard macros.
16047         * ndir.h: Add guard macros.
16048         * sysfloat.h: Add guard macros.
16049         * sysfile.h: Add guard macros.
16050         * sysproc.h: Add guard macros.
16051         * syswait.h: Add guard macros.
16052         * xintrinsic.h: Add guard macros.
16053         * xintrinsicp.h: Add guard macros.
16054         * xmmanager.h: Add guard macros.
16055         * xmmanagerp.h: Add guard macros.
16056         * xmprimitive.h: Add guard macros.
16057         * xmu.h: Add guard macros.
16058         * gpmevent.h: Add copyright statement. Add guard macros.
16059         * miscplay.h: Add guard macros.
16060         * *.h: Use consistent C-standards-approved guard macro names.
16061
16062         * opaque.c (make_opaque): Switch parameter order.
16063         * opaque.h (make_opaque): Switch parameter order.
16064         Update all callers.
16065         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16066
16067         * config.h.in (type_checking_assert): Added.
16068         (bufpos_checking_assert): Added.
16069
16070 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16071
16072         * alloc.c: Harmless pdump changes.
16073         - Use countof().
16074         - spell alignment correctly.
16075         * sysdep.c: Use countof()
16076
16077 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16078
16079         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16080         initially_selected_for_input() console method, default to 0.
16081         (semi_canonicalize_console_connection): Try to delegate to
16082         canonicalize_console_connection if no such console method.
16083         (canonicalize_console_connection): Vice versa.
16084         (print_console): Do not print nil connection.
16085
16086         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16087         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16088         (XDEVIMPF_FRAMELESS_OK): Added.
16089         (CONSOLE_INHERITS_METHOD): Added.
16090
16091         * console-msw.c (mswindows_canonicalize_console_connection):
16092         Added.
16093         (mswindows_canonicalize_device_connection): Added.
16094
16095         * console-msw.h (struct msprinter_device): Added this struct and
16096         accessor macros.
16097         (mswindows_device): Made fontlist a lisp object.
16098
16099         * device.c (semi_canonicalize_device_connection):  Try to delegate
16100         to canonicalize_device_connection if no such console method.
16101         (canonicalize_device_connection): Vice versa.
16102         (print_device): Do not print nil connection.
16103
16104         * device-msw.c (mswindows_init_device): Call InitCommonControls
16105         when have widgets.
16106         (mswindows_delete_device): Removed fontlist deallocation.
16107         (mswindows_mark_device): Added.
16108
16109         * events.c (event_equal): Added abort() at unreached code.
16110         (event_hash): Ditto.
16111
16112         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16113         fallback tags of Windows devices.
16114
16115         * general.c (syms_of_general): Initialized Qmsprinter.
16116
16117         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16118         of fallback tags of Windows devices.
16119
16120         * lisp.h: Declared Qmsprinter.
16121
16122         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16123         of strings.
16124         (mswindows_list_fonts): Ditto.
16125         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16126         that it can be used by both mswindows and msprinter devices.
16127         (initialize_font_instance): Added.
16128         (mswindows_initialize_font_instance): Use it.
16129         (msprinter_initialize_font_instance): Added.
16130
16131         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16132         and implementation flags check.
16133         (redisplay_without_hooks): Changed the call to the above.
16134         (Fredraw_device): Ditto.
16135         (Fredisplay_device): Ditto.
16136
16137         * redisplay-msw.c (get_frame_dc): Implemented.
16138         (get_frame_compdc): Implemented.
16139         (many functions): Use the two functions above to get device
16140         contexts, ether for a window or a printer.
16141
16142 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16143
16144         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16145         initialization here.
16146         (init_symbols_once_early): Call it.
16147         * emacs.c (main_1): Call it.
16148         * symsinit.h: Declare it.
16149
16150 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16151
16152         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16153         Lisp_Object.
16154         (pdump_backtrace): Ditto.
16155         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16156         (pdump_get_entry): Abort if trying to register a null pointer.
16157         (pdump_dump_data): Cleanup types when relocating.
16158         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16159         (pdump_dump_rtables): Remove bad casts.
16160         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16161         Lisp_Object instead of a EMACS_INT for the hashtable
16162         reorganization.
16163
16164 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16165
16166         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16167
16168         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16169
16170         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16171
16172         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16173
16174 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16175
16176         * faces.h (FACE_STRIKETHRU_P): Added.
16177
16178         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16179         of font variants.
16180
16181         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16182         (mswindows_set_dc_font): New function, aware of font variants,
16183         separated from mswindows_update_dc.
16184
16185         * objects-msw.h (struct mswindows_font_instance_data): Added
16186         definition.
16187
16188         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16189         cached fonts and the data structure.
16190         (mswindows_initialize_font_instance): Added creation of font data
16191         structure.
16192         (mswindows_print_font_instance): Print at least something.
16193         (mswindows_create_font_variant): Implemented.
16194         (mswindows_get_hfont): Implemented.
16195
16196 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16197
16198         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16199         prototyping problem with msvc.
16200
16201         * emacs.c (main_1): added syms_of_gui_mswindows() call
16202
16203         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16204         syms_of_gui_mswindows() function
16205
16206         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16207
16208 2000-01-18  Martin Buchholz <martin@xemacs.org>
16209
16210         * XEmacs 21.2.27 is released.
16211
16212 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16213
16214         * glyphs-eimage.c (struct tiff_error_struct):
16215         (tiff_error_func):
16216         (tiff_warning_func):
16217         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16218
16219         * unexmips.c:
16220         * unexhp9k3.c:
16221         * unexfreebsd.c:
16222         * unexec.c: Remove vestigial Lucid C code.
16223         * unexalpha.c:
16224         * unexaix.c:
16225         * termcap.c:
16226         * libsst.c: Ansify.
16227         Remove declarations of errno and strerror().
16228
16229         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16230
16231         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16232
16233 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16234
16235         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16236         Optimize.
16237
16238 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16239
16240         * md5.c:
16241         * file-coding.c:
16242         * file-coding.h:
16243         Change enum eol_type to eol_type_t.
16244
16245 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16246
16247         * gui.c (get_gui_callback): Check cons before accessing car.
16248
16249 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16250
16251         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16252         (XSETSPECIFIER_TYPE): Ditto.
16253
16254 2000-01-17  Didier Verna  <didier@xemacs.org>
16255
16256         * redisplay.c (generate_fstring_runes): compute string size in
16257         characters, not bytes.
16258
16259 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16260
16261         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16262
16263 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16264
16265         * print.c (print_error_message): Call print_prepare().
16266
16267 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16268
16269         * .dbxrc: Renamed from dbxrc.
16270
16271         * events.c (event_to_character):
16272         Use `assert (foo)' instead of `if (!foo) abort()'
16273
16274         * .gdbinit (xtype): Add documentation.
16275         * .gdbinit (check-temacs): New function.
16276         * .gdbinit (check-xemacs): New function.
16277         * dbxrc (check-xemacs): New function.
16278         * dbxrc (check-xemacs): New function.
16279
16280 2000-01-14  Andy Piper  <andy@xemacs.org>
16281
16282         * glyphs-widget.c (widget_query_geometry): Make sure that we
16283         calculate default dimensions correctly.
16284
16285 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16286
16287         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16288
16289         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16290         pdump_wire'd variable.
16291
16292         * emacs.c: (main_1): Conditionalized calls to
16293         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16294
16295 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16296
16297         * window.c (Fset_window_configuration):
16298         * sysdep.c (_start):
16299         * input-method-motif.c (res):
16300         * event-Xt.c (Xt_process_to_emacs_event):
16301         Simple compiler warning fixes.
16302
16303         * bytecode.c (funcall_compiled_function): Use the original
16304         function symbol on the backtrace list in preference to the
16305         compiled_function object in error messages.
16306
16307 2000-01-13  Andy Piper  <andy@xemacs.org>
16308
16309         * glyphs-x.c (update_widget_face): Make sure we update the widget
16310         background as well as foreground.
16311
16312 2000-01-13  Andy Piper  <andy@xemacs.org>
16313
16314         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16315         fields to subwindow.
16316         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16317         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16318         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16319         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16320
16321         * glyphs-widget.c (check_valid_tab_orientation): new function.
16322         (initialize_widget_image_instance): zero orientation and
16323         justification.
16324         (widget_instantiate): pick up orientation.
16325         (tab_control_query_geometry): return appropriate values for
16326         vertical tabs.
16327
16328         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16329         appropriate creation flags for left, right and bottom tabs.
16330
16331         * s/cygwin32.h: add tab definitions.
16332
16333 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16334
16335         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16336         frame upon hiding a subwindow.
16337         (mswindows_button_instantiate): Changed the push button style to
16338         BS_PUSHBUTTON.
16339         (mswindows_button_instantiate): Removed button BS_NOTIFY
16340         style.
16341         (mswindows_button_instantiate): Removed redundant check for
16342         a disabled gui item.
16343         (mswindows_button_instantiate): Made use of WS_TABSTOP
16344         consistent: "operable" controls (edit, button, tree, scroll) have
16345         this style, "display-only" ones (static, progress gauge) do
16346         not. This style is currently ignored by XEmacs though. Also,
16347         removed the WS_EX_CONTROLPARENT style - it is not for children,
16348         it is for their parents!
16349         (mswindows_edit_field_instantiate): Ditto.
16350         (mswindows_progress_gauge_instantiate): Ditto.
16351         (mswindows_tree_view_instantiate): Ditto.
16352         (mswindows_tab_control_instantiate): Ditto.
16353         (mswindows_scrollbar_instantiate): Ditto.
16354         (mswindows_combo_box_instantiate): Ditto.
16355         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16356         style to the "clip" window.
16357         (mswindows_button_instantiate): Removed compilation warning by
16358         equally typing terms of the ?: operator.
16359
16360 2000-01-12  Didier Verna  <didier@xemacs.org>
16361
16362         * redisplay.c (generate_fstring_runes): new parameter holding the
16363         last modeline-format extent.
16364         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16365         extent, fill the glyph block with it.
16366         (generate_fstring_runes): handle these parameters.
16367         (generate_formatted_string_db): ditto.
16368
16369         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16370         glyphs'extents in the modeline.
16371
16372 1999-01-11  Mike Woolley  <mike@bulsara.com>
16373
16374         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16375         256Mb, as a workaround for the non-starting problem many people
16376         have experienced.
16377
16378 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16379
16380         * console-tty.c (Fset_console_tty_output_coding_system):
16381         Force redrawing tty frame.
16382
16383 2000-01-10  Didier Verna  <didier@xemacs.org>
16384
16385         * redisplay.c (generate_fstring_runes): fix size computation bug.
16386
16387 2000-01-09  William M. Perry <wmperry@aventail.com>
16388
16389         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16390
16391 2000-01-09  Andy Piper  <andy@xemacs.org>
16392
16393         * glyphs-msw.c: index -> i to avoid shadows.
16394         (xbm_create_bitmap_from_data): make static.
16395         (check_valid_string_or_int): deleted.
16396         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16397
16398         * glyphs-x.c (x_update_subwindow): remove unused args.
16399
16400         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16401         back pointer - this is done in allocate_image_instance.
16402         (query_string_font): return Qnil to make the compiler happy.
16403         (unmap_subwindow): set to ~0 to make the compiler happy.
16404         (glyph_query_geometry): comment out until used.
16405         (glyph_layout): ditto.
16406
16407 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16408
16409         * insdel.c (signal_after_change): Remove extraneous unbind_to().