update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
4         for aliases; write `description'; write
5         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
6         not 0.
7
8 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * chartab.c (Fsave_char_attribute_table): Don't use
11         `save_charset_properties'.
12
13         * mule-charset.c (Fsave_charset_properties): Renamed from
14         `save_charset_properties' and changed to Lisp function again;
15         write property `type' as `CCS'; write properties `final-byte' and
16         `mother' if they exists.
17         (syms_of_mule_charset): Revive builtin function
18         `save-charset-properties' when HAVE_LIBCHISE is defined.
19
20 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
23         instead of Vexec_directory.
24         (char_attribute_system_db_file): Likewise.
25
26 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * chartab.c (Fsave_char_attribute_table): Use
29         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
30         defined.
31
32         * mule-charset.c (save_charset_properties): Renamed from
33         `Fsave_charset_properties'; changed to non-Lisp function.
34         (syms_of_mule_charset): Abolish builtin function
35         `save-charset-properties'.
36
37 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule-charset.c (Fsave_charset_properties): New function when
40         HAVE_LIBCHISE is defined.
41         (syms_of_mule_charset): Add new builtin function
42         `save-charset-properties' when HAVE_LIBCHISE is defined.
43
44 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * chartab.c (Fput_char_attribute): Convert char-specs in value of
47         `{<-|->}ancient[^*]*' to characters and put reverse links.
48         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
49         for `{<-|->}ancient[^*]*'.
50
51 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
52
53         * chartab.c (Fput_char_attribute): Convert char-specs in value of
54         `{<-|->}original[^*]*' to characters and put reverse links.
55         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
56         for `{<-|->}original[^*]*'.
57
58 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
61
62 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * mule-charset.c (Qsystem_char_id): New variable.
65
66         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
67         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
68
69 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * chartab.c (Fput_char_attribute): When processing a reference of
72         a character, put into the end of the reversed reference of each
73         target character.
74
75 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * chartab.c (Q_same): Deleted.
78         (Q_same_of): Deleted.
79         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
80         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
81         for `{<-|->}same'.
82         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
83
84 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * chartab.c (Q_vulgar): Deleted.
87         (Q_vulgar_of): Deleted.
88         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
89         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
90         for `{<-|->}vulgar'.
91         (syms_of_chartab): Don't define `{<-|->}vulgar'.
92
93 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * chartab.c (Fput_char_attribute): Convert char-specs in value of
96         `{<-|->}wrong[^*]*' to characters and put reverse links.
97         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
98         for `{<-|->}wrong[^*]*'.
99
100 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
101
102         * chartab.c (Q_vulgar): New variable.
103         (Q_vulgar_of): New variable.
104         (Fput_char_attribute): Convert char-specs in value of
105         `{->|<-}vulgar' to characters and put reverse links.
106         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
107         for `{->|<-}vulgar'.
108         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
109
110 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * text-coding.c (decode_add_er_char): Must to quote prefix string
113         as regexp.
114
115 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * mule-charset.c (put_char_ccs_code_point): Store characters of
118         =ucs whose code_points >= 0xF0000.
119
120 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
121
122         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
123         CHISE.
124         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
125         CHISE.
126         (complex_vars_of_mule_charset): Add new coded-charset
127         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
128         builtin characters over 0xEFFFF.
129
130         * chartab.c (syms_of_chartab): Don't define symbol
131         `system-char-id' in every case.
132
133         * char-ucs.h (Qsystem_char_id): New extern variable.
134         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
135
136 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * text-coding.c (char_encode_utf8): Try to use entity-references
139         for U-000F0000 ...  U-0010FFFF.
140
141 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * text-coding.c (ER_BUF_SIZE): New macro.
144         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
145         `er_buf'.
146         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
147         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
148
149 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * chartab.c (find_char_feature_in_family): New function.
152         (Fchar_feature): Use `find_char_feature_in_family' with
153         `->identical', `<-subsumptive' and `<-denotational'.
154
155 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * text-coding.c (char_encode_as_entity_reference): Allow prefix
158         within 8 characters; fix infinite loop.
159
160 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (Q_same): New variable.
163         (Q_same_of): New variable.
164         (Fput_char_attribute): Convert char-specs in value of
165         `{->|<-}same' to characters and put reverse links.
166         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
167         for `{->|<-}same'.
168         (syms_of_chartab): Add new symbols `{->|<-}same'.
169
170 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * chartab.c (Q_component): New variable.
173         (Q_component_of): Likewise.
174         (Fput_char_attribute): Convert char-specs in value of
175         `{->|<-}ideographic-component-forms' to characters and put reverse
176         links.
177         (syms_of_chartab): Add new symbols
178         `{->|<-}ideographic-component-forms'.
179
180 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
181
182         * chartab.c (Q_identical): New variable.
183         (Q_identical_from): New variable.
184         (Fchar_feature): Regard `->identical' as a feature to find
185         ancestors.
186         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
187         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
188         for `{->|<-}identical'.
189         (syms_of_chartab): Add new symbols `{->|<-}identical'.
190
191 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * char-ucs.h (encode_char_2): New inline function.
194         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
195
196 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * chartab.c (Fput_char_attribute): Convert char-specs to
199         characters in value of `ideographic-structure'.
200         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
201         for `{<-|->}simplified(@...)'.
202         (Fdefine_char): bTry to use predefined character's id.
203
204 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * fns.c (simplify_char_spec): Try to convert builtin chars to
207         defined chars.
208
209 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * chartab.c (Fput_char_attribute): Convert char-specs in value of
212         `<-simplified[^*]*' to characters and put reverse links.
213
214 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * chartab.c (Q_subsumptive): Renamed from Q_unified.
217         (Q_subsumptive_from): Renamed from Q_unified_from.
218         (Fchar_feature): Use `Q_subsumptive_from' instead of
219         `Q_unified_from'.
220         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
221         `Q_unified'.
222         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
223         `<-unified' to `<-subsumptive'.
224
225 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
228         inheritance itself; fix typo; stop recursive search if cyclic
229         inheritance is found.
230
231 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * chartab.c (Q_denotational): New variable.
234         (Q_denotational_from): New variable.
235         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
236         (put_char_attribute): New function.
237         (Fput_char_attribute): Use `put_char_attribute'; regard
238         `->denotational' and `<-denotational' as same as `->unified' and
239         `<-unified'.
240         (syms_of_chartab): Add new symbols `->denotational' and
241         `<-denotational'.
242
243 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
246         `Fget_char_attribute'.
247         (Fchar_variants): Likewise.
248         (get_char_table): Likewise.
249         (Fchar_feature): New function.
250         (put_char_composition): Use `Fchar_feature' instead of
251         `Fget_char_attribute'.
252         (Fput_char_attribute): Likewise; don't put the target character
253         into its `->unified' value.
254         (syms_of_chartab): Add new builtin function `char-feature'.
255
256 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
259         `Fget_char_attribute'.
260         (char_encode_utf8): Likewise.
261
262         * chartab.h: Add an EXFUN for `Fchar_feature'.
263
264 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * chartab.c (Vnext_defined_char_id): New variable.
267         (Fput_char_attribute): Accept characters in `->unified'.
268         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
269         new characters which are not related with builtin char-id ranges.
270         (vars_of_chartab): Add new variable `next-defined-char-id'.
271
272 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * chartab.c (Q_unified): New variable.
275         (Q_unified_from): New variable.
276         (Fput_char_attribute): Add code for `->unified'.
277         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
278         XEmacs CHISE.
279
280 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * mule-charset.c (decode_ccs_conversion): New function.
283         (decode_defined_char): Use `decode_ccs_conversion'.
284         (decode_builtin_char): Likewise.
285
286 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * char-ucs.h: Change some charset-ids of private coded-charsets.
289
290 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
291
292         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
293         (char_encode_as_entity_reference): Likewise.
294         (decode_coding_big5): Modify for `decode_defined_char' and
295         `DECODE_CHAR'.
296         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
297         avoid compiler warning.
298         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
299
300         * mule-charset.c (decode_defined_char): Add new argument
301         `without_inheritance'.
302         (Fdecode_char): Add new optional argument `without_inheritance'.
303         (Fdecode_builtin_char): Modify for `Fdecode_char'.
304
305         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
306         (simplify_char_spec): Likewise.
307
308         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
309         setting.
310
311         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
312         (map_char_table): Likewise.
313         (Fdefine_char): Use `Fdecode_char' without inheritance.
314         (Ffind_char): Modify for `Fdecode_char'.
315
316         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
317
318         * char-ucs.h (decode_defined_char): Add new argument
319         `without_inheritance'.
320         (DECODE_CHAR): Likewise.
321         (MAKE_CHAR): Modify for `DECODE_CHAR'.
322
323 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * chartab.c (Vchise_system_db_directory): New variable.
326         (vars_of_chartab): Add new variable `chise-system-db-directory'.
327
328 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * chartab.c: EXFUN `Fmount_char_attribute_table'.
331         (print_chartab_range): Don't define when `UTF2000' is defined.
332         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
333         `CHISE_DS_open'.
334
335 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
338         and optional argument `rehash' is specified, call
339         `open_chise_data_source_maybe' before
340         `chise_ds_foreach_char_feature_name' is called.
341
342 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * chartab.c (char_attribute_list_reset_map_func): New function
345         when HAVE_LIBCHISE is defined.
346         (Fchar_attribute_list): Add new optional argument `rehash' when
347         HAVE_LIBCHISE is defined.
348         (open_chise_data_source_maybe): Use "chise-db" instead of
349         "char-db".
350         (char_attribute_system_db_file): Likewise.
351         (Fload_char_attribute_table): Use
352         `chise_feature_foreach_char_with_value' instead of
353         `chise_char_feature_value_iterate'.
354
355 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
356
357         * chartab.c (Vchise_db_directory): New variable.
358         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
359
360 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
363         instead of HAVE_CHISE to specify using with libchise.
364
365         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
366
367         * chartab.h: Don't use HAVE_CHISE_CLIENT.
368
369         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
370         defined or HAVE_LIBCHISE_LIBCHISE is defined.
371         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
372         is defined.
373         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
374         HAVE_CHISE to specify using with libchise.
375         (syms_of_chartab): Don't define symbol `system-char-id' when
376         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
377
378 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
381         specify CHISE DB support.
382         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
383         of `char_attribute_system_db_file' to check feature DB file.
384
385         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
386         HAVE_CHISE_CLIENT to specify CHISE DB support.
387
388         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
389         specify CHISE DB support.
390         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
391         not defined.
392         (Freset_char_attribute_table): Use `chise_feature_setup_db'
393         instead of `char_attribute_system_db_file' to check feature DB
394         file.
395
396 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
399         `HAVE_CHISE_CLIENT'.
400
401 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
404         (Fsave_charset_mapping_table): Don't use
405         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
406
407         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
408         (HAVE_LIBCHISE): New macro.
409
410         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
411
412         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
413         (Fsave_char_attribute_table): Don't use
414         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
415
416 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
419         defined.
420         (save_uint16_byte_table): Likewise.
421         (save_byte_table): Likewise.
422         (char_table_get_db): Use `chise_ds_load_char_feature_value'
423         instead of `chise_char_load_feature_value'.
424         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
425
426 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * chartab.h (struct Lisp_Char_Table): Delete member
429         `feature_table' if CHISE is defined.
430
431         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
432         (Fcopy_char_table): Likewise.
433         (char_table_open_db_maybe): Likewise.
434         (char_table_close_db_maybe): Likewise.
435         (char_table_get_db): Likewise.
436         (Fmount_char_attribute_table): Likewise.
437         (Fload_char_attribute_table): Likewise.
438
439 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * mule-charset.c (load_char_decoding_entry_maybe): Use
442         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
443         `chise_ccs_decode'.
444
445 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
448         instead of `chise_open_data_source'.
449         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
450         `chise_ds_close'.
451
452 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
455         instead of `chise_ds_open_feature_table'.
456         (char_table_close_db_maybe): Don't use `chise_ft_close'.
457
458 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * mule-charset.c (Fsave_charset_mapping_table): Use
461         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
462         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
463         `chise_ccs_sync' instead of `chise_ccst_close'.
464         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
465
466         * chartab.c (open_chise_data_source_maybe): Modify for
467         `chise_open_data_source'.
468         (char_table_open_db_maybe): Modify for
469         `chise_ds_open_feature_table'.
470
471 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
472
473         * mule-charset.c (load_char_decoding_entry_maybe): Use
474         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
475         `chise_ccst_close'.
476
477 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
478
479         * mule-charset.c (Fsave_charset_mapping_table): Use
480         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
481         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
482         `chise_dt_put_char' and `chise_dt_close'.
483         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
484         `chise_ccs_decode' and `chise_ccst_close' instead of
485         `chise_ds_open_decoding_table', `chise_dt_get_char' and
486         `chise_dt_close'.
487
488         * chartab.c (char_table_get_db): Use
489         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
490         (load_char_attribute_table_map_func): Modify for
491         `chise_char_feature_value_iterate'.
492         (Fload_char_attribute_table): Use
493         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
494
495 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
496
497         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
498
499 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
500
501         * chartab.c (put_char_table): Modify for inherited coded-charsets
502         in XEmacs CHISE.
503
504 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
505
506         * chartab.c (Fput_char_table_map_function): Fixed.
507         (word_boundary_p): Don't check charset in XEmacs CHISE.
508
509 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
510
511         * mule-charset.c (Fsave_charset_mapping_table): Use
512         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
513         instead of `chise_open_decoding_table'; refer
514         `default_chise_data_source'; use `chise_dt_close' instead of
515         `chise_close_decoding_table'.
516         (load_char_decoding_entry_maybe): Likewise.
517
518         * chartab.c (default_chise_data_source): New variable when `CHISE'
519         is defined.
520         (Fcopy_char_table): `ct->ds' is deleted.
521         (open_chise_data_source_maybe): New function.
522         (Fclose_char_data_source): New function.
523         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
524         use `chise_ds_open_feature_table' instead of
525         `chise_open_feature_table'.
526         (char_table_close_db_maybe): Use `chise_ft_close' instead of
527         `chise_close_feature_table'; `cit->ds' is deleted.
528         (syms_of_chartab): Add new builtin function
529         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
530
531         * chartab.h (default_chise_data_source): New extern variable.
532         (open_chise_data_source_maybe): New prototype.
533         (struct Lisp_Char_Table): Delete `ds'.
534
535 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
536
537         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
538         `CHISE' is defined.
539
540 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
541
542         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
543         not defined; add code for non-libchise setting.
544         (char_table_close_db_maybe): Likewise.
545         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
546         defined.
547         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
548         even if `CHISE' is not defined.
549         (Freset_char_attribute_table): Likewise.
550         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
551         `char_table_close_db_maybe' even if `CHISE' is not defined; use
552         `char_table_get_db'.
553         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
554         `char_table_close_db_maybe' even if `CHISE' is not defined.
555
556 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
557
558         * chartab.c (char_table_open_db_maybe): New function.
559         (char_table_close_db_maybe): New function.
560         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
561         (Freset_char_attribute_table): Likewise.
562         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
563         `char_table_close_db_maybe'.
564         (Fload_char_attribute_table): Likewise.
565
566 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
567
568         * chartab.c: Don't include <chise.h> because it is included in
569         chartab.h.
570         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
571         defined.
572         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
573         `CHISE' is defined.
574         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
575         `CHISE' is defined.
576         (Fclose_char_attribute_table): Close `ct->feature_table' and
577         `ct->ds' when `CHISE' is defined.
578         (Freset_char_attribute_table): Likewise.
579         (load_char_attribute_maybe): Use `cit->ds' and
580         `cit->feature_table' when `CHISE' is defined.
581         (Fload_char_attribute_table): Likewise.
582
583         * chartab.h: Include <chise.h> when `CHISE' is defined.
584         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
585         when `CHISE' is defined.
586
587 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
588
589         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
590         is defined.
591         (char_table_description): Likewise.
592         (Fmake_char_table): Likewise.
593         (Fcopy_char_table): Likewise.
594         (Fmount_char_attribute_table): Likewise.
595         (Fclose_char_attribute_table): Likewise.
596         (Freset_char_attribute_table): Likewise.
597         (load_char_attribute_maybe): Likewise.
598         (Fload_char_attribute_table): Likewise.
599
600         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
601         defined.
602
603 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * chartab.c (load_char_attribute_table_map_func): New function
606         when CHISE is defined.
607         (Qload_char_attribute_table_map_function): Don't define when CHISE
608         is defined.
609         (Fload_char_attribute_table_map_function): Likewise.
610         (Fload_char_attribute_table): Use libchise when `CHISE' is
611         defined.
612         (syms_of_chartab): Don't define
613         `load-char-attribute-table-map-function' when CHISE is defined.
614
615 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
616
617         * chartab.c: Include <chise.h> when `CHISE' is defined.
618         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
619
620 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * mule-charset.c (charset_code_point): Fix problem when searching
623         in mother CCS fails with `defined_only' mode.
624
625 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
626
627         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
628         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
629         (put_char_composition): Likewise.
630         (Fput_char_attribute): Likewise.
631         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
632
633 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
634
635         * chartab.c (Q_ucs): Deleted.
636         (Fput_char_attribute): Don't refer `->ucs'.
637         (Fdefine_char): Likewise.
638         (Ffind_char): Likewise.
639         (syms_of_chartab): Delete `->ucs'.
640
641 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
642
643         * mule-charset.c (Qmap_cns11643_2): Renamed from
644         `Qchinese_cns11643_2'.
645         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
646         `chinese-cns11643-2'.
647         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
648         `=cns11643-2'.
649
650 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
651
652         * mule-charset.c (Qmap_cns11643_1): Renamed from
653         `Qchinese_cns11643_1'.
654         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
655         `chinese-cns11643-1'.
656         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
657         `=cns11643-1'.
658
659 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
660
661         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
662         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
663         `chinese-gb12345'.
664         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
665         `=gb12345'.
666
667 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
668
669         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
670         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
671         `chinese-gb2312'.
672         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
673         `=gb2312'.
674
675 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
676
677         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
678         (syms_of_mule_charset): Add new symbol `=big5' instead of
679         `chinese-big5'.
680         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
681
682 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
685         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
686         `korean-ksc5601'.
687         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
688         `=ks-x1001'.
689
690 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
691
692         * mule-charset.c (Qmap_jis_x0212): Renamed from
693         `Qjapanese_jisx0212'.
694         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
695         `japanese-jisx0212'.
696         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
697         `=jis-x0212'.
698
699 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
700
701         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
702         `Qjapanese_jisx0208'.
703         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
704         of `japanese-jisx0208'.
705         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
706         `=jis-x0208-1983'.
707
708 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
711         `Qjapanese_jisx0208_1978'.
712         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
713         of `japanese-jisx0208-1978'.
714         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
715         `=jis-x0208-1978'.
716
717 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
718
719         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
720         only for XEmacs CHISE.
721
722 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
723
724         * char-ucs.h: Compact non-ISO-IR charset-ids.
725         (LEADING_BYTE_UCS): Changed to -177.
726         (LEADING_BYTE_CONTROL_1): Changed to -77.
727         (LEADING_BYTE_UCS_BMP): Changed to -176.
728         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
729
730 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
731
732         * mule-charset.c (Qiso_ir): New variable.
733         (Fmake_charset): Recognise new property `iso-ir'.
734         (syms_of_mule_charset): Add new symbol `iso-ir'.
735
736 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
737
738         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
739         n to -n; charset-id of non ISO-IR sets are changed to positive
740         numbers.
741
742 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
743
744         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
745         for &MCS-XXXXXXXX; values.
746
747 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
748
749         * mule.c (Vxemacs_chise_version): Renamed from
750         `Vutf_2000_version'.
751         (vars_of_mule): Add new variable `xemacs-chise-version'; define
752         `utf-2000-version' as an alias for `xemacs-chise-version'.
753
754 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
757         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
758         defined.
759
760         * config.h.in (CHISE): New macro.
761
762 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
763
764         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
765         of `ucs'.
766         (Qmap_ucs): New variable.
767         (syms_of_mule_charset): Add new symbol `=ucs'.
768         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
769
770         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
771         (simplify_char_spec): Likewise.
772
773         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
774
775         * char-ucs.h (Qmap_ucs): New extern variable.
776
777 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
780         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
781         don't define it when UTF2000 is not defined.
782         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
783         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
784         when UTF2000 is not defined.
785         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
786         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
787
788 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
791
792         * mule-charset.c (Vcharset_ucs_gb): Deleted.
793         (Qucs_gb): Deleted.
794         (syms_of_mule_charset): Delete `ucs-gb'.
795         (complex_vars_of_mule_charset): Likewise.
796
797 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
798
799         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
800
801         * mule-charset.c (Vcharset_ucs_cns): Deleted.
802         (Qucs_cns): Deleted.
803         (syms_of_mule_charset): Delete `ucs-cns'.
804         (complex_vars_of_mule_charset): Likewise.
805
806 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
807
808         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
809
810         * mule-charset.c (Vcharset_ucs_jis): Deleted.
811         (Qucs_jis): Deleted.
812         (syms_of_mule_charset): Delete `ucs-jis'.
813         (complex_vars_of_mule_charset): Likewise.
814
815 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
816
817         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
818
819         * mule-charset.c (Vcharset_ucs_ks): Deleted.
820         (Qucs_ks): Deleted.
821         (syms_of_mule_charset): Delete `ucs-ks'.
822         (complex_vars_of_mule_charset): Likewise.
823
824 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
825
826         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
827         (Qideograph_daikanwa_2): Deleted.
828         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
829         (complex_vars_of_mule_charset): Likewise.
830
831         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
832         (LEADING_BYTE_DAIKANWA_1): Deleted.
833         (LEADING_BYTE_DAIKANWA_2): Deleted.
834         (MIN_CHAR_DAIKANWA): Deleted.
835         (MAX_CHAR_DAIKANWA): Deleted.
836
837 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
838
839         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
840         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
841         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
842
843         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
844         (Vcharset_ideograph_daikanwa): Deleted.
845         (Qideograph_hanziku_{1..12}): Deleted.
846         (Qideograph_daikanwa): Deleted.
847         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
848         Vcharset_ideograph_daikanwa.
849         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
850         `ideograph-hanziku-{1..12}'.
851         (complex_vars_of_mule_charset): Likewise.
852
853 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
854
855         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
856
857         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
858         (Qideograph_gt_pj_{1..11}): Deleted.
859         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
860         (complex_vars_of_mule_charset): Likewise.
861
862 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
863
864         * mule-charset.c (Vcharset_ucs_big5): Deleted.
865         (Vcharset_ideograph_gt): Deleted.
866         (Qucs_big5): Deleted.
867         (Qideograph_gt): Deleted.
868         (syms_of_mule_charset): Delete symbol `ucs-big5' and
869         `ideograph-gt'.
870         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
871         and `ideograph-gt'.
872
873         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
874         (LEADING_BYTE_GT): Deleted.
875         (MIN_CHAR_GT): Deleted.
876         (MAX_CHAR_GT): Deleted.
877
878 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
881
882 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
885         (save_uint16_byte_table): Likewise.
886         (save_byte_table): Likewise; convert values by it.
887         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
888         for `ideographic-structure'.
889         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
890         as the filter for `ideographic-structure'.
891
892 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
893
894         * chartab.c (put_char_composition): New function.
895         (Fput_char_attribute): Use `put_char_composition'; use
896         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
897
898         * fns.c (simplify_char_spec): New function.
899         (char_ref_simplify_spec): New function.
900         (Fchar_refs_simplify_char_specs): New function.
901         (syms_of_fns): Add new builtin function
902         `char-refs-simplify-char-specs'.
903
904 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
905
906         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
907         (Qideograph_cbeta): Deleted.
908         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
909         (complex_vars_of_mule_charset): Likewise.
910
911         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
912         (MIN_CHAR_CBETA): Comment out.
913         (MAX_CHAR_CBETA): Likewise.
914
915 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
918         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
919         CHISE client feature.
920
921 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
922
923         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
924
925 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
926
927         * mule-charset.c (charset_lookup_description_1): Use
928         `NUM_LEADING_BYTES' in UTF-2000.
929
930 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
931
932         * char-ucs.h (GC_CHARSETP): Deleted.
933
934 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
935
936         * char-ucs.h (MAX_CHAR_GT): Updated.
937
938 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
939
940         * text-coding.c: Sync with XEmacs 21.4.10.
941
942 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
943
944         * mule-charset.c (Vcharset_china3_jef): Deleted.
945         (Qchina3_jef): Deleted.
946         (syms_of_mule_charset): Don't define `china3-jef'.
947         (complex_vars_of_mule_charset): Likewise.
948
949         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
950         (MIN_CHAR_CHINA3_JEF): Comment out.
951         (MAX_CHAR_CHINA3_JEF): Comment out.
952
953 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
954
955         * mule-charset.c (Vcharset_ucs_gb): New variable.
956         (Qucs_gb): New variable.
957         (syms_of_mule_charset): Add new symbol `ucs-gb'.
958         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
959
960         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
961
962 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * mule-charset.c (charset_code_point): if a coded-charset has a
965         final-byte, don't inherit the builtin range of the mother CCS.
966
967 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
968
969         * mule-charset.c (charset_code_point): Fix problem about
970         inheritance.
971
972 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
973
974         * mule-charset.c (decode_builtin_char): Reorganized.
975
976 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * text-coding.c (char_encode_as_entity_reference): Modify for
979         `charset_code_point'.
980         (char_encode_shift_jis): Likewise.
981         (char_encode_big5): Likewise.
982         (char_encode_utf8): Likewise.
983         (char_encode_iso2022): Likewise.
984
985         * mule-charset.c (charset_code_point): Add new argument
986         `defined_only'.
987         (Fencode_char): Add new optional argument `defined_only'.
988
989         * chartab.c (put_char_table): Modify for `charset_code_point'.
990
991         * char-ucs.h (charset_code_point): Add new argument
992         `defined_only'.
993         (encode_char_1): Modify for `charset_code_point'.
994
995 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
996
997         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
998         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
999
1000 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1001
1002         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1003         (Qjis_x0208): Likewise.
1004         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1005         XCHARSET_FINAL(charset).
1006         (charset_code_point): Modify condition for final-byte based
1007         builtin-chars.
1008         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1009         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1010         in UTF-2000; specify `=jis-x0208' as the mother of
1011         `japanese-jisx0208-1978', `japanese-jisx0208' and
1012         `japanese-jisx0208-1990' in UTF-2000.
1013
1014 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1015
1016         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1017
1018 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019
1020         * text-coding.c (decode_coding_utf16): Support UTF-16.
1021         (char_encode_utf16): Fixed.
1022
1023 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1024
1025         * text-coding.c (Qutf16): New variable in MULE.
1026         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1027         (Fcoding_system_type): Add `utf-16' in MULE.
1028         (struct detection_state): Add a structure for utf16 in MULE.
1029         (detect_coding_type): Setup st->utf16.mask in MULE.
1030         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1031         MULE.
1032         (reset_encoding_stream): Use `char_encode_utf16' and
1033         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1034         (detect_coding_utf16): New function [incomplete].
1035         (decode_coding_utf16): New function [support only UCS-2].
1036         (char_encode_utf16): New function.
1037         (char_finish_utf16): New function.
1038         (syms_of_file_coding): Add new symbol `utf-16'; setup
1039         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1040
1041         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1042         UTF-2000.
1043         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1044         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1045
1046 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1047
1048         * chartab.c (put_char_table): When a charset is specified as a
1049         range in UTF-2000, don't support builtin characters.
1050
1051 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1052
1053         * mule-charset.c (decode_defined_char): Don't refer external
1054         database if Qunbound or Qnil are found.
1055         (Fsave_charset_mapping_table): Don't define it if
1056         HAVE_CHISE_CLIENT is not defined.
1057         (Freset_charset_mapping_table): New function.
1058         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1059         found in external database.
1060         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1061         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1062         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1063
1064 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1065
1066         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1067         not.
1068
1069 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1070
1071         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1072         Q_lowercase, Q_uppercase in UTF-2000.
1073
1074         * chartab.c (get_char_table): Add special code for the standard
1075         case table to use character attribute `->downcase' and
1076         `->uppercase' for case operations in UTF-2000.
1077
1078         * casetab.c (Qflippedcase): New variable in UTF-2000.
1079         (Q_lowercase): Likewise.
1080         (Q_uppercase): Likewise.
1081         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1082         and `->uppercase' in UTF-2000.
1083         (complex_vars_of_casetab): Assign attribute name `downcase' to
1084         downcase and CANON table of Vstandard_case_table in UTF-2000;
1085         assign attribute name `flippedcase' to upcase and EQV table of
1086         Vstandard_case_table in UTF-2000.
1087
1088 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1089
1090         * text-coding.c (decode_add_er_char): Support isolated-chars.
1091         (char_encode_as_entity_reference): Likewise.
1092
1093 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1094
1095         * emacs.c (Vutf_2000_lisp_directory): New variable.
1096         (Vconfigure_utf_2000_lisp_directory): Likewise.
1097         (complex_vars_of_emacs): Add new variable
1098         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1099
1100 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1101
1102         * char-ucs.h (DECODE_CHAR): Delete special code for
1103         `chinese-big5-1' and `chinese-big5-2'.
1104
1105         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1106         (Qbig5_2): Likewise.
1107         (decode_defined_char): Support CONVERSION_BIG5_1 and
1108         CONVERSION_BIG5_2.
1109         (decode_builtin_char): Likewise.
1110         (charset_code_point): Likewise.
1111         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1112         'conversion in UTF-2000.
1113         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1114         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1115         `chinese-big5-2' as children of `chinese-big5'.
1116
1117         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1118         (CONVERSION_BIG5_2): New macro.
1119
1120 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * text-coding.c (char_encode_big5): Support entity-reference.
1123
1124 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1125
1126         * text-coding.c (char_encode_as_entity_reference): New function.
1127         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1128
1129 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * text-coding.c (decode_coding_big5): Support entity-reference
1132         decoding feature.
1133
1134 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1135
1136         * text-coding.c (allocate_coding_system): Initialize initial
1137         charsets for CODESYS_UTF8.
1138         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1139         charset-g2 for CODESYS_UTF8.
1140         (decode_coding_utf8): Use charset-g0.
1141         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1142         to force variants to map to UCS.
1143
1144 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1145
1146         * text-coding.c (Qutf_8_mcs): New variable.
1147         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1148         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1149         instead of `utf-8' in UTF-2000.
1150
1151 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1152
1153         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1154         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1155         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1156         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1157         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1158         CONVERSION_96x96x96x96 are introduced.
1159         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1160         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1161         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1162
1163         * char-ucs.h (CONVERSION_94): New macro.
1164         (CONVERSION_96): New macro.
1165         (CONVERSION_94x94): New macro.
1166         (CONVERSION_96x96): New macro.
1167         (CONVERSION_94x94x94): New macro.
1168         (CONVERSION_96x96x96): New macro.
1169         (CONVERSION_94x94x94x60): New macro.
1170         (CONVERSION_94x94x94x94): New macro.
1171         (CONVERSION_96x96x96x96): New macro.
1172
1173 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * chartab.c (Vcharacter_variant_table): Deleted.
1176         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1177         of `Vcharacter_variant_table'.
1178         (Fput_char_attribute): Likewise.
1179         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1180         (complex_vars_of_chartab): Likewise.
1181
1182 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1183
1184         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1185
1186         * fns.c (Qideographic_structure): New variable.
1187         (Qkeyword_char): New variable.
1188         (ids_format_unit): New function.
1189         (Fideographic_structure_to_ids): New function.
1190         (syms_of_fns): Add new symbols `ideographic-structure' and
1191         `:char'; add new builtin function `ideographic-structure-to-ids'.
1192
1193         * data.c (Fchar_ref_p): New function.
1194         (syms_of_data): Add new builtin function `char-ref-p'.
1195
1196         * chartab.h: Add an EXFUN for `Ffind_char'.
1197
1198 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1199
1200         * text-coding.c (Vcharacter_composition_table): Deleted.
1201         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1202         in every UTF-2000.
1203
1204         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1205         UTF-2000.
1206         (Vcharacter_composition_table): Deleted.
1207         (Fget_composite_char): Use the implementation for external-DB
1208         support in every UTF-2000.
1209         (Fput_char_attribute): Likewise.
1210         (char_attribute_system_db_file): Don't define if external-DB
1211         feature is not available.
1212         (Fsave_char_attribute_table): Likewise.
1213         (Fmount_char_attribute_table): Likewise.
1214         (Fclose_char_attribute_table): Likewise.
1215         (Freset_char_attribute_table): Likewise.
1216         (Fload_char_attribute_table): Likewise.
1217         (syms_of_chartab): Don't define `save-char-attribute-table',
1218         `mount-char-attribute-table', `reset-char-attribute-table',
1219         `close-char-attribute-table' and `load-char-attribute-table' if
1220         external-DB feature is not available.
1221         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1222
1223 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * text-coding.c (Qcomposition): Add extern if external-DB feature
1226         is supported.
1227         (Vcharacter_composition_table): Don't add extern if external-DB
1228         feature is supported.
1229         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1230         character composition rule if external-DB feature is supported.
1231
1232         * chartab.c (Vcharacter_composition_table): Don't define if
1233         external-DB feature is supported.
1234         (Qcomposition): New variable.
1235         (Fget_composite_char): New implementation for external-DB support.
1236         (Fput_char_attribute): Use `composition' property of each
1237         character instead of `Vcharacter_composition_table' to store
1238         character-composition rules if external-DB feature is supported.
1239         (syms_of_chartab): Add new symbol `composition'.
1240         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1241         external-DB feature is supported.
1242
1243 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1244
1245         * chartab.c (Vchar_db_stingy_mode): New variable.
1246         (load_char_attribute_maybe): Close database if
1247         Vchar_db_stingy_mode is not NIL.
1248         (Fload_char_attribute_table_map_function): Use
1249         `get_char_id_table_0' instead of `get_char_id_table'.
1250         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1251
1252         * chartab.h (get_char_id_table_0): New inline function.
1253         (get_char_id_table): Use `get_char_id_table_0'.
1254
1255 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1258         and `COMPOSE_ADD_CHAR'.
1259         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1260
1261 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1262
1263         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1264         instead of `DECODE_ADD_UCS_CHAR'.
1265         (COMPOSE_ADD_CHAR): Likewise.
1266
1267 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * text-coding.c (decode_flush_er_chars): New inline function.
1270         (decode_add_er_char): New function.
1271         (decode_coding_utf8): Use `decode_flush_er_chars' and
1272         `decode_add_er_char'.
1273
1274 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1275
1276         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1277         done before `decode_output_utf8_partial_char'.
1278
1279         * mule-charset.c (complex_vars_of_mule_charset): Specify
1280         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1281         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1282
1283 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1284
1285         * mule-charset.c (decode_defined_char): New function; search
1286         mother.
1287         (decode_builtin_char): Don't search mother if
1288         XCHARSET_MAX_CODE(charset) == 0.
1289         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1290         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1291         (Fdecode_char): Use `decode_defined_char' instead of
1292         `DECODE_DEFINED_CHAR'.
1293         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1294         mother of `Vcharset_ucs_jis'.
1295
1296         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1297         instead of `DECODE_DEFINED_CHAR'.
1298
1299         * char-ucs.h (decode_defined_char): Renamed from
1300         `DECODE_DEFINED_CHAR'; changed to normal function.
1301         (DECODE_CHAR): Use `decode_defined_char' instead of
1302         `DECODE_DEFINED_CHAR'.
1303
1304         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1305
1306 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1309
1310         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1311         variable.
1312         (Quse_entity_reference): New variable.
1313         (Qd): New variable.
1314         (Qx): New variable.
1315         (QX): New variable.
1316         (coding_system_description): Add description for
1317         `ccs_priority_list'.
1318         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1319         (allocate_coding_system): Initialize `ccs_priority_list' in
1320         UTF-2000.
1321         (Fmake_coding_system): Add description about
1322         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1323         (codesys).
1324         (Fcoding_system_property): Accept `disable-composition' and
1325         `use-entity-reference' in UTF-2000.
1326         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1327         in UTF-2000.
1328         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1329         (decode_coding_utf8): Decode entity-reference if
1330         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1331         (char_encode_utf8): Encode non-Unicode characters as
1332         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1333         (str->codesys).
1334         (syms_of_file_coding): Add new symbols `use-entity-reference',
1335         `d', `x', `X'.
1336         (vars_of_file_coding): Add new variable
1337         `coded-charset-entity-reference-alist'.
1338         (complex_vars_of_file_coding): Declare `disable-composition' and
1339         `use-entity-reference' to be coding-system-properties in UTF-2000.
1340
1341         * file-coding.h (struct Lisp_Coding_System): Add new member
1342         `use_entity_reference' and `ccs_priority_list'.
1343         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1344         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1345         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1346
1347 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * chartab.c (save_uint8_byte_table): Don't clear the table.
1350         (save_uint16_byte_table): Likewise.
1351         (save_byte_table): Likewise.
1352         (Fmount_char_attribute_table): New function.
1353         (syms_of_chartab): Add new builtin function
1354         `mount-char-attribute-table'.
1355
1356 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1359         "w+" mode.
1360         (load_char_decoding_entry_maybe): Open database as read-only mode.
1361
1362         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1363         open database as "w+" mode.
1364         (load_char_attribute_maybe): Open database as read-only mode.
1365         (Fload_char_attribute_table): Likewise.
1366
1367 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1370         (char_table_description): Delete member `db_file'.
1371         (Fmake_char_table): Don't refer `ct->db_file'.
1372         (Fcopy_char_table): Likewise.
1373         (Fsave_char_attribute_table): Likewise.
1374         (Fclose_char_attribute_table): Likewise.
1375         (Freset_char_attribute_table): Likewise.
1376         (load_char_attribute_maybe): Likewise.
1377         (Fload_char_attribute_table): Likewise.
1378
1379         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1380
1381 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1382
1383         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1384         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1385         `ct->db' is living.
1386         (load_char_attribute_maybe): Likewise.
1387         (Fload_char_attribute_table): Likewise.
1388
1389 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1390
1391         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1392         `ct->db_file' unconditionally.
1393
1394 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1395
1396         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1397         UTF-2000.
1398         (char_table_description): Add description for `db_file' and `db'
1399         in UTF-2000.
1400         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1401         UTF-2000.
1402         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1403         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1404         (Fclose_char_attribute_table): New function.
1405         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1406         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1407         and `cit->db'.
1408         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1409         (syms_of_chartab): Add new builtin function
1410         `Fclose_char_attribute_table'.
1411
1412 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1413
1414         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1415         `db' in UTF-2000.
1416         (load_char_attribute_maybe): Change interface.
1417         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1418
1419 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1420
1421         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1422
1423 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1426         instead of `DECODE_CHAR' for mother; don't use special code for
1427         chinese-big5 to use code space of chinese-big5-1 and
1428         chinese-big5-2.
1429         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1430         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1431
1432         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1433         (MAX_CHAR_BIG5_CDP): Revival.
1434
1435 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1438         the XLFD registry-encoding name of `chinese-big5'.
1439
1440 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1441
1442         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1443         (Qchinese_big5_cdp): Deleted.
1444         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1445         (complex_vars_of_mule_charset): Delete coded-charset
1446         `chinese-big5-cdp'.
1447
1448         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1449         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1450         `CHARSET_ID_OFFSET - n' for private CCS.
1451         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1452         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1453         of `MIN_LEADING_BYTE'.
1454         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1455         `(CHARSET_ID_OFFSET - 97)'.
1456         (MIN_CHAR_BIG5_CDP): Deleted.
1457         (MAX_CHAR_BIG5_CDP): Deleted.
1458
1459 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1460
1461         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1462
1463 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1464
1465         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1466         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1467         chartab.c].
1468
1469         * chartab.c (Vutf_2000_version): Moved to mule.c.
1470         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1471
1472 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1473
1474         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1475         when HAVE_CHISE_CLIENT is not defined.
1476
1477         * mule.c (vars_of_mule): Provide feature `chise' when
1478         HAVE_CHISE_CLIENT is defined.
1479
1480 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1481
1482         * config.h.in (UTF2000): Add comment.
1483         (HAVE_CHISE_CLIENT): New macro.
1484
1485 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1486
1487         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1488         CONSP.
1489         (Fput_char_attribute): Likewise.
1490         (char_attribute_system_db_file): Encode file-name of attribute.
1491         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1492         the initial value.
1493
1494 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1495
1496         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1497         (Fsave_charset_mapping_table): Use
1498         `char_attribute_system_db_file'.
1499         (load_char_decoding_entry_maybe): Likewise.
1500
1501         * chartab.h (Qsystem_char_id): New external variable.
1502         (char_attribute_system_db_file): New prototype.
1503
1504         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1505         (char_attribute_system_db_file): New function.
1506         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1507         (Freset_char_attribute_table): Likewise.
1508         (load_char_attribute_maybe): Likewise.
1509         (Fload_char_attribute_table): Likewise.
1510         (syms_of_chartab): Add new symbol `system-char-id'.
1511
1512 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1513
1514         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1515         `XCHARSET_GRAPHIC(ccs)'.
1516
1517 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1518
1519         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1520
1521 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1522
1523         * chartab.c (Q_ucs_variants): New variable.
1524         (syms_of_chartab): Add new symbol `->ucs-variants'.
1525         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1526         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1527         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1528
1529         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1530
1531         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1532         `HAVE_DATABASE' is defined.
1533         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1534         `HAVE_DATABASE' is defined.
1535
1536 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1537
1538         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1539         attribute-table.
1540         (Freset_char_attribute_table): New function.
1541         (syms_of_chartab): Add new builtin function
1542         `reset-char-attribute-table'.
1543
1544 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * chartab.c (load_char_attribute_maybe): Don't make directories.
1547
1548 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1549
1550         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1551
1552         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1553         for decoding-table.
1554
1555 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1556
1557         * mule-charset.c (Fsave_charset_mapping_table): Use
1558         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1559
1560         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1561         instead of `XCHARSET_CHARS'.
1562
1563 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1566         (XCHARSET_BYTE_SIZE): Likewise.
1567
1568         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1569         mule-charset.c].
1570         (XCHARSET_BYTE_SIZE): Likewise.
1571
1572 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1573
1574         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1575         data-directory to store database.
1576         (Fsave_char_attribute_table): Likewise.
1577         (load_char_attribute_maybe): Likewise.
1578         (Fload_char_attribute_table): Likewise.
1579
1580 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1581
1582         * mule-charset.c (Fsave_charset_mapping_table): New function.
1583         (syms_of_mule_charset): Add new builtin function
1584         `save-charset-mapping-table'.
1585
1586 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1587
1588         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1589         (get_ccs_octet_table): New inline function.
1590         (put_ccs_octet_table): Likewise.
1591         (decoding_table_put_char): Use `get_ccs_octet_table' and
1592         `put_ccs_octet_table'.
1593         (decoding_table_remove_char): Use `decoding_table_put_char'.
1594         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1595
1596         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1597         into encoding_table.
1598         (make_charset): Use Qunbound instead Qnil as initial value of
1599         decoding_table.
1600
1601 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1602
1603         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1604         element is Qunloaded.
1605         (map_over_uint16_byte_table): Likewise.
1606         (map_over_byte_table): Likewise.
1607         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1608         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1609         database support, load encoding-table of the specified
1610         coded-charset if it is not loaded yet.
1611         (save_uint8_byte_table): New function of UTF-2000 with external
1612         database support.
1613         (save_uint16_byte_table): Likewise.
1614         (save_byte_table): Likewise.
1615         (Fput_char_attribute): Don't store value into external database
1616         even if the external database feature is supported in UTF-2000;
1617         set `attribute' as name of char-table if the external database
1618         feature is supported.
1619         (Fsave_char_attribute_table): New function in UTF-2000.
1620         (syms_of_chartab): Add new builtin function
1621         `save-char-attribute-table' in UTF-2000.
1622
1623 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1624
1625         * chartab.c (char_attribute_table_to_put): New variable in
1626         UTF-2000.
1627         (Qput_char_table_map_function): Likewise.
1628         (value_to_put): Likewise.
1629         (Fput_char_table_map_function): New function in UTF-2000.
1630         (put_char_table): Use `Fmap_char_attribute' for
1631         CHARTAB_RANGE_CHARSET in UTF-2000.
1632         (Fput_char_attribute): Store symbol instead of string in
1633         `XCHAR_TABLE_NAME (table)'.
1634         (load_char_attribute_maybe): Likewise.
1635         (syms_of_chartab): Add new symbol/function
1636         `put-char-table-map-function'.
1637
1638 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1639
1640         * database.h: Add new EXFUN for `Fmap_database'.
1641
1642         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1643         (syms_of_database): Likewise.
1644
1645         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1646         UTF-2000.
1647         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1648         (XCHAR_TABLE_UNLOADED): Likewise.
1649
1650         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1651         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1652         HAVE_DATABASE is defined.
1653         (char_attribute_table_to_load): New variable of UTF-2000 with
1654         external database support.
1655         (Qload_char_attribute_table_map_function): Likewise.
1656         (Fload_char_attribute_table_map_function): New function of
1657         UTF-2000 with external database support.
1658         (Fload_char_attribute_table): New function of UTF-2000.
1659         (Fmap_char_attribute): Call Fload_char_attribute_table if
1660         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1661         (syms_of_chartab): Add new symbol and function
1662         `load-char-attribute-table-map-function' in UTF-2000 with external
1663         database support; add new function `load-char-attribute-table' in
1664         UTF-2000.
1665
1666 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * chartab.h (load_char_attribute_maybe): New prototype for
1669         UTF-2000 with DATABASE support.
1670         (get_char_id_table): Use `load_char_attribute_maybe' if
1671         HAVE_DATABASE is defined.
1672
1673         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1674         with DATABASE support.
1675
1676 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677
1678         * chartab.c (Fput_char_attribute): Use S-expression as key of
1679         external database.
1680
1681         * chartab.h (get_char_id_table): Use S-expression as key of
1682         external database.
1683
1684 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685
1686         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1687         if an element is not loaded, load the corresponding attributes
1688         from an external database.
1689         (map_over_uint16_byte_table): Likewise.
1690         (map_over_byte_table): Likewise.
1691         (map_char_table): Modify for `map_over_uint8_byte_table',
1692         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1693         element is not loaded, load the corresponding attributes from an
1694         external database.
1695         (Fput_char_attribute): Change initial values to Qunloaded.
1696
1697         * chartab.h (get_char_id_table): If a character attribute is not
1698         loaded and the attribute value is not found in an external
1699         database, store Qunbound as the attribute value.
1700
1701 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1702
1703         * chartab.c (BT_UINT8_unloaded): New macro.
1704         (UINT8_VALUE_P): Accept Qunloaded.
1705         (UINT8_ENCODE): Likewise.
1706         (UINT8_DECODE): Likewise.
1707         (BT_UINT16_unloaded): New macro.
1708         (UINT16_VALUE_P): Accept Qunloaded.
1709         (UINT16_ENCODE): Likewise.
1710         (UINT16_DECODE): Likewise.
1711         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1712         BT_UINT16_unloaded.
1713         (mark_char_table): Mark `ct->name' in UTF-2000.
1714         (char_table_description): Add `name' in UTF-2000.
1715         (Fmake_char_table): Initialize `ct->name'.
1716         (Fcopy_char_table): Copy `ct->name'.
1717         (Fput_char_attribute): Store value into an external database if
1718         HAVE_DATABASE is defined.
1719
1720         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1721         UTF-2000.
1722         (CHAR_TABLE_NAME): New macro in UTF-2000.
1723         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1724         (get_char_id_table): Try to read an external database if Qunloaded
1725         is stored in a table.
1726
1727         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1728         Qunloaded.
1729
1730 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1731
1732         * database.h: Add EXFUN definitions for Fopen_database,
1733         Fput_database, Fget_database and Fclose_database.
1734
1735         * data.c (Qunloaded): New variable in UTF-2000.
1736
1737         * lisp.h (Qunloaded): New variable in UTF-2000.
1738
1739 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * mule-charset.c (put_char_ccs_code_point): Modify for
1742         `decoding_table_remove_char' and `decoding_table_put_char'.
1743         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1744
1745         * char-ucs.h (decoding_table_remove_char): Change arguments to
1746         hide decoding_table vector.
1747         (decoding_table_put_char): Likewise.
1748
1749 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * mule-charset.c (decoding_table_remove_char): Moved to
1752         char-ucs.h.
1753         (decoding_table_put_char): Likewise.
1754
1755         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1756         from mule-charset.c].
1757         (decoding_table_remove_char): New inline function [moved from
1758         mule-charset.c].
1759         (decoding_table_put_char): Likewise.
1760
1761 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1762
1763         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1764         extension.
1765
1766 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1767
1768         * mule-charset.c (decode_builtin_char): Support mother charsets.
1769
1770 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1771
1772         * mule-charset.c (Q94x94x60): New variable.
1773         (charset_code_point): Support conversion `94x94x60'.
1774         (Fmake_charset): Likewise.
1775         (syms_of_mule_charset): Add new symbol `94x94x60'.
1776
1777         * char-ucs.h (CONVERSION_94x94x60): New macro.
1778
1779 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1780
1781         * mule-charset.c (charset_code_point): Unify code about
1782         `code-offset'.
1783
1784 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1785
1786         * mule-charset.c (charset_code_point): Merge code about builtin
1787         characters into code about mother charsets; don't use
1788         `range_charset_code_point'.
1789         (range_charset_code_point): Deleted.
1790
1791 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * mule-charset.c (Qcode_offset): New variable.
1794         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1795         `max-code'; accept new property `code-offset'.
1796         (syms_of_mule_charset): Add new symbol `code-offset'.
1797
1798 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799
1800         * mule-charset.c (range_charset_code_point): Fixed.
1801
1802 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803
1804         * mule-charset.c (decode_builtin_char): Change semantics of
1805         code-offset of coded-charset.
1806         (charset_code_point): Likewise.
1807         (range_charset_code_point): Likewise.
1808         (complex_vars_of_mule_charset): Modify for the change.
1809
1810 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * mule-charset.c (Fencode_char): Reverse arguments.
1813
1814         * mule-charset.c (charset_code_point): Fixed.
1815
1816 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817
1818         * mule-charset.c (Vcharset_mojikyo): Deleted.
1819         (Vcharset_mojikyo_2022_1): Deleted.
1820         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1821         (Qmin_code): New variable in UTF-2000.
1822         (Qmax_code): Likewise.
1823         (Qmother): Likewise.
1824         (Qconversion): Likewise.
1825         (Q94x60): Likewise.
1826         (Qmojikyo): Deleted.
1827         (Qmojikyo_2022_1): Deleted.
1828         (Qmojikyo_pj_{1..22}): Deleted.
1829         (mark_charset): Mark `cs->mother'.
1830         (charset_description): Add description for `mother'.
1831         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1832         new arguments `mother' and `conversion'; use
1833         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1834         (charset_code_point): Moved from char-ucs.h; support `mother'
1835         charset feature.
1836         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1837         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1838         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1839         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1840         allow 2 as the value of `graphic' in UTF-2000; add new properties
1841         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1842         require `final' in UTF-2000; modify for `make_charset'.
1843         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1844         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1845         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1846         (Fencode_char): New function.
1847         (syms_of_mule_charset): Add new builtin function `encode-char' in
1848         UTF-2000; add new symbols `min-code', `max-code', `mother',
1849         `conversion' and `94x60'; delete symbols `mojikyo',
1850         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1851         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1852         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1853         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1854
1855         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1856         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1857
1858         * char-ucs.h (Vcharset_mojikyo): Deleted.
1859         (Vcharset_mojikyo_2022_1): Deleted.
1860         (LEADING_BYTE_MOJIKYO): Deleted.
1861         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1862         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1863         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1864         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1865         add new member `mother'; add new member `conversion'.
1866         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1867         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1868         (CHARSET_MOTHER): New macro.
1869         (CHARSET_CONVERSION): New macro.
1870         (CONVERSION_IDENTICAL): New macro.
1871         (CONVERSION_94x60): New macro.
1872         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1873         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1874         (XCHARSET_MOTHER): New macro.
1875         (XCHARSET_CONVERSION): New macro.
1876         (MIN_CHAR_MOJIKYO): Deleted.
1877         (MAX_CHAR_MOJIKYO): Deleted.
1878         (DECODE_MOJIKYO_2022): Deleted.
1879         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1880         (charset_code_point): Changed to non-inline function.
1881         (encode_char_1): Use `charset_code_point'.
1882         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1883
1884 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885
1886         * lread.c (read_compiled_function): Fix prototype.
1887         (read_vector): Likewise.
1888
1889 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * lrecord.h (struct lrecord_header): Delete `older'.
1892         (set_lheader_implementation): Delete code for `older'.
1893         (set_lheader_older_implementation): Deleted.
1894         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1895         (OLDER_RECORD_P): Deleted.
1896         (OLDER_RECORD_HEADER_P): Deleted.
1897         (alloc_older_lcrecord): Deleted.
1898         (alloc_older_lcrecord_type): Deleted.
1899
1900         * alloc.c (all_older_lcrecords): Deleted.
1901         (alloc_older_lcrecord): Deleted.
1902         (disksave_object_finalization_1): Delete code for older objects.
1903         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1904         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1905
1906 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1909         instead of `make_older_vector'.
1910         (put_char_ccs_code_point): Likewise.
1911         (mark_charset): Mark `cs->decoding_table'.
1912         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1913
1914         * lisp.h (make_older_vector): Deleted.
1915         (make_vector_newer): Deleted.
1916
1917         * config.h.in (HAVE_GGC): Deleted.
1918
1919         * alloc.c (make_older_vector): Deleted.
1920         (make_vector_newer_1): Deleted.
1921         (make_vector_newer): Deleted.
1922
1923 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1924
1925         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1926         (Qideograph_daikanwa_2): New variable.
1927         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1928         (complex_vars_of_mule_charset): Add new coded-charset
1929         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1930         `LEADING_BYTE_DAIKANWA'.
1931
1932         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1933         (LEADING_BYTE_DAIKANWA_1): New macro.
1934         (LEADING_BYTE_DAIKANWA_2): New macro.
1935         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1936
1937 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1938
1939         * mule-charset.c (complex_vars_of_mule_charset): Change
1940         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1941         the second revised version.
1942
1943 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1944
1945         * mule-charset.c (Vcharset_ucs_smp): New variable.
1946         (Vcharset_ucs_sip): New variable.
1947         (Qucs_smp): New variable.
1948         (Qucs_sip): New variable.
1949         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1950         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1951         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1952         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1953         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1954         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1955
1956         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1957         (LEADING_BYTE_UCS_SIP): New macro.
1958         (MIN_CHAR_SMP): New macro.
1959         (MAX_CHAR_SMP): New macro.
1960         (MIN_CHAR_SIP): New macro.
1961         (MAX_CHAR_SIP): New macro.
1962
1963 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1964
1965         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1966         utf-2000.
1967
1968 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1969
1970         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1971         value; don't store value into `encoding_table' of `Lisp_Charset'.
1972         (mark_charset): `encoding_table' was deleted.
1973         (charset_description): Likewise.
1974         (make_charset): Likewise.
1975         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1976         `put_char_ccs_code_point'.
1977
1978         * chartab.h (Fput_char_attribute): New EXFUN.
1979
1980         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1981         is unified with normal symbol space.
1982         (Fget_char_attribute): Likewise.
1983         (Fput_char_attribute): Likewise; behavior of
1984         `put_char_ccs_code_point' is changed.
1985
1986         * char-ucs.h: Include "elhash.h".
1987         (Vchar_attribute_hash_table): New external variable.
1988         (struct Lisp_Charset): Delete `encoding_table'.
1989         (CHARSET_ENCODING_TABLE): New implementation; refer
1990         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1991         `Lisp_Charset'.
1992
1993 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994
1995         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1996         (cs) == 0.
1997
1998 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2001         `chinese-big5'.
2002
2003 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004
2005         * chartab.c (uint8_byte_table_description): New constant.
2006         (uint8-byte-table): Use `uint8_byte_table_description'.
2007         (uint16_byte_table_description): New constant.
2008         (uint16-byte-table): Use `uint16_byte_table_description'.
2009
2010 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011
2012         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2013         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2014
2015 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2016
2017         * mule-charset.c (Vcharset_ucs_ks): New variable.
2018         (Qucs_ks): New variable.
2019         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2020         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2021
2022         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2023
2024 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2025
2026         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2027         (Fdecode_char): Likewise.
2028
2029         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2030         chartab.h.
2031         (Fdefine_char): Modify for Fdecode_char.
2032         (Ffind_char): Likewise.
2033
2034         * mule-charset.c (Fdecode_char): Add new optional argument
2035         `defined-only'.
2036         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2037
2038 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2041         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2042         (allocate_coding_system): Initialize initial-charsets of
2043         CODESYS_BIG5 in XEmacs UTF-2000.
2044         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2045         CODESYS_BIG5 in XEmacs UTF-2000.
2046         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2047         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2048
2049         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2050         variables.
2051         (Qideograph_hanziku_{1 .. 12}): Likewise.
2052         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2053         .. 12}'.
2054         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2055         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2056         `ideograph-hanziku-{1 .. 12}'.
2057
2058         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2059         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2060         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2061         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2062         (DECODE_DEFINED_CHAR): New inline function.
2063         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2064
2065 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * mule-charset.c (Vcharset_china3_jef): Renamed from
2068         `Vcharset_japanese_jef_china3'.
2069         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2070         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2071         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2072         (syms_of_mule_charset): Rename `china3-jef' from
2073         `japanese-jef-china3'.
2074         (complex_vars_of_mule_charset): Likewise; rename
2075         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2076
2077         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2078         `LEADING_BYTE_JEF_CHINA3'.
2079         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2080         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2081
2082 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * mule-charset.c (encode_builtin_char_1): Comment out special code
2085         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2086
2087         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2088         (MAX_CHAR_MOJIKYO_0): Comment out.
2089         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2090         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2091         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2092         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2093
2094 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2095
2096         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2097         (Qideograph_cbeta): New variable.
2098         (encode_builtin_char_1): Comment out special code for
2099         coded-charset `mojikyo' and `japanese-jef-china3'.
2100         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2101         (complex_vars_of_mule_charset): Add new coded-charset
2102         `ideograph-cbeta'.
2103
2104         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2105         (MIN_CHAR_CBETA): New macro.
2106         (MAX_CHAR_CBETA): New macro.
2107
2108 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2109
2110         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2111         (LEADING_BYTE_JEF_CHINA3): New macro.
2112         (MIN_CHAR_JEF_CHINA3): New macro.
2113         (MAX_CHAR_JEF_CHINA3): Likewise.
2114         (DECODE_CHAR): Fixed.
2115
2116 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117
2118         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2119         (Qjapanese_jef_china3): New variable.
2120         (encode_builtin_char_1): Support `japanese-jef-china3'.
2121         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2122         (complex_vars_of_mule_charset): Add new coded-charset
2123         `japanese-jef-china3'.
2124
2125 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2126
2127         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2128         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2129         94^4, 96^3, 96^4, 128^n and 256^n set.
2130         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2131         (map_char_table): Likewise.
2132
2133 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134
2135         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2136         UTF-2000.
2137
2138 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139
2140         * chartab.h (get_char_id_table): New inline function.
2141
2142         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2143         function.
2144
2145 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146
2147         * chartab.h (decode_char_table_range): New prototype in XEmacs
2148         UTF-2000.
2149         (put_char_id_table): New inline function in XEmacs UTF-2000.
2150
2151         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2152         function.
2153         (decode_char_table_range): Delete static declaration in XEmacs
2154         UTF-2000.
2155
2156 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2157
2158         * chartab.c (put_char_id_table): Use `put_char_table'.
2159
2160 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2161
2162         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2163         (map_over_uint16_byte_table): Likewise.
2164         (map_over_byte_table): Likewise.
2165         (map_char_table): Modify for `map_over_uint8_byte_table',
2166         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2167         UTF-2000.
2168
2169 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170
2171         * chartab.c (struct map_char_table_for_charset_arg): New
2172         structure.
2173         (map_char_table_for_charset_fun): New function.
2174         (map_char_table): Use `map_char_table' for encoding_table of
2175         `range->charset'.
2176
2177 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2178
2179         * chartab.c (map_char_table): Check a character is found in
2180         range->charset instead of non default value is defined in
2181         char-table when range is CHARTAB_RANGE_ROW.
2182
2183 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184
2185         * chartab.c (map_char_id_table): Deleted.
2186         (Fmap_char_attribute): Use `map_char_table' instead of
2187         `map_char_id_table'.
2188
2189 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190
2191         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2192         UTF-2000.
2193         (update_syntax_table): Deleted in XEmacs UTF-2000.
2194
2195         * syntax.c (find_defun_start): Use `syntax_table' instead of
2196         `mirror_syntax_table' in XEmacs UTF-2000.
2197         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2198         UTF-2000.
2199         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2200         XEmacs UTF-2000.
2201         (Fmatching_paren): Likewise.
2202         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2203         in XEmacs UTF-2000.
2204         (find_start_of_comment): Likewise.
2205         (find_end_of_comment): Likewise.
2206         (Fforward_comment): Likewise.
2207         (scan_lists): Likewise.
2208         (char_quoted): Likewise.
2209         (Fbackward_prefix_chars): Likewise.
2210         (scan_sexps_forward): Likewise.
2211         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2212         (update_syntax_table): Likewise.
2213
2214         * search.c (skip_chars): Use `syntax_table' instead of
2215         `mirror_syntax_table' in XEmacs UTF-2000.
2216         (wordify): Likewise.
2217         (Freplace_match): Likewise.
2218
2219         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2220         `mirror_syntax_table' in XEmacs UTF-2000.
2221         (WORDCHAR_P_UNSAFE): Likewise.
2222         (re_match_2_internal): Likewise.
2223
2224         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2225         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2226
2227         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2228         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2229
2230         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2231         XEmacs UTF-2000.
2232
2233         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2234         UTF-2000.
2235         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2236         (char_table_description): Delete `mirror_table' in XEmacs
2237         UTF-2000.
2238         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2239         UTF-2000.
2240         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2241         (Fcopy_char_table): Likewise.
2242         (put_char_table): Don't call `update_syntax_table' in XEmacs
2243         UTF-2000.
2244
2245         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2246         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2247         (casify_region_internal): Likewise.
2248
2249         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2250
2251         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2252         `mirror_syntax_table' in XEmacs UTF-2000.
2253
2254         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2255         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2256         (Fexpand_abbrev): Likewise.
2257
2258 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2259
2260         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2261
2262 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2263
2264         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2265         (map_over_uint16_byte_table): Likewise.
2266         (map_over_byte_table): Likewise.
2267         (get_char_id_table): Refer `cit->default_value'.
2268         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2269         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2270         of character-id ranges.
2271         (mark_char_table): Mark `ct->default_value'.
2272         (char_table_description): Add `default_value'.
2273         (fill_char_table): Use `default_value'.
2274         (decode_char_table_range): Decode `nil' as
2275         `CHARTAB_RANGE_DEFAULT'.
2276         (get_char_id_table): Refer `cit->default_value'.
2277         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2278         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2279         temporary hack; check value of char-table is bound or not.
2280         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2281
2282         * chartab.h (struct Lisp_Char_Table): Add new member
2283         `default_value' in XEmacs UTF-2000.
2284         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2285         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2286         UTF-2000.
2287
2288 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2289
2290         * chartab.h (Lisp_Char_ID_Table): Deleted.
2291
2292         * chartab.c (char_table_description): Fix typo.
2293         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2294         `Lisp_Char_ID_Table'.
2295
2296 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297
2298         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2299         `CHAR_ID_TABLE_P'.
2300
2301         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2302         `CHAR_ID_TABLE_P'.
2303
2304         * chartab.h (XCHAR_ID_TABLE): Deleted.
2305         (XSETCHAR_ID_TABLE): Deleted.
2306         (CHAR_ID_TABLE_P): Deleted.
2307
2308         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2309         `CHAR_ID_TABLE_P'.
2310         (Fget_composite_char): Likewise.
2311         (put_char_table): Likewise.
2312         (add_char_attribute_alist_mapper): Fixed.
2313         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2314         `CHAR_ID_TABLE_P'.
2315         (Fget_char_attribute): Likewise.
2316         (Fget_char_attribute): Likewise.
2317         (Fmap_char_attribute): Likewise.
2318
2319         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2320         `CHAR_ID_TABLE_P'.
2321         (encode_char_1): Likewise.
2322
2323 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2324
2325         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2326         `XCHAR_ID_TABLE'.
2327
2328         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2329         instead of `XCHAR_ID_TABLE'.
2330         (remove_char_ccs): Likewise.
2331
2332         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2333         `XCHAR_ID_TABLE'.
2334         (Fget_composite_char): Likewise.
2335         (Fchar_variants): Likewise.
2336         (put_char_table): Likewise.
2337         (add_char_attribute_alist_mapper): Likewise.
2338         (Fchar_attribute_alist): Likewise.
2339         (Fget_char_attribute): Likewise.
2340         (Fput_char_attribute): Likewise.
2341         (Fmap_char_attribute): Likewise.
2342         (Fmap_char_attribute): Likewise.
2343
2344         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2345         `XCHAR_ID_TABLE'.
2346         (encode_char_1): Likewise.
2347
2348 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2349
2350         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2351         `Lisp_Char_ID_Table'.
2352         (mark_char_id_table): Deleted.
2353         (print_char_id_table): Likewise.
2354         (char_id_table_equal): Likewise.
2355         (char_id_table_hash): Likewise.
2356         (char_id_table_description): Likewise.
2357         (char_id_table): Likewise.
2358         (make_char_id_table): Use `Fmake_char_table' and
2359         `fill_char_table'.
2360         (get_char_id_table): Use `Lisp_Char_Table' instead of
2361         `Lisp_Char_ID_Table'.
2362         (put_char_id_table): Likewise.
2363         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2364         `XCHAR_ID_TABLE'.
2365         (Fremove_char_attribute): Likewise.
2366         (syms_of_chartab): Don't define type `char-id-table'.
2367
2368         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2369         (char_id_table): Likewise.
2370         (GC_CHAR_ID_TABLE_P): Likewise.
2371         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2372         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2373         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2374         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2375         (get_char_id_table): Use `Lisp_Char_Table' instead of
2376         `Lisp_Char_ID_Table'.
2377         (put_char_id_table_0): Likewise.
2378         (put_char_id_table): Likewise.
2379
2380 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2381
2382         * chartab.h: Lisp_Byte_Table related codes are moved from
2383         chartab.h.
2384
2385         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2386
2387 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2388
2389         * chartab.h: Don't include "chartab.h".
2390         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2391         (Lisp_Char_ID_Table): Likewise.
2392         (char_id_table): Likewise.
2393         (XCHAR_ID_TABLE): Likewise.
2394         (XSETCHAR_ID_TABLE): Likewise.
2395         (CHAR_ID_TABLE_P): Likewise.
2396         (GC_CHAR_ID_TABLE_P): Likewise.
2397         (get_char_id_table): Likewise.
2398
2399         * char-ucs.h: Include "chartab.h".
2400         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2401         (Lisp_Char_ID_Table): Likewise.
2402         (char_id_table): Likewise.
2403         (XCHAR_ID_TABLE): Likewise.
2404         (XSETCHAR_ID_TABLE): Likewise.
2405         (CHAR_ID_TABLE_P): Likewise.
2406         (GC_CHAR_ID_TABLE_P): Likewise.
2407         (get_char_id_table): Likewise.
2408
2409 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2410
2411         * chartab.c (copy_uint8_byte_table): New function.
2412         (copy_uint16_byte_table): New function.
2413         (copy_byte_table): New function.
2414         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2415         characters to call.
2416         (map_over_uint16_byte_table): Likewise.
2417         (map_over_byte_table): Likewise.
2418         (get_byte_table): Move prototype to chartab.h.
2419         (put_byte_table): Likewise.
2420         (put_char_id_table_0): Moved to chartab.h.
2421         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2422         (char_table_entry_equal): Likewise.
2423         (char_table_entry_hash): Likewise.
2424         (char_table_entry_description): Likewise.
2425         (char_table_entry): Likewise.
2426         (make_char_table_entry): Likewise.
2427         (copy_char_table_entry): Likewise.
2428         (get_non_ascii_char_table_value): Likewise.
2429         (map_over_charset_ascii): Likewise.
2430         (map_over_charset_control_1): Likewise.
2431         (map_over_charset_row): Likewise.
2432         (map_over_other_charset): Likewise.
2433         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2434         (print_char_table): Likewise.
2435         (char_table_equal): Likewise.
2436         (char_table_hash): Likewise.
2437         (char_table_description): Likewise.
2438         (fill_char_table): Likewise.
2439         (Fcopy_char_table): Likewise.
2440         (get_char_table): Likewise.
2441         (Fget_range_char_table): Likewise.
2442         (put_char_table): Likewise.
2443         (map_char_table): Likewise.
2444         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2445         UTF-2000.
2446
2447 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2448
2449         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2450         `Vauto_fill_chars' in XEmacs UTF-2000.
2451
2452         * chartab.h (get_byte_table): New prototype [moved from
2453         chartab.c].
2454         (put_byte_table): Likewise [moved from chartab.c].
2455         (put_char_id_table_0): New inline function [moved from chartab.c].
2456         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2457         (Lisp_Char_Table_Entry): Likewise.
2458         (char_table_entry): Likewise.
2459         (XCHAR_TABLE_ENTRY): Likewise.
2460         (XSETCHAR_TABLE_ENTRY): Likewise.
2461         (CHAR_TABLE_ENTRYP): Likewise.
2462         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2463         (NUM_ASCII_CHARS): Likewise.
2464         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2465         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2466
2467 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2468
2469         * chartab.c (get_char_id_table): Change interface.
2470         (put_char_id_table_0): New function.
2471         (put_char_id_table): Change interface; new implementation.
2472         (Fget_composite_char): Modify for interface change of
2473         `get_char_id_table'.
2474         (Fchar_variants): Likewise.
2475         (add_char_attribute_alist_mapper): Likewise.
2476         (Fchar_attribute_alist): Likewise.
2477         (Fget_char_attribute): Likewise.
2478         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2479         as same as character as the first argument like `put-char-table';
2480         modify for interface change of `put_char_id_table'.
2481         (Fremove_char_attribute): Modify for interface change of
2482         `put_char_id_table'.
2483
2484 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485
2486         * text-coding.c: Sync up with XEmacs 21.2.41.
2487         (COMPOSE_ADD_CHAR): Modify for interface change of
2488         `get_char_id_table'.
2489
2490         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2491         change of `put_char_id_table'.
2492         (remove_char_ccs): Likewise.
2493
2494         * chartab.h (put_char_id_table): Change interface.
2495
2496         * char-ucs.h (get_char_id_table): Change interface.
2497         (charset_code_point): Modify for interface change of
2498         `get_char_id_table'.
2499         (encode_char_1): Likewise.
2500
2501 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2502
2503         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2504         argument `ccs'.
2505         (map_over_uint16_byte_table): Likewise.
2506         (map_over_byte_table): Likewise.
2507         (map_char_id_table): Add new argument `range' like
2508         `map_char_table'.
2509         (Fmap_char_attribute): Add new argument `range' like
2510         `Fmap_char_table'.
2511
2512 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2513
2514         * chartab.c (map_over_uint8_byte_table): Change interface of
2515         mapping function to use struct chartab_range instead of Emchar.
2516         (map_over_uint16_byte_table): Likewise.
2517         (map_over_byte_table): Likewise.
2518         (map_char_id_table): Likewise.
2519         (struct slow_map_char_id_table_arg): Deleted.
2520         (slow_map_char_id_table_fun): Deleted.
2521         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2522         function `slow_map_char_table_fun' instead of struct
2523         `slow_map_char_id_table_arg' and function
2524         `slow_map_char_id_table_fun'.
2525
2526 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2527
2528         * mule-charset.c: Move char-it-table related codes to chartab.c.
2529         (Vutf_2000_version): Moved to chartab.c.
2530         (Fdefine_char): Likewise.
2531         (Ffind_char): Likewise.
2532         (syms_of_mule_charset): Move types `uint8-byte-table',
2533         `uint16-byte-table', `byte-table' and `char-id-table' to
2534         chartab.c; move functions `char_attribute_list,
2535         `find_char_attribute_table, `char_attribute_alist,
2536         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2537         `map_char_attribute, `define_char, `find_char, `char_variants and
2538         `get_composite_char to chartab.c; move symbols `=>ucs',
2539         `->decomposition', `compat', `isolated', `initial', `medial',
2540         `final', `vertical', `noBreak', `fraction', `super', `sub',
2541         `circle', `square', `wide', `narrow', `small' and `font' to
2542         chartab.c.
2543         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2544         setting codes for `Vcharacter_composition_table' and
2545         `Vcharacter_variant_table' to chartab.c.
2546         (complex_vars_of_mule_charset): Move setting code for
2547         `Vchar_attribute_hash_table' to chartab.c.
2548
2549         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2550         (make_char_id_table): New prototype.
2551         (put_char_id_table): Likewise.
2552         (Fget_char_attribute): Likewise.
2553
2554         * chartab.c: Move char-id-table related code from mule-charset.c.
2555         (Vutf_2000_version): Moved from mule-charset.c.
2556
2557         * char-ucs.h (Qucs): New external variable.
2558         (put_char_ccs_code_point): New prototype.
2559         (remove_char_ccs): Likewise.
2560
2561 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2562
2563         * mule-charset.c (Vcharset_ucs_jis): New variable.
2564         (Qucs_jis): Likewise.
2565         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2566         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2567
2568         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2569
2570 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2571
2572         * mule-charset.c (map_over_uint8_byte_table): New function.
2573         (map_over_uint16_byte_table): Likewise.
2574         (map_over_byte_table): Likewise.
2575         (map_char_id_table): Likewise.
2576         (slow_map_char_id_table_fun): Likewise.
2577         (Fmap_char_attribute): Likewise.
2578         (syms_of_mule_charset): Add new function `map-char-attribute'.
2579
2580 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2581
2582         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2583         (syms_of_mule_charset): Add new function `find-char'.
2584
2585 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2586
2587         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2588         XEmacs UTF-2000.
2589         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2590         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2591         XEmacs UTF-2000.
2592         (complex_vars_of_mule_charset): Add new coded-charset
2593         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2594         `ideograph-gt-pj-*'.
2595
2596         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2597
2598 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599
2600         * mule-charset.c (encode_builtin_char_1): Purge codes about
2601         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2602         {MIN|MAX}_CHAR_HEBREW.
2603         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2604         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2605
2606         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2607         (MAX_CHAR_GREEK): Purged.
2608         (MIN_CHAR_CYRILLIC): Purged.
2609         (MAX_CHAR_CYRILLIC): Purged.
2610         (MIN_CHAR_HEBREW): Commented out.
2611         (MAX_CHAR_HEBREW): Likewise.
2612
2613 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * mule-charset.c (Qto_ucs): New variable.
2616         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2617         (Fdefine_char): Likewise.
2618         (syms_of_mule_charset): Add new symbol `=>ucs'.
2619
2620 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * mule-charset.c (Fdecode_char): Fixed.
2623
2624 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625
2626         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2627         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2628         "tcvn5712-1".
2629
2630 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2631
2632         * mule-charset.c (Vcharset_ucs_big5): New variable.
2633         (Qucs_big5): Likewise.
2634         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2635         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2636
2637         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2638
2639 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * mule-charset.c (decode_builtin_char): Check Big5 code range
2642         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2643
2644 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2645
2646         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2647         (Qchinese_gb12345): Likewise.
2648         (Fdecode_builtin_char): Fixed.
2649         (syms_of_mule_charset): Add `chinese-gb12345'.
2650         (complex_vars_of_mule_charset): Add coded-charset
2651         `chinese-gb12345'.
2652
2653         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2654         (LEADING_BYTE_CHINESE_GB12345): New macro.
2655
2656 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2657
2658         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2659         and `latin-viscii-upper' for `latin-viscii'.
2660
2661 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2662
2663         * mule-charset.c (Fdecode_builtin_char): Comment out
2664         regularization code for ISO-IR GR representation.
2665
2666 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2667
2668         * mule-charset.c (decode_builtin_char): New function; renamed from
2669         `make_builtin_char'; return -1 instead of signal.
2670         (Fdecode_builtin_char): Use `decode_builtin_char'.
2671
2672         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2673         `make_builtin_char'.
2674         (DECODE_CHAR): Use `decode_builtin_char' instead of
2675         `make_builtin_char'; use mapping table of `chinese-big5' for
2676         `chinese-big5-{1,2}'.
2677
2678 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2679
2680         * text-coding.c (char_encode_big5): New function.
2681         (char_finish_big5): Likewise.
2682         (reset_encoding_stream): Use `char_encode_big5' and
2683         `char_finish_big5' for CODESYS_BIG5.
2684         (mule_encode): Don't use `encode_coding_big5'.
2685         (encode_coding_big5): Deleted.
2686
2687 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2688
2689         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2690         0x81- in XEmacs UTF-2000.
2691         (detect_coding_big5): Likewise.
2692
2693 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2694
2695         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2696         generate character-id if the CCS property does not have
2697         corresponding predefined character.
2698         (make_builtin_char): Return -1 if corresponding predefined
2699         character is not found.
2700         (Fdecode_char): Return nil if corresponding character is not
2701         found.
2702         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2703         don't map to builtin ucs space.
2704
2705 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2708         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2709
2710 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2711
2712         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2713         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2714         (Qideograph_gt): Likewise.
2715         (Qideograph_gt_pj_{1..11}): Likewise.
2716         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2717         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2718         `ideograph-gt-pj-11'.
2719         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2720         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2721         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2722
2723         * char-ucs.h (LEADING_BYTE_GT): New macro.
2724         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2725         (MIN_CHAR_GT): Likewise.
2726         (MAX_CHAR_GT): Likewise.
2727
2728 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2731         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2732
2733         * doprnt.c (unsigned_int_converters): Add `c'.
2734         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2735
2736         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2737         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2738         `MIN_CHAR_MOJIKYO'.
2739         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2740         (MAX_CHAR_MOJIKYO_0): New macro.
2741         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2742
2743 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * mule-charset.c (Fdefine_char): Delete cemented out code.
2746         (encode_builtin_char_1): Modify for new allocation of builtin
2747         Mojikyo characters.
2748
2749         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2750
2751 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2752
2753         * mule-charset.c (Vcharset_ucs_cns): New variable.
2754         (Qucs_cns): New variable.
2755         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2756         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2757
2758 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2759
2760         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2761
2762 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2763
2764         * search.c (search_buffer): Make `charset_base_code' as
2765         character-id >> 6 to eliminate the corresponding last byte in
2766         UTF-8 representation [I'm not sure it is right thing].
2767         (boyer_moore): Likewise.
2768
2769 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2770
2771         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2772         representation in MULE.
2773
2774 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2775
2776         * text-coding.c (Fmake_coding_system): Use
2777         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2778         `EXTERNAL_PROPERTY_LIST_LOOP'.
2779
2780 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2781
2782         * text-coding.c (decode_output_utf8_partial_char): New function.
2783         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2784
2785 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2786
2787         * text-coding.c (decode_coding_utf8): Output original byte
2788         sequence if it is broken; change order of conditions.
2789
2790         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2791         of conditions.
2792
2793         * mb-multibyte.h (BYTE_ASCII_P):
2794         Use bit ops for char-signedness safety.
2795         (BYTE_C0_P): Use bit ops for char-signedness safety.
2796         (BYTE_C1_P): Use bit ops for char-signedness safety.
2797
2798         * character.h: (XCHAR_OR_CHAR_INT):
2799         Always use inline function.
2800         Remove redundant type checking assert() - XINT will abort quite
2801         nicely.
2802
2803 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2804
2805         * text-coding.c: (Fencode_shift_jis_char):
2806         (Fencode_big5_char):
2807         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2808         Replace 0 with '\0' when working with bytes.
2809         Replace initial "(" with "\(" in docstrings.
2810
2811         (Fmake_coding_system):
2812         When type is ccl and value is vector, register it with a proper
2813         symbol.  And checks whether the given ccl program is valid.
2814         (mule_decode): When calling ccl_driver, if src indicates
2815         NULL pointer, set an empty string instead.
2816         (mule_encode): Likewise.
2817
2818         (detect_eol_type):
2819         (detect_coding_sjis):
2820         (decode_coding_sjis):
2821         (detect_coding_big5):
2822         (decode_coding_big5):
2823         (detect_coding_ucs4):
2824         (decode_coding_ucs4):
2825         (detect_coding_utf8):
2826         (decode_coding_utf8):
2827         (detect_coding_iso2022):
2828         (decode_coding_iso2022):
2829         (decode_coding_no_conversion):
2830         (mule_decode):
2831         Make all detecting and decoding functions take an Extbyte * arg.
2832         (text_encode_generic):
2833         (encode_coding_big5):
2834         (encode_coding_no_conversion):
2835         (mule_encode):
2836         Make all encoding functions take a Bufbyte * arg.
2837         Use size_t instead of unsigned int for memory sizes.
2838         Only cast to unsigned char whenever dereferencing Extbyte *.
2839
2840         (struct lrecord_description fcd_description_1): Use countof.
2841         (complex_vars_of_file_coding):
2842         Use countof instead of sizeof.
2843         Use CHECK_NATNUM instead of CHECK_INT.
2844
2845 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2846
2847         * mule-charset.c (Fget_char_attribute): Add new optional argument
2848         `default-value'.
2849         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2850         (remove_char_ccs): Likewise.
2851
2852 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2853
2854         * text-coding.c (char_encode_shift_jis): New implementation in
2855         UTF-2000.
2856         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2857         ...)'.
2858
2859         * mule-charset.c (Vcharset_chinese_big5): New variable in
2860         UTF-2000.
2861         (Qchinese_big5): New variable in UTF-2000.
2862         (BIG5_SAME_ROW): New macro in UTF-2000.
2863         (make_builtin_char): Use builtin characters of
2864         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2865         characters of `Vcharset_chinese_big5'.
2866         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2867         (complex_vars_of_mule_charset): Add new coded-charset
2868         `chinese-big5' in UTF-2000.
2869
2870         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2871         (Vcharset_chinese_big5): New external variable declaration.
2872         (Vcharset_japanese_jisx0208_1990): Likewise.
2873
2874 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2875
2876         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2877         function.
2878         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2879
2880 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2881
2882         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2883         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2884         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2885         `mojikyo-pj-*'.
2886
2887 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2888
2889         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2890
2891 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2892
2893         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2894         to 0.17.
2895
2896 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2897
2898         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2899         for `CHARSET_BY_ATTRIBUTES'.
2900         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2901         `CHARSET_BY_ATTRIBUTES'.
2902
2903         * text-coding.c (struct decoding_stream): Rename member `CH' to
2904         `CPOS'.
2905         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2906         (decode_coding_sjis): Likewise.
2907         (decode_coding_big5): Likewise.
2908         (decode_coding_ucs4): Likewise.
2909         (decode_coding_utf8): Likewise.
2910         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2911         `CHARSET_BY_ATTRIBUTES'.
2912         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2913         `str->counter'; decode 3, 4 bytes sets.
2914         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2915         sets.
2916         (decode_coding_no_conversion): Use `str->cpos' instead of
2917         `str->ch'.
2918
2919         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2920         (Qmojikyo_2022_1): New variable.
2921         (make_charset): Don't use `CHARSET_TYPE_*'.
2922         (range_charset_code_point): Support coded-charset
2923         `mojikyo-2022-1'.
2924         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2925         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2926         `CHARSET_BY_ATTRIBUTES'.
2927         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2928         `CHARSET_BY_ATTRIBUTES'.
2929         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2930         (complex_vars_of_mule_charset): Add new coded-charset
2931         `mojikyo-2022-1'.
2932
2933         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2934         interface; changed to inline function.
2935
2936         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2937         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2938         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2939         (CHARSET_TYPE_94): Deleted.
2940         (CHARSET_TYPE_94X94): Deleted.
2941         (CHARSET_TYPE_96): Deleted.
2942         (CHARSET_TYPE_96X96): Deleted.
2943         (CHARSET_TYPE_128): Deleted.
2944         (CHARSET_TYPE_128X128): Deleted.
2945         (CHARSET_TYPE_256): Deleted.
2946         (CHARSET_TYPE_256X256): Deleted.
2947         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2948         to inline function.
2949         (DECODE_MOJIKYO_2022): New inline function.
2950         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2951         `Vcharset_mojikyo_2022_1'.
2952
2953 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2954
2955         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2956         instead of `EQ'.
2957         (put_byte_table): Likewise.
2958         (char_id_table_equal): Use `get_byte_table' [new implementation].
2959
2960 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2961
2962         * mule-charset.c: Include <limits.h> in UTF-2000.
2963         (BT_UINT8_MIN): New macro in UTF-2000.
2964         (BT_UINT8_MAX): New macro in UTF-2000.
2965         (BT_UINT8_t): New macro in UTF-2000.
2966         (BT_UINT8_nil): New macro in UTF-2000.
2967         (BT_UINT8_unbound): New macro in UTF-2000.
2968         (INT_UINT8_P): New inline function in UTF-2000.
2969         (UINT8_VALUE_P): New inline function in UTF-2000.
2970         (UINT8_ENCODE): New inline function in UTF-2000.
2971         (UINT8_DECODE): New inline function in UTF-2000.
2972         (mark_uint8_byte_table): New function in UTF-2000.
2973         (print_uint8_byte_table): New function in UTF-2000.
2974         (uint8_byte_table_equal): New function in UTF-2000.
2975         (uint8_byte_table_hash): New function in UTF-2000.
2976         (make_uint8_byte_table): New function in UTF-2000.
2977         (uint8_byte_table_same_value_p): New function in UTF-2000.
2978         (BT_UINT16_MIN): New macro in UTF-2000.
2979         (BT_UINT16_MAX): New macro in UTF-2000.
2980         (BT_UINT16_t): New macro in UTF-2000.
2981         (BT_UINT16_nil): New macro in UTF-2000.
2982         (BT_UINT16_unbound): New macro in UTF-2000.
2983         (INT_UINT16_P): New inline function in UTF-2000.
2984         (UINT16_VALUE_P): New inline function in UTF-2000.
2985         (UINT16_ENCODE): New inline function in UTF-2000.
2986         (UINT16_DECODE): New inline function in UTF-2000.
2987         (UINT8_TO_UINT16): New inline function in UTF-2000.
2988         (mark_uint16_byte_table): New function in UTF-2000.
2989         (print_uint16_byte_table): New function in UTF-2000.
2990         (uint16_byte_table_equal): New function in UTF-2000.
2991         (uint16_byte_table_hash): New function in UTF-2000.
2992         (make_uint16_byte_table): New function in UTF-2000.
2993         (uint16_byte_table_same_value_p): New function in UTF-2000.
2994         (print_byte_table): New function in UTF-2000.
2995         (byte-table): Use `print_byte_table' as printer.
2996         (make_byte_table): Delete second argument `older'.
2997         (byte_table_same_value_p): New function in UTF-2000.
2998         (copy_byte_table): Deleted.
2999         (get_byte_table): New function in UTF-2000.
3000         (put_byte_table): New function in UTF-2000.
3001         (print_char_id_table): New function in UTF-2000.
3002         (char-id-table): Use `print_char_id_table' as printer.
3003         (make_char_id_table): Delete second argument `older'.
3004         (get_char_id_table): Use `get_byte_table [new implementation].
3005         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3006         implementation].
3007         (Ffind_char_attribute_table): New function in UTF-2000.
3008         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3009         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3010         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3011         (syms_of_mule_charset): Add new function
3012         `find-char-attribute-table' in UTF-2000.
3013
3014         * lrecord.h (enum lrecord_type): Add
3015         `lrecord_type_uint16_byte_table' and
3016         `lrecord_type_uint8_byte_table'.
3017
3018         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3019         (Lisp_Uint8_Byte_Table): New type.
3020         (XUINT8_BYTE_TABLE): New macro.
3021         (XSETUINT8_BYTE_TABLE): New macro.
3022         (UINT8_BYTE_TABLE_P): New macro.
3023         (GC_UINT8_BYTE_TABLE_P): New macro.
3024         (struct Lisp_Uint16_Byte_Table): New structure.
3025         (Lisp_Uint16_Byte_Table): New type.
3026         (XUINT16_BYTE_TABLE): New macro.
3027         (XSETUINT16_BYTE_TABLE): New macro.
3028         (UINT16_BYTE_TABLE_P): New macro.
3029         (GC_UINT16_BYTE_TABLE_P): New macro.
3030
3031 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3032
3033         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3034         (Vcharacter_ideographic_strokes_table): Deleted.
3035         (Vcharacter_total_strokes_table): Deleted.
3036         (Vcharacter_morohashi_daikanwa_table): Deleted.
3037         (Vcharacter_decomposition_table): Deleted.
3038         (Qname): Deleted because it is duplicated.
3039         (Qideographic_radical): Deleted.
3040         (Qideographic_strokes): Deleted.
3041         (Qtotal_strokes): Deleted.
3042         (Qmorohashi_daikanwa): Deleted.
3043         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3044         `ideographic-radical', `ideographic-strokes', `total-strokes',
3045         `morohashi-daikanwa' and `->decomposition'.
3046         (Fget_char_attribute): Likewise.
3047         (Fput_char_attribute): Likewise; use `make-vector' instead of
3048         `make_older_vector' for `->decomposition' value.
3049         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3050         `ideograph-daikanwa'.
3051         (syms_of_mule_charset): Delete builtin symbols `name',
3052         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3053         `morohashi-daikanwa'.
3054         (vars_of_mule_charset): Don't setup
3055         `Vcharacter_ideographic_radical_table',
3056         `Vcharacter_ideographic_strokes_table',
3057         `Vcharacter_total_strokes_table',
3058         `Vcharacter_morohashi_daikanwa_table' and
3059         `Vcharacter_decomposition_table'.
3060
3061 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3062
3063         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3064         `make_older_vector', `make_vector_newer_1' and
3065         `make_vector_newer'.
3066
3067         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3068         `make_older_vector' and `make_vector_newer'.
3069
3070         * config.h.in (HAVE_GGC): New macro.
3071
3072 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3073
3074         * mule-charset.c (struct char_attribute_list_closure): New
3075         structure in UTF-2000.
3076         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3077         (Fchar_attribute_list): Likewise.
3078         (Fset_charset_mapping_table): Use `make_vector_newer'.
3079         (Fdecode_builtin_char): New function in UTF-2000.
3080         (syms_of_mule_charset): Add new function `char-attribute-list' and
3081         `decode-builtin-char' in UTF-2000.
3082
3083         * lisp.h (make_vector_newer): New prototype.
3084
3085         * alloc.c (make_vector_newer_1): New function.
3086         (make_vector_newer): New function.
3087
3088 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3089
3090         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3091         50100)'.
3092
3093 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3094
3095         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3096         (Vcharacter_attribute_table): Deleted.
3097         (Vcharacter_name_table): Deleted.
3098         (put_char_attribute): Deleted.
3099         (remove_char_attribute): Deleted.
3100         (struct char_attribute_alist_closure): New structure.
3101         (add_char_attribute_alist_mapper): New function.
3102         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3103         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3104         (Fget_char_attribute): Likewise.
3105         (Fput_char_attribute): Likewise.
3106         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3107         of `remove_char_attribute'.
3108         (Fdefine_char): Return character.
3109         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3110         and `Vcharacter_name_table'.
3111         (complex_vars_of_mule_charset): Likewise
3112         `Vchar_attribute_hash_table'.
3113
3114 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * character.h (CHARC_CHARSET): New macro.
3117         (CHARC_CHARSET_ID): New macro.
3118         (CHARC_CODE_POINT): New macro.
3119         (CHARC_COLUMNS): New macro.
3120         (CHARC_TO_CHAR): New inline function.
3121         (CHARC_EQ): New inline function.
3122         (CHARC_ASCII_EQ): New inline function.
3123         (CHARC_IS_SPACE): New inline function.
3124         (ASCII_TO_CHARC): New inline function.
3125
3126         * char-ucs.h (encode_char_2): Deleted.
3127         (ENCODE_CHAR): Use `encode_char_1' again.
3128         (breakup_char_1): Likewise.
3129         (CHAR_TO_CHARC): New inline function.
3130
3131         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3132
3133 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3134
3135         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3136         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3137         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3138         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3139         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3140         `CHARC_IS_SPACE'.
3141         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3142
3143         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3144         `CHARC_CODE_POINT'.
3145         (x_output_display_block): Use `CHARC_CHARSET' and
3146         `CHARC_ASCII_EQ'.
3147
3148         * redisplay-tty.c (tty_output_display_block): Use
3149         `CHARC_ASCII_EQ'.
3150         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3151
3152         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3153
3154         * insdel.c (find_charsets_in_charc_string): Use
3155         `CHARC_CHARSET_ID'.
3156         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3157         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3158         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3159         (convert_charc_string_into_malloced_string): Likewise.
3160
3161 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3162
3163         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3164         instead of <Emchar_dynarr *> for buf; use
3165         `convert_bufbyte_string_into_charc_dynarr' instead of
3166         `convert_bufbyte_string_into_emchar_dynarr'; use
3167         `find_charsets_in_charc_string' instead of
3168         `find_charsets_in_emchar_string'.
3169
3170         * redisplay.h:
3171         - Include "character.h".
3172         (struct rune): New member `cglyph'; delete member `chr'.
3173
3174         * redisplay.c (redisplay_text_width_charc_string): New function;
3175         delete `redisplay_text_width_emchar_string'.
3176         (rtw_charc_dynarr): New variable; renamed from
3177         `rtw_emchar_dynarr'.
3178         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3179         `rtw_emchar_dynarr'; use
3180         `convert_bufbyte_string_into_charc_dynarr' instead of
3181         `convert_bufbyte_string_into_emchar_dynarr'; use
3182         `redisplay_text_width_charc_string' instead of
3183         `redisplay_text_width_emchar_string'.
3184         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3185         instead of `rtw_emchar_dynarr'; use
3186         `convert_bufbyte_string_into_charc_dynarr' instead of
3187         `convert_bufbyte_string_into_emchar_dynarr'.
3188         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3189         `redisplay_text_width_charc_string' instead of
3190         `redisplay_text_width_emchar_string'.
3191         (create_text_block): Modify for <struct rune> change.
3192         (generate_formatted_string_db): Likewise.
3193         (create_string_text_block): Likewise.
3194         (pixel_to_glyph_translation): Likewise.
3195
3196         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3197         instead of <const Emchar *>.
3198         (x_text_width): Likewise.
3199         (x_output_display_block): Use <Charc_dynarr *> instead
3200         <Emchar_dynarr *>; modify for <structure rune> change.
3201         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3202         *>.
3203
3204         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3205         <const Emchar *>; use `charc_string_displayed_columns' instead of
3206         `emchar_string_displayed_columns'.
3207         (tty_output_display_block): Use <Charc_dynarr *> instead of
3208         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3209         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3210         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3211         `tty_output_emchar_dynarr_dynarr'.
3212         (tty_output_charc_dynarr): New function; delete
3213         `tty_output_charc_dynarr'.
3214
3215         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3216         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3217         <Emchar_dynarr *> for buf; use
3218         `convert_bufbyte_string_into_charc_dynarr' instead of
3219         `convert_bufbyte_string_into_emchar_dynarr'.
3220
3221         * frame.c (title_string_charc_dynarr): New variable; renamed from
3222         `title_string_emchar_dynarr'.
3223         (generate_title_string): Use `title_string_charc_dynarr' instead
3224         of `title_string_emchar_dynarr'; use
3225         `convert_charc_string_into_malloced_string' instead of
3226         `convert_emchar_string_into_malloced_string'.
3227         (init_frame): Use `title_string_charc_dynarr' instead of
3228         `title_string_emchar_dynarr'.
3229
3230         * console.h:
3231         - Include "character.h".
3232         (struct console_methods): Use <const Charc *> instead of <const
3233         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3234         <Emchar_dynarr *> in output_string_method.
3235
3236         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3237         <Emchar_dynarr *>.
3238
3239         * console-stream.c (stream_text_width): Use <const Charc *>
3240         instead of <const Emchar *>.
3241
3242         * character.h (Charc_dynarr): New type.
3243
3244         * char-ucs.h (structure Charc): New structure; define new type
3245         `Charc'.
3246
3247         * char-lb.h (DECODE_CHAR): New inline function.
3248         (encode_char_1): New inline function.
3249         (ENCODE_CHAR): New macro.
3250         (structure Charc): New structure; define new type `Charc'.
3251
3252         * char-1byte.h (Vcharset_control_1): New macro.
3253         (Vcharset_latin_iso8859_1): New macro.
3254         (DECODE_CHAR): New inline function.
3255         (encode_char_1): New inline function.
3256         (ENCODE_CHAR): New macro.
3257         (structure Charc): New structure; define new type `Charc'.
3258
3259         * insdel.c (find_charsets_in_charc_string): New function; delete
3260         `find_charsets_in_emchar_string'.
3261         (charc_string_displayed_columns): New function; delete
3262         `emchar_string_displayed_columns'.
3263         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3264         `convert_bufbyte_string_into_emchar_dynarr'.
3265         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3266         `convert_charc_string_into_bufbyte_dynarr'.
3267         (convert_charc_string_into_malloced_string): New function; delete
3268         `convert_charc_string_into_malloced_string'.
3269
3270         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3271         `find_charsets_in_emchar_string'.
3272         (charc_string_displayed_columns): New prototype; delete
3273         `emchar_string_displayed_columns'.
3274         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3275         `convert_charc_string_into_bufbyte_dynarr'.
3276         (convert_charc_string_into_malloced_string): New prototype; delete
3277         `convert_charc_string_into_malloced_string'.
3278
3279 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3280
3281         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3282
3283 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3284
3285         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3286
3287         * char-ucs.h: Use <short> for <Charset_ID>.
3288
3289         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3290         <Charset_ID>.
3291
3292 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3293
3294         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3295         to 0.16.
3296
3297 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3298
3299         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3300         variable.
3301         (Qmorohashi_daikanwa): New variable.
3302         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3303         for `morohashi-daikanwa' attribute.
3304         (Fget_char_attribute): Likewise.
3305         (Fput_char_attribute): Likewise.
3306         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3307         has the same value of `ideograph-daikanwa'.
3308         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3309         (vars_of_mule_charset): Setup
3310         `Vcharacter_morohashi_daikanwa_table'.
3311
3312 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3313
3314         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3315         attributes.
3316         (add_charset_to_list_mapper): Add `key' instead of
3317         `XCHARSET_NAME (value)' to return aliases.
3318
3319 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3320
3321         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3322         variable.
3323         (Vcharacter_ideographic_strokes_table): New variable.
3324         (Qideographic_radical): New variable.
3325         (Qideographic_strokes): New variable.
3326         (Fchar_attribute_alist): Use
3327         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3328         attribute; use `Vcharacter_ideographic_strokes_table' for
3329         `ideographic-strokes' attribute.
3330         (Fget_char_attribute): Likewise.
3331         (Fput_char_attribute): Likewise.
3332         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3333         `ideographic-strokes'.
3334         (vars_of_mule_charset): Setup
3335         `Vcharacter_ideographic_radical_table' and
3336         `Vcharacter_ideographic_strokes_table'.
3337
3338 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3339
3340         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3341         (Qtotal_strokes): New variable.
3342         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3343         `total-strokes' attribute.
3344         (Fget_char_attribute): Likewise.
3345         (Fput_char_attribute): Likewise.
3346         (syms_of_mule_charset): Add new symbol `total-strokes'.
3347         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3348
3349 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3350
3351         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3352         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3353         are found.
3354         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3355         `->decomposition' attribute.
3356         (Fput_char_attribute): Likewise.
3357         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3358
3359 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3360
3361         * mule-charset.c (decoding_table_check_elements): New function.
3362         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3363
3364 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3365
3366         * mule-charset.c (Fset_charset_mapping_table): Use
3367         `put_char_ccs_code_point'.
3368
3369 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3370
3371         * mule-charset.c (decoding_table_put_char): New inline function.
3372         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3373
3374 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3375
3376         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3377         (XCHARSET_BYTE_SIZE): New macro.
3378         (decoding_table_remove_char): New inline function.
3379         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3380         `decoding_table_remove_char'.
3381         (remove_char_ccs): Use `decoding_table_remove_char'.
3382         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3383
3384 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3385
3386         * mule-charset.c (Vcharacter_name_table): New variable.
3387         (Qname): New variable.
3388         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3389         attribute.
3390         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3391         `Vcharacter_name_table' for `name' attribute.
3392         (Fremove_char_attribute): Use function `remove_char_ccs'.
3393         (put_char_ccs_code_point): New function.
3394         (remove_char_ccs): New function.
3395         (syms_of_mule_charset): Add new symbol `name'.
3396         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3397
3398 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3399
3400         * mule-charset.c (make_byte_table): Add new argument `older'.
3401         (make_char_id_table): Likewise.
3402         (copy_char_id_table): Comment out because it is not used.
3403         (put_char_id_table): Modify for `make_byte_table'.
3404         (Fput_char_attribute): Make encoding_table as older object;
3405         inherit older bit of `Vcharacter_composition_table'.
3406         (mark_charset): Don't mark `cs->encoding_table'.
3407         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3408         normal object; make `Vcharacter_composition_table' as an older
3409         object; delete staticpro for `Vcharacter_composition_table'; make
3410         `Vcharacter_variant_table' as a normal object.
3411
3412         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3413         (mark_object): Don't check older object in UTF-2000.
3414
3415         * lrecord.h (struct lrecord_header): Add new member `older' in
3416         UTF-2000.
3417         (set_lheader_implementation): Setup `SLI_header->older' in
3418         UTF-2000.
3419         (set_lheader_older_implementation): New macro in UTF-2000.
3420         (OLDER_RECORD_P): New macro in UTF-2000.
3421         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3422         (alloc_older_lcrecord): New prototype in UTF-2000.
3423         (alloc_older_lcrecord_type): New macro in UTF-2000.
3424
3425 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426
3427         * mule-charset.c (byte_table_description): Use
3428         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3429         (char_id_table_description): Delete bogus `, 1'.
3430         (Fget_char_attribute): Refer encoding_table of each coded-charset
3431         to get value of coded-charset attribute of a character.
3432         (Fput_char_attribute): Use `make_older_vector' instead of
3433         `make_vector'; use encoding_table of each coded-charset to store
3434         value of coded-charset attribute of a character.
3435         (Fremove_char_attribute): Use encoding_table of each coded-charset
3436         to store value of coded-charset attribute of a character.
3437         (mark_charset): Mark `cs->encoding_table'; don't mark
3438         `cs->decoding_table'.
3439         (charset_description): Add description of new member
3440         `encoding_table'.
3441         (make_charset): Initialize `encoding_table'.
3442
3443         * char-ucs.h (struct Lisp_Charset): Add new member
3444         `encoding_table'.
3445         (CHARSET_ENCODING_TABLE): New macro.
3446         (XCHARSET_ENCODING_TABLE): New macro.
3447         (charset_code_point): New implementation.
3448         (encode_char_1): Likewise.
3449
3450         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3451         (disksave_object_finalization_1): Call finalizers of
3452         `all_older_lcrecords' in UTF-2000.
3453         (make_older_vector): New function in UTF-2000.
3454         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3455         UTF-2000.
3456
3457         * lisp.h (make_older_vector): New prototype in UTF-2000.
3458
3459 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3460
3461         * lrecord.h (enum lrecord_type): Rename
3462         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3463
3464         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3465         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3466         `get_char_code_table'.
3467
3468         * mule-charset.c (mark_char_id_table): Renamed from
3469         `mark_char_code_table'.
3470         (char_id_table_equal): Renamed from `char_code_table_equal'.
3471         (char_id_table_hash): Renamed from `char_code_table_hash'.
3472         (make_char_id_table): Renamed from `make_char_code_table'.
3473         (copy_char_id_table): Renamed from `copy_char_code_table'.
3474         (get_char_id_table): Renamed from `get_char_code_table'.
3475         (put_char_id_table): Renamed from `put_char_code_table'.
3476         (to_char_id): Renamed from `to_char_code'.
3477
3478         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3479         `Lisp_Char_Code_Table'.
3480         (char_id_table): Renamed from `char_code_table'.
3481         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3482         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3483         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3484         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3485         (get_char_id_table): Renamed from `get_char_code_table'.
3486
3487 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3488
3489         * lrecord.h (enum lrecord_type): Rename
3490         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3491
3492         * mule-charset.c (mark_byte_table): Renamed from
3493         `mark_char_byte_table'.
3494         (byte_table_equal): Renamed from `char_byte_table_equal'.
3495         (byte_table_hash): Renamed from `byte_table_hash'.
3496         (make_byte_table): Renamed from `make_byte_table'.
3497         (copy_byte_table): Renamed from `copy_char_byte_table'.
3498
3499         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3500         `Lisp_Char_Byte_Table'.
3501         (byte_table): Renamed from `char_byte_table'.
3502         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3503         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3504         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3505         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3506
3507 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3508
3509         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3510         (dfc_convert_to_internal_format): Likewise.
3511         
3512         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3513         * text-coding.c (Fcoding_system_alias_p): New function.
3514         * text-coding.c (Fcoding_system_aliasee): New function.
3515         * text-coding.c (append_suffix_to_symbol): New function.
3516         * text-coding.c (dangling_coding_system_alias_p): New function.
3517         * text-coding.c (Ffind_coding_system):
3518         * text-coding.c (Fcopy_coding_system):
3519         * text-coding.c (encode_coding_no_conversion):
3520         * text-coding.c (syms_of_file_coding):
3521         * text-coding.c (vars_of_file_coding):
3522         Rewrite coding system alias code.
3523         Allow nested aliases, like symbolic links.
3524         Allow redefinition of coding system aliases.
3525         Prevent existence of dangling coding system aliases.
3526         Eliminate convert_to_external_format.
3527         Eliminate convert_to_internal_format.
3528         
3529         * text-coding.c: Change enum eol_type to eol_type_t.
3530
3531 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3534         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3535
3536         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3537         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3538
3539 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3540
3541         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3542         `ideograph-daikanwa'.
3543
3544         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3545         (Vcharset_ucs_bmp): Likewise.
3546         (Vcharset_mojikyo): Add new extern variable definition.
3547         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3548         (Vcharset_latin_iso8859_3): Likewise.
3549         (Vcharset_latin_iso8859_4): Likewise.
3550         (Vcharset_latin_iso8859_9): Likewise.
3551         (Vcharset_latin_viscii_lower): Likewise.
3552         (Vcharset_latin_viscii_upper): Likewise.
3553         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3554         `mojikyo' code-point is used to decode.
3555         (encode_char_2): New function [to convert `mojikyo' code-point to
3556         Mojikyo font encoding].
3557         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3558         (breakup_char_1): Likewise.
3559         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3560
3561 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3562
3563         * text-coding.c (Fmake_coding_system): Add document about
3564         `disable-composition' property.
3565
3566 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3567
3568         * text-coding.c (Qdisable_composition): New variable; delete
3569         `Qcomposite'.
3570         (Fmake_coding_system): Add new property `disable-composite';
3571         delete property `composite'.
3572         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3573         instead of `!CODING_SYSTEM_COMPOSITE'.
3574         (syms_of_file_coding): Add new symbol `disable-composition';
3575         delete symbol `composite'.
3576
3577         * file-coding.h (struct Lisp_Coding_System): Add
3578         `disable_composition'; delete `enable_composition'.
3579         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3580         `CODING_SYSTEM_COMPOSITE'.
3581         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3582         `XCODING_SYSTEM_COMPOSITE'.
3583
3584 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3585
3586         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3587         to 0.15.
3588
3589 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3590
3591         * text-coding.c (Qcomposite): New variable.
3592         (Fmake_coding_system): Add new property `composite'.
3593         (struct decoding_stream): Add `combined_char_count',
3594         `combined_chars' and `combining_table' in UTF-2000.
3595         (COMPOSE_FLUSH_CHARS): New macro.
3596         (COMPOSE_ADD_CHAR): New macro.
3597         (reset_decoding_stream): Reset `str->combined_char_count' and
3598         `str->combining_table' in UTF-2000.
3599         (decode_coding_iso2022): Modify for character-decomposition.
3600         (syms_of_file_coding): Add new symbol `composite'.
3601
3602 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3603
3604         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3605         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3606         of `Vcharacter_composition_table' if `->decomposition' property
3607         has only 1 element.
3608         (Qlatin_tcvn5712): New variable.
3609         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3610         (complex_vars_of_mule_charset): Add new coded-charset
3611         `latin-tcvn5712'.
3612
3613         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3614
3615 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3616
3617         * file-coding.h (struct Lisp_Coding_System): Add
3618         `enable_composition'.
3619         (CODING_SYSTEM_COMPOSITE): New macro.
3620         (XCODING_SYSTEM_COMPOSITE): New macro.
3621
3622 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3623
3624         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3625
3626 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3627
3628         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3629         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3630
3631 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3632
3633         * mule-charset.c (Vcharset_mojikyo): New variable.
3634         (Fdefine_char): Don't use coded-charset which does not have
3635         non-builtin character range to allocate character-id.
3636         (Qmojikyo): New variable.
3637         (syms_of_mule_charset): Add new symbol `mojikyo'.
3638         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3639
3640         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3641         (LEADING_BYTE_MOJIKYO): New macro.
3642         (MIN_CHAR_MOJIKYO): New macro.
3643         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3644         (MAX_CHAR_MOJIKYO): New macro.
3645
3646 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3647
3648         * mule-charset.c (remove_char_attribute): Fixed.
3649
3650 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3651
3652         * mule-charset.c (remove_char_attribute): New function.
3653         (Fremove_char_attribute): New function.
3654         (encode_builtin_char_1): Comment out builtin-support for
3655         greek-iso8859-7 and cyrillic-iso8859-5.
3656         (Fdecode_char): Check `code' is an integer.
3657         (syms_of_mule_charset): Add `remove-char-attribute'.
3658         (MIN_CHAR_GREEK): Deleted.
3659         (MAX_CHAR_GREEK): Likewise.
3660         (MIN_CHAR_CYRILLIC): Likewise.
3661         (MAX_CHAR_CYRILLIC): Likewise.
3662         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3663         MAX_CHAR_GREEK for `greek-iso8859-7'.
3664
3665         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3666         (MAX_CHAR_GREEK): Likewise.
3667         (MIN_CHAR_CYRILLIC): Likewise.
3668         (MAX_CHAR_CYRILLIC): Likewise.
3669
3670 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3671
3672         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3673         format is used without `ucs' property.
3674         (Fdecode_char): Fix problem with GR representation.
3675         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3676         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3677
3678 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3679
3680         * mule-charset.c (make_builtin_char): New function.
3681         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3682         (Fset_charset_mapping_table): Modify for new representation of
3683         code-point.
3684         (Fdecode_char): New function.
3685         (syms_of_mule_charset): Add new builtin function `decode-char' in
3686         UTF-2000.
3687
3688         * char-ucs.h (make_builtin_char): New prototype.
3689         (DECODE_CHAR): New inline function.
3690         (MAKE_CHAR): Use `DECODE_CHAR'.
3691
3692 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3693
3694         * text-coding.c (parse_charset_conversion_specs): Use
3695         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3696         `XCHARSET_TYPE'.
3697         (iso2022_designate): Likewise.
3698
3699         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3700         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3701
3702         * mule-charset.c (Vcharset_ucs): New variable.
3703         (print_charset): Change design; use `CHARSET_CHARS' and
3704         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3705         (make_charset): Change signature to specify `chars' and
3706         `dimension' instead of `type'.
3707         (range_charset_code_point): Modify for 256^n-set.
3708         (encode_builtin_char_1): Encode as `ucs' in default.
3709         (Fmake_charset): Modify for `make_charset'.
3710         (Fmake_reverse_direction_charset): Likewise.
3711         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3712         UTF-2000.
3713         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3714         for `make_charset'.
3715
3716         * char-ucs.h (Vcharset_ucs): New variable.
3717         (LEADING_BYTE_UCS): New macro.
3718         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3719         and `chars' to `unsigned short' from `unsigned int'.
3720         (CHARSET_TYPE): Deleted.
3721         (XCHARSET_TYPE): Deleted.
3722
3723 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3724
3725         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3726
3727         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3728         (ENCODE_CHAR): New macro.
3729
3730 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3731
3732         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3733         to 0.14 (Kawachi-Katakami).
3734
3735 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3736
3737         * text-coding.c (char_encode_shift_jis): Modify for
3738         `charset_code_point'.
3739         (char_encode_iso2022): Likewise.
3740
3741         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3742         (integer) instead of list of <Lisp_Object>s (integers) as the
3743         format of code-point of a coded-charset.
3744         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3745         (encode_builtin_char_1): New function; delete
3746         `split_builtin_char'.
3747         (charset_code_point): Return <int> instead of <Lisp_Object>.
3748         (Fsplit_char): Don't use `SPLIT_CHAR'.
3749
3750         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3751         prototype for `split_builtin_char'.
3752         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3753         (charset_code_point): Likewise.
3754         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3755         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3756
3757 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3758
3759         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3760         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3761
3762 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3763
3764         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3765
3766         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3767         (MAX_CHAR_OBS_94x94): Deleted.
3768
3769 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3770
3771         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3772
3773         * char-ucs.h (MAX_CHAR_BMP): New macro.
3774
3775 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3776
3777         * text-coding.c: Sync with r21-2-24.
3778
3779 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3780
3781         * file-coding.c: Modify for UTF-2000.
3782
3783 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3784
3785         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3786         to 0.13 (Takaida).
3787
3788 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3789
3790         * mule-charset.c (split_builtin_char): Delete builtin support for
3791         `katakana-jisx0201'.
3792         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3793         BMP area in builtin representation.
3794
3795         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3796         `Vcharset_katakana_jisx0201'.
3797
3798 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3799
3800         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3801         (Qisolated): New variable.
3802         (Qinitial): New variable.
3803         (Qmedial): New variable.
3804         (Qfinal): New variable.
3805         (Qvertical): New variable.
3806         (Qsmall): New variable.
3807         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3808         `Qvertical' and `Qsmall'.
3809         (Qmojikyo_pj_[1 .. 21]): New variable.
3810         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3811         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3812         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3813         .. 21]'.
3814
3815 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3816
3817         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3818         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3819         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3820
3821 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3822
3823         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3824         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3825         BMP.
3826         (Qjapanese_jisx0208_1990): New variable.
3827         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3828         (complex_vars_of_mule_charset): Add new coded-charset
3829         `japanese-jisx0208-1990'.
3830
3831         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3832         (MIN_CHAR_JIS_X0208_1990): New macro.
3833         (MAX_CHAR_JIS_X0208_1990): New macro.
3834
3835 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3836
3837         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3838         coded-charset is not found.
3839
3840 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3841
3842         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3843         (Fdefine_char): Use `Fmake_char'.
3844
3845 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3846
3847         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3848         (Vcharset_hiragana_jisx0208): Deleted.
3849         (Vcharset_katakana_jisx0208): Deleted.
3850         (Qideograph_daikanwa): New variable.
3851         (Qhiragana_jisx0208): Deleted.
3852         (Qkatakana_jisx0208): Deleted.
3853         (split_builtin_char): Split `ideograph-daikanwa'.
3854         (Fsplit_char): New implementation for UTF-2000.
3855         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3856         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3857         (complex_vars_of_mule_charset): Add new coded-charset
3858         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3859         `katakana-jisx0208'.
3860
3861         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3862         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3863         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3864         (MIN_CHAR_DAIKANWA): New macro.
3865         (MAX_CHAR_DAIKANWA): New macro.
3866
3867 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3868
3869         * data.c (Fstring_to_number): Don't recognize floating point if
3870         base is not 10.
3871
3872 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3873
3874         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3875
3876 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3877
3878         * mule-charset.c (Qsquare): New variable.
3879         (to_char_code): Add `Qsquare'.
3880         (syms_of_mule_charset): Add new symbol `square'.
3881
3882 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3883
3884         * mule-charset.c (Qcircle): New variable.
3885         (to_char_code): Add `Qcircle'.
3886         (syms_of_mule_charset): Add new symbol `circle'.
3887
3888 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3889
3890         * mule-charset.c (Qfont): New variable.
3891         (to_char_code): Add `Qfont'.
3892         (syms_of_mule_charset): Add new symbol `font'.
3893
3894 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3895
3896         * mule-charset.c (Qsub): New variable.
3897         (to_char_code): Add `Qsub'.
3898         (syms_of_mule_charset): Add new symbol `sub'.
3899
3900 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3901
3902         * mule-charset.c (Fput_char_attribute): Convert each element of
3903         VALUE to GL position if ATTRIBUTE is a GR-set,
3904
3905 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3906
3907         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3908         coded-charset is a GR-set.
3909
3910 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3911
3912         * mule-charset.c (Fput_char_attribute): Check each element of
3913         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3914
3915 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3916
3917         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3918         UTF-2000.
3919         (Qethiopic_ucs): New variable in UTF-2000.
3920         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3921         (complex_vars_of_mule_charset): Add new coded-charset
3922         `ethiopic-ucs' in UTF-2000.
3923
3924         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3925         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3926         9)'.
3927         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3928         10)'.
3929         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3930
3931 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3932
3933         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3934         `ascii'.
3935
3936 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3937
3938         * mule-charset.c (Vcharacter_variant_table): New variable.
3939         (Q_ucs): New variable.
3940         (Fchar_variants): New function.
3941         (Fput_char_attribute): Register `->ucs' value to
3942         `Vcharacter_variant_table'.
3943         (syms_of_mule_charset): Add new function `char-variants' and new
3944         symbol `->ucs'.
3945         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3946
3947 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3948
3949         * mule-charset.c (get_char_code_table): Allow negative character
3950         code.
3951         (put_char_code_table): Likewise.
3952         (Vcharacter_composition_table): New variable.
3953         (Q_decomposition): New variable.
3954         (Qwide): New variable.
3955         (Qnarrow): New variable.
3956         (Qcompat): New variable.
3957         (QnoBreak): New variable.
3958         (Qsuper): New variable.
3959         (Qfraction): New variable.
3960         (to_char_code): New function.
3961         (Fget_composite_char): New function.
3962         (Fput_char_attribute): Register `->decomposition' value to
3963         `Vcharacter_composition_table'.
3964         (syms_of_mule_charset): Add new function `get-composite-char', new
3965         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3966         `super' and `fraction'.
3967         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3968
3969 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3970
3971         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3972         character; copy the return value.
3973
3974 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3975
3976         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3977
3978         * mule-charset.c (range_charset_code_point): Must use make_int.
3979         (split_builtin_char): New function.
3980
3981 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * mule-charset.c (char_byte_table): Change name from
3984         "char-code-table" to "char-byte-table".
3985         (mark_char_code_table): New function.
3986         (char_code_table_equal): New function.
3987         (char_code_table_hash): New function.
3988         (char_code_table_description): New constant.
3989         (char_code_table): New type.
3990         (make_char_code_table): New function.
3991         (copy_char_code_table): New function.
3992         (get_char_code_table): Modify for `char_code_table' type.
3993         (put_char_code_table): Likewise.
3994         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3995         (Kashiwara).
3996
3997         * char-ucs.h (char_code_table): New type.
3998         (XCHAR_CODE_TABLE): New macro.
3999         (XSETCHAR_CODE_TABLE): New macro.
4000         (CHAR_CODE_TABLE_P): New macro.
4001         (GC_CHAR_CODE_TABLE_P): New macro.
4002         (struct Lisp_Char_Code_Table): New structure.
4003
4004 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4005
4006         * mule-charset.c (Fmake_charset): Setup byte_offset for
4007         {94|96}^n-set.
4008
4009 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4010
4011         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4012         character.
4013
4014 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4015
4016         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4017         is found.
4018
4019 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4020
4021         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4022         charset, it is regarded as a charset.
4023         (put_char_attribute): New function in UTF-2000.
4024         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4025         charset, mapping-table of the charset is modified.
4026         (Fdefine_char): New function in UTF-2000.
4027         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4028         `Fput_char_attribute'.
4029         (syms_of_mule_charset): Add new function `define-char' and new
4030         symbol `ucs' in UTF-2000.
4031         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4032
4033 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4034
4035         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4036         non-UTF-2000 configuration.
4037
4038 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4039
4040         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4041         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4042
4043         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4044         deleted.
4045         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4046         (Fset_charset_mapping_table): Likewise.
4047
4048         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4049         (CHARSET_ENCODING_TABLE): Delete.
4050         (XCHARSET_ENCODING_TABLE): Delete.
4051         (charset_code_point): New interface.
4052
4053 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4054
4055         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4056         instead of `charset_get_byte1' and `charset_get_byte2'.
4057
4058         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4059         (charset_get_byte2): Deleted.
4060
4061 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4062
4063         * char-ucs.h (SPLIT_CHAR): New inline function.
4064         (breakup_char_1): Use `SPLIT_CHAR'.
4065
4066         * mule-charset.c (range_charset_code_point): New function.
4067         (charset_code_point): New function.
4068
4069         * char-ucs.h (range_charset_code_point): New interface.
4070         (breakup_char_1): Use `range_charset_code_point'.
4071
4072 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4073
4074         * mule-charset.c (Fmake_charset): Delete unused local variable
4075         `code_offset'.
4076
4077         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4078         (breakup_char_1): Find a charset and code-point in
4079         `Vcharacter_attribute_table'.
4080
4081 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4082
4083         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4084         to 0.10 (Yao).
4085
4086 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4087
4088         * mule-charset.c (Vcharacter_attribute_table): New variable.
4089         (Fchar_attribute_alist): New function.
4090         (Fget_char_attribute): New function.
4091         (Fput_char_attribute): New function.
4092         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4093         too.
4094         (syms_of_mule_charset): Add new function `char-attribute-alist',
4095         `get-char-attribute' and `put-char-attribute'.
4096         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4097
4098 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4099
4100         * mule-charset.c (Fmake_charset): Just use
4101         `get_unallocated_leading_byte'.
4102
4103         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4104         sets; don't use final-byte based number for private sets.
4105
4106 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4107
4108         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4109         integer.
4110
4111 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4112
4113         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4114         to 0.9.
4115
4116 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4117
4118         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4119         of `CHAR_LEADING_BYTE' in UTF-2000.
4120
4121         * insdel.c (find_charsets_in_bufbyte_string): Use
4122         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4123         (find_charsets_in_emchar_string): Likewise.
4124
4125         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4126         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4127
4128         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4129         (CHAR_CHARSET_ID): New macro.
4130
4131 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4132
4133         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4134         charset-id - MIN_LEADING_BYTE.
4135         (put_char_table): Likewise.
4136
4137 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4138
4139         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4140         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4141         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4142         (CHARSET_ID_OFFSET): New macro.
4143         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4144         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4145         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4146         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4147         4).
4148         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4149         5).
4150         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4151         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4152         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4153         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4154         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4155
4156 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4157
4158         * mule-charset.c (next_allocated_leading_byte): New variable in
4159         UTF-2000.
4160         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4161         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4162         (get_unallocated_leading_byte): Simply use
4163         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4164         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4165         UTF-2000.
4166
4167         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4168         (MAX_LEADING_BYTE_PRIVATE): New macro.
4169         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4170         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4171
4172 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4173
4174         * mule-charset.c (Fmake_charset): Allocate final-byte based
4175         charset-id for 94-set, 96-set and 94x94-set.
4176
4177 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4178
4179         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4180         ambiguous `else'.
4181         (Fmake_charset): Likewise.
4182         (complex_vars_of_mule_charset): Modify the font registry of
4183         `ucs-bmp' not to match `Ethiopic-Unicode'.
4184
4185 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4186
4187         * mule-charset.c (complex_vars_of_mule_charset): Add font
4188         registory of `ucs-bmp'.
4189
4190 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4191
4192         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4193         coded-charsets in `default-coded-charset-priority-list' when
4194         breaking up a character.
4195
4196         * mule-charset.c (Vcharset_latin_viscii): New variable.
4197         (Qlatin_viscii): New variable.
4198         (make_charset): Don't use `decoding_table'.
4199         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4200         byte_offset.
4201         (Fset_charset_mapping_table): New implementation.
4202         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4203         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4204         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4205         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4206         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4207         charset `latin_viscii'.
4208
4209         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4210         (CHARSET_TYPE_94X94): Change to 1 from 2.
4211         (CHARSET_TYPE_96): Change to 2 from 1.
4212         (CHARSET_TYPE_128): New macro.
4213         (CHARSET_TYPE_128X128): Change to 5 from 4.
4214         (CHARSET_TYPE_256): New macro.
4215         (CHARSET_TYPE_256X256): Change to 7 from 5.
4216         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4217
4218 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4219
4220         * text-coding.c (char_encode_shift_jis): Refer
4221         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4222         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4223
4224         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4225         (char_byte_table_equal): New function in UTF-2000.
4226         (char_byte_table_hash): New function in UTF-2000.
4227         (char_byte_table_description): New constant in UTF-2000.
4228         (char_byte_table): New type in UTF-2000.
4229         (make_char_byte_table): New function in UTF-2000.
4230         (copy_char_byte_table): New function in UTF-2000.
4231         (make_char_code_table): New macro in UTF-2000.
4232         (get_char_code_table): New function in UTF-2000.
4233         (put_char_code_table): New function in UTF-2000.
4234         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4235         (charset_description): Add setting in UTF-2000.
4236         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4237         `CHARSET_TO_BYTE1_TABLE(cs)'.
4238         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4239         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4240         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4241         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4242         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4243         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4244         `CHARSET_TO_BYTE2_TABLE(cs)'.
4245
4246         * char-ucs.h (char_byte_table): New type.
4247         (XCHAR_BYTE_TABLE): New macro.
4248         (XSETCHAR_BYTE_TABLE): New macro.
4249         (CHAR_BYTE_TABLE_P): New macro.
4250         (GC_CHAR_BYTE_TABLE_P): New macro.
4251         (struct Lisp_Char_Byte_Table): New structure.
4252         (get_char_code_table): New interface.
4253         (Emchar_to_byte_table): Deleted.
4254         (get_byte_from_character_table): Deleted.
4255         (struct Lisp_Charset): Add `encoding_table'; delete
4256         `to_byte1_table' and `to_byte2_table'.
4257         (CHARSET_ENCODING_TABLE): New macro.
4258         (CHARSET_TO_BYTE1_TABLE): Deleted.
4259         (CHARSET_TO_BYTE2_TABLE): Deleted.
4260         (XCHARSET_ENCODING_TABLE): New macro.
4261         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4262         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4263
4264 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4265
4266         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4267         `vietnamese-viscii-*'.
4268
4269 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4270
4271         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4272         (Qvietnamese_viscii_upper): New variable.
4273         (Fdefine_charset_alias): New function.
4274         (syms_of_mule_charset): Add new function `define-charset-alias'.
4275         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4276         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4277         `latin-viscii-*'.
4278
4279 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4280
4281         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4282         (MAX_CHAR_OBS_94x94): New macro.
4283         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4284         for 94x94 sets.
4285
4286         * mule-charset.c (put_byte_from_character_table): Change unit size
4287         from 128 to 256.
4288         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4289         not defined.
4290         (Fmake_reverse_direction_charset): Modify dummy argument of
4291         `make_charset' for non-UTF-2000 environment.
4292
4293 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4294
4295         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4296
4297         * mule-charset.c (destroy_byte_from_character_table): New macro.
4298         (latin_jisx0201_to_ucs): Deleted.
4299         (latin_iso8859_2_to_ucs): Deleted.
4300         (latin_iso8859_3_to_ucs): Deleted.
4301         (latin_iso8859_4_to_ucs): Deleted.
4302         (latin_iso8859_9_to_ucs): Deleted.
4303         (latin_viscii_lower_to_ucs): Deleted.
4304         (latin_viscii_upper_to_ucs): Deleted.
4305         (mark_charset): Mark `cs->decoding_table'.
4306         (Fcharset_mapping_table): Fix DOC-string.
4307         (Fset_charset_mapping_table): New function.
4308         (syms_of_mule_charset): Add nwe function
4309         `set-charset-mapping-table'.
4310         (complex_vars_of_mule_charset): Don't setup and use
4311         `latin_*_to_ucs'.
4312
4313 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4314
4315         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4316         charset.
4317
4318 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4319
4320         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4321         (Vcharset_katakana_jisx0208): New variable.
4322         (Qhiragana_jisx0208): New variable.
4323         (Qkatakana_jisx0208): New variable.
4324         (make_charset): Add new argument `byte_offset'.
4325         (charset_get_byte1): Modify for new coded-charset definition; use
4326         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4327         `XCHARSET_BYTE_OFFSET'.
4328         (Fmake_charset): Modify for `make_charset'.
4329         (Fmake_reverse_direction_charset): Likewise.
4330         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4331         `katakana-jisx0208'.
4332         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4333         `.'  in font registry of charset `katakana-jisx0201',
4334         `latin-jisx0201', `vietnamese-viscii-lower' and
4335         `vietnamese-viscii-upper'; modify DOC-string of charset
4336         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4337         registry of charset `japanese-jisx0208' not to use font for JIS
4338         X0208:1990; add new charset `hiragana-jisx0208' and
4339         `katakana-jisx0208'.
4340
4341         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4342         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4343         (struct Lisp_Charset): Add `byte_offset'.
4344         (CHARSET_BYTE_OFFSET): New macro.
4345         (XCHARSET_UCS_MIN): New macro.
4346         (XCHARSET_UCS_MAX): New macro.
4347         (XCHARSET_CODE_OFFSET): New macro.
4348         (XCHARSET_BYTE_OFFSET): New macro.
4349         (MIN_CHAR_HIRAGANA): New macro.
4350         (MAX_CHAR_HIRAGANA): New macro.
4351         (MIN_CHAR_KATAKANA): New macro.
4352         (MAX_CHAR_KATAKANA): New macro.
4353         (MAKE_CHAR): Modify for new coded-charset definition; use
4354         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4355         `XCHARSET_BYTE_OFFSET'.
4356
4357 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4358
4359         * mule-charset.c (CHAR96): Deleted.
4360         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4361         <Lisp_Object>.
4362         (latin_iso8859_2_to_ucs): Likewise.
4363         (latin_iso8859_3_to_ucs): Likewise.
4364         (latin_iso8859_4_to_ucs): Likewise.
4365         (latin_iso8859_9_to_ucs): Likewise.
4366         (latin_viscii_lower_to_ucs): Likewise.
4367         (latin_viscii_upper_to_ucs): Likewise.
4368         (latin_tcvn5712_to_ucs): Commented out.
4369         (make_charset): Change type of argument `decoding_table' from
4370         <Emchar*> to <Lisp_Object> [vector of characters].
4371         (Fmake_charset): Modify for `make_charset'.
4372         (Fmake_reverse_direction_charset): Likewise.
4373         (Fcharset_mapping_table): New function in UTF-2000.
4374         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4375         UTF-2000.
4376         (complex_vars_of_mule_charset): Modify for type change of
4377         `*_to_ucs'; modify for `make_charset'.
4378
4379         * char-ucs.h (struct Lisp_Charset): Change type of
4380         `decoding_table' from <Emchar*> to <Lisp_Object>.
4381         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4382
4383 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4384
4385         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4386         error with non-UTF-2000-Mule.
4387
4388 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4389
4390         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4391         in lisp again].
4392         (Vcharset_chinese_cns11643_4): Likewise.
4393         (Vcharset_chinese_cns11643_5): Likewise.
4394         (Vcharset_chinese_cns11643_6): Likewise.
4395         (Vcharset_chinese_cns11643_7): Likewise.
4396         (Qchinese_cns11643_3): Likewise.
4397         (Qchinese_cns11643_4): Likewise.
4398         (Qchinese_cns11643_5): Likewise.
4399         (Qchinese_cns11643_6): Likewise.
4400         (Qchinese_cns11643_7): Likewise.
4401         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4402         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4403         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4404         (complex_vars_of_mule_charset): Likewise.
4405
4406 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4407
4408         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4409         96-set.
4410         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4411         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4412
4413 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4414
4415         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4416         0xFF60.
4417         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4418         (breakup_char_1): Likewise.
4419
4420         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4421         one of them includes the specified character.
4422
4423 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4424
4425         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4426
4427 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4428
4429         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4430
4431 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4432
4433         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4434         definition for non-UTF-2000 Mule.
4435         (latin_iso8859_3_to_ucs): Likewise.
4436         (latin_iso8859_4_to_ucs): Likewise.
4437         (latin_iso8859_9_to_ucs): Likewise.
4438         (latin_jisx0201_to_ucs): Likewise.
4439         (MIN_CHAR_THAI): Likewise.
4440         (MAX_CHAR_THAI): Likewise.
4441         (MIN_CHAR_GREEK): Likewise.
4442         (MAX_CHAR_GREEK): Likewise.
4443         (MIN_CHAR_HEBREW): Likewise.
4444         (MAX_CHAR_HEBREW): Likewise.
4445         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4446         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4447         (MIN_CHAR_CYRILLIC): Likewise.
4448         (MAX_CHAR_CYRILLIC): Likewise.
4449
4450 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4451
4452         * char-ucs.h (breakup_char_1): Use
4453         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4454         thai-tis620 and katakana-jisx0201 area.
4455
4456 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4457
4458         * char-ucs.h (breakup_char_1): Use
4459         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4460         area.
4461
4462         * text-coding.c (reset_encoding_stream): Fixed.
4463         (char_encode_ucs4): Delete `& 255'.
4464
4465         * char-ucs.h (breakup_char_1): Use
4466         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4467
4468 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4469
4470         * file-coding.c (Fmake_coding_system): Don't set up
4471         `codesys->fixed.size'.
4472         (encode_coding_no_conversion): Don't refer
4473         `str->codesys->fixed.size'.
4474
4475 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4476
4477         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4478         (latin_a_char_to_byte1): Deleted.
4479         (latin_a_char_to_byte2): Deleted.
4480
4481 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4482
4483         * mule-charset.c (make_charset): Add new argument `ucs_min',
4484         `ucs_max' and `code_offset'.
4485         (charset_get_byte1): New implementation [delete specific charset
4486         depended implementations].
4487         (Fmake_charset): Modify for `make_charset'.
4488         (Fmake_reverse_direction_charset): Likewise.
4489         (complex_vars_of_mule_charset): Likewise.
4490
4491         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4492         `code_offset'.
4493         (CHARSET_UCS_MIN): New macro.
4494         (CHARSET_UCS_MAX): New macro.
4495         (CHARSET_CODE_OFFSET): New macro.
4496         (MAKE_CHAR): Delete charset depended definitions [except
4497         katakana-jisx0201].
4498
4499 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4500
4501         * char-ucs.h (breakup_char_1): Use
4502         `Vdefault_coded_charset_priority_list' for C0-Controls,
4503         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4504
4505 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4506
4507         * char-ucs.h (charset_get_byte1): New function.
4508         (XCHARSET_GET_BYTE1): Deleted.
4509         (charset_get_byte2): New function.
4510         (XCHARSET_GET_BYTE2): Deleted.
4511         (Vdefault_coded_charset_priority_list): New external variable.
4512         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4513         `Vdefault_preferred_coded_charset_list'.
4514
4515         * mule-charset.c (charset_get_byte1): New function.
4516         (charset_get_byte2): New function.
4517         (Vdefault_coded_charset_priority_list): New variable.
4518         (vars_of_mule_charset): Add new variable
4519         `default-coded-charset-priority-list'.
4520
4521 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4522
4523         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4524         (XCHARSET_GET_BYTE2): New inline function.
4525         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4526         `XCHARSET_GET_BYTE2'.
4527
4528 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4529
4530         * mule-charset.c (make_charset): Initialize
4531         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4532         NULL if table is not defined.
4533
4534 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4535
4536         * text-coding.c (char_encode_shift_jis): Use
4537         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4538         `ucs_to_latin_jisx0201'.
4539
4540         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4541         (ucs_to_latin_iso8859_2): Deleted.
4542         (ucs_to_latin_iso8859_3): Deleted.
4543         (ucs_to_latin_iso8859_4): Deleted.
4544         (ucs_to_latin_iso8859_9): Deleted.
4545         (ucs_to_latin_viscii_lower): Deleted.
4546         (ucs_to_latin_viscii_upper): Deleted.
4547         (ucs_to_latin_tcvn5712): Deleted.
4548         (make_charset): Add new argument `decoding_table'; set up
4549         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4550         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4551         `decoding_table' is defined in UTF-2000.
4552         (Fmake_charset): Modify for `make_charset'.
4553         (Fmake_reverse_direction_charset): Likewise.
4554         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4555         and `GENERATE_96_SET'.
4556
4557         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4558         (ucs_to_latin_jisx0201): Deleted.
4559         (latin_iso8859_2_to_ucs): Deleted.
4560         (ucs_to_latin_iso8859_2): Deleted.
4561         (latin_iso8859_3_to_ucs): Deleted.
4562         (ucs_to_latin_iso8859_3): Deleted.
4563         (latin_iso8859_4_to_ucs): Deleted.
4564         (ucs_to_latin_iso8859_4): Deleted.
4565         (latin_iso8859_9_to_ucs): Deleted.
4566         (ucs_to_latin_iso8859_9): Deleted.
4567         (latin_viscii_lower_to_ucs): Deleted.
4568         (ucs_to_latin_viscii_lower): Deleted.
4569         (latin_viscii_upper_to_ucs): Deleted.
4570         (ucs_to_latin_viscii_upper): Deleted.
4571         (struct Lisp_Charset): Renamed `encoding_table' to
4572         `to_byte1_table'; add `to_byte2_table'.
4573         (CHARSET_DECODING_TABLE): New macro.
4574         (CHARSET_TO_BYTE1_TABLE): New macro.
4575         (CHARSET_TO_BYTE2_TABLE): New macro.
4576         (XCHARSET_DECODING_TABLE): New macro.
4577         (XCHARSET_TO_BYTE1_TABLE): New macro.
4578         (XCHARSET_TO_BYTE2_TABLE): New macro.
4579         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4580         tables.
4581         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4582         don't use `ucs_to_*' tables.
4583
4584 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4585
4586         * text-coding.c (Fmake_coding_system): Don't set up
4587         `codesys->fixed.size'.
4588         (encode_coding_no_conversion): Use `if' instead of `switch'.
4589
4590         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4591
4592 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4593
4594         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4595         (Fmake_charset): Modify for `make_charset'.
4596         (Fmake_reverse_direction_charset): Likewise.
4597         (complex_vars_of_mule_charset): Likewise.
4598
4599 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4600
4601         * text-coding.c (char_encode_shift_jis): Use table
4602         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4603
4604 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4605
4606         * text-coding.c (text_encode_generic): Use `if' instead of
4607         `switch'.
4608         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4609         decode JIS-Latin.
4610
4611 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4612
4613         * text-coding.c (encode_coding_sjis): Deleted.
4614         (char_encode_shift_jis): New function.
4615         (char_finish_shift_jis): New function.
4616         (reset_encoding_stream): Set up `encode_char' and `finish' for
4617         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4618         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4619         (char_encode_utf8): Treat `eol_type'.
4620
4621 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4622
4623         * file-coding.c (decode_coding_iso2022): Use
4624         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4625
4626 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4627
4628         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4629         to 0.7 (Hirano).
4630
4631 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4632
4633         * char-lb.h (CHAR_COLUMNS): New macro.
4634
4635 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4636
4637         * text-coding.c (char_encode_ucs4): New function.
4638         (char_finish_ucs4): New function.
4639         (encode_coding_ucs4): Deleted.
4640         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4641         (text_encode_generic): Delete local variable `charset' and `half'.
4642         (ucs_to_mule_table): Deleted.
4643         (mule_to_ucs_table): Deleted.
4644         (Fset_ucs_char): Deleted.
4645         (ucs_to_char): Deleted.
4646         (Fucs_char): Deleted.
4647         (Fset_char_ucs): Deleted.
4648         (Fchar_ucs): Deleted.
4649         (decode_ucs4): Deleted.
4650         (mule_char_to_ucs4): Deleted.
4651         (encode_ucs4): Deleted.
4652         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4653         (decode_coding_utf8): Likewise.
4654         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4655         (char_encode_iso2022): Fixed.
4656         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4657         `Fset_char_ucs' and `Fchar_ucs'.
4658         (complex_vars_of_file_coding): Don't initialize
4659         `ucs_to_mule_table'.
4660
4661         * objects-tty.c (tty_initialize_font_instance): Don't use
4662         `XCHARSET_COLUMNS'.
4663
4664         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4665         UTF-2000.
4666
4667         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4668         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4669
4670         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4671         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4672         (emchar_string_displayed_columns): Likewise.
4673
4674         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4675         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4676         (string_column_at_point): Likewise.
4677         (Fmove_to_column): Likewise.
4678
4679         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4680         `encoding_table' and `decoding_table'.
4681         (CHARSET_REP_BYTES): Deleted.
4682         (XCHARSET_REP_BYTES): Deleted.
4683         (XCHARSET_COLUMNS): Deleted.
4684         (CHAR_COLUMNS): New macro.
4685         (lookup_composite_char): Deleted unconditionally.
4686         (composite_char_string): Likewise.
4687
4688 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4689
4690         * char-ucs.h (Emchar_to_byte_table): New type.
4691         (get_byte_from_character_table): New function interface.
4692         (Vcharset_latin_jisx0201): New variable.
4693         (latin_jisx0201_to_ucs): New variable.
4694         (ucs_to_latin_jisx0201): New variable.
4695         (Vcharset_latin_iso8859_2): New variable.
4696         (latin_iso8859_2_to_ucs): New variable.
4697         (ucs_to_latin_iso8859_2): New variable.
4698         (Vcharset_latin_iso8859_3): New variable.
4699         (latin_iso8859_3_to_ucs): New variable.
4700         (ucs_to_latin_iso8859_3): New variable.
4701         (Vcharset_latin_iso8859_4): New variable.
4702         (latin_iso8859_4_to_ucs): New variable.
4703         (ucs_to_latin_iso8859_4): New variable.
4704         (Vcharset_latin_iso8859_9): New variable.
4705         (latin_iso8859_9_to_ucs): New variable.
4706         (ucs_to_latin_iso8859_9): New variable.
4707         (Vcharset_latin_viscii_lower): New variable.
4708         (latin_viscii_lower_to_ucs): New variable.
4709         (ucs_to_latin_viscii_lower): New variable.
4710         (Vcharset_latin_viscii_upper): New variable.
4711         (latin_viscii_upper_to_ucs): New variable.
4712         (ucs_to_latin_viscii_upper): New variable.
4713         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4714         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4715         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4716         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4717         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4718         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4719         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4720         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4721         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4722         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4723
4724         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4725         (Vcharset_latin_viscii_upper): New variable.
4726         (make_byte_from_character_table): New function.
4727         (put_byte_from_character_table): New function.
4728         (get_byte_from_character_table): New function.
4729         (CHAR96): New macro.
4730         (ucs_to_latin_jisx0201): New variable.
4731         (latin_jisx0201_to_ucs): New variable.
4732         (ucs_to_latin_iso8859_2): New variable.
4733         (latin_iso8859_2_to_ucs): New variable.
4734         (ucs_to_latin_iso8859_3): New variable.
4735         (latin_iso8859_3_to_ucs): New variable.
4736         (ucs_to_latin_iso8859_4): New variable.
4737         (latin_iso8859_4_to_ucs): New variable.
4738         (ucs_to_latin_iso8859_9): New variable.
4739         (latin_iso8859_9_to_ucs): New variable.
4740         (ucs_to_latin_viscii_lower): New variable.
4741         (latin_viscii_lower_to_ucs): New variable.
4742         (ucs_to_latin_viscii_upper): New variable.
4743         (latin_viscii_upper_to_ucs): New variable.
4744         (ucs_to_latin_tcvn5712): New variable.
4745         (latin_tcvn5712_to_ucs): New variable.
4746         (Qlatin_viscii_lower): New variable.
4747         (Qlatin_viscii_upper): New variable.
4748         (syms_of_mule_charset): Set up new symbol
4749         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4750         (complex_vars_of_mule_charset): Set up new charset
4751         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4752         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4753         `ucs_to_<CHARSET>' tables.
4754
4755 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4756
4757         * text-coding.c: New file.
4758
4759 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4760
4761         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4762
4763         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4764         (MAKE_CHAR): Modify for `ucs-bmp'.
4765         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4766         non-MULE characters of BMP.
4767
4768 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4769
4770         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4771         to 0.6.
4772
4773 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4774
4775         * lstream.h:
4776         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4777         - Include character.h for `CHAR_ASCII_P'.
4778
4779         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4780
4781         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4782         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4783
4784         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4785         (BYTE_C0_P): Likewise.
4786         (BYTE_C1_P): Likewise.
4787         (Lstream_get_emchar_1): Likewise.
4788         (Lstream_fput_emchar): Likewise.
4789         (Lstream_funget_emchar): Likewise.
4790         (copy_internal_to_external): Likewise.
4791         (copy_external_to_internal): Likewise.
4792
4793         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4794         (BYTE_C0_P): Likewise.
4795         (BYTE_C1_P): Likewise.
4796         (Lstream_get_emchar_1): Likewise.
4797         (Lstream_fput_emchar): Likewise.
4798         (Lstream_funget_emchar): Likewise.
4799         (copy_internal_to_external): Likewise.
4800         (copy_external_to_internal): Likewise.
4801
4802         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4803         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4804
4805         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4806         (BYTE_ASCII_P): Moved to mb-1byte.h.
4807
4808 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4809
4810         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4811
4812         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4813         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4814         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4815         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4816         (VALIDATE_CHARPTR_FORWARD): Likewise.
4817         (simple_charptr_emchar): Moved to mb-multibyte.h.
4818         (simple_set_charptr_emchar): Likewise.
4819         (simple_charptr_copy_char): Likewise.
4820         (non_ascii_charptr_emchar): Likewise.
4821         (non_ascii_set_charptr_emchar): Likewise.
4822         (non_ascii_charptr_copy_char): Likewise.
4823         (charptr_emchar): Moved to mb-*byte.h.
4824         (set_charptr_emchar): Likewise.
4825         (charptr_copy_char): Likewise.
4826
4827         * mb-1byte.h, mb-multibyte.h: New files.
4828
4829 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4830
4831         * mb-utf-8.h (MULTIBYTE): New macro.
4832         (MAX_EMCHAR_LEN): Moved from buffer.h.
4833         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4834
4835         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4836
4837         * mb-lb.h, multibyte.h: New files.
4838
4839         * char-1byte.h (Charset_ID): Moved from buffer.h.
4840         (MIN_LEADING_BYTE): Likewise.
4841         (LEADING_BYTE_ASCII): Likewise.
4842         (NUM_LEADING_BYTES): Likewise.
4843         (CHARSETP): Likewise.
4844         (CHARSET_BY_LEADING_BYTE): Likewise.
4845         (XCHARSET_LEADING_BYTE): Likewise.
4846         (XCHARSET_GRAPHIC): Likewise.
4847         (XCHARSET_COLUMNS): Likewise.
4848         (XCHARSET_DIMENSION): Likewise.
4849         (CHAR_CHARSET): Likewise.
4850         (CHAR_LEADING_BYTE): Likewise.
4851         (BREAKUP_CHAR): Likewise.
4852         (Vcharset_ascii): Likewise.
4853
4854         * buffer.h: Include multibyte.h unconditionally.
4855         (VALID_CHARPTR_P): Moved to multibyte.h.
4856         (ASSERT_VALID_CHARPTR): Likewise.
4857         (REAL_INC_CHARPTR): Likewise.
4858         (REAL_INC_CHARBYTIND): Likewise.
4859         (REAL_DEC_CHARPTR): Likewise.
4860         (INC_CHARPTR): Likewise.
4861         (INC_CHARBYTIND): Likewise.
4862         (DEC_CHARPTR): Likewise.
4863         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4864         (VALIDATE_CHARPTR_FORWARD): Likewise.
4865         (charptr_n_addr): Likewise.
4866         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4867         (simple_charptr_emchar): Moved to multibyte.h.
4868         (simple_set_charptr_emchar): Likewise.
4869         (simple_charptr_copy_char): Likewise.
4870         (non_ascii_charptr_emchar): Likewise.
4871         (non_ascii_set_charptr_emchar): Likewise.
4872         (non_ascii_charptr_copy_char): Likewise.
4873         (charptr_emchar): Likewise.
4874         (set_charptr_emchar): Likewise.
4875         (charptr_copy_char): Likewise.
4876         (charptr_emchar_n): Likewise.
4877         (Charset_ID): Moved to char-1byte.h.
4878         (Vcharset_ascii): Likewise.
4879         (CHAR_CHARSET): Likewise.
4880         (CHAR_LEADING_BYTE): Likewise.
4881         (LEADING_BYTE_ASCII): Likewise.
4882         (NUM_LEADING_BYTES): Likewise.
4883         (MIN_LEADING_BYTE): Likewise.
4884         (CHARSETP): Likewise.
4885         (CHARSET_BY_LEADING_BYTE): Likewise.
4886         (XCHARSET_LEADING_BYTE): Likewise.
4887         (XCHARSET_GRAPHIC): Likewise.
4888         (XCHARSET_COLUMNS): Likewise.
4889         (XCHARSET_DIMENSION): Likewise.
4890         (BREAKUP_CHAR): Likewise.
4891
4892 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4893
4894         * character.h: Add document about interface for characters.
4895
4896         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4897         (MAKE_CHAR): Delete comment about
4898         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4899         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4900         (BREAKUP_CHAR): Modify name of arguments.
4901         (CHAR_CHARSET): Modify name of argument.
4902
4903         * buffer.h: Delete document about Emchar accessors.
4904
4905 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4906
4907         * character.h (CHAR_INTP): Moved from buffer.h
4908         (CHAR_OR_CHAR_INTP): Likewise.
4909         (XCHAR_OR_CHAR_INT): Likewise.
4910         (CHECK_CHAR_COERCE_INT): Likewise.
4911
4912         * buffer.h (CHAR_INTP): Moved to character.h
4913         (CHAR_OR_CHAR_INTP): Likewise.
4914         (XCHAR_OR_CHAR_INT): Likewise.
4915         (CHECK_CHAR_COERCE_INT): Likewise.
4916
4917 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4918
4919         * character.h:
4920         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4921         - Include char-1byte.h, char-lb.h or char-ucs.h.
4922
4923         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4924
4925         * buffer.h: Include character unconditionally.
4926         (valid_char_p): Moved to char-*.h.
4927         (non_ascii_valid_char_p): Moved to char-lb.h.
4928
4929         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4930
4931 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4932
4933         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4934         in UTF-2000 because it is not ported yet and not to use
4935         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4936         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4937         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4938
4939         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4940         (CHAR_ASCII_P): Moved from character.h.
4941
4942         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4943         (CHAR_ASCII_P): Likewise.
4944         (CHAR_FIELD1_MASK): Deleted.
4945         (CHAR_FIELD2_MASK): Deleted.
4946         (CHAR_FIELD3_MASK): Deleted.
4947         (MAX_CHAR_BASIC_LATIN): New macro.
4948         (CHAR_FIELD1): Deleted.
4949         (CHAR_FIELD2_INTERNAL): Deleted.
4950         (CHAR_FIELD3_INTERNAL): Deleted.
4951         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4952         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4953         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4954         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4955         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4956         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4957         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4958         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4959         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4960         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4961         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4962         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4963         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4964         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4965         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4966         (MIN_CHAR_COMPOSITION): Deleted.
4967         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4968         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4969
4970 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4971
4972         * buffer.h: Include mb-utf-8.h in UTF-2000.
4973
4974         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4975
4976         * mb-utf-8.h: New file.
4977
4978 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4979
4980         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4981         instead of `int'.
4982
4983         * mule-charset.h, buffer.h (Charset_ID): New type.
4984
4985 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4986
4987         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4988         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4989         instead of `MULE_CHAR_PRIVATE_OFFSET',
4990         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4991         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4992         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4993
4994         * character.h (Vcharset_japanese_jisx0212): New variable
4995         definition.
4996
4997 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4998
4999         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5000         (charset_by_attributes): Delete array about direction.
5001         (latin_a_char_to_charset): New variable in UTF-2000.
5002         (latin_a_char_to_byte1): New variable in UTF-2000.
5003         (latin_a_char_to_byte2): New variable in UTF-2000.
5004         (Qucs_bmp): New variable.
5005         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5006         `Bufbyte'.
5007         (next_allocated_2_byte_leading_byte): Likewise.
5008         (non_ascii_set_charptr_emchar): Likewise.
5009         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5010         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5011         `charset_by_attributes'.
5012         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5013         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5014         and `CHARSET_BY_LEADING_BYTE'.
5015         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5016         `utf-2000-version' to `vars_of_mule_charset'.
5017         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5018         define `leading-code-private-11' in UTF-2000; move setting of
5019         `utf-2000-version' from `syms_of_mule_charset'.
5020         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5021         UTF-2000.
5022
5023         * character.h (Charset_ID): New type.
5024         (LEADING_BYTE_UCS_BMP): New macro.
5025         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5026         (CHARSET_ID_OFFSET_94): New macro.
5027         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5028         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5029         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5030         final-byte.
5031         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5032         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5033         (CHARSET_ID_OFFSET_96): New macro.
5034         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5035         CHARSET_ID_OFFSET_96 and final-byte.
5036         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5037         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5038         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5039         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5040         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5041         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5042         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5043         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5044         (LEADING_BYTE_THAI_TIS620): Likewise.
5045         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5046         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5047         (CHARSET_ID_OFFSET_94x94): New macro.
5048         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5049         CHARSET_ID_OFFSET_94x94 and final-byte.
5050         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5051         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5052         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5053         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5054         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5055         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5056         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5057         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5058         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5059         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5060         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5061         (CHARSET_TYPE_128X128): New macro.
5062         (CHARSET_TYPE_256X256): New macro.
5063         (XCHARSET_PRIVATE_P): Delete unconditionally.
5064         (charset_by_attributes): Delete array about direction.
5065         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5066         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5067         (MIN_CHAR_94): New macro.
5068         (MAX_CHAR_94): New macro.
5069         (MIN_CHAR_96): New macro.
5070         (MAX_CHAR_96): New macro.
5071         (MIN_CHAR_94x94): New macro.
5072         (MAX_CHAR_94x94): New macro.
5073         (MIN_CHAR_96x96): New macro.
5074         (MAX_CHAR_96x96): New macro.
5075         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5076         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5077         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5078         - 32)'.
5079         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5080         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5081         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5082         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5083         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5084         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5085         `XCHARSET_LEADING_BYTE' to make code-point.
5086         (latin_a_char_to_charset): New variable.
5087         (latin_a_char_to_byte1): New variable.
5088         (latin_a_char_to_byte2): New variable.
5089         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5090         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5091         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5092
5093         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5094         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5095         (find_charsets_in_emchar_string): Likewise.
5096         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5097
5098         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5099         `int'.
5100         (decode_coding_iso2022): Likewise.
5101
5102         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5103         of `unsigned char'.
5104
5105         * redisplay.c (redisplay_text_width_emchar_string): Use
5106         `Charset_ID' instead of `unsigned char'.
5107         (redisplay_frame_text_width_string): Likewise.
5108
5109         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5110         `unsigned char'.
5111
5112         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5113         instead of `unsigned char'.
5114         (face_cachel_charset_font_metric_info): Likewise.
5115
5116         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5117         (get_non_ascii_char_table_value): Likewise.
5118         (get_char_table): Likewise.
5119         (put_char_table): Likewise.
5120         (map_over_other_charset): Likewise.
5121         (map_char_table): Likewise.
5122
5123         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5124         instead of `unsigned char'.
5125
5126 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5127
5128         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5129         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5130
5131         * mule-charset.c (leading_code_private_11): Don't define in
5132         UTF-2000.
5133
5134         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5135         in UTF-2000 because it is not ported yet and not to use
5136         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5137
5138 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5139
5140         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5141
5142 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5143
5144         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5145         in UTF-2000.
5146
5147         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5148         of unsigned char to store leading-byte.
5149
5150         * chartab.c (get_non_ascii_char_table_value): Don't use
5151         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5152
5153         * file-coding.c (encode_coding_big5): Delete bogus implementation
5154         in UTF2000.
5155
5156         * character.h (LEADING_BYTE_*): Delete definition for
5157         non-UTF-2000.
5158         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5159         (LEADING_BYTE_PREFIX_P): Deleted.
5160         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5161         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5162         (BUFBYTE_LEADING_BYTE_P): Deleted.
5163         (CHARSET_PRIVATE_P): Deleted unconditionally.
5164         (rep_bytes_by_first_byte): Deleted unconditionally.
5165         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5166         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5167         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5168         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5169         (CHAR_FIELD2): Deleted.
5170         (CHAR_FIELD3): Deleted.
5171         (MAKE_CHAR): Delete definition for non-UTF-2000.
5172         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5173         (breakup_char_1): New implementation.
5174         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5175         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5176
5177 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5178
5179         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5180         condition.
5181
5182 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5183
5184         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5185         (CHARSET_PRIVATE_P): Likewise.
5186         (XCHARSET_PRIVATE_P): Likewise.
5187         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5188
5189         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5190         UTF2000.
5191         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5192
5193 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5194
5195         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5196         (NUM_LEADING_BYTES): Changed from 128 to 256.
5197         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5198         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5199         UTF2000.
5200         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5201
5202         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5203         UTF2000.
5204         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5205         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5206         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5207         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5208         (Qchinese_cns11643_3): New variable in UTF2000.
5209         (Qchinese_cns11643_4): New variable in UTF2000.
5210         (Qchinese_cns11643_5): New variable in UTF2000.
5211         (Qchinese_cns11643_6): New variable in UTF2000.
5212         (Qchinese_cns11643_7): New variable in UTF2000.
5213         (syms_of_mule_charset): Define `chinese-cns11643-3',
5214         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5215         and `chinese-cns11643-7' in UTF2000.
5216         (vars_of_mule_charset): Initialize
5217         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5218         + 1 in UTF2000.
5219         (complex_vars_of_mule_charset): Setup charset
5220         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5221         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5222
5223 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5224
5225         * mule-charset.c: Move setting for `leading-code-private-11' from
5226         `syms_of_mule_charset' to `vars_of_mule_charset'.
5227
5228 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5229
5230         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5231         and `NUM_LEADING_BYTES' in assert.
5232
5233 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5234
5235         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5236         instead of 128.
5237         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5238         `NUM_LEADING_BYTES' instead of 128.
5239
5240 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5241
5242         * mule-charset.h (charset_by_leading_byte): Use
5243         `NUM_LEADING_BYTES' instead of 128.
5244         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5245
5246         * mule-charset.c (charset_by_leading_byte): Use
5247         `NUM_LEADING_BYTES' instead of 128.
5248         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5249
5250         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5251         128.
5252
5253 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5254
5255         * mule-charset.c (syms_of_mule_charset): Update to
5256         0.4 (Shin-Imamiya).
5257
5258 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5259
5260         * file-coding.c (encode_coding_sjis): New implementation for
5261         UTF2000.  (decode_coding_sjis): Ditto.
5262
5263 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5264
5265         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5266         Don't define in UTF2000.
5267
5268         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5269         defined.
5270
5271         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5272         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5273         MULE.
5274
5275 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5276
5277         * config.h.in (CHAR_IS_UCS4): New macro.
5278
5279         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5280         conventional MULE representation.
5281         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5282
5283         * mule-charset.h: Reverted to original.
5284
5285         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5286         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5287         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5288
5289         * character.h: New file.
5290
5291         * file-coding.c (Fmake_coding_system): Set 1 to
5292         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5293         defined.
5294         (encode_coding_no_conversion): New implementation for UTF2000.
5295
5296         * file-coding.h (struct Lisp_Coding_System): Add new member
5297         `fixed.size'.
5298
5299 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5300
5301         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5302         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5303         (encode_coding_iso2022): New implementation for UTF2000.
5304
5305 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5306
5307         * mule-canna.c (c2mu): New implementation for UTF2000.
5308         (m2c): Likewise.
5309
5310 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5311
5312         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5313
5314 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5315
5316         * file-coding.c (reset_encoding_stream): Set 0 to
5317         `str->iso2022.current_char_boundary' in UTF2000.
5318         (encode_utf8): Don't define in UTF2000.
5319         (encode_coding_utf8): New implementation for UTF-8 representation
5320         of UTF2000.
5321         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5322
5323 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5324
5325         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5326
5327         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5328         UTF2000.
5329         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5330
5331         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5332
5333         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5334         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5335         as UTF-8 in UTF2000.
5336         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5337         (non_ascii_valid_char_p): Don't define in UTF2000.
5338         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5339         (Lstream_get_emchar_1): Likewise.
5340         (utf-2000-version): New variable in UTF2000.
5341
5342         * lread.c (read_escape): Add new reader `u'.
5343
5344         * insdel.c (three_to_one_table): Don't define in UTF2000.
5345         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5346         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5347         UTF2000.
5348         (bytind_to_bufpos_func): Likewise.
5349         (buffer_mule_signal_inserted_region): Likewise.
5350         (vars_of_insdel): Don't initialize `three_to_one_table'.
5351         (init_buffer_text): Use `buf->text->mule_size' instead of
5352         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5353         UTF2000.
5354
5355         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5356         UTF-8 representation in UTF2000.
5357         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5358         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5359         (decode_coding_iso2022): Don't define local variable `lb' in
5360         UTF2000; don't use LEADING_BYTE in UTF2000; use
5361         `DECODE_ADD_UCS_CHAR' in UTF2000.
5362         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5363
5364         * config.h.in (UTF2000): New macro.
5365
5366         * buffer.h (struct buffer_text): Add new member `mule_size' and
5367         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5368         (valid_char_p): Return always 1 in UTF2000.
5369         (MAX_EMCHAR_LEN): 6 in UTF2000.
5370         (three_to_one_table): Don't define in UTF2000.
5371         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5372         UTF2000.
5373         (real_bytind_to_bufpos): Likewise.
5374
5375         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5376
5377 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5378
5379         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5380         representation change.
5381         (Vutf_2000_version): New variable.
5382         (leading_code_private_11): New variable.
5383         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5384         `leading-code-private-11'.
5385
5386         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5387         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5388         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5389         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5390         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5391         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5392         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5393         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5394         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5395         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5396         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5397         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5398         (MIN_CHAR_GREEK): New macro.
5399         (MAX_CHAR_GREEK): New macro.
5400         (MIN_CHAR_CYRILLIC): New macro.
5401         (MAX_CHAR_CYRILLIC): New macro.
5402         (MIN_CHAR_HEBREW): New macro.
5403         (MAX_CHAR_HEBREW): New macro.
5404         (MIN_CHAR_THAI): New macro.
5405         (MAX_CHAR_THAI): New macro.
5406         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5407         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5408         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5409         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5410         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5411         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5412         (CHAR_FIELD2): New inline function.
5413         (CHAR_FIELD3): New inline function.
5414         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5415         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5416         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5417         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5418         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5419         (MIN_CHAR_COMPOSITION): Likewise.
5420         (CHAR_LEADING_BYTE): Modified for character representation change.
5421         (MAKE_CHAR): Likewise.
5422
5423         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5424         (Vcharset_greek_iso8859_7): Likewise.
5425         (Vcharset_cyrillic_iso8859_5): Likewise.
5426         (Vcharset_hebrew_iso8859_8): Likewise.
5427         (Vcharset_thai_tis620): Likewise.
5428         (Vcharset_katakana_jisx0201): Likewise.
5429
5430 2004-02-02  Vin Shelton <acs@xemacs.org>
5431
5432         * XEmacs 21.4.15 is released
5433
5434 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5435
5436         * device-x.c (x_error_handler): Don't call stderr_out
5437
5438 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5439
5440         * buffer.c (other-buffer): Clarify documentation of order of
5441         arguments for FSF Emacs.
5442
5443 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5444
5445         * window.c (Fdelete_window): Dirty the mirror structure _before_
5446         marking the window deleted.
5447
5448 2003-09-15  Jerry James  <james@xemacs.org>
5449
5450         * event-msw.c (debug_mswin_messages): Conditionally compile
5451         messages missing from the Cygwin headers.
5452
5453 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5454
5455         * data.c (eq_with_ebola_notice): Fix typo in comment.
5456         (Ftrue_list_p): Improve docstring.
5457
5458 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5459
5460         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5461
5462 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5463
5464         * search.c (trivial_regexp_p): Regexps containing "\{" are
5465         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5466         Stefan Monnier for suggesting a diagnosis.
5467
5468 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5469
5470         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5471
5472 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5473
5474         * search.c (Fsearch_forward):
5475         (Fsearch_backward):
5476         Document negative count.
5477
5478 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5479
5480         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5481
5482 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5483
5484         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5485
5486 2003-09-15  Vin Shelton  <acs@xemacs.org>
5487
5488         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5489         21.5.
5490
5491 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5492
5493         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5494         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5495         (re_match_2_internal): Use TRANSLATE instead of
5496         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5497         non-ASCII char case conversion.
5498
5499 2003-09-08  Mike Sperber  <mike@xemacs.org>
5500
5501         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5502         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5503
5504 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5505
5506        * .gdbinit (pobj): fix printing of symbol name.
5507
5508 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5509
5510         * frame-x.c (x_layout_widgets): When resizing is about to cause
5511         frame size slip, mark it for redisplay.
5512
5513 2003-08-18  Jerry James  <james@xemacs.org>
5514
5515         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5516
5517 2003-09-03  Vin Shelton <acs@xemacs.org>
5518
5519         * XEmacs 21.4.14 is released
5520
5521 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5522
5523         * config.h.in (REGEX_MALLOC): Make it configure'able.
5524
5525 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5526
5527         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5528         linking.
5529         * sysdll.c (dll_init):
5530         * sysdll.c (dll_open):
5531         * sysdll.c (dll_close):
5532         * sysdll.c (dll_function):
5533         * sysdll.c (dll_variable):
5534         * sysdll.c (dll_error):
5535         Add support for loading bundles using Darwin/MacOSX
5536         native API.
5537
5538 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5539
5540         * process.c (start-process-internal): Document coding systems.
5541
5542 2003-07-30  Jerry James  <james@xemacs.org>
5543
5544         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5545
5546 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5547
5548         * event-msw.c (mswindows_enqueue_mouse_button_event):
5549         * event-msw.c (mswindows_wnd_proc):
5550           enqueue button event when scrollwheel event isn't handled by 
5551           mswindows_handle_mousewheel_event, such as when the scrollbars
5552           are not showing.
5553
5554 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5555
5556         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5557
5558 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5559
5560         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5561
5562 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5563
5564         * regex.c (re_match_2_internal): Fix matching degenerate word
5565         boundaries.
5566
5567 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5568
5569         * XEmacs 21.4.13 is released
5570
5571 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5572
5573         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5574         * lisp.h (<inttypes.h>):
5575         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5576         the definition.
5577
5578 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5579
5580         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5581         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5582         Result: "temacs can only be run in -batch mode."
5583         Fix: Check xemacs executable candidate for directory-ness.
5584
5585 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5586
5587         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5588           they conflict with <sys/types.h>.
5589
5590 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5591
5592         * database.c: Berkeley DB wants __STDC__ to be defined.
5593
5594 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5595
5596         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5597
5598 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5599
5600         * process-unix.c (unix_send_process): Fix C++ compile error.
5601
5602 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5603
5604         * Added .dylib as an acceptable shared library file extension
5605         * to support MacOSX.
5606
5607 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5608
5609         * EmacsFrameP.h (EmacsFramePart):
5610         Kludge to allow compiling with Motif1, but linking with Motif2.
5611
5612 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5613
5614         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5615
5616
5617 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5618
5619         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5620
5621 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5622
5623         * sysdll.c: Included lisp.h to define needed alloca_array.
5624
5625 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5626
5627         Make XEmacs redisplay 10 times faster.
5628         If, that is, you're using a slow X connection and MoveOpaque.
5629         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5630         Use compress_motion = TRUE.
5631         * EmacsFrame.c (emacsFrameClassRec): 
5632         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5633         * EmacsManager.c (emacsManagerClassRec):
5634         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5635
5636 2003-01-30  Vin Shelton  <acs@xemacs.org>
5637
5638         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5639
5640 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5641
5642         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5643         Patch by Martin Buchholz.
5644
5645 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5646
5647         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5648         Thanks to icc for warning and Martin Buchholz for reporting.
5649
5650 2003-01-29  Vin Shelton <acs@xemacs.org>
5651
5652         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5653
5654         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5655         remember to multiply by the element size.
5656
5657 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5658
5659         * XEmacs 21.4.12 "Portable Code" is released.
5660
5661 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5662
5663         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5664         * s/cygwin.sc: new linker file.
5665
5666 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5667
5668         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5669
5670         * redisplay-x.c (x_output_string): Use X11-specified types.
5671         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5672         * emacs.c (__free_hook): Use typeof with Intel compiler.
5673         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5674
5675 2003-01-08  Andy Piper  <andy@xemacs.org>
5676
5677         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5678         reserve size during unexec().
5679
5680 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5681
5682         * process-unix.c (unix_create_process): Don't let outchannel block.
5683
5684 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5685
5686         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5687         Needed for IsBadReadPtr().
5688
5689 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5690
5691         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5692
5693 2002-12-14  Ben Wing  <ben@xemacs.org>
5694
5695         * callint.c: Declaration error.
5696         * dumper.c (pdump):
5697         * dumper.c (pdump_load): Warning fix.
5698         * process.c: GCPRO error.
5699         * glyphs.c (unmap_subwindow):
5700         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5701         * event-stream.c (maybe_kbd_translate): Wrong argument to
5702         character_to_event().
5703
5704         * alloc.c (garbage_collect_1):
5705         * emacs.c:
5706         * emacs.c (debug_can_access_memory):
5707         * emacs.c (fatal_error_signal):
5708         * emacs.c (mswindows_handle_hardware_exceptions):
5709         * emacs.c (main_1):
5710         * emacs.c (main):
5711         * emacs.c (assert_failed):
5712         * emacs.c (syms_of_emacs):
5713         * lisp.h:
5714         * print.c:
5715         * print.c (std_handle_out_va):
5716         * print.c (write_string_to_stdio_stream):
5717         * print.c (write_fmt_string):
5718         * print.c (printing_badness):
5719         * print.c (printing_major_badness):
5720         * print.c (print_internal):
5721         * print.c (debug_print_no_newline):
5722         * print.c (debug_backtrace):
5723         Be more defensive in handling bad values when printing.  Add code
5724         from trunk involving inhibit_non_essential_printing_operations.
5725         When going down or in debug_print(), don't do external conversion
5726         and such and try really, really hard when printing to avoid core
5727         dumping.  Add force-debugging-signal, debug_break().
5728
5729 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5730
5731         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5732         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5733
5734 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5735
5736         * database.c: Fix open_database. Berkeley DB API has changed in
5737         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5738
5739 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5740
5741         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5742
5743 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5744
5745         * event-Xt.c (Xt_timeout):
5746         (Xt_timeout_callback):
5747         (emacs_Xt_add_timeout):
5748         (emacs_Xt_remove_timeout):
5749         (Xt_timeout_to_emacs_event):
5750         Turn completed_timeouts from a stack into a queue.  Fixes
5751         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5752
5753 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5754
5755         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5756         * emacs.c (main): Assert that mmap'd allocation is disabled.
5757
5758 2002-10-14  Andy Piper  <andy@xemacs.org>
5759
5760         * glyphs-widget.c (layout_query_geometry): add in fiddle
5761         factor. Include border text in width layout calculation.
5762         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5763
5764 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5765
5766         * XEmacs 21.4.10 "Military Intelligence" is released.
5767
5768 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5769
5770         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5771         using the NAS private array SoundFileInfo that no longer exists in
5772         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5773         and earlier.  This is broken for some versions between 1.5a and
5774         1.5f.
5775
5776 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5777
5778         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5779
5780         * emacs.c (shut_down_emacs): Improve crash message.
5781
5782 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5783
5784         * file-coding.c (determine_real_coding_system): Check for coding
5785         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5786         shebangs and Python PEP 263.
5787
5788 2002-10-08  Andy Piper  <andy@xemacs.org>
5789
5790         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5791         if static sizes haven't been set.
5792
5793 2002-08-30  Mike Alexander  <mta@arbortext.com>
5794
5795         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5796         to close a socket.
5797
5798 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5799
5800         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5801
5802 2002-09-20  Mike Sperber <mike@xemacs.org>
5803
5804         (This partially gets back my patch from 2002-07-20 without the
5805         bug.)
5806         * callproc.c (child_setup): Remove Ben's comment noting confusion
5807         over the file descriptors >= 3: close_process_descs() doesn't
5808         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5809         * process-unix.c (unix_create_process): Call
5810         begin_dont_check_for_quit to inhibit unwanted interaction (and
5811         thus breaking of X event synchronicity) in the child.
5812
5813 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5814
5815         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5816         widget.
5817
5818 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5819
5820         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5821         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5822         the xemacs process did not exit, but looped infinitely here.  This
5823         fixes that problem.
5824
5825 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5826
5827         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5828         (find_context): Improve comments.
5829
5830         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5831         (re_match_2): An XCHAR_TABLE operation was missing.
5832
5833         Many of the following changes were inspired by Andy Piper's (now
5834         obsolete) patch to make syntax-table text property lookup optional.
5835
5836         [Documentation]
5837
5838         * syntax.h (top level): Document semantics of syntax flags.
5839         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5840         * syntax.c, syntax.h (top level): Document syntax cache better in
5841         comments.
5842
5843         [Instrument syntax caching (temporary change)]
5844
5845         * syntax.h (enum syntax_cache_statistics_functions, struct
5846         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5847         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5848         * syntax.c (scan_words, Fforward_comment, scan_lists,
5849         Fbackward_prefix_characters):
5850         * font-lock.c (find_context):
5851         Use them to instrument syntax caching. 
5852         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5853         syntax_cache_statistics_function_names): New type and variables.
5854         * syntax.c (update_syntax_cache): Update and report statistics.
5855
5856         [Major syntax cache optimizations]
5857
5858         syntax.c (lookup_syntax_properties): Default off.
5859
5860         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5861         * syntax.c (update_syntax_cache):
5862         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5863
5864         [Minor syntax cache optimizations and code clarifications]
5865
5866         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5867         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5868         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5869         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5870         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5871         (Code clarification.)
5872
5873         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5874         scan_lists): Compute code from syncode, use Boolean macros instead
5875         of redundant masking operations.  (Code clarification; any decent
5876         compiler can do this optimization.)
5877
5878         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5879         for clarity.
5880
5881         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5882         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5883         use F*_single_property_change instead of F*_extent_change.
5884         Currently F*_single_property_change is _much_ less efficient.
5885
5886         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5887         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5888         syntax_cache.object properly, don't leave Qt or Qnil.
5889         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5890         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5891         tests for Qt or Qnil.
5892
5893 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5894
5895         * redisplay.c (point_in_line_start_cache): 
5896         * extents.c (print_extent_1):
5897         Fix warnings.
5898
5899         * extents.c (Fset_extent_property): Document `syntax-table' property.
5900
5901         * extents.h (Fnext_single_property_change): EXFUN it.
5902
5903 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5904
5905         * search.c (clear_unused_search_regs): New static function.
5906         (search_buffer): 
5907         (simple_search): 
5908         (boyer_moore):
5909         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5910         Minor clarifications in comments.
5911
5912         * regex.c (re_match_2_internal): Ensure no stale submatches.
5913
5914 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5915
5916         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5917
5918 2002-08-29  Jerry James  <james@xemacs.org>
5919
5920         * lisp.h: structrures -> structures.
5921
5922 2002-06-03  Andy Piper  <andy@xemacs.org>
5923
5924         * frame.c (frame_conversion_internal): add conversion appropriate
5925         for setting frame dimensions in pixels.
5926
5927         * console.h (struct console_methods): add device-specific widget
5928         layout functions.
5929
5930         * emacs.c (main_1): initialize glyph vars.
5931
5932         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5933         (handle_focus_event_2): new function. Allow focus to
5934         be set to a particular window and widget.
5935         (enqueue_focus_event): new function. Create a
5936         synthetic focus event.
5937         (emacs_Xt_handle_magic_event): call
5938         handle_focus_event_2.
5939
5940         * frame.c (Fset_frame_pixel_height): new function. Allow
5941         pixel-based sizing. Does the right thing on character-oriented
5942         displays.
5943         (Fset_frame_pixel_width): ditto.
5944         (Fset_frame_pixel_size): ditto.
5945         (syms_of_frame): declare.
5946
5947         * general-slots.h: add :vertically-justify and
5948         :horizontally-justify.
5949
5950         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5951         (mswindows_widget_border_width): new function.
5952         (mswindows_combo_box_instantiate): set border widths.
5953         (console_type_create_glyphs_mswindows): declare.
5954
5955         * glyphs-widget.c:
5956         (check_valid_justification): allow vertical and horizontal
5957         justification.
5958         (widget_border_width): new function. Call device methods.
5959         (widget_instance_border_width): ditto.
5960         (logical_unit_height): new function. Determine the height of a
5961         logical-unit. Logical units are intended to provide grid-like
5962         layout for subcontrols in a layout. If the layout is
5963         :vertically-justify top then subcontrols will be positioned on
5964         logical-unit boundaries, thus allowing adjacent subcontrols to
5965         line up.
5966         (widget_logical_unit_height): ditto for widgets.
5967         (redisplay_widget): misc cleanup.
5968         (widget_spacing): new function. Call device specific
5969         methods. Intended to be the default gap between adjacent widgets.
5970         (widget_query_geometry): use new spacing functions to determine
5971         appropriate geometry.
5972         (initialize_widget_image_instance): initialize horizontal and
5973         vertical justification.
5974         (widget_instantiate): use logica-units where appropriate for
5975         sizing large widgets.
5976         (button_query_geometry): use widget_instance_border_width.
5977         (tree_view_query_geometry): ditto.
5978         (tab_control_query_geometry): ditto.
5979         (edit_field_query_geometry): new function.
5980         (layout_update): pick up :justify, :horizontally-justify and
5981         :vertically-justify none of which worked previously. :justify is
5982         used as a fallback for both horizontal and vertical justification.
5983         (layout_query_geometry): use logical units to size appropriately.
5984         (layout_layout): ditto.
5985         (Fwidget_logical_to_character_width): new function. Allow users to
5986         convert from logical units to characters so that frame sizes can
5987         be set appropriately.
5988         (Fwidget_logical_to_character_height): ditto.
5989         (syms_of_glyphs_widget): declare.
5990         (image_instantiator_edit_fields): add edit_field_query_geometry.
5991         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5992         :horizontally-justify.
5993         (specifier_vars_of_glyphs_widget): new function. Declare
5994         Vwidget_border_width which is not yet used.
5995
5996         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5997         (x_widget_border_width): new function.
5998         (x_widget_instantiate): create a sensible name for widgets.
5999         (console_type_create_glyphs_x): declare x_widget_border_width.
6000
6001         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6002         (struct Lisp_Image_Instance): add :vertically-justify and
6003         :horizontally-justify.
6004         (LAYOUT_JUSTIFY_TOP): new.
6005         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6006         (ROUND_UP): new macro. Round argument up to next integral
6007         interval.
6008
6009         * redisplay-output.c (redisplay_output_layout): misc formatting.
6010
6011         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6012
6013 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6014
6015         * XEmacs 21.4.9 "Informed Management" is released.
6016
6017 2002-08-19  Andy Piper  <andy@xemacs.org>
6018
6019         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6020         win32 format.
6021
6022         * realpath.c (xrealpath): normalize drive spec also so that dir
6023         sep chars are not mixed on cygwin.
6024
6025 2002-08-06  Jerry James  <james@xemacs.org>
6026
6027         * window.c (Fsplit_window): Count only half of the divider width
6028         against the left window when splitting horizontally. 
6029
6030 2002-06-24  Andy Piper  <andy@xemacs.org>
6031
6032         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6033         toolbar was cleared.
6034
6035         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6036         function. Split out from mswindows_output_frame_toolbars.
6037         (mswindows_output_frame_toolbars): move clear pieces to
6038         mswindows_output_frame_toolbars.
6039
6040         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6041         out from gtk_output_frame_toolbars.
6042         (gtk_output_frame_toolbars): move clear pieces to
6043         gtk_clear_frame_toolbars.
6044
6045         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6046         the frame is cleared. How this ever worked before is a mystery.
6047         (x_output_frame_toolbars): Only output toolbars.
6048         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6049
6050         * gutter.c (update_gutter_geometry):
6051         Mark frame layout changed.
6052         (update_frame_gutter_geometry, update_frame_gutters):
6053         Respect frame_layout_changed.
6054
6055         * console.h (struct console_methods): add
6056         clear_frame_toolbars_method.
6057
6058         * redisplay.c (redisplay_frame): call
6059         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6060
6061         * toolbar.h: declare update_frame_toolbars_geometry.
6062
6063         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6064         out from update_frame_toolbars.  Call clear_frame_toolbars.
6065         (update_frame_toolbars): only output, do not change geometry.
6066
6067         * redisplay.c: add frame_layout_changed.
6068
6069         * redisplay.h: add frame_layout_changed.
6070         (CLASS_RESET_CHANGED_FLAGS): set it.
6071         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6072         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6073         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6074
6075         * device.h (struct device): add frame_layout_changed.
6076         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6077
6078         * frame.h (struct frame): add frame_layout_changed.
6079         (MARK_FRAME_LAYOUT_CHANGED): new.
6080
6081 2002-06-30  Mike Alexander  <mta@arbortext.com>
6082
6083         * event-msw.c (mswindows_need_event): Don't wait for a new message
6084         if the queue is not empty.  Suggested by Paul Moore.
6085
6086 2002-06-12  Andy Piper  <andy@xemacs.org>
6087
6088         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6089         for printing on accurately.
6090
6091 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6092
6093         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6094         WM_ACTIVATE message. Make sure that the frame is visible if the
6095         window is visible. This seemss to fix the problem where XEmacs
6096         appears to freeze after switching desktops with certain virtual
6097         window managers.
6098         (debug_output_mswin_message): Added code to output message
6099         parameters for WM_WINDOWPOSCHANGED, 
6100         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6101
6102 2002-05-25  Andy Piper  <andy@xemacs.org>
6103
6104         * select-x.c (vars_of_select_x): Fix docstring of
6105         x-selection-strict-motif-ownership
6106
6107 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6108
6109         * keymap.c (get_keymap):
6110         Add comment about do_autoload GCPROs own args.
6111
6112 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6113
6114         * bytecode.c (execute_optimized_program): check_opcode ifdef
6115         ERROR_CHECK_BYTE_CODE.
6116
6117 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6118
6119         Thanks to Ben Wing and Michael Sperber.
6120
6121         * eval.c (Fcommand_execute):
6122         (Feval):
6123         (Ffuncall):
6124         (Fmacroexpand_internal):
6125         (function_argcount):
6126         callint.c (Fcall_interactively):
6127         Add comment about do_autoload GCPROs own args.
6128
6129         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6130
6131         * eval.c (Ffuncall): Extra braces to placate GCC.
6132
6133 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6134
6135         * backtrace.h (grow_specpdl):
6136         (SPECPDL_RESERVE):
6137         * EmacsFrame.c (EmacsFrameSetValues):
6138         * eval.c (grow_specpdl):
6139         * ExternalShell.c (hack_event_masks_1):
6140         * glyphs-x.c (convert_EImage_to_XImage): 
6141         (x_finalize_image_instance):
6142         * ralloc.c (page_size):
6143         (r_alloc_sbrk):
6144         * xgccache.c (gc_cache_hash):
6145         Fix unsigned comparison warnings.
6146
6147 2002-07-29  Jerry James  <james@xemacs.org>
6148
6149         * lread.c (locate_file): Any nonnegative return value indicates
6150         success if MODE is nonnegative.
6151
6152 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6153
6154         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6155         argument. 
6156
6157 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6158
6159         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6160
6161         * dumper.c (pdump_get_indirect_count):
6162         (pdump_scan_by_alignment):
6163         (pdump_dump_root_struct_ptrs):
6164         (pdump_dump_rtables):
6165         (pdump_dump_root_objects):
6166         (pdump):
6167         * nas.c (WaveOpenDataForReading):
6168         * fns.c (print_bit_vector):
6169         * font-lock.c (SINGLE_SYNTAX_STYLE):
6170         * glyphs.c (check_for_ignored_expose):
6171         (find_matching_subwindow):
6172         * glyphs-eimage.c:
6173         * imgproc.c (get_histogram):
6174         * redisplay.c (point_in_line_start_cache):
6175         * redisplay-output.c (redisplay_unmap_subwindows):
6176         * symbols.c (defsymbol_massage_name_1):
6177         (defkeyword_massage_name):
6178         (deferror_massage_name_and_message):
6179         * redisplay-x.c (x_output_string): 
6180         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6181         * frame.h (struct frame):
6182         * filelock.c (current_lock_owner):
6183         * doprnt.c (emacs_doprnt_1):
6184         * lisp.h (struct Lisp_Bit_Vector):
6185         (DO_REALLOC):
6186         Fix warnings.
6187
6188 2002-02-13  Ben Wing  <ben@xemacs.org>
6189
6190         * event-stream.c (reset_key_echo):
6191         * event-stream.c (reset_this_command_keys):
6192         * event-stream.c (execute_command_event):
6193         If console is dead as a result of C-x 5 0, then post-command stuff
6194         needs to be careful and do only non-console-specific stuff.
6195
6196 2002-07-01  Mike Sperber <mike@xemacs.org>
6197
6198         * process-unix.c (unix_send_process): Mark coding_outstream as
6199         non-open upon SIGPIPE.
6200
6201         * event-stream.c (Fnext_event): Reorder switch cases to something
6202         that makes sense.
6203
6204 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6205
6206         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6207         Don't bogusly reinitialize ascii_character property.
6208
6209 2002-07-08  Mike Sperber <mike@xemacs.org>
6210
6211         * process.c (Fstart_process_internal): Do error checking before we
6212         fork off the child, so the child can't muck with the state of the
6213         parent.
6214
6215 2002-07-08  Mike Sperber <mike@xemacs.org>
6216
6217         * ralloc.c (init_ralloc): Allocate properly for pdump.
6218
6219 2002-06-12  Andy Piper  <andy@xemacs.org>
6220
6221         * glyphs.c (query_string_geometry): check the string.
6222
6223         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6224         widget names.
6225
6226 2002-06-17  Jerry James  <james@xemacs.org>
6227
6228         * sysdll.c: Remove RTLD_GLOBAL initialization.
6229         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6230
6231 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6232
6233         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6234
6235 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6236
6237         * sysdep.c (sys_rename): Make sys_rename work for the case where
6238         Windows rename sets errno to EACCES if target file exists.
6239
6240 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6241
6242         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6243         Fix detection of metric units to work on Win95
6244
6245 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6246
6247         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6248
6249 2002-04-25  Andy Piper  <andy@xemacs.org>
6250
6251         * redisplay.c (create_text_block): Remove extra comment trailer.
6252
6253 2002-04-24  Andy Piper  <andy@xemacs.org>
6254
6255         * redisplay.c (create_text_block): Don't actually add propagation
6256         data if the line ends after we have added a glyph.
6257
6258 2002-04-22  Andy Piper  <andy@xemacs.org>
6259
6260         * extents.c (extent_fragment_update): check for glyphs we have
6261         previously displayed.
6262         * extents.c (print_extent_1): warning removal.
6263         * extents.h: change prototype.
6264         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6265         widths correctly for wide glyphs.
6266         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6267         * redisplay.c (prop_type): add PROP_GLYPH.
6268         * redisplay.c (struct prop_block): add glyph type
6269         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6270         to the propagation data.
6271         * redisplay.c (create_text_block): if there is a glyph in the
6272         propagation data use it to salt extent_fragment_update.
6273         * redisplay.c (create_string_text_block): ditto.
6274
6275 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6276
6277         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6278         * redisplay-output.c (compare_runes): Compare them.
6279         * redisplay.c: Update copyright date.
6280         * redisplay.c (pos_data): Add need_baseline_computation field.
6281         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6282         need_baseline_computation; zero yoffset. Set max_pixmap_height
6283         for all pixmaps, not just automatically positioned ones.
6284         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6285         * redisplay.c (calculate_baseline): New, compute textual baseline.
6286         * redisplay.c (add_glyph_rune): Call them.
6287         * redisplay.c (create_text_block): Likewise.
6288         * redisplay.c (create_overlay_glyph_block): Likewise.
6289         * redisplay.c (add_margin_runes): Likewise.
6290         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6291
6292         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6293         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6294         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6295         * redisplay-msw.c (mswindows_output_string): Likewise.
6296         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6297         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6298         * redisplay-x.c (x_output_display_block): Likewise.
6299
6300 2002-03-28  Ben Wing  <ben@xemacs.org>
6301
6302         * redisplay.c: Fixed bug in redisplay
6303         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6304         and down of the lines, since they're bigger than the line
6305         size. (It was seen most obviously when there's a horizontal scroll
6306         bar, e.g. do C-h a glyph or something like that.) The problem was
6307         that the glyph-contrib-p setting on glyphs was ignored even if it
6308         was set properly, which it wasn't until now.
6309
6310 2002-04-24  Andy Piper  <andy@xemacs.org>
6311
6312         * lisp.h (Dynarr_end): Fix definition.
6313
6314 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6315
6316         * redisplay.c (mark_redisplay): Remove call to
6317         update_frame_window_mirror.
6318
6319 2001-11-15  Andy Piper  <andy@xemacs.org>
6320
6321         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6322         cygwin (again).
6323
6324 2002-02-13  Andy Piper  <andy@xemacs.org>
6325
6326         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6327         we did in fact enqueue the XM_MAPFRAME event.
6328
6329 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6330
6331         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6332         to fix problem switching between virtual desktops under virtuawin
6333         virtual window manager.
6334
6335 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6336
6337         * event-msw.c: Typo fix.
6338         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6339         magic XM_MAPFRAME event has been sent.
6340
6341 2001-11-23  Andy Piper  <andy@xemacs.org>
6342
6343         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6344
6345 2001-11-21  Andy Piper  <andy@xemacs.org>
6346
6347         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6348         mouse events outside the frame.
6349
6350 2002-03-20  Andy Piper  <andy@xemacs.org>
6351
6352         * menubar-msw.c (mswindows_popup_menu): warning removal.
6353         * dialog-msw.c (dialog_popped_down): ditto.
6354
6355 2001-12-11  Andy Piper  <andy@xemacs.org>
6356
6357         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6358         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6359         popup_up_p.
6360         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6361         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6362         * menubar-msw.c (mswindows_popup_menu): ditto.
6363
6364 2001-10-29  Andy Piper  <andy@xemacs.org>
6365
6366         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6367         cancels.
6368
6369 2002-01-03  Andy Piper  <andy@xemacs.org>
6370
6371         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6372         letters.
6373         (xrealpath): ditto.
6374
6375 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6376
6377         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6378         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6379         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6380         Detect and handle case where machine is set up for metric units
6381
6382 2002-04-02  Andy Piper  <andy@xemacs.org>
6383
6384         * dired-msw.c (mswindows_get_files): 
6385         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6386         completely handled by XEmacs. Suggested by Thomas Vogler
6387         <mail@thomas-vogler.de>.
6388
6389 2001-11-14  Andy Piper  <andy@xemacs.org>
6390
6391         * nt.c (REG_ROOT): change registry key to XEmacs.
6392
6393 2002-04-27  Andy Piper  <andy@xemacs.org>
6394
6395         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6396
6397 2002-04-26  Andy Piper  <andy@xemacs.org>
6398
6399         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6400         behavior.
6401
6402 2002-03-14  Mike Alexander  <mta@arbortext.com>
6403
6404         * event-msw.c (mswindows_unwait_process): New, remove process from
6405         wait list
6406         * process-nt.c (nt_finalize_process_data): Call
6407         mswindows_unwait_process
6408         * console-msw.h: Declare mswindows_unwait_process
6409
6410 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6411
6412         * editfns.c (Fdecode_time):
6413         (Fformat_time_string):
6414         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6415         (make_time): Warning elimination (change arg name).
6416
6417 2001-11-24  Andy Piper  <andy@xemacs.org>
6418
6419         * window.c (Fsplit_window): Doc return type.
6420
6421 2002-04-01  Andy Piper  <andy@xemacs.org>
6422
6423         * emacs.c (Fkill_emacs): Only output message box in interactive
6424         mode.
6425
6426 2002-04-26  Andy Piper  <andy@xemacs.org>
6427  
6428         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6429         cygwin.
6430
6431 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6432
6433         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6434         bit platform.
6435
6436 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6437
6438         * XEmacs 21.4.8 "Honest Recruiter" is released.
6439
6440 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6441
6442         Supersedes 2002-04-17 patch.
6443
6444         * process.h (PROCESS_LIVE_P): Use the process status as
6445         evidence of health, not the state of the input stream.
6446         (PROCESS_READABLE_P): Say if the process is readable
6447         from. (It may be dead nonetheless.)
6448         (CHECK_READABLE_PROCESS): Test for that condition.
6449
6450         * process.c (create_process): Use PROCESS_READABLE_P.
6451         (read_process_output, set_process_filter): Likewise.
6452
6453         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6454         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6455
6456         This code is #if 0'd, this is not the time to add new functions:
6457
6458         * process.c (Fprocess_readable_p): Report readability status.
6459         * process.c (Qprocess_readable_p): New, associated symbol...
6460         * process.c (syms_of_process): ... initialize it.
6461
6462 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6463
6464         * XEmacs 21.4.7 "Economic Science" is released.
6465
6466 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6467
6468         * process.h (PROCESS_LIVE_P): Use the process status as
6469         evidence of health, not the state of the input stream.
6470
6471 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6472
6473         * sysdep.c (sys_siglist): change "signum" to "signal"
6474
6475 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6476
6477         * s/darwin.h: New file.
6478         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6479         
6480 2002-04-23  Andreas Jaeger  <aj@suse.de>
6481
6482         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6483         which use lib64 for 64-bit libs.
6484         (START_FILES): Likewise.
6485
6486 2002-02-11  Mike Sperber  <mike@xemacs.org>
6487
6488         * device-x.c: 
6489         (x_IO_error_handler):
6490         (x_init_device): Temporarily keep device in static variable
6491         `device_being_initialized' so we can recover gracefully from
6492         internal XOpenDevice failure.  (XOpenDevice is documented to
6493         return NULL on failure, but sometimes calls the IO error handler
6494         instead.)
6495
6496 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6497
6498         * dired.c (Ffile_name_all_completions): Change documentation --
6499         remove reference to completion-ignored-extensions.
6500         * dired.c (vars_of_dired): Change documentation for
6501         completion-ignored-extensions -- remove reference to
6502         file-name-all-completions.
6503
6504 2002-03-06  Jerry James  <james@xemacs.org>
6505
6506         * emodules.c (emodules_load): Fix multiple loading of same module.
6507
6508 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6509         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6510         RTLD_LAZY to avoid incorrect symbol binding when using nested
6511         shared libraries on Solaris.
6512
6513 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6514
6515         * fileio.c (Ffind_file_name_handler): Improve docstring.
6516
6517 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6518
6519         * fns.c (Fmapconcat): Improve docstring.
6520
6521 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6522
6523         * device-gtk.c: Add prototype for
6524         emacs_gtk_selection_clear_event_handle.
6525         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6526         selection.  Setup signal handler for "selection_clear_event"
6527         (emacs_gtk_selection_clear_event_handle).
6528
6529         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6530         other applications owning the clipboard (based on
6531         x_handle_selection_clear).
6532
6533 2001-12-23  William M. Perry  <wmperry@gnu.org>
6534
6535         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6536         
6537 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6538
6539         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6540
6541 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6542
6543         * XEmacs 21.4.6 "Common Lisp" is released.
6544
6545 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6546
6547         * search.c (Freplace_match): Add missing sub-expression functionality.
6548
6549         * buffer.c (decode_buffer): Add a check for pointer type to
6550         decode_buffer, before gcc's CSE optimization reorders a
6551         dereference in front of the allow_string test.
6552
6553 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6554
6555         * window.c (window_loop): Fix bug that sometimes prevented
6556         window_loop() from iterating across multiple devices.  Also, at
6557         Ben's request, changed infloop-detecting code to abort() instead
6558         of silently terminating window_loop().
6559
6560 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6561
6562         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6563         * editfns.c (make_time): New function.
6564         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6565         * lisp.h (make_time): Prototype and comment it.
6566         * dired.c (wasteful_word_to_lisp): Deprecate.
6567         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6568
6569 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6570
6571         * fileio.c (auto_save_1): Use current coding system, not
6572         escape-quoted.
6573
6574 2001-11-13  Ben Wing  <ben@xemacs.org>
6575
6576         * window.c:
6577         * window.c (window_truncation_on):
6578         * window.c (syms_of_window):
6579         truncate-partial-width-windows should respect the buffer being
6580         displayed, like other redisplay vars.
6581
6582 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6583
6584         * event-stream.c (Fread_key_sequence): save current buffer.
6585
6586 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6587
6588         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6589
6590 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6591
6592         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6593
6594 2001-10-26  Mike Alexander  <mta@arbortext.com>
6595
6596         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6597
6598 2001-10-25  Andy Piper  <andy@xemacs.org>
6599
6600         * ChangeLog:
6601         * dialog-msw.c (handle_directory_proc): new function.
6602          (handle_directory_dialog_box): new fucntion.
6603          (handle_file_dialog_box): use new directory dialog support.
6604          (mswindows_make_dialog_box_internal): ditto.
6605         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6606         handling.
6607         (mswindows_find_frame): make global.
6608         * fileio.c (Fexpand_file_name): build fix.
6609         * general-slots.h: add Qdirectory.
6610         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6611         handling.
6612         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6613         cygwin not leaving win32 paths unchanged.
6614         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6615         cygwin runtime to do path conversion.
6616         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6617         (syms_of_win32): add new function.
6618         * window.c (window_loop): build fix.
6619
6620 2001-10-15  Andy Piper  <andy@xemacs.org>
6621
6622         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6623
6624 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6625
6626         * XEmacs 21.4.5 "Civil Service" is released.
6627
6628 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6629
6630         * glyphs-x.c: Force buffer-tab highlight update when moving the
6631         buffer, avoiding an ugly black border, used for keyboard focus
6632         indication, on a widget that can never have keyboard focus, the
6633         buffer tab.
6634
6635 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6636
6637         * process-unix.c (unix_open_multicast_group): Remove too much
6638         conversion between host and network byte order.
6639
6640 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6641
6642         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6643         before replacing them.
6644
6645         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6646         operation.
6647
6648         * src/window.c (undedicate_windows): Use it.
6649         * src/window.h: Add prototype.
6650
6651 2001-09-17  Ben Wing  <ben@xemacs.org>
6652
6653         * fileio.c (normalize_filename):
6654         * fileio.c (Fexpand_file_name):
6655         Fix various C++ compile errors in Andy's recent code.
6656         
6657         * callint.c (Fcall_interactively):
6658         * editfns.c (Ftemp_directory):
6659         * editfns.c (Fuser_full_name):
6660         * emacs.c (argmatch):
6661         * lread.c (locate_file_map_suffixes):
6662         * redisplay-x.c (x_ring_bell):
6663         Fix sign-compare warnings.
6664         
6665 2001-09-08  Andy Piper  <andy@xemacs.org>
6666
6667         * fileio.c (normalize_filename): copied from nt.c
6668         * (Ffile_name_directory): enable win32 paths under cygwin.
6669         * (Ffile_name_nondirectory): ditto.
6670         * (directory_file_name): ditto.
6671         * (Fexpand_file_name): ditto.
6672         * (Ffile_truename): ditto.
6673         * (Fsubstitute_in_file_name): ditto.
6674         * (Ffile_name_absolute_p): ditto.
6675         * (Ffile_readable_p): ditto.
6676
6677 2001-09-08  Andy Piper  <andy@xemacs.org>
6678
6679         * device-msw.c (mswindows_finish_init_device): remove dde
6680         initialization.
6681         * device-msw.c (mswindows_init_dde): factor out from
6682         mswindows_finish_init_device()
6683         * device-msw.c (init_mswindows_very_early): new function
6684         initialize but don't enable dde.
6685         * emacs.c (main_1): call init_mswindows_very_early.
6686         * event-msw.c:
6687         * event-msw.c (mswindows_dde_callback): only execute when we are
6688         ready.
6689         * symsinit.h: declare init_mswindows_very_early.
6690
6691 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6692
6693         [sjt: This has been in 21.5 for months with no complaints.]
6694
6695         * console.h (struct console_methods): Added flags member.
6696         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6697         (CONMETH_IMPL_FLAG):
6698         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6699         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6700
6701         * device.c (window_system_pixelated_geometry): Use the above macros.
6702
6703         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6704         implememntation flag.
6705         * device.h (DEVICE_DISPLAY_P): Use it.
6706
6707         * frame.c (delete_frame_internal): Use the above macro.
6708
6709         * redisplay.c (redisplay_device): Use it.
6710         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6711         (redisplay_frame): Ditto.
6712
6713         * device-msw.c (mswindows_device_implementation_flags): Removed.
6714         (msprinter_device_implementation_flags): Removed.
6715         (console_type_create_device_mswindows): Removed references to
6716         implementation_flags methods, set implementation flags here.
6717         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6718
6719         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6720         (console_type_create_device_gtk): Removed method declaration.
6721         Added commented out statement which semantically matches the
6722         commented out statement in the above removed method.
6723
6724 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6725
6726         The attached patch fixes a few warnings. 
6727
6728         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6729         * src/frame-gtk.c: guard against GNOME calls in GTK only
6730         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6731         * src/select-gtk.c: prototype lisp_to_time
6732
6733 2001-06-08  Ben Wing  <ben@xemacs.org>
6734
6735         ------ gc-in-window-procedure fixes ------
6736         
6737         * alloc.c:
6738         * alloc.c (struct post_gc_action):
6739         * alloc.c (register_post_gc_action):
6740         * alloc.c (run_post_gc_actions):
6741         * alloc.c (garbage_collect_1):
6742         Create "post-gc actions", to avoid those dreaded "GC during window
6743         procedure" problems.
6744
6745         * event-msw.c:
6746         Abort, clean and simple, when GC in window procedure.  We want
6747         to flush these puppies out.
6748
6749         * glyphs-msw.c:
6750         * glyphs-msw.c (finalize_destroy_window):
6751         * glyphs-msw.c (mswindows_finalize_image_instance):
6752         Use a post-gc action when destroying subwindows.
6753
6754         * lisp.h:
6755         Declare register_post_gc_action().
6756
6757         * scrollbar-msw.c:
6758         * scrollbar-msw.c (unshow_that_mofo):
6759         Use a post-gc action when unshowing scrollbar windows, if in gc.
6760
6761         * redisplay.c (mark_redisplay):
6762         Add comment about the utter evilness of what's going down here.
6763
6764         ------ cygwin setitimer fixes ------
6765         
6766         * Makefile.in.in (sheap_objs):
6767         * Makefile.in.in (profile_objs):
6768         * Makefile.in.in (objs):
6769         Compile profile.c only when HAVE_SETITIMER.
6770         
6771         * nt.c (mswindows_sigset):
6772         * nt.c (mswindows_sighold):
6773         * nt.c (mswindows_sigrelse):
6774         * nt.c (mswindows_sigpause):
6775         * nt.c (mswindows_raise):
6776         * nt.c (close_file_data):
6777         Style fixes.
6778         
6779         * nt.c:
6780         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6781         
6782         * profile.c:
6783         * profile.c (Fstart_profiling):
6784         * profile.c (Fstop_profiling):
6785         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6786         instead of just plain setitimer().
6787         
6788         * signal.c:
6789         * signal.c (set_one_shot_timer):
6790         * signal.c (alarm):
6791         Define qxe_setitimer() as an encapsulation around setitimer() --
6792         call setitimer() directly unless Cygwin or MS Win, in which case
6793         we use our simulated version in win32.c.
6794         
6795         * systime.h:
6796         * systime.h (struct itimerval):
6797         * systime.h (ITIMER_REAL):
6798         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6799         comment about "qxe" and the policy regarding encapsulation.
6800
6801         * win32.c:
6802         * win32.c (setitimer_helper_proc):
6803         * win32.c (setitimer_helper_period):
6804         * win32.c (setitimer_helper):
6805         * win32.c (mswindows_setitimer):
6806         Move setitimer() emulation here, so Cygwin can use it.
6807         Rename a couple of functions and variables to be longer and more
6808         descriptive.  In setitimer_helper_proc(), send the signal
6809         using either mswindows_raise() or (on Cygwin) kill().  If for
6810         some reason we are still getting lockups, we'll change the kill()
6811         to directly invoke the signal handlers.
6812
6813         ------ windows shell fixes ------
6814         
6815         * callproc.c:
6816         * ntproc.c:
6817         Comments about how these two files must die.
6818
6819         * callproc.c (init_callproc):
6820         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6821         not just COMSPEC. (more correct and closer to FSF.) Don't
6822         force a value for SHELL into the environment. (Comments added
6823         to explain why not.)
6824         
6825         * nt.c (init_user_info):
6826         Don't shove a fabricated SHELL into the environment.  See above.
6827
6828 2001-06-01  Ben Wing  <ben@xemacs.org>
6829
6830         * Makefile.in.in (ldflags):
6831         eliminate that pesky "defaulting to 00401000" warning.
6832         * nt.h:
6833         eliminate warnings.
6834
6835 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6836
6837         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6838         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6839
6840 2001-04-24  Jerry James <james@xemacs.org>
6841
6842         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6843         correct order.
6844
6845 2001-06-01  Ben Wing  <ben@xemacs.org>
6846
6847         * event-msw.c (debug_mswin_messages):
6848         conditionalize the messages that were causing compile errors.
6849         (if only macros could generate #ifdef statements ...)
6850
6851 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6852
6853         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6854
6855 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6856
6857         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6858
6859 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6860
6861         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6862         * process-unix.c (unix_canonicalize_host_name):
6863         sysdep.c (init_system_name):
6864         Use it to conditionally support IPv6 canonicalization.
6865
6866 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6867
6868         * event-msw.c:
6869         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6870
6871 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6872
6873         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6874         attempt is made to scroll when no scroll bar is available.
6875
6876 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6877
6878         * input-method-motif.c (XIM_delete_frame): New callback.
6879         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6880         got deleted from 21.4.3.)
6881
6882 2001-06-01  Ben Wing  <ben@xemacs.org>
6883
6884         * nt.c (mswindows_utime):
6885         * nt.c (close_file_data):
6886         fix off-by-one-indirection error.
6887
6888 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6889
6890         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6891         because set_file_times() now takes Lisp_Object path, instead of
6892         char*.
6893         * nt.c: Include buffer.h.
6894         * nt.c (convert_from_time_t): New.
6895         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6896         not set mtime correctly.
6897         * nt.h: Declare mswindows_utime().
6898         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6899         path, instead of char*.
6900         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6901
6902 2001-05-30  Ben Wing  <ben@xemacs.org>
6903
6904         For 21.4:
6905
6906         (Stephen, just take all event-msw.c patches.  This includes
6907         the "iconify" fix below.)
6908
6909         * event-msw.c:
6910         * event-msw.c (mswindows_dequeue_dispatch_event):
6911         * event-msw.c (assert):
6912         * event-msw.c (emacs_mswindows_quit_p):
6913         * event-msw.c (debug_mswin_messages):
6914         * event-msw.c (debug_output_mswin_message):
6915         * event-msw.c (vars_of_event_mswindows):
6916         Fix yet more problems with C-g handling.
6917         Implement debug-mswindows-events.
6918         
6919 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6920
6921         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6922         
6923 2001-05-23  Ben Wing  <ben@xemacs.org>
6924
6925         * event-msw.c (winsock_writer):
6926         * event-msw.c (winsock_closer):
6927         prior kludgy code was clobbering the buffer, thinking it was
6928         "unused" space to store an unneeded return value; instead, use
6929         the variable we've already got staring us in the face.
6930
6931 2001-05-17  Andy Piper  <andy@xemacs.org>
6932
6933         * sysfile.h: don't assume that file attributes are boolean
6934
6935 2001-05-23  Ben Wing  <ben@xemacs.org>
6936
6937         * device-msw.c (msprinter_init_device):
6938         signal an error rather than crash with an unavailable network
6939         printer (from Mike Alexander).
6940         
6941         * event-msw.c:
6942         * event-msw.c (struct winsock_stream):
6943         * event-msw.c (winsock_writer):
6944         * event-msw.c (winsock_closer):
6945         * event-msw.c (make_winsock_stream_1):
6946         cleanup headers.  fix (hopefully) an error with data corruption
6947         when sending to a network connection.
6948
6949         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6950         to handle the ~user prefix by (a) always assuming we're referencing
6951         ourselves and not even verifying the user -- hence any file with
6952         a tilde as its first char is invalid! (b) if there wasn't a slash
6953         following the filename, the pointer was set *past* the end of
6954         file and we started reading from uninitialized memory.  Now we
6955         simply treat these as files, always.
6956
6957         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6958         
6959 2001-05-19  Ben Wing  <ben@xemacs.org>
6960
6961         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6962
6963         * process-nt.c:
6964         * process-nt.c (vars_of_process_nt):
6965         remove unused mswindows-quote-process-args.  rec for 21.4.
6966         
6967 2001-05-12  Ben Wing  <ben@xemacs.org>
6968
6969         * event-msw.c (mswindows_dde_callback):
6970         * event-msw.c (mswindows_wnd_proc):
6971         eliminate cygwin warnings.
6972
6973 2001-05-06  Ben Wing  <ben@xemacs.org>
6974
6975         * console-msw.h:
6976         * device-msw.c:
6977         * device-msw.c (print_dialog_worker):
6978         * device-msw.c (mswindows_handle_print_dialog_box):
6979         * device-msw.c (syms_of_device_mswindows):
6980         * dialog-msw.c (mswindows_make_dialog_box_internal):
6981         * general-slots.h:
6982         implement printing the selection when it's selected.
6983
6984 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6985
6986         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6987
6988 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6989
6990         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6991         EMACS_INT is signed.
6992
6993 2001-04-15  Michael Lausch  <mla@1012surf.net>
6994
6995         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6996         gtk_widget_request_size() to give scrollbar >0 width for
6997         GTK >1.2.8.
6998
6999 2001-05-30  William M. Perry  <wmperry@gnu.org>
7000
7001         * event-gtk.c: Check for buttons as modifier keys.
7002
7003 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7004
7005         * s\mingw32.h:
7006         Properly find MinGW's <process.h> inside Cygwin's restructured
7007         include directories.  Don't try to include <cygwin/version.h>
7008         since we are dropping support for MinGW in versions of Cygwin
7009         earlier than b21.
7010         * nt.c:
7011         Drop support for MinGW in versions of Cygwin before b21.
7012         * sysdep.c:
7013         Properly find MinGW's <process.h> inside Cygwin's restructured
7014         include directories.
7015         * syswindows.h:
7016         Drop support for MinGW in versions of Cygwin before b21.
7017         * unexcw.c:
7018         Even though a.out.h is no longer detected by configure, allow
7019         MinGW to use it until we figure out how to do the job with Win32.
7020
7021 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7022
7023         * syntax.c (find_start_of_comment):
7024         Fix `unbalanced parentheses' bug when dealing with mixed comment
7025         styles in c++/java/etc. mode
7026
7027 2001-05-29  Mike Alexander  <mta@arbortext.com>
7028
7029         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7030         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7031
7032 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7033
7034         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7035
7036 2001-03-31  Mike Sperber <mike@xemacs.org>
7037
7038         * search.c (Freplace_match): Support FSF-style specification of
7039         match subexpression when applied to a buffer.
7040
7041 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7042
7043         * event-stream.c (is_scrollbar_event): add missing semicolon
7044
7045 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7046
7047         * Makefile.in.in: Use TAR macro instead of hardcoding
7048           tar.  Allows use of GNU tar instead of system tar
7049
7050 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7051
7052         * event-stream.c (is_scrollbar_event): add missing semicolon
7053
7054 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7055
7056         * XEmacs 21.4.3 "Academic Rigor" is released.
7057
7058 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7059
7060         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7061
7062 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7063
7064         * buffer.c (Vcase_fold_search): Remove obsolete
7065           comment about non ASCII case-fold-search.  This
7066           bug has been fixed by case-table changes.
7067
7068 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7069
7070         * event-msw.c: Restore include of events-mod.h.
7071
7072 2001-04-22   zhaoway  <zw@debian.org>
7073
7074         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7075         !HAVE_SCROLLBARS.
7076
7077 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7078
7079         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7080
7081 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7082
7083         * mule-charset.c (Fmake_charset): Add missing else.
7084
7085 2001-04-23  Ben Wing  <ben@xemacs.org>
7086
7087         * event-msw.c (FAKE_MOD_QUIT):
7088         * event-msw.c (mswindows_dequeue_dispatch_event):
7089         * event-msw.c (mswindows_wnd_proc):
7090         * event-msw.c (emacs_mswindows_quit_p):
7091         Get critical quit working.
7092
7093 2001-05-05  Ben Wing  <ben@xemacs.org>
7094
7095         * console-msw.h:
7096         * device-msw.c:
7097         * device-msw.c (mswindows_get_default_margin):
7098         * frame-msw.c (mswindows_size_frame_internal):
7099         * frame-msw.c (msprinter_init_frame_1):
7100         * frame-msw.c (vars_of_frame_mswindows):
7101         Change top/bottom margin defaults to 0.5 inches.
7102
7103 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7104
7105         Fix link error with gcc 3.0 on Linux.
7106         * terminfo.c (UP): Remove.
7107         * terminfo.c (BC): Remove.
7108         * terminfo.c (PC): Remove.
7109         They weren't used, and in any case, these symbols should be
7110         defined in the *library*.
7111
7112 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7113
7114         * s/aix4.h: Fix crash with xlc -O3.
7115         Improve comment explaining how -O3 works.
7116
7117 2001-04-15  Ben Wing  <ben@xemacs.org>
7118
7119         * event-stream.c:
7120         * event-stream.c (Fnext_event):
7121         * event-stream.c (is_scrollbar_event):
7122         * event-stream.c (execute_command_event):
7123         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7124         crash' problem.  His fix introduces other problems.  We filter
7125         out scrollbar events specifically, making them somewhat invisible
7126         to command-building, and not appearing in `this-command-keys'.
7127         More work is still needed (see comments in event-stream.c), but
7128         this fixes all the major problems.
7129
7130 2001-04-20  Ben Wing  <ben@xemacs.org>
7131
7132         * .cvsignore: Added stuff for Windows.
7133
7134 2001-04-28  Ben Wing  <ben@xemacs.org>
7135
7136         * buffer.c (Ferase_buffer):
7137         * editfns.c (buffer_insert1):
7138         * editfns.c (Finsert_before_markers):
7139         * editfns.c (Finsert_string):
7140         * editfns.c (Finsert_char):
7141         * editfns.c (Fdelete_region):
7142         * editfns.c (Fwiden):
7143         * editfns.c (Fnarrow_to_region):
7144         remove bogus lines setting zmacs_region_stays to 0.
7145         
7146 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7147
7148         * process-unix.c (unix_open_network_stream): If connect() fails
7149         invalidate file descriptor after closing it.
7150
7151 2001-03-08  Mike Alexander  <mta@arbortext.com>
7152
7153         * event-msw.c (mswindows_need_event_in_modal_loop):
7154         Don't dispatch a message if we didn't get one.
7155         (mswindows_need_event):
7156         Terminate the correct process when one exits instead of the first
7157         one on Vprocess_list and look for process termination when in
7158         mswindows_protect_modal_loop.
7159
7160 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7161
7162         * XEmacs 21.4.1 "Copyleft" is released.
7163
7164 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7165
7166         * input-method-motif.c (XIM_delete_frame): New callback.
7167         (XIM_init_frame): Register it.
7168
7169 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7170
7171         * XEmacs 21.4.0 "Solid Vapor" is released.
7172
7173 2001-04-15  Ben Wing  <ben@xemacs.org>
7174
7175         * cmdloop.c (call_command_loop):
7176         Fix braino in bit-rotting code.
7177         
7178 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7179
7180         * extents.c (Fset_extent_endpoints): Force creation of extent info
7181         in buffer_or_string.
7182
7183         * extents.c (process_extents_for_insertion_mapper): Correctly
7184         check for open-open zero-length extents.
7185
7186 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7187
7188         * lisp.h: New typedefs Memory_count, Element_count.
7189         * regex.c:
7190         * regex.h:
7191         Sign-compare warning elimination: several unsigned -> signed.
7192         Based on work by Ben Wing <ben@xemacs.org>.
7193
7194 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7195
7196         * XEmacs 21.2.47 "Zephir" is released.
7197
7198 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7199
7200         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7201
7202 2001-04-03  Mike Sperber <mike@xemacs.org>
7203
7204         * search.c: Revert previous patch due because of release.
7205
7206 2001-03-30  Ben Wing  <ben@xemacs.org>
7207
7208         * s\cygwin32.h:
7209         Add missing killpg prototype.
7210
7211         * elhash.c:
7212         Add a comment about fixing problems when a new entry is added
7213         while mapping.
7214
7215         * frame-msw.c (mswindows_init_frame_1):
7216         Fix compile warnings.
7217
7218         * menubar.c (vars_of_menubar):
7219         Provide `menu-accelerator-support' to indicate that we properly
7220         support %_ in menu specifications, so that package code can
7221         conditionalize on this (and remove %_ from menu specifications
7222         on older versions).
7223
7224         * event-msw.c:
7225         * scrollbar-msw.c:
7226         * scrollbar-msw.c (can_scroll):
7227         * scrollbar-msw.h:
7228         Fix handling of mouse wheel under Windows to follow standards --
7229         now scrolls window under pointer, not selected window.
7230
7231 2001-03-31  Mike Sperber <mike@xemacs.org>
7232
7233         * search.c (Freplace_match): Support FSF-style specification of
7234         match subexpression when applied to a buffer.
7235
7236 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7237
7238         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7239         function to modify KEYMAP, so map over a copy of the hash table.
7240
7241 2001-03-21  Martin Buchholz <martin@xemacs.org>
7242
7243         * XEmacs 21.2.46 "Urania" is released.
7244
7245 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7246
7247         * realpath.c (xrealpath): Make file-truename work with symlinks to
7248         /cygdrive paths on cygwin. Always lowercase drive-letters on
7249         native windows.
7250         (cygwin_readlink): Don't try to find canonical filename unless
7251         file exists.
7252
7253 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7254
7255         * ChangeLog: Log GTK merge.
7256
7257         * dumper.c:
7258         * select-x.c:
7259         * specifier.c:
7260         * symeval.h:
7261         Revert gratuitous whitespace changes from GTK merge.
7262
7263         * emacs.c: Document end of complex #ifdef @ l. 1495.
7264
7265
7266 2001-03-12  Andy Piper  <andy@xemacs.org>
7267
7268         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7269         have to do likewise.
7270
7271 2001-03-12  Andy Piper  <andy@xemacs.org>
7272
7273         * sysdep.c: we only support mingw now.
7274
7275 2001-03-09  Andy Piper  <andy@xemacs.org>
7276
7277         * unexcw.c (copy_executable_and_dump_data_section): making approx
7278         overrun a warning only.
7279
7280 2001-03-10  William M. Perry  <wmperry@aventail.com>
7281
7282         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7283         satisfy Stephen's identical-after-cpp plea.
7284
7285 2001-03-02  Ben Wing  <ben@xemacs.org>
7286
7287         * cmds.c:
7288         * cmds.c (Fforward_char):
7289         * syntax.c:
7290         * window.c:
7291
7292         Augment documentation of the most common motion commands to make
7293         note of the shifted-motion support.
7294         
7295 2001-03-02  Ben Wing  <ben@xemacs.org>
7296
7297         * nt.c (mswindows_fstat):
7298         * nt.c (mswindows_stat):
7299         * search.c (boyer_moore):
7300         Fix compile warnings under Windows.
7301         
7302         * sysdep.c (sys_readdir):
7303         Fix buggy filename-conversion code under Mule.
7304
7305 2001-03-09  William M. Perry  <wmperry@aventail.com>
7306
7307         * Makefile.in.in:
7308         * config.h.in:
7309         * console.c:
7310         * console.h:
7311         * device.c:
7312         * device.h:
7313         * dragdrop.c:
7314         * emacs.c:
7315         * event-stream.c:
7316         * events.c:
7317         * events.h:
7318         * faces.c:
7319         * frame.h:
7320         * general-slots.h:
7321         * glyphs.c:
7322         * gutter.c:
7323         * inline.c:
7324         * lisp.h:
7325         * lrecord.h:
7326         * make-src-depend:
7327         * redisplay-output.c:
7328         * redisplay.c:
7329         * symsinit.h:
7330         * sysfile.h:
7331         * toolbar.c:
7332         * window.c:
7333         The Great GTK Merge.
7334
7335         * ChangeLog.GTK:
7336         * console-gtk.c:
7337         * console-gtk.h:
7338         * device-gtk.c:
7339         * emacs-marshals.c:
7340         * emacs-widget-accessors.c:
7341         * event-gtk.c:
7342         * frame-gtk.c:
7343         * gccache-gtk.c:
7344         * gccache-gtk.h:
7345         * glade.c:
7346         * glyphs-gtk.c:
7347         * glyphs-gtk.h:
7348         * gtk-glue.c:
7349         * gtk-xemacs.c:
7350         * gtk-xemacs.h:
7351         * gui-gtk.c:
7352         * gui-gtk.h:
7353         * menubar-gtk.c:
7354         * native-gtk-toolbar.c:
7355         * objects-gtk.c:
7356         * objects-gtk.h:
7357         * redisplay-gtk.c:
7358         * scrollbar-gtk.c:
7359         * scrollbar-gtk.h:
7360         * select-gtk.c:
7361         * toolbar-gtk.c:
7362         * ui-byhand.c:
7363         * ui-gtk.c:
7364         * ui-gtk.h:
7365         The Great GTK Merge: new files.
7366
7367 2001-02-26  Ben Wing  <ben@xemacs.org>
7368
7369         Reapplied Lstream change.
7370
7371 2001-02-26  Ben Wing  <ben@xemacs.org>
7372
7373         Undid the last change, since it is more controversial than I
7374         thought.  It should be back in at some point soon.
7375         
7376 2001-02-25  Ben Wing  <ben@xemacs.org>
7377
7378         * buffer.c:
7379         * callproc.c (Fold_call_process_internal):
7380         * event-msw.c (ntpipe_slurp_reader):
7381         * event-msw.c (ntpipe_shove_writer):
7382         * event-msw.c (winsock_reader):
7383         * event-msw.c (winsock_writer):
7384         * file-coding.c:
7385         * file-coding.c (detect_eol_type):
7386         * file-coding.c (detect_coding_type):
7387         * file-coding.c (determine_real_coding_system):
7388         * file-coding.c (Fdetect_coding_region):
7389         * file-coding.c (decoding_reader):
7390         * file-coding.c (decoding_writer):
7391         * file-coding.c (mule_decode):
7392         * file-coding.c (Fdecode_coding_region):
7393         * file-coding.c (encoding_reader):
7394         * file-coding.c (encoding_writer):
7395         * file-coding.c (mule_encode):
7396         * file-coding.c (Fencode_coding_region):
7397         * file-coding.c (detect_coding_sjis):
7398         * file-coding.c (decode_coding_sjis):
7399         * file-coding.c (encode_coding_sjis):
7400         * file-coding.c (detect_coding_big5):
7401         * file-coding.c (decode_coding_big5):
7402         * file-coding.c (encode_coding_big5):
7403         * file-coding.c (detect_coding_ucs4):
7404         * file-coding.c (decode_coding_ucs4):
7405         * file-coding.c (encode_coding_ucs4):
7406         * file-coding.c (detect_coding_utf8):
7407         * file-coding.c (decode_coding_utf8):
7408         * file-coding.c (encode_coding_utf8):
7409         * file-coding.c (detect_coding_iso2022):
7410         * file-coding.c (decode_coding_iso2022):
7411         * file-coding.c (encode_coding_iso2022):
7412         * file-coding.c (decode_coding_no_conversion):
7413         * file-coding.c (encode_coding_no_conversion):
7414         * glyphs-x.c (write_lisp_string_to_temp_file):
7415         * gpmevent.c (tty_get_foreign_selection):
7416         * lisp.h:
7417         * lstream.c:
7418         * lstream.c (Lstream_flush_out):
7419         * lstream.c (Lstream_adding):
7420         * lstream.c (Lstream_write_1):
7421         * lstream.c (Lstream_write):
7422         * lstream.c (Lstream_raw_read):
7423         * lstream.c (Lstream_read_more):
7424         * lstream.c (Lstream_read):
7425         * lstream.c (Lstream_unread):
7426         * lstream.c (Lstream_fputc):
7427         * lstream.c (stdio_reader):
7428         * lstream.c (stdio_writer):
7429         * lstream.c (filedesc_reader):
7430         * lstream.c (filedesc_writer):
7431         * lstream.c (lisp_string_reader):
7432         * lstream.c (struct fixed_buffer_stream):
7433         * lstream.c (make_fixed_buffer_input_stream):
7434         * lstream.c (make_fixed_buffer_output_stream):
7435         * lstream.c (fixed_buffer_reader):
7436         * lstream.c (fixed_buffer_writer):
7437         * lstream.c (struct resizing_buffer_stream):
7438         * lstream.c (resizing_buffer_writer):
7439         * lstream.c (dynarr_writer):
7440         * lstream.c (lisp_buffer_reader):
7441         * lstream.c (lisp_buffer_writer):
7442         * lstream.h:
7443         * lstream.h (lstream_implementation):
7444         * lstream.h (struct lstream):
7445         * md5.c (Fmd5):
7446         * process-nt.c (nt_send_process):
7447         * process-unix.c (unix_send_process):
7448         
7449         Correct Lstream lossage due to mixing of signed and unsigned
7450         quantities.  All Lstream uses of size_t and ssize_t are now a
7451         single signed data type Lstream_data_count.  This fixes problems
7452         under Windows with sending large quantities of data to a process,
7453         and may well fix other subtle bugs.
7454
7455 2001-02-23  Martin Buchholz <martin@xemacs.org>
7456
7457         * XEmacs 21.2.45 "Thelxepeia" is released.
7458
7459 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7460
7461         * lisp-union.h (XSETINT): 
7462         (XSETCHAR):
7463         (XSETOBJ): 
7464         Reverse previous change of 2001-02-06.
7465
7466 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7467
7468         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7469         buffers.
7470         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7471         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7472         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7473         * regex.c (POS_AS_IN_BUFFER): removed
7474         * regex.c (re_search_2):
7475         * regex.c (re_match_2):
7476         Don't use an offset of 1 when calculating buffer positions, since
7477         `BI_BUF_BEGV' does it already.
7478
7479 2001-02-18  Wim Dumon  <wim@easics.be>
7480
7481         * insdel.c (prepare_to_modify_buffer): Also check for
7482         supersession when clash-detection is enabled. 
7483
7484 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7485
7486         * regex.c (re_match_2_internal):
7487         Convert temp characters from 'const unsigned char' to 're_char'.
7488         Fix crashing bug with extended characters under mule.
7489         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7490         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7491         font-lock, pdump, and new syntax-table code.
7492         * syntax.c (find_start_of_comment):
7493         (find_end_of_comment):
7494         (forward-comment):
7495         Fix crashing bugs involving moving beyond end of buffer.
7496         * syntax.c (find_start_of_comment):
7497         Fixed logic to allow proper detection of cases where the same
7498         character is used to end both a two-char comment start and a
7499         two-char comment end sequence. Fixes `(forward-comment -1)'.
7500         * syntax.c (find_start_of_comment):
7501         Return position just past last comment-end character for all cases
7502         (previously was only done for two-char comment-end sequences).
7503         * syntax.c (forward-comment):
7504         Take value returned from `find_end_of_comment', rather than
7505         incrementing it.
7506         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7507         Properly deal with BUFFERP (syntax_cache.object)
7508
7509 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7510
7511         * alloc.c (Fgarbage_collect): 
7512         * alloc.c (make_bit_vector_from_byte_vector):
7513         -Wsign-compare-correctness.
7514
7515 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7516
7517         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7518         (XSETCHAR): Likewise.
7519         (XSETOBJ): Likewise.
7520
7521 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7522
7523         * mule-canna.c (canna-func-delete_previous): 
7524         Rename to canna-func-delete-previous.
7525
7526 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7527
7528         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7529
7530 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7531
7532         * font-lock.c (find_context): Fix C++ compile errors introduced by
7533         recent patch
7534
7535 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7536
7537         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7538         pragma, but earlier ones barf on the same pragma.
7539
7540 2001-02-06  Mike Sperber <mike@xemacs.org>
7541
7542         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7543         `configure-mule-lisp-directory'.
7544
7545 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7546
7547         Make sure dump-id.c is compiled in the same way as other .c's.
7548         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7549         * dump-id.h: Remove.
7550         * emacs.c: Move dump-id.h into dumper.h.
7551         * dumper.h: Move dump-id.h into dumper.h.
7552         * Makefile.in.in:
7553         Use standard .c.o rule for building dump-id.o.
7554         Remove preprocessor flags from link command.
7555         Add dump-id.o to ${otherobjs} if PDUMP.
7556
7557 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7558
7559         Port FSF 20.7 syntax table improvements.
7560         * syntax.c.
7561         * syntax.h.
7562
7563         Fixups for new syntax table stuff.
7564         * dired.c: Include syntax.c.
7565         (Fdirectory_files): Initialize regex_match_object and
7566         regex_emacs_buffer.
7567         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7568         and Fget_char_property.
7569
7570         Use ported FSF 20.7 syntax table improvements.
7571         * font-lock.c.
7572         * regex.c.
7573         * search.c.
7574         
7575 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7576
7577         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7578         Unixware's enum boolean from sys/types.h.
7579
7580 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7581
7582         Fix support for building with latest Purify.
7583         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7584         (PURIFY_FLAGS): Likewise.
7585
7586 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7587
7588         * fileio.c (lisp_string_set_file_times): New.
7589         * fileio.c (Fcopy_file): Use it.
7590         Fixes bug:
7591         (copy-file filename non-ascii-filename t t)
7592         ==> No such file or directory, non-ascii-filename
7593
7594 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7595
7596         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7597         USHRT_MAX seems clearer than ~0 anyways.
7598
7599 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7600
7601         dumper improvements.  Inspired by Olivier.
7602         * dumper.c (pdump_max_align): New.
7603         * dumper.c (pdump_add_entry): Use pdump_max_align.
7604         * dumper.c (pdump_get_entry_list): Likewise.
7605         * dumper.c (pdump_scan_by_alignment): Likewise.
7606         Don't iterate through unnecessary alignments.
7607         * dumper.c (pdump_file_get): No need to align result of malloc().
7608         * dumper.c (pdump_mallocadr): Remove.  
7609         The result of malloc() is guaranteed to be maximally aligned.
7610         * dumper.c: s/elmt/elt/g;
7611         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7612         * dumper.c (pdump_alert_undump_object): Likewise.
7613         * dumper.c (pdump_align_table): 
7614         Don't support alignments > 64.
7615         Store ALIGNOF's, not shift counts, in table.
7616
7617 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7618
7619         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7620         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7621         * systime.h: Use HAVE_UTIME.
7622         * sysdep.c (struct utimbuf): Remove.
7623         * sysdep.c (set_file_times): Prefer utime() to utimes().
7624         * config.h.in (HAVE_UTIME): New.
7625         * config.h.in (HAVE_UTIME_H): Remove.
7626         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7627
7628 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7629
7630         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7631
7632 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7633
7634         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7635
7636 2001-02-08  Martin Buchholz <martin@xemacs.org>
7637
7638         * XEmacs 21.2.44 "Thalia" is released.
7639
7640 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7641
7642         Fixes crashes in kill-emacs on some systems.
7643         * process-unix.c (unix_kill_child_process):
7644         It's OK for kill() to fail with ESRCH.
7645
7646 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7647
7648         Contortions to make .gdbinit tricks work on most systems.
7649         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7650         * alloc.c (dbg_valmask): Make non-const.
7651         * alloc.c (dbg_typemask): Make non-const.
7652         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7653         * alloc.c (dbg_valbits): Make non-const.
7654         * alloc.c (dbg_gctypebits): Make non-const.
7655         * .gdbinit (decode_object): Make it work with AIX cc.
7656
7657 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7658
7659         * elhash.c (make_general_lisp_hash_table):
7660         Use simpler and more efficient calloc to clear entries.
7661
7662 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7663
7664         * window.c (window_scroll): Work around an AIX C compiler bug.
7665         Fixes 'scroll-up' does nothing problem with xlC.
7666
7667 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7668
7669         * .gdbinit: Remove obsolete comment.
7670
7671 2001-01-31  Mike Alexander  <mta@arbortext.com>
7672
7673         * select.c (Fown_selection_internal): Set owned_p for device
7674         method correctly.
7675
7676 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7677
7678         Port to g++ 2.97.
7679         "not" cannot be used as a macro name as it is an operator in C++
7680         * config.h.in: Stop #defining `not'.
7681         * chartab.c (check_category_char): not ==> not_p
7682         * chartab.h: Likewise.
7683         * regex.c (re_match_2_internal): Likewise.
7684
7685 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7686
7687         * lisp-disunion.h: Fix up comments.
7688
7689 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7690
7691         * keymap.c (define_key_check_and_coerce_keysym):
7692         (syms_of_keymap):
7693         Support mouse-6 and mouse-7 bindings in the obvious way.
7694
7695 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7696
7697         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7698
7699 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7700
7701         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7702         Previous patch missed DEFVAR_INT_MAGIC.
7703         Make sure future DEFVAR_foo use correct types.
7704         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7705         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7706         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7707         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7708         * (DEFVAR_INT): Likewise.
7709         * redisplay.c (vertical_clip): Should be of type Fixnum.
7710         * redisplay.c (horizontal_clip): Likewise.
7711         * lisp.h (dump_add_opaque_int): New.
7712         (dump_add_opaque_fixnum): New.
7713
7714 2001-01-29  Andy Piper  <andy@xemacs.org>
7715
7716         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7717         since they can be eval'ed
7718
7719 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7720
7721         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7722         Oops, XEmacs redefines `class'.  Use `typename' instead.
7723
7724 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7725
7726         * dumper.c: Fix C++ compile errors.
7727
7728 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7729
7730         * tparam.c: Use correct prototypes.
7731
7732 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7733
7734         * sysproc.h: #include util.h for NetBSD's openpty.
7735
7736 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7737
7738         More 64-bit correctness.
7739         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7740         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7741         Fix up comments.
7742         This finally finishes the 64-bit SGI port.
7743         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7744         * symbols.c: Fix up comments and type casts.
7745         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7746         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7747         * symeval.h (Fixnum): New type.
7748         * symeval.h (symbol_value_type): Fix up comment.
7749
7750         * commands.h:
7751         * nt.c:
7752         * emacs.c:
7753         * data.c:
7754         * redisplay.c:
7755         * abbrev.c:
7756         * dired-msw.c:
7757         * event-Xt.c:
7758         * eldap.c:
7759         * window.c:
7760         * sound.c:
7761         * event-stream.c:
7762         * eval.c:
7763         * buffer.c:
7764         * mule-canna.c: A million DEFVAR_INTs here...
7765         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7766         * extents.c:
7767         * cmdloop.c:
7768         * lisp.h:
7769         * select-x.c:
7770         * console-x.h:
7771         * event-msw.c:
7772         * mule-wnnfns.c:
7773         * hpplay.c:
7774         * ralloc.c:
7775         * alloc.c:
7776         * keymap.c:
7777         * profile.c:
7778         s/int/Fixnum/g in DEFVAR_INT declarations.
7779
7780 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7781
7782         Port pdump to SGI alignment-sensitive environment.
7783         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7784         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7785         properly aligned.
7786         Define and use aligned reading and writing macros.
7787         Use buffered stdio instead of posix i/o for faster dumping.
7788         Eliminate kludgy 256 byte space for header.
7789         Read and write from dump file using structs for alignment safety.
7790         * dumper.c (pdump_align_stream): New.
7791         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7792         * dumper.c (PDUMP_READ_ALIGNED): New.
7793         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7794         * dumper.c (pdump_static_Lisp_Object): New struct.
7795         * dumper.c (pdump_static_pointer): New struct.
7796         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7797         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7798         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7799         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7800
7801         * dumper.c (pdump_backtrace):
7802         * dumper.c (pdump_get_indirect_count):
7803         * dumper.c (pdump_register_object):
7804         * dumper.c (pdump_register_struct):
7805         * dumper.c (pdump_reloc_one):
7806         * dumper.c (pdump_scan_by_alignment):
7807         * dumper.c (pdump_dump_from_root_struct_ptrs):
7808         * dumper.c (pdump_dump_opaques):
7809         * dumper.c (pdump_dump_rtables):
7810         * dumper.c (pdump_dump_from_root_objects):
7811         * dumper.c (pdump):
7812         * dumper.c (pdump_load_finish):
7813         Use aligned reading and writing.
7814
7815         * dumper.c (pdump_free): Make static.
7816         * dumper.c (pdump_hFile): Likewise.
7817         * dumper.c (pdump_hMap): Likewise.
7818
7819 2001-01-26  Martin Buchholz <martin@xemacs.org>
7820
7821         * XEmacs 21.2.43 "Terspichore" is released.
7822
7823 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7824
7825         Type fiddling for window_config.saved_windows_count
7826         * window.c (struct window_config): 
7827         Make saved_windows_count member unsigned.
7828         * window.c (sizeof_window_config_for_n_windows): 
7829         Make parameter unsigned.
7830         * window.c (mark_window_config):
7831         * window.c (window_config_equal):
7832         * window.c (free_window_configuration):
7833         * window.c (Fset_window_configuration):
7834         * window.c (count_windows):
7835         * window.c (Fcurrent_window_configuration):
7836         * window.c (reinit_vars_of_window):
7837         Update all callers and users.
7838
7839 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7840
7841         Alignment correctness for flexible arrays.
7842         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7843         Make alignment-correct. Add interesting comments.
7844         * alloc.c (size_vector):
7845         * alloc.c (make_vector_internal):
7846         * alloc.c (make_bit_vector_internal):
7847         * alloc.c (sweep_bit_vectors_1):
7848         * fns.c (size_bit_vector):
7849         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7850         * window.c (sizeof_window_config_for_n_windows): 
7851         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7852
7853 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7854
7855         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7856
7857 2001-01-23  Andy Piper  <andy@xemacs.org>
7858
7859         * select.c (Fown_selection_internal): pass owned_p
7860
7861         * select-msw.c (mswindows_own_selection): New Signature.
7862
7863         * console.h (struct console_methods): add owned_p to
7864         _own_selection.
7865
7866         * select-x.c (x_own_selection): pass owned_p
7867         (hack_motif_clipboard_selection): use owned_p
7868         (vars_of_select_x): new variable -
7869         x_selection_strict_motif_ownership.
7870
7871 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7872
7873         * specifier.h (specifier_data_offset): Remove pointless parens.
7874         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7875
7876 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7877
7878         Make Lisp_Object sizeof methods be alignment-correct.
7879         pdump must restore objects to the same alignment as the C compiler
7880         assumes.  It really matters on SGIs.
7881         * lstream.c (aligned_sizeof_lstream): New.
7882         (sizeof_lstream): Use aligned_sizeof_lstream.
7883         (Lstream_new): Likewise.
7884         * opaque.c (aligned_sizeof_opaque): New.
7885         (sizeof_opaque): Use aligned_sizeof_opaque.
7886         (make_opaque): Likewise.
7887         * specifier.c (aligned_sizeof_specifier): New.
7888         (sizeof_specifier): Use aligned_sizeof_specifier.
7889         (make_specifier_internal): Likewise.
7890
7891 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7892
7893         * lstream.h (struct lstream): Use max_align_t for trailing data.
7894         * specifier.h (struct Lisp_Specifier): Likewise.
7895
7896 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7897
7898         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7899         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7900         (CCL_SUSPEND): Likewise.
7901         (CCL_INVALID_CMD): Likewise.
7902         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7903         (ccl_driver): Likewise.
7904         (CCL_WRITE_CHAR): Macro hygiene.
7905         (CCL_WRITE_STRING): Macro hygiene.
7906
7907 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7908
7909         Port "portable" dumper to SunOS 4 and HP-UX.
7910         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7911         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7912         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7913
7914 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7915
7916         * lisp.h (ALIGNOF): A better definition for C++.
7917
7918 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7919
7920         Macro hygiene.
7921         Fix printf warnings: int format, long int arg.
7922         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7923         (PUSH_FAILURE_POINT): Use correct printf formats.
7924         (POP_FAILURE_POINT): Use correct printf formats.  
7925         Use do {...} while (0)
7926
7927 2001-01-20  Martin Buchholz <martin@xemacs.org>
7928
7929         * XEmacs 21.2.42 "Poseidon" is released.
7930
7931 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7932
7933         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7934
7935 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7936
7937         De-kludgify FIXED_TYPE free list frobbing.
7938         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7939         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7940         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7941         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7942         * alloc.c (LRECORD_FREE_P): New.
7943         * alloc.c (MARK_LRECORD_AS_FREE): New.
7944         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7945         * alloc.c (STRUCT_FREE_P): Deleted.
7946         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7947         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7948         * alloc.c (STRING_CHARS_FREE_P): New.
7949         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7950         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7951         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7952         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7953         * alloc.c (resize_string): Use new definitions.
7954         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7955         * alloc.c (verify_string_chars_integrity): Use new definitions.
7956         * alloc.c (compact_string_chars): Use new definitions.
7957         * alloc.c: Update monster comments.
7958         * lrecord.h (lrecord_type): Add some new lrecord types for
7959         alloc.c's use.
7960
7961 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7962
7963         Improve alignment hackery.
7964         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7965         (max_align_t): Moved from opaque.h - general purpose.
7966         (ALIGN_PTR): Use size_t, not long.
7967         * opaque.h (max_align_t): Move to lisp.h.
7968
7969 2001-01-18  Norbert Koch  <nk@LF.net>
7970
7971         * gui.h: Fix and add prototypes to fix build problems.
7972
7973 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7974
7975         temacs is going away, so `dump-temacs' is now a bad name.
7976         * .dbxrc (dump-temacs): Rename to `dmp'.
7977         * .gdbinit (dump-temacs): Rename to `dmp'.
7978
7979 2001-01-17  Andy Piper  <andy@xemacs.org>
7980
7981         * glyphs.c (print_image_instance): comment to make martin happy.
7982
7983         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7984         change.
7985
7986         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7987         activation.
7988         (mswindows_tab_control_redisplay): warning suppression.
7989
7990         * glyphs-widget.c (widget_update): re-write to cope with updated
7991         items.
7992         (widget_instantiate): use new gui_item functions.
7993         (tab_control_update): deleted.
7994         (progress_gauge_update): deleted.
7995         (image_instantiator_progress_guage): take out update reference.
7996         (image_instantiator_tree_view): ditto.
7997         (image_instantiator_tab_control): ditto.
7998
7999         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8000         Right the new way.
8001         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8002         return whether anything was changed.
8003         (update_gui_item_keywords): as it sounds.
8004
8005         * gui.h: declare widget_gui_parse_item_keywords.
8006
8007         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8008         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8009
8010 2001-01-17  Martin Buchholz <martin@xemacs.org>
8011
8012         * XEmacs 21.2.41 "Polyhymnia" is released.
8013
8014 2001-01-16  Didier Verna  <didier@xemacs.org>
8015
8016         * glyphs.c (image_instantiate): don't use fallbacks when
8017         instantiating a face's background pixmap by inheritance.
8018
8019 2001-01-14  Mike Sperber <mike@xemacs.org>
8020
8021         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8022         Conditionalize accordingly.
8023
8024 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8025
8026         * dumper.c (pdump_file_get): Fix a compiler warning.
8027
8028 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8029
8030         Make Purify happy when pdumping.
8031         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8032         iniitalizing all bits of new lisp object memory.
8033         * symbols.c (Fmake_local_variable): Likewise.
8034         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8035         * symbols.c (Fdefvaralias): Likewise.
8036         * mule-charset.c (vars_of_mule_charset): Likewise.
8037
8038 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8039         Add the `-nd' flag when running pre-dump operations under the debugger.
8040         * .dbxrc (run-temacs): Add `-nd'.
8041         * .dbxrc (update-elc): Likewise.
8042         * .dbxrc (dump-temacs): Likewise.
8043         * .gdbinit (run-temacs): Likewise.
8044         * .gdbinit (check-temacs): Likewise.
8045         * .gdbinit (update-elc): Likewise.
8046         * .gdbinit (dump-temacs): Likewise.
8047
8048 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8049
8050         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8051         export OBJECT_MODE=64
8052         configure --pdump --use-union-type=no
8053         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8054         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8055
8056         * miscplay.c (sndcnv8U_2mono):
8057         Avoid two uses of `++' in the same expression.
8058         Suppresses a GCC warning.
8059
8060 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8061
8062         Make sure future compilers don't miscompile alloc.c.
8063         * alloc.c:
8064         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8065         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8066
8067 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8068
8069         * dumper.c: A little post-pdump-rename comment fixup.
8070
8071 2001-01-09  Jerry James  <james@eecs.ku.edu>
8072
8073         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8074
8075 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8076
8077         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8078         script:
8079         #!/bin/sh
8080         replace_symbol () {
8081           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8082         }
8083
8084         replace_symbol pdump_wire_lists pdump_weak_object_chains
8085         replace_symbol pdump_wire_list dump_add_weak_object_chain
8086
8087         replace_symbol pdump_wires pdump_root_objects
8088         replace_symbol pdump_wire dump_add_root_object
8089
8090         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8091         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8092
8093         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8094         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8095         replace_symbol dumpstructinfo pdump_root_struct_ptr
8096         replace_symbol dumpstruct dump_add_root_struct_ptr
8097
8098         replace_symbol dumpopaque dump_add_opaque
8099         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8100         replace_symbol dumpopaqueinfos pdump_opaques
8101         replace_symbol dumpopaqueinfo pdump_opaque
8102
8103         replace_symbol nb_structdump nb_root_struct_ptrs
8104         replace_symbol nb_opaquedump nb_opaques
8105
8106         replace_symbol align_table pdump_align_table
8107         replace_symbol dump_header pdump_header
8108
8109         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8110         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8111
8112
8113 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8114
8115         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8116         optimizing bytecount_to_charcount().
8117
8118 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8119
8120         * config.h.in:
8121         (HAVE_DLFCN_H): Removed.
8122         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8123
8124 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8125
8126         Portable dumper maintainability improvements.
8127         * alloc.c (staticpro):
8128         * alloc.c (staticpro_nodump):
8129         * alloc.c (garbage_collect_1):
8130         * alloc.c (reinit_alloc_once_early):
8131         * alloc.c (init_alloc_once_early):
8132         * alloc.c: Move dumper functions to alloc.c.
8133         * dumper.c (pdump_backtrace):
8134         * dumper.c (pdump_dump_structs):
8135         * dumper.c (pdump_dump_opaques):
8136         * dumper.c (pdump_dump_rtables):
8137         * dumper.c (pdump_dump_wired):
8138         * dumper.c (pdump):
8139         * dumper.c (pdump_load_check):
8140         * dumper.c (pdump_load_finish):
8141         * dumper.c (pdump_file_unmap):
8142         * dumper.c (pdump_file_get):
8143         * dumper.c (pdump_resource_free):
8144         * dumper.c (pdump_resource_get):
8145         * dumper.c (pdump_file_free):
8146         * dumper.c (pdump_file_try):
8147         * dumper.c (pdump_load):
8148         Remove fixed size limits on staticpro(), staticpro_nodump(),
8149         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8150         Remove custom code for dumping lrecord_implementations_table - use
8151         dumpopaque instead.
8152         Remove (most of the) custom code for dumping staticpros - dump it
8153         like any other dynarr.
8154
8155         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8156         * dumper.c: Moved functions from alloc.c.
8157         * alloc.c (dumpstruct): Moved to dumper.c.
8158         * alloc.c (dumpopaque): Likewise.
8159         * alloc.c (pdump_wire): Likewise.
8160         * alloc.c (pdump_wire_list): Likewise.
8161
8162         * lisp.h (Dynarr_sizeof): New.
8163         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8164         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8165         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8166
8167         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8168         * lisp.h (dumpopaque): ditto.
8169         * lisp.h (pdump_wire): ditto.
8170         * lisp.h (pdump_wire_list): ditto.
8171
8172 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8173
8174         * make-src-depend (PrintPatternDeps):
8175         Use `sort' to make output independent of perl version.
8176
8177 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8178
8179         Port to Netbsd 1.5.
8180         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8181         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8182
8183 2001-01-03  Didier Verna  <didier@xemacs.org>
8184
8185         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8186         that `focus_frame' is alive before thinking of calling
8187         `redisplay_redraw_cursor' on it.
8188
8189 2001-01-08  Martin Buchholz <martin@xemacs.org>
8190
8191         * XEmacs 21.2.40 is released.
8192
8193 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8194
8195         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8196
8197 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8198
8199         * alloc.c (dbg_valmask): Make const.
8200         * alloc.c (dbg_typemask): Make const.
8201         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8202         * alloc.c (dbg_valbits): Make const.
8203         * alloc.c (dbg_gctypebits): Make const.
8204
8205 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8206
8207         * redisplay-x.c (x_bevel_area):
8208         redisplay.h (struct rune):
8209         Typo fixes in comments.
8210
8211 2001-01-05  Andy Piper  <andy@xemacs.org>
8212
8213         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8214         adjustment.
8215
8216         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8217
8218 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8219
8220         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8221
8222         * mule-ccl.c (stack_idx_of_map_multiple):
8223         Non const global data must not be initialized!
8224         Found by MIYASHITA Hisashi.
8225
8226 2001-01-02  Andy Piper  <andy@xemacs.org>
8227
8228         * frame.c (change_frame_size): make sure frame size is always
8229         marked as changed.
8230
8231         * glyphs.c (image_instance_layout): minor code reuse.
8232
8233         * window.c (Fcurrent_window_configuration): revert previous
8234         change.
8235
8236 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8237
8238         * glyphs.h:
8239         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8240
8241 2000-12-31  Andy Piper  <andy@xemacs.org>
8242
8243         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8244         when widget gets unmapped.
8245
8246         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8247         function. Make sure widgets losing focus don't just drop it.
8248         (handle_focus_event_1): record the widget with focus.
8249
8250 2000-12-31  Andy Piper  <andy@xemacs.org>
8251
8252         * window.c (allocate_window): use
8253         make_image_instance_cache_hash_table.
8254         (make_dummy_parent): ditto.
8255         (Fset_window_configuration): ditto.
8256
8257         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8258
8259         * glyphs.c (process_image_string_instantiator): use
8260         INSTANTIATOR_TYPE.
8261         (get_image_instantiator_governing_domain): ditto.
8262         (normalize_image_instantiator): ditto.
8263         (instantiate_image_instantiator): ditto.
8264         (make_image_instance_1): ditto.
8265         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8266         (instantiator_eq_equal): new function for use with instance hash
8267         tables.
8268         (instantiator_eq_hash): ditto.
8269         (make_image_instance_cache_hash_table): create a suitable hash
8270         table for storing image instances.
8271
8272         * elhash.h (hash_table_weakness): new internal weakness type
8273         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8274         declare new functions.
8275
8276         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8277         another weakness type for glyphs.
8278         (make_standard_lisp_hash_table): new function split out from
8279         make_general_lisp_hash_table.
8280         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8281         (hash_table_instantiate): ditto.
8282         (Fmake_hash_table): ditto.
8283
8284 2000-12-31  Martin Buchholz <martin@xemacs.org>
8285
8286         * XEmacs 21.2.39 is released.
8287
8288 2000-12-29  Andy Piper  <andy@xemacs.org>
8289
8290         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8291
8292         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8293         the frame has changed so that we pick up geometry changes such as
8294         menubar visibility.
8295
8296 2000-12-28  Andy Piper  <andy@xemacs.org>
8297
8298         * lastfile.c (my_ebss): make a char array so we can pad the
8299         bss. Fixes cygwin unexec.
8300
8301         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8302
8303 2000-12-26  Andy Piper  <andy@xemacs.org>
8304
8305         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8306         comments and try and be more precise about a non-/SIGIO world.
8307         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8308         SIGIO.
8309
8310         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8311         we don't normalize to zero width or height.
8312
8313 2000-12-24  Andy Piper  <andy@xemacs.org>
8314
8315         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8316
8317 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8318
8319         * s/sco5.h: SCO 5 has pty support.
8320
8321 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8322
8323         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8324         input-method-xlib.c contains whole contents of input-method-xfs.c,
8325         so we can use input-method-xlib.c's code for USE_XFONTSET
8326         using #ifdefs.
8327         * input-method-xfs.c: removed.
8328
8329 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8330
8331         * file-coding.h (enum coding_category_type): reorder enumerators to
8332         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8333         (now one greater than largest real coding_category_type enumerator).
8334         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8335         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8336         Fcoding_category_list, Fset_coding_priority_list,
8337         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8338         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8339
8340 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8341
8342         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8343         * redisplay-output.c (redisplay_output_window): Clear top of window
8344         when face is changed.
8345         * redisplay-x.c (x_redraw_exposed_window): Call
8346         redisplay_clear_top_of_window.
8347         * redisplay.h: Publish redisplay_clear_top_of_window.
8348
8349 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8350
8351         * buffer.c (Fkill_buffer): Map over all devices.
8352         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8353         (list_windows): New function.
8354         (list_all_windows): Ditto.
8355         (Freplace_buffer_in_windows): Use them.
8356
8357 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8358
8359         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8360         (Fopen_database): Use `db_create' instead of `db_open'.
8361         (syms_of_database): Initialize Qqueue.
8362
8363 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8364
8365         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8366         buffer_local_face_property.
8367         * buffer.h (struct buffer): New member buffer_local_face_property.
8368         * window.c (Fset_window_buffer):  Mark window's face as changed
8369         when buffer has buffer local face.
8370         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8371         * objects.c (color_after_change): Set buffer_local_face_property
8372         when locale of face specifier is buffer.
8373         * objects.c (font_after_change): Ditto.
8374         * objects.c (face_boolean_after_change): Ditto.
8375         * glyphs.c (image_after_change): Ditto.
8376
8377 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8378
8379         * nt.c (mswindows_fstat): Report file permissions, volume serial
8380         number, etc. Code adapted from FSF Emacs 20.7.
8381
8382 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8383
8384         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8385         of stat when we don't have symbolic links, to make sure
8386         mswindows_stat is called on mswindows.
8387
8388 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8389
8390         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8391
8392 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8393
8394         * doprnt.c (emacs_doprnt_1): More printing fixes.
8395         Make printing of numbers compatible with libc and FSF Emacs.
8396         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8397         Use the system printf to do most of the hard work of formatting,
8398         instead of doprnt_1().
8399         Calculate memory to allocate for format string.
8400         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8401         (doprnt_1): Cleaner code and documentation.
8402
8403 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8404
8405         * Makefile.in.in: Use the loop variable to install headers.
8406
8407 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8408
8409         * window.c (Fsplit_window): Don't invalidate face cache.
8410
8411 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8412
8413         * minibuf.c (Fall_completions): Undo the previous change
8414         which removed checking elements start with space.
8415
8416 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8417
8418         * mule-canna.c: Didier suppression.
8419
8420 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8421
8422         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8423         (warning suppression).  Add English comment translations.
8424
8425 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8426
8427         * unexelfsgi.c (unexec): Better test for mmap failure.
8428
8429 2000-12-05  Martin Buchholz <martin@xemacs.org>
8430
8431         * XEmacs 21.2.38 is released.
8432
8433 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8434
8435         * redisplay.c (bar-cursor): Make a user variable.
8436
8437         * symsinit.h: Add init_postgresql_from_environment.
8438
8439 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8440
8441         * regex.c: Convert to clean C.
8442
8443 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8444
8445         * realpath.c:
8446         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8447         initialization.
8448         (sys_readlink): renamed to system_readlink to avoid conflict with
8449         the other sys_readlink.
8450
8451 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8452
8453         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8454
8455 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8456
8457         * postgresql.c (init_postgresql_from_environment): new function.
8458         (vars_of_postgresql): Move code initializing Lisp variables out and
8459         into init_postgresql_from_environment.
8460         emacs.c (main_1): Call init_postgresql_from_environment if and only
8461         if running a dumped XEmacs.
8462
8463 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8464
8465         * buffer.c: Make find-file-compare-truenames default to true on
8466         windows.
8467
8468         * realpath.c (win32_abs_start):
8469         (cygwin_readlink):
8470         (win32_readlink): New functions.
8471         (xrealpath): Return really real filenames on windows.
8472
8473         * fileio.c (Ffile_truename): Make file-truename work on windows.
8474
8475 2000-11-29  Didier Verna  <didier@xemacs.org>
8476
8477         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8478         * faces.c (update_face_cachel_data): use it.
8479         * faces.c (add_face_cachel): use it. Complete background pixmap
8480         frobbing in face cache if `update_face_cachel_data' has not done so.
8481
8482 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8483
8484         * search.c (string_match_1): Don't set last_thing_searched
8485         when search failed.
8486
8487 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8488
8489         * buffer.c: Include casetab.h
8490         (common_init_complex_vars_of_buffer): Use new case-table object.
8491         * buffer.h: Include casetab.h
8492         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8493         (DOWNCASE_TABLE_OF): Ditto.
8494         * bufslots.h: Remove char-tables and add case-table.
8495         * casetab.c: Include casetab.h
8496         (CASE_TABLE_P): Removed.
8497         (mark_case_table): New function.
8498         (allocate_case_table): New function.
8499         (Fcase_table_p): Use new case-table.
8500         (case_table_char): New function.
8501         (Fget_case_table): Ditto.
8502         (Fput_case_table): Ditto.
8503         (Fput_case_table_pair): Ditto.
8504         (Fcopy_case_table): Ditto.
8505         (Fcurrent_case_table): Return case-table.
8506         (Fstandard_case_table): Return case-table.
8507         (Fset_case_table): Fix doc-string.
8508         (set_case_table): Use case-table
8509         (syms_of_casetab): DEFSUBR new functions.
8510         (complex_vars_of_casetab): Set up standard case-table.
8511         * casetab.h: New file.
8512         * editfns.c: Include casetab.h
8513         (Fcompare_buffer_substrings): Use case-table.
8514         * inline.c: Include casetab.h
8515         * lisp.h: Remove bogus extern.
8516         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8517         * search.c: Include casetab.h
8518         (TRANSLATE_ASCII): Removed.
8519         (TRANSLATE): Unconditionally translate character.
8520         (looking_at_1): Use case-table.
8521         (string_match_1): Ditto.
8522         (fast_string_match): Ditto.
8523         (search_command): Ditto.
8524         (search_buffer): Separate boyer_moore.  Check whether
8525         boyer_moore is possible.
8526         (simple_search): New function.
8527         (boyer_moore): Separated from search_buffer. Translate char.
8528
8529 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8530
8531         * regex.c (RE_TR_ASCII): Removed.
8532         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8533         (PATFETCH): Call PATFETCH_RAW.
8534         (PATFETCH_RAW): Fetch Emchar.
8535         (PATUNFETCH): Decrement charptr.
8536         (GET_BUFFER_SPACE): Rename b to buf_end.
8537         (BUF_PUSH): Ditto.
8538         (BUF_PUSH_2): Ditto.
8539         (BUF_PUSH_3): Ditto.
8540         (EXTEND_BUFFER): Ditto.
8541         (SET_LIST_BIT): Ditto.
8542         (regex_compile): Ditto.  Translate non ASCII char.
8543         (compile_range): Ditto.
8544         (re_search_2): Ditto.
8545         (re_match_2_internal): Compare Emchar.
8546         (bcmp_translate): Ditto.
8547
8548 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8549
8550         * lisp.h (basic char/int typedefs):  comment improvement.
8551
8552 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8553
8554         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8555         unstomp inhibit_site_lisp.  Improve comments.
8556
8557 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8558
8559         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8560
8561 2000-11-28  Andy Piper  <andy@xemacs.org>
8562
8563         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8564         clipped display for windows in the gutter also.
8565         (redisplay_display_boxes_in_window_p): change semantics of return
8566         codes to be more intuitive.
8567
8568         * gutter.h: declare display_boxes_in_gutter_p.
8569
8570         * gutter.c (display_boxes_in_gutter_p): new function for
8571         redisplay.
8572
8573 2000-11-22  Andy Piper  <andy@xemacs.org>
8574
8575         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8576         autodetect domain.
8577
8578 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8579
8580         * callproc.c (Fold_call_process_internal):
8581         * gpm.c (Freceive_gpm_event):
8582         (tty_get_foreign_selection): Might be just warning supression.
8583         * fileio.c (Fwrite_region_internal):
8584         (Fset_visited_file_modtime):
8585         * keymap.c (event_matches_key_specifier_p):
8586         Initialize GCPROed variable.
8587
8588         * menubar-x.c (command_builder_find_menu_accelerator):
8589         Initialize before use.
8590
8591 2000-11-23  Andy Piper  <andy@xemacs.org>
8592
8593         * unexcw.c (unexec): make the resulting executable executable.
8594
8595 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8596
8597         * doc.c (get_doc_string):
8598         Use size_t, not int, for result of XSTRING_LENGTH.
8599
8600         * cmds.c (Fdelete_char):
8601         * cmds.c (Fpoint_at_eol):
8602         * cmds.c (Fself_insert_command):
8603         Use EMACS_INT, not int, for result of XINT.
8604         Someday, someone will want to insert more than 2**31 identical characters.
8605
8606         * cmds.c (Fdelete_char):
8607         * cmds.c (Fdelete_backward_char):
8608         * syntax.c (Fforward_word):
8609         * syntax.c (Fforward_comment):
8610         Make COUNT argument optional, for consistency with forward-char et al.
8611
8612 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8613
8614         * lisp.h:
8615         * print.c (long_to_string):
8616         Return a useful value: the pointer at end of data written.
8617
8618         * doprnt.c:
8619         Use `static const char * const' for constant strings.
8620         (union printf_arg): Delete `i', `ui' members.
8621         (get_doprnt_args):
8622         (emacs_doprnt_1):
8623         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8624         Do all printf-ing via the `l' specifier.
8625         Use EMACS_INT instead of int.
8626         Optimize.
8627
8628 2000-11-20  Didier Verna  <didier@xemacs.org>
8629
8630         * faces.c (update_face_cachel_data): don't frob the background
8631         pixmap when the window is being created. The face is needed but
8632         does not exist yet.
8633
8634 2000-11-20  Andy Piper  <andy@xemacs.org>
8635
8636         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8637         messing with a debug environment.
8638
8639 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8640
8641         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8642
8643 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8644
8645         * casetab.c (Fcase_table_p): Fix compile error and crash.
8646
8647 2000-11-18  Philip Aston  <philipa@mail.com>
8648
8649         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8650
8651 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8652
8653         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8654         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8655
8656 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8657
8658         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8659         * unexelf.c: Use HAVE_ELF_H.
8660         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8661         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8662         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8663         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8664         for testing.
8665         So this is an unexelfsgi.c from a different line of development.
8666
8667 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8668
8669         * regex.c (RE_TR_ASCII): New function.
8670         (RE_TRANSLATE): Call it.
8671
8672 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8673
8674         * buffer.h (TRT_TABLE_OF): Remove assert.
8675         (IN_TRT_TABLE_DOMAIN): Removed.
8676
8677 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8678
8679         * free-hook.c (log_gcpro):
8680         (show_gcprohist): Add support for GCPRO5.
8681
8682 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8683
8684         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8685
8686 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8687
8688         * symeval.h: Declare flush_all_buffer_local_cache.
8689
8690         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8691         (flush_buffer_local_cache): Added.
8692         (flush_all_buffer_local_cache): Added.
8693
8694         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8695
8696         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8697         (pdump_dump_data): Ditto.
8698         (pdump_reloc_one): Ditto.
8699         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8700         before dumping.
8701
8702
8703 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8704
8705         * buffer.c: Remove if 0'ed entry.
8706         * buffer.h: Rewrite TRT to use char-table.
8707         * bufslots.h: Remove mirror tables.
8708         * casetab.c: Remove mirror tables.
8709         (CASE_TABLE_P): New macro.
8710         (Fcase_table_p): Element of a case table is string or char-table.
8711         (make_mirror_trt_table): Removed.
8712         (set_case_table): Setup char-table from strings for backward
8713         compatibility.
8714         * dired.c (Fdirectory_files):
8715         * dired-msw.c: (mswindows_get_files):
8716         * lisp.h: Change prototype of re_pattern_buffer.
8717         * regex.c: (RE_TRANSLATE): New macro.
8718         (TRANSLATE_P): Ditto.
8719         Change translate to type RE_TRANSLATE_TYPE.
8720         * regex.h: Define RE_TRANSLATE_TYPE
8721         * search.c (TRANSLATE): New macro.
8722         (TRANSLATE_ASCII): New macro.
8723         Translate table is changed to Lisp_Object.
8724         (signal_failure): Inhibit return.
8725
8726 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8727
8728         * device-msw.c:
8729         * eldap.c:
8730         * event-Xt.c:
8731         * event-stream.c:
8732         * print.c:
8733         Do UNGCPRO before return.
8734
8735 2000-11-14  Martin Buchholz <martin@xemacs.org>
8736
8737         * XEmacs 21.2.37 is released.
8738
8739 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8740
8741         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8742         Add comments about discarded return value.
8743
8744 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8745
8746         * callint.c:
8747         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8748
8749 2000-10-27  Andy Piper  <andy@xemacs.org>
8750
8751         * gutter.c (Fset_default_gutter_position): default left and right
8752         gutters to visible.
8753         (calculate_gutter_size): calculate resonable heuristic for left
8754         and right gutter sizes.
8755         (specifier_vars_of_gutter): change left and right gutter sizes to
8756         autodetect.
8757         (calculate_gutter_size_from_display_lines): new function.
8758         (output_gutter): check for resizing on left and right gutters.
8759         (clear_gutter): don't special case top and left gutters.
8760         (specifier_vars_of_gutter): use new signature for
8761         set_specifier_caching.
8762
8763         * glyphs-x.c (x_redisplay_widget): spelling fix.
8764         * glyphs.c (specifier_vars_of_glyphs):
8765         * menubar.c (specifier_vars_of_menubar):
8766         * redisplay.c (specifier_vars_of_redisplay):
8767         * toolbar.c (specifier_vars_of_toolbar):
8768         * window.c (specifier_vars_of_window):
8769         * scrollbar.c (specifier_vars_of_scrollbar):
8770         (complex_vars_of_scrollbar): use new signature for
8771         set_specifier_caching.
8772
8773         * specifier.c (set_specifier_caching): include recompute flag.
8774         (recompute_one_cached_specifier_in_window): always recompute if
8775         flag set.
8776         (recompute_one_cached_specifier_in_frame): ditto.
8777
8778         * specifier.h (struct specifier_caching): add recompute flag.
8779
8780 2000-10-24  Andy Piper  <andy@xemacs.org>
8781
8782         * unexcw.c (copy_executable_and_dump_data_section): add new
8783         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8784         5.0 happy.
8785
8786 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8787
8788         * console-x.h (x_device): New member modifier_release_time.
8789         * event-Xt.c (x_handle_sticky_modifiers):
8790         Bound interval modifier keys are sticky.
8791         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8792         * events.h: extern it.
8793
8794 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8795
8796         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8797
8798 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8799
8800         * event-stream.c (execute_command_event): Preserve current_events
8801         and the like when event is misc-user-event.
8802         Inhibit quit during the call to maybe_echo_keys.
8803
8804 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8805
8806         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8807         symlink when buffer is killed.
8808         (inhibit_clash_detection): New variable.
8809
8810 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8811
8812         * console.c (Fset_input_method): Trigger redisplay on tty.
8813
8814 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8815
8816         * process.c (Fprocess_status): Revert to previous behavior:
8817         (process-status "nosuchprocess") ==> nil
8818
8819 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8820
8821         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8822         Work around another GCC 2.95.2 optimizer bug.
8823
8824 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8825
8826         * process.c (Fget_process): Use LIST_LOOP_2.
8827         (kill_buffer_processes): Use LIST_LOOP_2.
8828
8829         * minibuf.c (Fall_completions):
8830         Delete old non-functional code for FSF fourth argument.
8831
8832         * frame.c (frame_matches_frame_spec):
8833         Renamed from `frame_matches_frametype'.  Update all callers.
8834         (device_matches_device_spec):
8835         Renamed from 'device_matches_console_spec'.  Update all callers.
8836
8837         * doc.c (Fsubstitute_command_keys):
8838         Remove buffer overflow crash.  Small code cleanups.
8839
8840         * casetab.c (check_case_table): Simpler code.
8841
8842         * window.c (Freplace_buffer_in_windows):
8843         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8844         (and similar implementation) as Fdelete_windows_on.
8845         Update all callers.
8846
8847         * alloc.c (Fmake_list):
8848         * alloc.c (make_vector):
8849         * alloc.c (Fmake_vector):
8850         * alloc.c (make_bit_vector):
8851         * alloc.c (Fmake_bit_vector):
8852         * alloc.c (Fbit_vector):
8853         * alloc.c (Fmake_string):
8854         * alloc.c (Fpurecopy):
8855         * alloc.c (Fmemory_limit):
8856         * buffer.c:
8857         * buffer.c (Fget_buffer):
8858         * buffer.c (Fkill_buffer):
8859         * buffer.c (complex_vars_of_buffer):
8860         * bytecode.c (Fcompiled_function_stack_depth):
8861         * callint.c (Fprefix_numeric_value):
8862         * event-stream.c:
8863         * event-stream.c (Fread_key_sequence):
8864         * casetab.c:
8865         * casetab.c (Fcase_table_p):
8866         * casetab.c (check_case_table):
8867         * casetab.c (Fset_case_table):
8868         * casetab.c (Fset_standard_case_table):
8869         * chartab.c:
8870         * chartab.c (Fchar_table_type):
8871         * chartab.c (Freset_char_table):
8872         * chartab.c (Fget_char_table):
8873         * chartab.c (Fget_range_char_table):
8874         * chartab.c (Fput_char_table):
8875         * chartab.c (Fmap_char_table):
8876         * chartab.c (Fcategory_table_p):
8877         * chartab.c (Fcheck_category_at):
8878         * chartab.c (Fchar_in_category_p):
8879         * chartab.c (Fcategory_table):
8880         * chartab.c (Fcopy_category_table):
8881         * chartab.c (Fset_category_table):
8882         * chartab.c (Fcategory_designator_p):
8883         * chartab.c (Fcategory_table_value_p):
8884         * cmds.c (Fdelete_char):
8885         * cmds.c (Fdelete_backward_char):
8886         * cmds.c (Fself_insert_command):
8887         * cmds.c (Fself_insert_internal):
8888         * console.c (Fvalid_console_type_p):
8889         * console.c (Fcdfw_console):
8890         * console.c (Fconsole_type):
8891         * console.c (Fconsole_name):
8892         * console.c (Fconsole_device_list):
8893         * console.c (Fconsole_on_window_system_p):
8894         * data.c:
8895         * data.c (Feq):
8896         * data.c (Fold_eq):
8897         * data.c (Fsubr_interactive):
8898         * data.c (Fchar_to_int):
8899         * data.c (Fint_to_char):
8900         * data.c (Fsetcar):
8901         * data.c (Fsetcdr):
8902         * data.c (Fnumber_to_string):
8903         * data.c (Fstring_to_number):
8904         * data.c (Frem):
8905         * database.c (mark_database):
8906         * database.c (finalize_database):
8907         * database.c (Fdatabase_live_p):
8908         * database.c (Fdatabasep):
8909         * device-x.c (Fx_get_resource):
8910         * device.c (Fdfw_device):
8911         * dired.c:
8912         * dired.c (Ffile_name_completion):
8913         * dired.c (Ffile_name_all_completions):
8914         * dired.c (Fuser_name_completion):
8915         * dired.c (Fuser_name_completion_1):
8916         * dired.c (Fuser_name_all_completions):
8917         * doc.c (Fdocumentation):
8918         * doc.c (Fdocumentation_property):
8919         * doc.c (Fsubstitute_command_keys):
8920         * editfns.c:
8921         * editfns.c (Fchar_to_string):
8922         * editfns.c (Fstring_to_char):
8923         * editfns.c (Ftemp_directory):
8924         * editfns.c (Finsert_char):
8925         * editfns.c (Fbuffer_substring_no_properties):
8926         * editfns.c (Fnarrow_to_region):
8927         * editfns.c (Fchar_equal):
8928         * editfns.c (Fchar_Equal):
8929         * editfns.c (Ftranspose_regions):
8930         * emacs.c (Fdump_emacs):
8931         * eval.c (Fthrow):
8932         * eval.c (Fcommand_execute):
8933         * eval.c (Fautoload):
8934         * eval.c (Fbacktrace):
8935         * eval.c (Fbacktrace_frame):
8936         * events.c:
8937         * events.c (Fcopy_event):
8938         * events.c (Fcharacter_to_event):
8939         * events.c (Fevent_button):
8940         * events.c (Fevent_process):
8941         * extents.c:
8942         * extents.c (Fnext_extent_change):
8943         * extents.c (Fextent_property):
8944         * faces.c (Ffacep):
8945         * faces.c (Fmake_face):
8946         * file-coding.c:
8947         * file-coding.c (Fencode_shift_jis_char):
8948         * file-coding.c (Fencode_big5_char):
8949         * fileio.c (Ffile_name_directory):
8950         * fileio.c (Ffile_name_nondirectory):
8951         * fileio.c (Ffile_name_as_directory):
8952         * fileio.c (Fdirectory_file_name):
8953         * fileio.c (Ffile_truename):
8954         * fileio.c (Fsubstitute_in_file_name):
8955         * fileio.c (Ffile_modes):
8956         * fileio.c (Fset_file_modes):
8957         * fileio.c (Fset_default_file_modes):
8958         * fileio.c (Fverify_visited_file_modtime):
8959         * floatfns.c (Facos):
8960         * floatfns.c (Fasin):
8961         * floatfns.c (Fatan):
8962         * floatfns.c (Fcos):
8963         * floatfns.c (Fsin):
8964         * floatfns.c (Ftan):
8965         * floatfns.c (Fbessel_j0):
8966         * floatfns.c (Fbessel_j1):
8967         * floatfns.c (Fbessel_jn):
8968         * floatfns.c (Fbessel_y0):
8969         * floatfns.c (Fbessel_y1):
8970         * floatfns.c (Fbessel_yn):
8971         * floatfns.c (Ferf):
8972         * floatfns.c (Ferfc):
8973         * floatfns.c (Flog_gamma):
8974         * floatfns.c (Fexp):
8975         * floatfns.c (Fexpt):
8976         * floatfns.c (Flog):
8977         * floatfns.c (Flog10):
8978         * floatfns.c (Fsqrt):
8979         * floatfns.c (Fcube_root):
8980         * floatfns.c (Facosh):
8981         * floatfns.c (Fasinh):
8982         * floatfns.c (Fatanh):
8983         * floatfns.c (Fcosh):
8984         * floatfns.c (Fsinh):
8985         * floatfns.c (Ftanh):
8986         * floatfns.c (Fabs):
8987         * floatfns.c (Ffloat):
8988         * floatfns.c (Flogb):
8989         * floatfns.c (Fceiling):
8990         * floatfns.c (Ffloor):
8991         * floatfns.c (Fround):
8992         * floatfns.c (Ftruncate):
8993         * floatfns.c (Ffceiling):
8994         * floatfns.c (Fffloor):
8995         * floatfns.c (Ffround):
8996         * floatfns.c (Fftruncate):
8997         * fns.c (Fstring_equal):
8998         * fns.c (Fstring_lessp):
8999         * fns.c (concat2):
9000         * fns.c (concat3):
9001         * fns.c (vconcat2):
9002         * fns.c (vconcat3):
9003         * fns.c (Fsubstring):
9004         * fns.c (Fassoc):
9005         * fns.c (Fold_assoc):
9006         * fns.c (assoc_no_quit):
9007         * fns.c (Fassq):
9008         * fns.c (Fold_assq):
9009         * fns.c (assq_no_quit):
9010         * fns.c (Frassoc):
9011         * fns.c (Fold_rassoc):
9012         * fns.c (Frassq):
9013         * fns.c (Fold_rassq):
9014         * fns.c (rassq_no_quit):
9015         * fns.c (Fremassoc):
9016         * fns.c (remassoc_no_quit):
9017         * fns.c (Fremassq):
9018         * fns.c (remassq_no_quit):
9019         * fns.c (Fremrassoc):
9020         * fns.c (Fremrassq):
9021         * fns.c (remrassq_no_quit):
9022         * fns.c (Fsort):
9023         * fns.c (Fplist_get):
9024         * fns.c (Fplist_put):
9025         * fns.c (Fplist_remprop):
9026         * fns.c (Fplist_member):
9027         * fns.c (Flax_plist_get):
9028         * fns.c (Flax_plist_put):
9029         * fns.c (Flax_plist_remprop):
9030         * fns.c (Flax_plist_member):
9031         * fns.c (Fequal):
9032         * fns.c (Fold_equal):
9033         * fns.c (Frequire):
9034         * fns.c (Fbase64_encode_region):
9035         * fns.c (Fbase64_encode_string):
9036         * fns.c (Fbase64_decode_region):
9037         * frame.c:
9038         * frame.c (frame_matches_frame_spec):
9039         * frame.c (device_matches_device_spec):
9040         * frame.c (next_frame):
9041         * frame.c (previous_frame):
9042         * frame.c (Fnext_frame):
9043         * frame.c (Fprevious_frame):
9044         * frame.c (Fframe_property):
9045         * frame.c (Fset_frame_height):
9046         * frame.c (Fset_frame_size):
9047         * frame.h:
9048         * glyphs.c:
9049         * glyphs.c (if):
9050         * glyphs.c (decode_error_behavior_flag):
9051         * glyphs.c (Fmake_image_instance):
9052         * indent.c (Findent_to):
9053         * intl.c (Fignore_defer_gettext):
9054         * keymap.c (Fkeymapp):
9055         * keymap.c (Flookup_key):
9056         * lread.c:
9057         * lread.c (Fload_internal):
9058         * lread.c (Feval_buffer):
9059         * lread.c (Feval_region):
9060         * macros.c (Fexecute_kbd_macro):
9061         * marker.c (set_marker_internal):
9062         * marker.c (Fset_marker):
9063         * marker.c (set_marker_restricted):
9064         * marker.c (Fcopy_marker):
9065         * marker.c (noseeum_copy_marker):
9066         * menubar.c:
9067         * menubar.c (Fpopup_menu):
9068         * minibuf.c:
9069         * mule-charset.c (Fcharset_name):
9070         * mule-charset.c (Fchar_charset):
9071         * mule-charset.c (Fchar_octet):
9072         * mule-charset.c (Fsplit_char):
9073         * mule-wnnfns.c (Fwnn_open):
9074         * mule-wnnfns.c (Fwnn_dict_comment):
9075         * mule-wnnfns.c (Fwnn_quit_henkan):
9076         * mule-wnnfns.c (Fwnn_word_toroku):
9077         * mule-wnnfns.c (Fwnn_word_sakujo):
9078         * mule-wnnfns.c (Fwnn_word_use):
9079         * mule-wnnfns.c (Fwnn_hindo_set):
9080         * objects.c:
9081         * objects.c (Fmake_color_instance):
9082         * objects.c (Fmake_font_instance):
9083         * print.c (Fwrite_char):
9084         * process.c:
9085         * process.c (mark_process):
9086         * process.c (print_process):
9087         * process.c (get_process_from_usid):
9088         * process.c (Fprocessp):
9089         * process.c (Fprocess_live_p):
9090         * process.c (Fget_process):
9091         * process.c (Fget_buffer_process):
9092         * process.c (get_process):
9093         * process.c (Fprocess_id):
9094         * process.c (Fprocess_name):
9095         * process.c (Fprocess_command):
9096         * process.c (init_process_io_handles):
9097         * process.c (start_process_unwind):
9098         * process.c (Fstart_process_internal):
9099         * process.c (Fopen_multicast_group_internal):
9100         * process.c (Fset_process_window_size):
9101         * process.c (read_process_output):
9102         * process.c (send_process):
9103         * process.c (Fprocess_tty_name):
9104         * process.c (Fset_process_buffer):
9105         * process.c (Fprocess_buffer):
9106         * process.c (Fprocess_mark):
9107         * process.c (set_process_filter):
9108         * process.c (Fset_process_filter):
9109         * process.c (Fprocess_filter):
9110         * process.c (Fprocess_send_region):
9111         * process.c (Fprocess_send_string):
9112         * process.c (exec_sentinel):
9113         * process.c (Fset_process_sentinel):
9114         * process.c (Fprocess_sentinel):
9115         * process.c (status_notify):
9116         * process.c (Fprocess_status):
9117         * process.c (Fprocess_exit_status):
9118         * process.c (process_send_signal):
9119         * process.c (Fprocess_send_eof):
9120         * process.c (deactivate_process):
9121         * process.c (remove_process):
9122         * process.c (Fdelete_process):
9123         * process.c (kill_buffer_processes):
9124         * process.c (Fprocess_kill_without_query):
9125         * process.c (Fprocess_kill_without_query_p):
9126         * rangetab.c:
9127         * rangetab.c (Fget_range_table):
9128         * rangetab.c (Fput_range_table):
9129         * rangetab.c (Fremove_range_table):
9130         * rangetab.c (Fclear_range_table):
9131         * search.c:
9132         * search.c (Fskip_chars_forward):
9133         * search.c (Fskip_chars_backward):
9134         * search.c (Fskip_syntax_forward):
9135         * search.c (Fskip_syntax_backward):
9136         * search.c (search_command):
9137         * search.c (Freplace_match):
9138         * search.c (Fregexp_quote):
9139         * select.c (Fown_selection_internal):
9140         * select.c (Fselection_owner_p):
9141         * select.c (Fselection_exists_p):
9142         * select.c (Fget_selection_internal):
9143         * specifier.c:
9144         * symbols.c:
9145         * symbols.c (Fintern):
9146         * symbols.c (Fintern_soft):
9147         * symbols.c (Funintern):
9148         * symbols.c (Fapropos_internal):
9149         * symbols.c (Fset_default):
9150         * syntax.c:
9151         * syntax.c (Fsyntax_table_p):
9152         * syntax.c (Fcopy_syntax_table):
9153         * syntax.c (Fset_syntax_table):
9154         * syntax.c (Fchar_syntax):
9155         * syntax.c (syntax_match):
9156         * syntax.c (Fmatching_paren):
9157         * syntax.c (Fforward_word):
9158         * syntax.c (scan_lists):
9159         * syntax.c (Fscan_lists):
9160         * syntax.c (Fscan_sexps):
9161         * syntax.c (Fparse_partial_sexp):
9162         * toolbar.c (Fcheck_toolbar_button_syntax):
9163         * tooltalk.doc:
9164         * window.c:
9165         * window.c (Fwindowp):
9166         * window.c (Fwindow_live_p):
9167         * window.c (Fwindow_point):
9168         * window.c (Fdelete_window):
9169         * window.c (Fnext_window):
9170         * window.c (Fprevious_window):
9171         * window.c (Fother_window):
9172         * window.c (window_loop):
9173         * window.c (Fget_lru_window):
9174         * window.c (Fsplit_window):
9175         * window.c (Fenlarge_window):
9176         * window.c (Fenlarge_window_pixels):
9177         * window.c (Fshrink_window):
9178         * window.c (Fshrink_window_pixels):
9179         * window.c (change_window_height):
9180         * window.c (Fwindow_configuration_p):
9181         * window.c (Fcurrent_window_configuration):
9182         * window.h:
9183         * casefiddle.c (casify_object):
9184         * casefiddle.c (Fupcase):
9185         * casefiddle.c (Fdowncase):
9186         * casefiddle.c (Fcapitalize):
9187         * casefiddle.c (Fupcase_initials):
9188         * casefiddle.c (casify_region_internal):
9189         * casefiddle.c (casify_region):
9190         * casefiddle.c (Fupcase_region):
9191         * casefiddle.c (Fdowncase_region):
9192         * casefiddle.c (Fcapitalize_region):
9193         * casefiddle.c (Fupcase_initials_region):
9194         * casefiddle.c (Fupcase_word):
9195         * casefiddle.c (Fdowncase_word):
9196         * casefiddle.c (Fcapitalize_word):
9197         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9198         Replace 0 with '\0' when working with bytes.
9199         Replace initial "(" with "\(" in docstrings.
9200
9201 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9202
9203         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9204
9205         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9206
9207 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9208
9209         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9210
9211 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9212
9213         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9214         correctly.
9215
9216 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9217
9218         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9219         (inhibit_auto_save_session): New variable.
9220         (vars_of_fileio): Declare and initialize them.
9221         * fileio.c (Fdo_auto_save): Don't create session file if
9222         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9223
9224 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9225
9226         * sgiplay.c (play_internal): C++ compilability.
9227         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9228         * callproc.c (Fold_call_process_internal):
9229         Remove unused vars `env', `first'.
9230         * scrollbar.c (update_scrollbar_instance):
9231         #### unused var `current_window'.
9232         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9233         etc. within #ifdef NOT_YET.
9234         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9235         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9236         * specifier.c (specifier_instance):
9237         #### unused var `tag'.
9238         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9239
9240 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9241
9242         * fns.c (Fbutlast):
9243         * fns.c (list_sort):
9244         * fns.c (Ffillarray):
9245         * fns.c (bytecode_nconc2):
9246         * fns.c (Fnconc):
9247         * fns.c (mapcar1):
9248         * fns.c (Fmapconcat):
9249         Be pedantically 64-bit correct.  For the time when someone will
9250         want to have a list with length > 2**32.
9251
9252         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9253         Work around MIPSpro compiler bug.
9254
9255         * process-unix.c (unix_kill_child_process): Add snarky comment.
9256         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9257
9258         * config.h.in: Oops, _getpt ==> _getpty
9259
9260 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9261
9262         * config.h.in:
9263         * regex.c:
9264         Use void*, not char*, as return type of alloca().
9265
9266         * alloc.c (free_marker): Side effect inside assert expression!
9267
9268 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9269
9270         * mule-charset.c (Fset_charset_ccl_program): To check
9271         if the given ccl program is valid, use setup_ccl_program()
9272         instead of CHECK_VECTOR().
9273         (Fmake_charset): Likewise.
9274
9275 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9276
9277         * faces.c (get_extent_fragment_face_cache_index):
9278         Fix cachel.merged_faces memory leak.
9279
9280 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9281
9282         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9283         Reset MSB of octets obtained by DECODE_SJIS
9284         because of the incompatibility with Emacs.
9285         (ccl_driver)<CCL_ENCODE_SJIS>:
9286         Set MSB of octets before passing them to
9287         ENCODE_SJIS because of the incompatibility
9288         with Emacs.
9289
9290 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9291
9292         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9293         (DECLARE_LRECORD): Undo the last change.
9294         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9295
9296 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9297
9298         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9299         the implementation to lrecord_implementations_table.
9300
9301 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9302
9303         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9304         initial value of `lrecord_type_##c_name' and
9305         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9306         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9307         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9308         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9309         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9310
9311 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9312
9313         * miscplay.c (sndcnv8S_2mono):
9314         (sndcnv2monounsigned):
9315         (sndcnvULaw_2linear):
9316         (sndcnv16swap):
9317         Remove implementation-defined behavior.
9318
9319 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9320
9321         * input-method-xlib.c: Warning suppression.
9322
9323 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9324
9325         * mule-ccl.c: Sync up with Emacs 21.0.90.
9326         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9327         Do nothing.
9328         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9329         Likewise.
9330         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9331         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9332         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9333         leading char belongs to official 2-dimensional charset.
9334         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9335         write the given character as is.  Otherwise,
9336         if it is a multibyte char, convert it by
9337         non_ascii_set_charptr_emchar, then write it.
9338         (CCL_WRITE_STRING): Likewise.
9339         (ccl_get_compiled_code): New function.
9340         (setup_ccl_program): When ccl_prog is invalid,
9341         return -1.
9342         (Fregister_code_conversion_map): New function.
9343         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9344
9345         * mule-ccl.h: Sync up with Emacs 21.0.90.
9346         (Fregister_ccl_program): export it.
9347
9348         * redisplay-msw.c (separate_textual_runs):
9349         If ccl program is not valid, don't do ccl conversion.
9350
9351         * redisplay-x.c (separate_textual_runs): Ditto.
9352
9353         * file-coding.c (Fmake_coding_system):
9354         When type is ccl and value is vector, register it
9355         with a proper symbol.  And checks whether the
9356         given ccl program is valid.
9357         (mule_decode): When calling ccl_driver, if src indicates
9358         NULL pointer, set an empty string instead.
9359         (mule_encode): Likewise.
9360
9361 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9362
9363         The following large batch of changes gets us back to a state of
9364         C++ compilability.  Extbyte is now a char, which means that
9365         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9366
9367         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9368
9369         * sound.c (Fplay_sound): Type correctness.
9370
9371         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9372         (x_get_window_property): Type correctness.
9373         (receive_incremental_selection): unsigned char ==> Extbyte
9374         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9375         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9376         (Fx_store_cutbuffer_internal): Type correctness.
9377
9378         * process-unix.c (try_to_initialize_subtty): Type correctness.
9379
9380         * objects-x.c (x_print_color_instance): Type correctness.
9381         (x_print_font_instance): Type correctness.
9382         (x_list_fonts): SExtbyte ==> Extbyte.
9383         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9384         (x_find_charset_font): SExtbyte ==> Extbyte.
9385         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9386         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9387         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9388         Use bufbyte_strcmp.
9389
9390         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9391         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9392         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9393         (BYTE_C0_P): Use bit ops for char-signedness safety.
9394         (BYTE_C1_P): Use bit ops for char-signedness safety.
9395         (CHARSET_BY_LEADING_BYTE):
9396         (CHARSET_BY_ATTRIBUTES):
9397         Always use inline function.
9398         Use type_checking_assert.
9399         Hide chlook.
9400
9401         * mule-charset.c (non_ascii_charptr_copy_char):
9402         Modify to work with both ASCII and non-ASCII characters.
9403         Improve docs and variable names.
9404         Replace over-clever fall-through switch with a simple loop.
9405         (Lstream_get_emchar_1):
9406         Replace over-clever fall-through switch with a simple loop.
9407
9408         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9409         Warning suppression.
9410
9411         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9412         the return value of Lstream_getc, which could be EOF as well.
9413
9414         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9415
9416         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9417         APIs can be used on Extbytes without casts.  Risky!
9418         (SExtbyte): Remove.
9419         (UExtbyte): Remove.
9420
9421         * input-method-xlib.c (XIM_init_device):
9422         Use Xlib.h instead of IntrinsicP.h.
9423         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9424         which will break in X11R7.
9425         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9426         to call XRegisterIMInstantiateCallback with correct types.
9427
9428         * gui-x.c (button_item_to_widget_value): Type correctness.
9429
9430         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9431
9432         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9433         (xbm_instantiate_1): Type correctness.
9434         (BUILD_GLYPH_INST):  Type correctness.
9435
9436         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9437
9438         * file-coding.c:
9439         (decode_coding_sjis):
9440         (decode_coding_big5):
9441         (decode_coding_ucs4):
9442         (decode_coding_utf8):
9443         (decode_coding_iso2022):
9444         (decode_coding_no_conversion):
9445         Make all decoding functions take an Extbyte * arg.
9446         (encode_coding_sjis):
9447         (encode_coding_big5):
9448         (encode_coding_ucs4):
9449         (encode_coding_utf8):
9450         (encode_coding_iso2022):
9451         (encode_coding_no_conversion):
9452         Make all encoding functions take a Bufbyte * arg.
9453         Use size_t instead of unsigned int for memory sizes.
9454         Only cast to unsigned char whenever dereferencing Extbyte *.
9455
9456         * doc.c (unparesseuxify_doc_string): Type correctness.
9457
9458         * console-x.c (split_up_display_spec):
9459         Rewrite without using details of internal string representation.
9460         (x_semi_canonicalize_device_connection): Type correctness.
9461
9462         * config.h.in:
9463         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9464         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9465         (HAVE_XFREE386): Removed.
9466
9467         * buffer.h (DEC_CHARPTR): `const' correctness.
9468         (bufbyte_strcmp): New.
9469         (bufbyte_memcmp): New.
9470
9471         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9472
9473         * buffer.h (XCHAR_OR_CHAR_INT):
9474         Always use inline function.
9475         Remove redundant type checking assert() - XINT will abort quite nicely.
9476
9477 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9478
9479         * search.c (Freplace_match): Set newtext to an empty string.
9480
9481 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9482
9483         * s/decosf1-3.h: Remove #include of stropts.h
9484         * s/ptx.h: Remove #include of stropts.h
9485         * s/usg5-4.h: Remove #include of stropts.h
9486         * sysproc.h:
9487         * config.h.in:
9488         Use stropts.h, not sys/stropts.h.
9489         Use strtio.h, not sys/strtio.h.
9490
9491 2000-10-04  Martin Buchholz <martin@xemacs.org>
9492
9493         * XEmacs 21.2.36 is released.
9494
9495 2000-09-21  Andy Piper  <andy@xemacs.org>
9496
9497         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9498         changes still involve copying the widget tree.
9499         (update_widget_face): make sure a change is register in the widget
9500         tree. Call update_tab_widget_face appropriately.
9501         (update_tab_widget_face): ditto.
9502         (x_tab_control_redisplay): make sure non-structural changes still
9503         involve copying the widget tree.
9504
9505 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9506
9507         * lread.c (locate_file): Check the path element is non-nil.
9508
9509 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9510
9511         * lisp.h: Warning suppression for SCO compilers.
9512
9513         * redisplay-tty.c (reset_tty_modes): Fix crash.
9514         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9515
9516 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9517
9518         Big signal/process handling overhaul.  Bugs fixed:
9519         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9520         M-x comint-kill-subjob should work for both values nil and t of
9521         process-connection-type. It was broken on most platforms.
9522         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9523         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9524         * process-unix.c: Signal/Process handling overhaul.
9525         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9526         (allocate_pty): Use all available modern methods of allocating
9527         ptys, falling back to old style BSD allocation as a last resort.
9528         Use allegedly more secure Unix98 pty allocation by default.
9529         (allocate_pty_the_old_fashioned_way): New. the last resort.
9530         (unix_create_process): Push ptem, ldterm, ttcompat where
9531         available.  Autoconfiscate.
9532         (try_to_initialize_subtty): New.
9533         (unix_kill_child_process): Proper signal handling for ptys on most
9534         platforms, using special knowledge of AIX, BSD, etc...
9535         (unix_create_process): Always disconnect_controlling_terminal() for
9536         subprocesses, whether using ptys or not.
9537         * process.h: Remove old getpt-dependent PTY code.
9538         * process.c (Fprocess_send_signal): New, obvious generic function.
9539         (decode_signal): New.
9540         (Finterrupt_process):
9541         (Fkill_process):
9542         (Fquit_process):
9543         (Fstop_process):
9544         (Fcontinue_process):
9545         (Fsignal_process): Use decode_signal.
9546         (process_send_signal):
9547         Many docstring corrections.
9548         Allow any signal to be sent to a process object.
9549         * config.h.in: Add symbols for big signal/process overhaul.
9550         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9551         * sysproc.h: Include process-related headers, where available:
9552         sys/stropts.h sys/strtio.h pty.h libutil.h
9553         * s/irix4-0.h:
9554         * s/irix5-0.h:
9555         * s/cygwin32.h:
9556         * s/gnu.h:
9557         * s/linux.h:
9558         * s/hpux.h:
9559         * s/aix3-1.h:
9560         Remove old S&M pty stuff.
9561         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9562         * systty.h: Simplify cpp hackery, improve comments.
9563         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9564
9565         * editfns.c (Fformat_time_string):
9566         Be a little more paranoid with the return value of ctime.
9567
9568         * fileio.c (check_executable):
9569         (check_writable):
9570         Use symbolic constants X_OK, W_OK.
9571
9572         * console-x.c (split_up_display_spec): Fix a warning.
9573
9574 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9575
9576         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9577         * ntproc.c (sys_spawnve): make_string ==> build_string
9578         Small clarity improvements.
9579
9580 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9581
9582         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9583
9584         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9585
9586         * config.h.in (HAVE_STRCASECMP): Remove.
9587
9588 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9589
9590         * redisplay-output.c (redisplay_output_pixmap):
9591         Cleaner and possibly more 64-bit correct code.
9592
9593 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9594
9595         * dumper.c (pdump_load_finish): move restoration of
9596         `noninteractive1' to emacs.c (main_1).
9597         * emacs.c (main_1): protect LISP-visible command-line flags
9598         from pdump_load().
9599
9600 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9601
9602         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9603         DUMP_TARGET instead of literal program names.
9604
9605 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9606
9607         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9608
9609 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9610
9611         * *: Spelling mega-patch
9612
9613 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9614
9615         * fns.c (bad_bad_turtle):
9616         Delete "Eek!" comment, since we fixed the bug to which it refers.
9617
9618 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9619
9620         * alloca.c: Replace REGISTER with register.
9621
9622 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9623
9624         * file-coding.c (ucs_to_char): Use countof.
9625
9626 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9627
9628         * file-coding.c: (ucs_to_char):
9629         (complex_vars_of_file_coding):
9630         Use countof instead of sizeof.
9631         Use CHECK_NATNUM instead of CHECK_INT.
9632
9633         * sysdep.c (strcasecmp): Remove.
9634         * device-x.c (ascii_strcasecmp): New.
9635         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9636         Avoid using non-standard non-portable strcasecmp.
9637
9638 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9639
9640         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9641         * font-lock.c: remove reference to emacsfns.h.
9642         * search.c: small doc improvement.
9643         * event-Xt.c: correct file names in comments.
9644         * console-x.h Correct file names in comments.
9645         * frame.c: Correct file names in comments.
9646         * event-stream.c: remove Energize from comments.
9647
9648 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9649
9650         * symeval.h (DEFERROR_STANDARD):
9651         (DEFERROR):
9652         (DEFSYMBOL):
9653         (DEFSYMBOL_NO_DUMP):
9654         (DEFSYMBOL_MULTIWORD_PREDICATE):
9655         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9656         (DEFKEYWORD):
9657         The construct &##name is not sensible C.
9658         Fixes compilation errors with Unixware native compiler.
9659
9660 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9661
9662         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9663         (next_frame_internal): Removed.  We now just have next_frame.
9664         (next_frame):
9665         Write a simpler and cleaner one-pass algorithm.
9666         Remove called_from_delete_device arg and #ifdefed-out code.
9667         (previous_frame):
9668         Renamed from prev_frame.  Update callers.
9669         Cleaned up to have an analogous implementation to next_frame.
9670         (other_visible_frames_internal): Remove the
9671         called_from_delete_device bogus arg, and hence, remove this
9672         function.  Just use other_visible_frames().
9673
9674         * window.c (Fnext_window):
9675         Prettify docstring.
9676         Since next_frame() is guaranteed to return a frame, remove check
9677         for nil inserted in previous patch.
9678         (Fprevious_window):
9679         Prettify docstring.
9680         Make code look more like Fnext_window.
9681         (window_loop):
9682         Respect the `console' arg when iterating through windows.
9683         Fixes bug: (get-buffer-window buffer t device) not respecting
9684         the `device' arg.
9685         This function needs more work, as others have pointed out.
9686
9687         * frame.h: Rename prev_frame to previous_frame.
9688         device_matches_console_spec no longer takes a `frame' arg.
9689
9690         * s/gnu.h:
9691         * s/linux.h:
9692         * s/hpux.h:
9693         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9694         From "Golubev I. N." <gin@mo.msk.ru>.
9695
9696         * make-src-depend: Fix typo.
9697
9698 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9699
9700         * window.c (Fnext_window):
9701         next_frame() might return nil, not a frame.
9702         Fixes this crash:
9703         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9704
9705         * frame.c (next_frame_internal):
9706         We've passed a frame if we've passed its device.
9707         Fixes this crash:
9708         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9709 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9710
9711 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9712
9713         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9714         Allow option to suppress accelerators in menu/dialog items.
9715         (populate_or_checksum_helper): Pass dialog title through above.
9716
9717 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9718
9719         * event-msw.c (mswindows_key_to_emacs_keysym):
9720         Add "pause" key, fix "menu" key.
9721
9722 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9723
9724         * eval.c (reinit_vars_of_eval):
9725         Increase max_lisp_eval_depth to 1000,
9726         required for thai-xtis.el to byte-compile under some circumstances.
9727
9728 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9729
9730         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9731         From Kenichi Handa.
9732
9733 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9734
9735         * make-src-depend: Make the generated Makefiles smaller.
9736
9737         * s/hpux.h (SETUP_SLAVE_PTY):
9738         Provide a %d in the format string for the errno argument.
9739
9740         * editfns.c (Ftemp_directory):
9741         Warning fix.
9742         Avoid buffer overrun on very long file name.
9743
9744         * input-method-xlib.c (XIM_init_device):
9745         6th parameter of XRegisterIMInstantiateCallback has different
9746         pointer types on different OSes, so simply cast to (void *).
9747
9748         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9749
9750         * sysdll.c (dll_open):
9751         shl_load will hang hard if passed a NULL filename.
9752         Simply return NULL for compatibility with dlopen.
9753         * sysdll.c: Conform to XEmacs coding standards.
9754
9755         * sysdep.c (get_pty_max_bytes):
9756         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9757
9758 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9759
9760         * tooltalk.c: Add #include <syssignal.h>
9761
9762 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9763
9764         * s/hpux.h: Don't use undefined function sigunblock().
9765
9766 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9767
9768         * config.h.in: Add HAVE_BALLOON_HELP.
9769         * emacs.c: Use HAVE_BALLOON_HELP.
9770         * Makefile.in.in (x_objs):
9771         Make Balloon Help conditional on finding shape.h.
9772
9773 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9774
9775         * syntax.c (regex_emacs_buffer_p): New variable.
9776         * syntax.h (regex_emacs_buffer_p): extern.
9777         * search.c (looking_at_1):
9778         (string_match_1):
9779         (fast_string_match):
9780         (search_buffer): Set regex_emacs_buffer_p.
9781         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9782         when before_dot, at_dot, after_dot.
9783
9784 2000-08-23  Andy Piper  <andy@xemacs.org>
9785
9786         * gui-x.c (popup_selection_callback): Only set action_occurred
9787         when we really have an image instance.
9788         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9789
9790 2000-08-23  Andy Piper  <andy@xemacs.org>
9791
9792         * gui-msw.c (mswindows_handle_gui_wm_command): set
9793         action_occurred.
9794         * gui-x.c (popup_selection_callback): ditto.
9795
9796         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9797         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9798         (struct Lisp_Image_Instance): add action_occurred flag.
9799
9800         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9801         (image_instance_changed): ditto.
9802         (reset_frame_subwindow_instance_cache): only unmap windows - do
9803         not remove them from the cache also.
9804
9805         * glyphs-widget.c (tab_control_update): better debug.
9806         (progress_gauge_update): ditto.
9807         (layout_update): ditto.
9808         (layout_instantiate): ditto.
9809         (tab_control_order_only_changed): cope with null pending items.
9810
9811         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9812         debug. Force selection of an item when an action occurred. Cope
9813         with null pending_items.
9814         (mswindows_progress_gauge_redisplay): better debug.
9815         * glyphs-x.c (x_tab_control_redisplay): ditto.
9816
9817         * redisplay.c (redisplay_frame): reset the frame cache if the
9818         frame is garbaged.
9819
9820         * window.c (Fset_window_configuration): potentially re-enable
9821         frame cache reset.
9822         (window_unmap_subwindows): need to finalize instances here since
9823         it is only used in mark_window_as_deleted.
9824
9825 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9826
9827         * nas.c (SndOpenDataForReading):
9828         nas.c (WaveOpenDataForReading):
9829         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9830         Somehow escaped from the 2000-08-14 patch.
9831
9832 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9833
9834         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9835         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9836
9837 2000-08-21  Andy Piper  <andy@xemacs.org>
9838
9839         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9840         window if it is not already displayed.
9841
9842         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9843         it is not already displayed.
9844
9845         * window.c (Fset_window_configuration): don't reset the frame
9846         cache.
9847
9848         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9849         instances from the frame cache if we are actually finalizing them.
9850         (reset_frame_subwindow_instance_cache): reset frame cache only
9851         after unmapping everything.
9852         (map_subwindow): set displayed flag after mapping.
9853
9854 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9855
9856         * data.c (indirect_function):
9857         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9858
9859         * eval.c (function_argcount):
9860         Use original function when signaling errors.
9861
9862 2000-08-18  Andy Piper  <andy@xemacs.org>
9863
9864         * frame.c (delete_frame_internal): use new
9865         free_frame_subwindow_instances name.
9866
9867         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9868         (add_tab_item): make return type correct.
9869         (mswindows_tab_control_instantiate): assert index of tab.
9870         (mswindows_tab_control_redisplay): Re-code to use
9871         gui_item_equal_sans_selected and gui_item_list_find_selected.
9872
9873         * glyphs-widget.c (tab_control_update): Correct comment.
9874
9875         * window.c (window_unmap_subwindows): use new
9876         unmap_subwindow_instance_cache_mapper.
9877         (window_unmap_subwindows_cache_mapper): deleted.
9878         (Fset_window_configuration): comparisons should now be with
9879         EQ. Preserve the subwindow instance cache across configuration
9880         changes.
9881         (allocate_window): ditto.
9882         (make_dummy_parent): ditto.
9883
9884         * glyphs.c (free_frame_subwindow_instances): rename from
9885         free_frame_subwindow_instance_cache. finalize all instances rather
9886         than just those in the display cache.
9887         (finalize_all_subwindow_instances): walk windows unmapping and
9888         finalizing subwindows.
9889         (unmap_subwindow_instance_cache_mapper): moved from
9890         window.c. Allow finalization as well as unmapping.
9891
9892         * gui.c (gui_item_list_find_selected): new function.
9893
9894         * gui.h (gui_item_list_find_selected): declare.
9895
9896         * glyphs-x.c (x_tab_control_redisplay): pick tab
9897         explicitly. Re-code to use gui_item_equal_sans_selected and
9898         gui_item_list_find_selected.
9899
9900         * glyphs-x.h: add lwlib-utils.h
9901
9902         * buffer.c (Frecord_buffer): undo previous change.
9903
9904 2000-08-09  Vin Shelton  <acs@xemacs.org>
9905
9906         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9907         possible.  Create temporary files more securely.  The patch was
9908         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9909         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9910         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9911         for details.
9912
9913 2000-08-07  Ben Wing  <ben@xemacs.org>
9914
9915         * getloadavg.c: remove duplicate (and windows-breaking)
9916         includes of fcntl.h and sys/file.h.
9917
9918         * nt.c: remove duplicate getloadavg() definition.
9919
9920         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9921         encodings.
9922
9923 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9924
9925         * eval.c (function_argcount): If function needs to be autoloaded
9926         actually use the loaded definition.
9927         GCPRO function.
9928
9929 2000-08-05  Ben Wing  <ben@xemacs.org>
9930
9931         * getloadavg.c: add prototype for getloadavg().  remove
9932         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9933         of the code).  remove duplicate header includes.
9934
9935         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9936
9937         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9938         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9939         useful load average.
9940
9941         * alloc.c (reinit_alloc_once_early): removed references to
9942         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9943         the lisp vars are the only things referencing the malloc_sbrk_*
9944         vars, and they were already if 0'd out.  these vars only exist
9945         in the older malloc.c, which is basically unused, and they're
9946         only for informational purposes.
9947
9948         * m\*.h: removed useless VIRT_ADDR_VARIES.
9949
9950         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9951
9952 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9953
9954         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9955         color if the image is a mono pixmap.
9956
9957 2000-07-30  Ben Wing  <ben@xemacs.org>
9958
9959         * Makefile.in.in (release):
9960         Remove stray @.
9961
9962         * buffer.c (directory_is_current_directory):
9963         * dired-msw.c (mswindows_get_files):
9964         * dired.c:
9965         * dired.c (Fdirectory_files):
9966         * dired.c (file_name_completion_stat):
9967         * dired.c (Ffile_attributes):
9968         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9969         preprocessor tricks, to avoid problems on some machines
9970         (e.g. SCO).
9971
9972         * callproc.c (egetenv): GC docs.
9973
9974         * console-msw.h:
9975         * console-msw.h (struct mswindows_dialog_id):
9976         * lrecord.h (lrecord_type):
9977         New object for use with MSW dialogs.
9978
9979         * console.h (struct console_methods):
9980         New enable/disable frame methods, for proper modal dialogs.
9981
9982         * device-msw.c (msprinter_default_printer): Fix to follow
9983         proper Mule conventions.
9984
9985         * device-msw.c:
9986         * device-msw.c (signal_open_printer_error):
9987         * device-msw.c (msprinter_init_device):
9988         * device-msw.c (ensure_not_printing):
9989         * device-msw.c (plist_get_margin):
9990         * device-msw.c (Fmsprinter_select_settings):
9991         * device-msw.c (finalize_devmode):
9992         * device-msw.c (Fmsprinter_settings_despecialize):
9993         * device-msw.c (signal_enum_priner_error):
9994         * extents.c (decode_extent):
9995         * extents.c (decode_map_extents_flags):
9996         * extents.c (decode_extent_at_flag):
9997         * extents.c (Fextent_at):
9998         * extents.c (Fextents_at):
9999         * extents.c (symbol_to_glyph_layout):
10000         [[[[2]]]] Use structured errors.
10001
10002         * dialog-msw.c:
10003         * dialog-msw.c (mswindows_is_dialog_msg):
10004         * dialog-msw.c (mark_mswindows_dialog_id):
10005         * dialog-msw.c (dialog_proc):
10006         * dialog-msw.c (handle_question_dialog_box):
10007         * dialog-msw.c (syms_of_dialog_mswindows):
10008         Define new object to clean up marking; use it as a dialog identifier.
10009         Call new delete-dialog-box-hook.
10010
10011         * dialog-x.c (dbox_selection_callback):
10012         * dialog-x.c (dbox_descriptor_to_widget_value):
10013         * dialog-x.c (x_make_dialog_box_internal):
10014         Call new delete-dialog-box-hook.
10015         Return an id.
10016
10017         * dialog.c:
10018         * dialog.c (syms_of_dialog):
10019         * dialog.c (vars_of_dialog):
10020         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10021
10022         * eval.c:
10023         * eval.c (signal_call_debugger):
10024         when noninteractive, output stack traces on the console instead
10025         of in a (never-seen) buffer.
10026
10027         * eval.c (signal_type_error):
10028         * eval.c (invalid_argument_2):
10029         * lisp.h:
10030         new funs for use w/structured errors.
10031
10032         * event-Xt.c:
10033         * event-Xt.c (x_to_emacs_keysym):
10034         * event-Xt.c (describe_event):
10035         * event-Xt.c (emacs_Xt_event_handler):
10036         * event-Xt.c (vars_of_event_Xt):
10037         * event-msw.c:
10038         * event-msw.c (mswindows_wnd_proc):
10039         * event-msw.c (vars_of_event_mswindows):
10040         rename {x,mswindows}-debug-events to debug-{}-events for
10041         consistency with other debug-foo variables.
10042
10043         * event-stream.c:
10044         document next-event more clearly.
10045
10046         * fileio.c (Ffile_name_directory):
10047         * fileio.c (Ffile_name_nondirectory):
10048         * fileio.c (Funhandled_file_name_directory):
10049         * fileio.c (file_name_as_directory):
10050         * fileio.c (Ffile_name_as_directory):
10051         * fileio.c (directory_file_name):
10052         * fileio.c (Fdirectory_file_name):
10053         * fileio.c (Fmake_temp_name):
10054         * fileio.c (Ffile_truename):
10055         * fileio.c (Fsubstitute_in_file_name):
10056         * fileio.c (expand_and_dir_to_file):
10057         * fileio.c (barf_or_query_if_file_exists):
10058         * fileio.c (check_executable):
10059         * fileio.c (Ffile_exists_p):
10060         * fileio.c (Ffile_writable_p):
10061         * fileio.c (Ffile_directory_p):
10062         * fileio.c (Ffile_regular_p):
10063         * fileio.c (Ffile_modes):
10064         * fileio.c (Ffile_newer_than_file_p):
10065         * fileio.c (Fverify_visited_file_modtime):
10066         * fileio.c (Fset_visited_file_modtime):
10067         * fileio.c (auto_save_1):
10068         (1). (2).
10069         fix up gcpro's.
10070
10071         * frame-msw.c:
10072         * frame-msw.c (mswindows_init_frame_1):
10073         * frame-msw.c (mswindows_enable_frame):
10074         * frame-msw.c (error_frame_unsizable):
10075         * frame-msw.c (msprinter_init_frame_1):
10076         * frame-msw.c (msprinter_init_frame_3):
10077         * frame-msw.c (console_type_create_frame_mswindows):
10078         (2).
10079         implement new enable/disable frame methods.
10080
10081         * frame-x.c:
10082         * frame-x.c (x_enable_frame):
10083         * frame-x.c (console_type_create_frame_x):
10084         implement new enable/disable frame methods.
10085
10086         * frame.c:
10087         * frame.c (Fdisable_frame):
10088         * frame.c (syms_of_frame):
10089         * frame.h (struct frame):
10090         implement new enable/disable frame methods/functions.
10091
10092         * general-slots.h:
10093         add initial-focus.
10094
10095         * glyphs-msw.c (mswindows_widget_instantiate):
10096         comment that initial-focus should be implemented.
10097
10098         * glyphs-widget.c:
10099         * glyphs-widget.c (check_valid_instantiator):
10100         * glyphs-widget.c (check_valid_orientation):
10101         * glyphs-widget.c (check_valid_tab_orientation):
10102         * glyphs-widget.c (check_valid_justification):
10103         * glyphs-widget.c (check_valid_border):
10104         * glyphs-widget.c (check_valid_callback):
10105         * glyphs-widget.c (check_valid_int_or_function):
10106         * glyphs-widget.c (check_valid_string_or_vector):
10107         * glyphs-widget.c (check_valid_item_list_1):
10108         * glyphs-widget.c (widget_validate):
10109         * glyphs-widget.c (combo_box_validate):
10110         * glyphs-widget.c (widget_instantiate):
10111         * glyphs-widget.c (syms_of_glyphs_widget):
10112         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10113         * glyphs-widget.c (image_instantiator_combo_box):
10114         * glyphs-widget.c (image_instantiator_scrollbar):
10115         * glyphs-widget.c (image_instantiator_tab_control):
10116         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10117         (2).
10118         support (unimplemented) keyword initial-focus.
10119         reindent long macros.
10120
10121         * glyphs-x.c (x_redisplay_widget):
10122         * glyphs-x.c (x_button_instantiate):
10123         * glyphs-x.c (x_button_redisplay):
10124         * glyphs-x.c (x_progress_gauge_instantiate):
10125         * glyphs-x.c (x_edit_field_instantiate):
10126         * glyphs-x.c (x_combo_box_instantiate):
10127         * glyphs-x.c (x_tab_control_instantiate):
10128         * glyphs-x.c (x_label_instantiate):
10129         * gui-x.c:
10130         * gui-x.c (button_item_to_widget_value):
10131         * gui-x.c (gui_items_to_widget_values_1):
10132         * gui-x.c (gui_item_children_to_widget_values):
10133         * gui-x.c (gui_items_to_widget_values):
10134         * gui-x.h:
10135         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10136         add new flag to gui-parsing routines to indicate whether
10137         accelerator specs should be supported.
10138
10139         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10140
10141         * glyphs.h (struct Lisp_Image_Instance):
10142         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10143         add initial-focus flag.
10144
10145         * gui.c:
10146         * gui.c (syms_of_gui):
10147         * gui.c (vars_of_gui):
10148         clean up menu-no-selection-hook.
10149
10150         * gui.h:
10151         support delete-dialog-box-hook.
10152
10153         * lread.c (Fload_internal):
10154         * lread.c (locate_file_in_directory_mapper):
10155         (1).
10156
10157         * lrecord.h:
10158         * lrecord.h (struct toolbar_button):
10159         * lrecord.h (syms_of_toolbar):
10160         document how to create a new object.
10161
10162         * menubar-msw.c (mswindows_char_is_accelerator):
10163         may be called on frames w/o menus.
10164
10165         * menubar.c (vars_of_menubar):
10166         clean up :filter docs.
10167
10168         * nt.c (readdir):
10169         * ntproc.c:
10170         (1).
10171
10172         * process-nt.c:
10173         * process-nt.c (validate_signal_number):
10174         * process-nt.c (signal_cannot_launch):
10175         * process-nt.c (nt_create_process):
10176         * process-nt.c (nt_send_process):
10177         * process-nt.c (nt_kill_child_process):
10178         * process-nt.c (nt_open_network_stream):
10179         * process-nt.c (syms_of_process_nt):
10180         (2).
10181         delete quote-handling.  call new lisp code that does it better.
10182
10183         * process-unix.c (connect_to_file_descriptor):
10184         * process-unix.c (allocate_pty):
10185         * process-unix.c (unix_send_process):
10186         * process-unix.c (unix_kill_child_process):
10187         * process-unix.c (unix_open_network_stream):
10188         * process-unix.c (unix_open_multicast_group):
10189         (1). (2).
10190
10191         * process.c:
10192         * process.c (Fstart_process_internal):
10193         (2).  need to canonicalize process path even if absolute.
10194
10195         * select-msw.c (symbol_to_ms_cf):
10196         * select-msw.c (ms_cf_to_symbol):
10197         * select-msw.c (cf_is_autofreed):
10198         * select-msw.c (mswindows_destroy_selection):
10199         * select.c:
10200         * select.c (syms_of_select):
10201         * select.h:
10202         support dibv5, fix bugs. (from Mike Alexander)
10203
10204         * select.c (Fget_selection_internal):
10205         * select.c (select_convert_out):
10206
10207         * sysdep.c:
10208         * sysdep.c (xemacs_stat):
10209         renamed.
10210
10211         * sysdep.c (mkdir):
10212         * sysdep.c (rmdir):
10213         but keep original stat() here because we provide encapsulation
10214         around these funs.
10215
10216         * sysfile.h:
10217         * sysfile.h (fstat):
10218         remove stat garbage.
10219
10220         * syswindows.h:
10221         fix X/MSW conflict.
10222         don't include tchar.h.  it's inappropriate because it makes
10223         compile-time distinctions when we want runtime distinctions.
10224         (we provide our own tchar replacements)
10225
10226         * toolbar.c:
10227         use default object printer for toolbar-button.
10228
10229         * unexcw.c:
10230         make sure we don't encapsulate.
10231
10232         * window.c (vars_of_window):
10233         emphasize that temp-buffer-show-hook is obsolete.
10234
10235 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10236
10237         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10238         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10239
10240         * events.c (Fevent_timestamp_lessp):
10241         Not 64-bit clean.  Use EMACS_INT, not int.
10242
10243 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10244
10245         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10246         unsigned int and changed the last enum to
10247         lrecord_type_last_built_in_type.
10248         (lrecord_implementations_table): changed prototype to know how
10249         long the array is supposed to be.
10250         (lrecord_type_count): new unsigned int to keep track of the
10251         current number of lisp lrecord types.
10252         (DEFINE_EXTERNAL_LRECORD):
10253         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10254         dynamic-modules to declare new lisp types. They are the same
10255         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10256         int for each new type, and increment lrecord_type_count by 1.
10257
10258         * alloc.c (lrecord_implementations_table): Changed to reference
10259         lrecord_type_last_built_in_type for the size of the array.
10260         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10261
10262 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10263
10264         * glyphs.h (check_valid_item_list): Renamed from
10265         check_valid_item_list_1.
10266
10267 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10268
10269         * select.c (Qselect_coerce): New.
10270         * select.c (Vselection_coercion_alist): New.
10271         * select.c (syms_of_select): Declare.
10272         * select.c (get-selection-internal): Use it.
10273         Use the new select-coerce functionality.
10274
10275         * select.c (select_coerce): New.
10276         * select.h (select_coerce): Declare.
10277         New function to coerce one type of data into another.
10278
10279 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10280
10281         * callproc.c (Fcall_process_internal):
10282         (Fcall_process_internal):
10283         * process-unix.c (unix_create_process):
10284         Save and restore the value of errno, so that error messages are accurate.
10285
10286 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10287
10288         * elhash.c (print_hash_table):
10289         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10290         Prettify docstrings and indentation.
10291
10292 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10293
10294         * window.c (Fwindow_pixel_edges): Subtract frame border and
10295         gutter size.
10296
10297 2000-07-31  Andy Piper  <andy@xemacs.org>
10298
10299         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10300         will acknowledge the change.
10301
10302         * glyphs.h: declare tab_control_order_only_changed.
10303
10304         * glyphs-x.c (x_tab_control_redisplay): use
10305         tab_control_order_only_changed.
10306
10307         * glyphs-widget.c (tab_control_order_only_changed): new function.
10308
10309         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10310         tab_control_order_only_changed.
10311
10312         * gui.c (gui_item_equal_sans_selected): new function.
10313         (gui_item_equal): use it.
10314
10315         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10316         :properties in favor of :items..
10317
10318         * glyphs-widget.c (check_valid_item_list): rename from
10319         check_valid_item_list_1.
10320         (check_valid_item_list_1): renamed.
10321         (combo_box_validate): deprecate :properties in favor of :items.
10322         (widget_instantiate): ditto.
10323         (tab_control_update): ditto.
10324         (image_instantiator_combo_box): ditto.
10325         (image_instantiator_tree_view): ditto.
10326         (image_instantiator_tab_control): ditto.
10327         (layout_post_instantiate): remove dead code.
10328
10329         * print.c (debug_print_no_newline): only write to debugger if in
10330         WIN32_NATIVE.
10331
10332         * elhash.c (Fmake_hash_table): update doc string.
10333
10334         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10335         messages whilst in GC. This at least stops XEmacs crashing but has
10336         the potential for wierd behaviour.
10337
10338 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10339
10340         * config.h.in:
10341         Make existence of s&m files optional.
10342
10343         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10344         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10345         * s/gnu.h: Remove HAVE_GETLOADAVG.
10346         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10347         * s/sol2.h: Remove HAVE_GETLOADAVG.
10348         * lisp.h: Remove getloadavg() declaration.
10349         * fns.c:
10350         Include <sys/loadavg.h> if available.
10351         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10352         * config.h.in:  Group together getloadavg()-related macros.
10353         Use only configure-time tests to detect getloadavg().
10354
10355 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10356
10357         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10358
10359 2000-07-25  Andy Piper  <andy@xemacs.org>
10360
10361         * syswindows.h: add tchar.h for native builds.
10362
10363         * frame.c (syms_of_frame): remove set-glyph-image.
10364
10365         * general-slots.h: add Qset_glyph_image.
10366
10367         * glyphs-widget.c (layout_update): add domain arg to
10368         set-glyph-image.
10369         (syms_of_glyphs_widget): remove set-glyph-image.
10370
10371 2000-07-23  Ben Wing  <ben@xemacs.org>
10372
10373         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10374         Vpopup_frame_list.
10375
10376 2000-07-22  Andy Piper  <andy@xemacs.org>
10377
10378         * symsinit.h: add syms_of_win32().
10379
10380         * gui-msw.c (syms_of_gui_mswindows): remove
10381         Fmswindows_shell_execute.
10382         (Fmswindows_shell_execute): moved to win32.c.
10383
10384         * emacs.c (main_1): add syms_of_win32 ().
10385
10386         * win32.c (init_potentially_nonexistent_functions): rewrite in
10387         compiler-friendly terms.
10388         (Fmswindows_shell_execute): move here from gui-msw.c.
10389         (syms_of_win32): new.
10390
10391         * device-msw.c (Fmswindows_printer_list): clean up args to
10392         EnumPrinters.
10393         Don't include tchar under cygwin or mingw.
10394         (msprinter_default_printer): make cygwin-friendly.
10395
10396 2000-07-21  Andy Piper  <andy@xemacs.org>
10397
10398         * glyphs-widget.c (image_instantiator_tree_view): use tab
10399         control's update function.
10400         (layout_property): new function. Retrieve items.
10401
10402         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10403         function. Re-populate the tree view from the pending items.
10404
10405         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10406         is designated the parent if the domain is an image instance. This
10407         is needed so that dirtiness can be cascade up the hierarchy and
10408         thus for layout children to be redisplayed correctly.
10409         (allocate_image_instance): rename glyph -> parent.
10410
10411         * redisplay.h: change redisplay_output_layout signature.
10412
10413         * redisplay-msw.c (mswindows_output_display_block): use domain
10414         arg.
10415
10416         * redisplay-x.c (x_output_display_block): use domain arg.
10417
10418 2000-07-10  Andy Piper  <andy@xemacs.org>
10419
10420         * window.c (Fset_window_configuration): add comment.
10421
10422         * redisplay-output.c (compare_runes):
10423         (redisplay_output_subwindow): redisplay rather than update subwindow.
10424         (redisplay_output_layout): ditto.
10425
10426         * redisplay-msw.c (mswindows_frame_output_end):
10427         (mswindows_frame_output_end): make defer window pos optional.
10428
10429         * lisp.h: add Flast.
10430
10431         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10432         normalize method. Change update method to be for changed
10433         instantiators. Add redisplay method. Change signature of layout
10434         method.
10435         (struct Lisp_Image_Instance): add instantiator.
10436         (IMAGE_INSTANCE_INSTANTIATOR): new.
10437         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10438         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10439         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10440
10441         * glyphs.c:
10442         (find_instantiator_differences): new function.
10443         (Fset_instantiator_property): new convenience function.
10444         (check_image_instance_structure): strictly check for vector
10445         instantiators.
10446         (normalize_image_instantiator): make non-static.
10447         (instantiate_image_instantiator): pass on dest_mask and use new
10448         signatures for image_instance_layout and friends.
10449         (mark_image_instance): mark the instantiator. Mark the subwindow
10450         face not the widget face.
10451         (image_instance_equal): add instantiator.
10452         (image_instance_hash): ditto.
10453         (allocate_image_instance): ditto.
10454         (Fset_image_instance_property): removed.
10455         (Fimage_instance_file_name): ditto.
10456         (Fcolorize_image_instance): ditto.
10457         (image_instance_layout): add offsets to be set.
10458         (update_image_instance): new function. update an image instance
10459         from its changed instantiator.
10460         (inherit_normalize): add dest_mask.
10461         (xbm_normalize): ditto.
10462         (xface_normalize): ditto.
10463         (xpm_normalize): ditto.
10464         (text_update): set_property -> update.
10465         (image_instantiate): use the glyph identity as a hash key, not the
10466         instantiator.
10467         (glyph_width): use new image_instance_layout signature.
10468         (glyph_ascent): ditto.
10469         (glyph_descent): ditto.
10470         (glyph_height): ditto.
10471         (glyph_query_geometry): ressurrect.
10472         (glyph_layout): ditto.
10473         (redisplay_subwindow): update -> redisplay.
10474         (syms_of_glyphs): add Fset_instantiator_property.
10475         (image_instantiator_format_create): set_property -> update.
10476
10477         * glyphs-x.c:
10478         (autodetect_normalize): add dest_maks to signature.
10479         (x_redisplay_subwindow): update -> redisplay.
10480         (x_redisplay_widget): ditto.
10481         (x_button_redisplay): ditto.
10482         (x_progress_gauge_redisplay): ditto.
10483         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10484         stacking order.
10485         (console_type_create_glyphs_x): update -> redisplay.
10486         (image_instantiator_format_create_glyphs_x): ditto.
10487
10488         * glyphs-widget.c:
10489         (check_valid_instantiator): disallow glyphs in the instantiator,
10490         they must now be vectors.
10491         (check_valid_instantiator_list): ditto.
10492         (glyph_instantiator_to_glyph): use internal symbol rather than
10493         intern.
10494         (widget_update): renamed from widget_set_property. Call cascaded
10495         update methods.
10496         (redisplay_widget): renamed from update_widget.
10497         (widget_layout): image_instance_layout now takes position as well
10498         as size.
10499         (widget_normalize): ditto.
10500         (widget_instantiate): ditto.
10501         (tab_control_query_geometry) ditto.:
10502         (tab_control_update): renamed from tab_control_set_property.
10503         (progress_gauge_update): set_property -> update.
10504         (layout_normalize): rewrite so that child instantiators are
10505         normalized also.
10506         (layout_update): new function. Create glyphs from the normalized
10507         children and cope with any other layout keywords. We do not
10508         instantiate children here that will be take care of by
10509         redisplay_output_layout.
10510         (layout_instantiate): call layout_update and not much else.
10511         (layout_post_instantiate): not sure whether this is needed
10512         anymore.
10513         (layout_query_geometry): query glyph geometry rather than
10514         image_instance geometry.
10515         (layout_layout): set offsets from pass in parameters. Use glyph
10516         geometry and layout functions rather than image instance ones.
10517         (native_layout_layout): ditto.
10518         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10519         (image_instantiator_widget): set_property -> update.
10520         (image_instantiator_buttons): ditto.
10521         (image_instantiator_progress_guage): ditto.
10522         (image_instantiator_tab_control): ditto.
10523         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10524         (image_instantiator_layout): add update method.
10525
10526         * glyphs-msw.c (bmp_normalize):
10527         (mswindows_resource_normalize): add dest_mask so that it can be
10528         proprogated by layout_normalize.
10529         (begin_defer_window_pos): make optional because it may not be the
10530         right thing to do and it introduces differences with X.
10531         (mswindows_unmap_subwindow): ditto.
10532         (mswindows_map_subwindow): ditto.
10533         (mswindows_redisplay_subwindow): renamed from
10534         mswindows_update_subwindow.
10535         (mswindows_redisplay_widget): ditto.
10536         (mswindows_button_redisplay): renamed from
10537         mswindows_button_update. Update is now what the instantiation
10538         function does for a changed instantiator.
10539         (mswindows_progress_gauge_instantiate): set the progress value
10540         here if appropriate.
10541         (mswindows_tab_control_redisplay): cope with re-ordering of the
10542         members of the tab widget by simply selecting the new top
10543         widget. This makes things appear ok if you click on a tab.
10544         (mswindows_combo_box_instantiate): image_instance_layout now takes
10545         position as well as size.
10546         (mswindows_progress_gauge_redisplay): renamed from
10547         mswindows_progress_gauge_update.
10548         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10549         (image_instantiator_format_create_glyphs_mswindows): ditto.
10550
10551         * glyphs-eimage.c (jpeg_normalize):
10552         (gif_normalize):
10553         (png_normalize):
10554         (tiff_normalize): add dest_mask so that it can be proprogated by
10555         layout_normalize.
10556
10557         * elhash.c:
10558         (print_hash_table):
10559         (hash_table_weakness_validate):
10560         (decode_hash_table_weakness):
10561         (Fhash_table_weakness):
10562         (Fhash_table_type):
10563         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10564
10565         * console.h (struct console_methods): move update_* to
10566         redisplay_*.
10567
10568 2000-07-20  Ben Wing  <ben@xemacs.org>
10569
10570         * *.[ch] (XSETOBJ): remove unused middle argument.
10571         lisp-disunion.h: correct wrap_object() to one argument.
10572
10573 2000-07-15  Ben Wing  <ben@xemacs.org>
10574
10575         * s/cygwin32.h:
10576         * s/cygwin32.h (CYGWIN_CONV_PATH):
10577         Add missing logb prototype for v1.1.
10578         Use post-b20 names and alias to pre-b20 names when pre-b20.
10579
10580         * s/windowsnt.h: [5].
10581
10582 2000-07-15  Ben Wing  <ben@xemacs.org>
10583
10584         * Makefile.in.in (x_objs):
10585         * Makefile.in.in (sheap_objs):
10586         * Makefile.in.in (objs):
10587         added win32.o, cosmetic cleanups.
10588
10589         * alloc.c (Fmake_byte_code):
10590         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10591         etc. macros which declare their own args now.
10592
10593         * alloc.c (syms_of_alloc):
10594         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10595
10596         * buffer.c:
10597         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10598
10599         * buffer.c (Fget_file_buffer):
10600         Fixed GCPRO problem.
10601
10602         * buffer.c (get_truename_buffer):
10603         Fixed comment about GC checking.
10604
10605         * buffer.c (syms_of_buffer):
10606         Undeclared those dedicated frame funs.
10607         [2].
10608
10609         * buffer.h:
10610         Define convenience macros for internal/external conversions.
10611         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10612         and Qenvironment_variable_encoding for cleaner code.
10613
10614         * bufslots.h:
10615         Remove dedicated-frame; in lisp.
10616
10617         * bytecode.c (funcall_compiled_function):
10618         [1].
10619
10620         * bytecode.c (syms_of_bytecode):
10621         [2].
10622
10623         * console-msw.c:
10624         * console-msw.c (mswindows_show_console): Rewrote.
10625
10626         * console-msw.c (Fmswindows_debugging_output): New.
10627         Sends to OutputDebugString (special MSWin debugger interface).
10628
10629         * console-msw.c (Fmswindows_message_box):
10630         Fixed stupid bugs so it works when called from kill-emacs.
10631
10632         * console-msw.c (syms_of_console_mswindows):
10633         Declare Fmswindows_debugging_output.
10634
10635         * console-msw.h:
10636         New MSWin prototypes.
10637
10638         * console-msw.h (struct mswindows_frame):
10639         New entry last-click-mods for improved button-modifier support.
10640
10641         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10642         New struct entry `popup' with corresponding accessor.
10643
10644         * console-x.c:
10645         * console-x.c (split_up_display_spec):
10646         * console-x.c (get_display_arg_connection):
10647         * console-x.c (x_semi_canonicalize_console_connection):
10648         * console-x.c (x_canonicalize_device_connection):
10649         [[[6]]]: Change char to more specific type.
10650         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10651
10652         * console-x.c (x_semi_canonicalize_console_connection):
10653         * console-x.c (x_canonicalize_device_connection):
10654         [[[9]]]: Fix up error signalling to use new structured error system.
10655
10656         * console-x.h:
10657         [[[4]]]: Define codesys aliases:
10658         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10659         Qx_color_name_encoding, Qx_display_name_encoding.
10660
10661         * console.h (struct console_methods):
10662         New method make_dialog_box_internal supersedes older
10663         popup_dialog_box method.
10664
10665         * data.c:
10666         Define many new errors, part of new structured errors.
10667
10668         * data.c (init_errors_once_early):
10669         * data.c (syms_of_data):
10670         [2].
10671
10672         * device-msw.c (mswindows_init_device):
10673         [[[5]]]: Cleanup to support NT 3.51.
10674
10675         * device-msw.c (decode_devmode): Cleanup.
10676
10677         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10678         * device-msw.c (mswindows_handle_print_dialog_box):
10679         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10680         * device-msw.c (syms_of_device_mswindows):
10681         Delete the dialog box primitives recently introduced by Kirill and
10682         instead interface to general dialog box interface.
10683
10684         * device-x.c:
10685         * device-x.c (compute_x_app_name):
10686         * device-x.c (x_init_device):
10687         * device-x.c (Fx_valid_keysym_name_p):
10688         * device-x.c (Fx_set_font_path):
10689         [6].
10690         [7].
10691
10692         * device.h (wrap_device): New.
10693         First of its kind; meant to replace XSETDEVICE.
10694
10695         * dialog-msw.c: Many file-dialog symbols.
10696
10697         * dialog-msw.c (mswindows_register_popup_frame): New.
10698         * dialog-msw.c (mswindows_is_dialog_msg): New.
10699         For supporting kbd traversal in dialog boxes.
10700
10701         * dialog-msw.c (dialog_proc):
10702         Support hitting ESC in dialogs.
10703
10704         * dialog-msw.c (struct):
10705         Common dialog box errors.
10706
10707         * dialog-msw.c (handle_file_dialog_box): New.
10708         Add file dialog code.
10709
10710         * dialog-msw.c (handle_question_dialog_box):
10711         Redo existing code to support new question dialog syntax.
10712
10713         * dialog-msw.c (console_type_create_dialog_mswindows):
10714         We support new dialog console method.
10715
10716         * dialog-msw.c (syms_of_dialog_mswindows):
10717         * dialog-msw.c (vars_of_dialog_mswindows):
10718         New file dialog symbols, vars.
10719
10720         * dialog-x.c:
10721         * dialog-x.c (maybe_run_dbox_text_callback):
10722         * dialog-x.c (dbox_descriptor_to_widget_value):
10723         * dialog-x.c (x_make_dialog_box_internal):
10724         * dialog-x.c (console_type_create_dialog_x):
10725         Mule-ize entire file.
10726         Redo to support question dialog syntax.
10727         [6].
10728
10729         * dialog.c:
10730         * dialog.c (Fmake_dialog_box_internal):
10731         * dialog.c (syms_of_dialog):
10732         Kill old popup-dialog-box, replace with new primitive.
10733         Just call device method or signal error.
10734
10735         * eldap.c (Fldap_open):
10736         * eldap.c (Fldap_search_basic):
10737         * eldap.c (Fldap_add):
10738         * eldap.c (Fldap_modify):
10739         [1].
10740         [7].
10741
10742         * emacs.c:
10743         * emacs.c (make_arg_list_1):
10744         * emacs.c (make_arg_list):
10745         Mule-ize call to dll_init().
10746         [6].
10747         [8].
10748
10749         * emacs.c (make_argc_argv):
10750         * emacs.c (free_argc_argv):
10751         * emacs.c (init_cmdargs):
10752         * emacs.c (main_1):
10753         * emacs.c (Fkill_emacs):
10754         * emacs.c (Fdump_emacs):
10755         Update comments about what can be used in syms_* etc.
10756         Call init_win32() when necessary.
10757         Fix up MS Win dialog box in kill-buffer to actually work right.
10758         [7].
10759
10760         * eval.c:
10761         * eval.c (For):
10762         * eval.c (Fand):
10763         * eval.c (Fprogn):
10764         * eval.c (Fprog1):
10765         * eval.c (Fprog2):
10766         * eval.c (FletX):
10767         * eval.c (Flet):
10768         * eval.c (condition_case_3):
10769         * eval.c (Feval):
10770         * eval.c (function_argcount):
10771         * eval.c (funcall_lambda):
10772         [1].
10773
10774         * eval.c (type_error): New.
10775         * eval.c (maybe_type_error): New.
10776         * eval.c (continuable_type_error): New.
10777         * eval.c (maybe_continuable_type_error): New.
10778         * eval.c (type_error_with_frob): New.
10779         * eval.c (maybe_type_error_with_frob): New.
10780         * eval.c (continuable_type_error_with_frob): New.
10781         * eval.c (maybe_continuable_type_error_with_frob): New.
10782         New functions for use with structured errors.
10783
10784         * event-Xt.c:
10785         * event-Xt.c (x_event_to_emacs_event):
10786         Buttons are now modifiers too.
10787
10788         * event-Xt.c (emacs_Xt_current_event_timestamp):
10789         Implement new event method.
10790         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10791
10792         * event-msw.c:
10793         * event-msw.c (ntpipe_shove_writer): [5].
10794         * event-msw.c (mswindows_enqueue_mouse_button_event):
10795         * event-msw.c (mswindows_drain_windows_queue):
10796         * event-msw.c (mswindows_wnd_proc): [7].
10797         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10798         * event-msw.c (mswindows_modifier_state):
10799         Throughout: support new button modifiers.
10800
10801         * event-msw.c (emacs_mswindows_current_event_timestamp):
10802         Implement new event method.
10803         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10804
10805         * event-stream.c:
10806         * event-stream.c (event_stream_current_event_timestamp): New.
10807         * event-stream.c (maybe_kbd_translate): New functionality.
10808         * event-stream.c (vars_of_event_stream):
10809         Document new kbd-translate-table functionality.
10810
10811         * event-stream.c (Fcurrent_event_timestamp): New.
10812         New primitive for use in fabricated events.
10813         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10814
10815         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10816
10817         * events.c:
10818         * events.c (Fmake_event):
10819         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10820         [1].
10821         [9].
10822
10823         * events.c (format_event_object): fix gcc warnings.
10824
10825         * events.c (Fevent_timestamp): Document new primitives.
10826
10827         * events.c (TIMESTAMP_HALFSPACE): New.
10828
10829         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10830         comparing timestamps correctly (half-space algorithm).
10831
10832         * events.c (Fevent_modifier_bits): Doc fix.
10833
10834         * events.c (Fevent_modifiers): Major doc addition.
10835         * events.c (event_x_y_pixel_internal): Typo fix.
10836         * events.c (syms_of_events): Declare new primitives.
10837
10838         * events.h:
10839         Update long comment for button modifiers, timestamps.
10840
10841         * events.h (struct event_stream):
10842         New current_event_timestamp method.
10843
10844         * extents.c:
10845         * extents.c (extent_in_region_p):
10846         * extents.c (decode_extent):
10847         * extents.c (Fset_extent_parent):
10848         * extents.c (decode_map_extents_flags):
10849         Fix gcc warnings.
10850         [9].
10851
10852         * extents.c (struct extent_at_arg):
10853         * extents.c (decode_extent_at_flag):
10854         * extents.c (extent_at_mapper):
10855         * extents.c (extent_at_bytind):
10856         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10857         * extents.c (Fextents_at): New primitive. [9].
10858         * extents.c (symbol_to_glyph_layout): [9].
10859         Support new primitive `extents-at'.
10860
10861
10862         * extents.c (get_text_property_bytind):
10863         extent_at_bytind has another arg.
10864         [9].
10865
10866         * extents.c (syms_of_extents): New primitive.
10867
10868         * file-coding.c (Fmake_coding_system): [1].
10869         * file-coding.c (subsidiary_coding_system): fix gcc warning
10870         * file-coding.c (syms_of_file_coding): [2].
10871
10872         * fileio.c (Fexpand_file_name):
10873         * fileio.c (Fsysnetunam):
10874         * fileio.c (Ffile_exists_p):
10875         * fileio.c (Ffile_executable_p):
10876         * fileio.c (Fverify_visited_file_modtime):
10877         Clean up GCPROing.
10878
10879         * fileio.c (syms_of_fileio): [2].
10880
10881         * filelock.c (lock_file_1):
10882         * filelock.c (current_lock_owner):
10883         * filelock.c (lock_if_free):
10884         * filelock.c (lock_file):
10885         * filelock.c (unlock_file):
10886         Clean up GCPROing.
10887
10888         * fns.c (concat): Fix gcc warning.
10889
10890         * fns.c (Fmember):
10891         * fns.c (Fold_member):
10892         * fns.c (Fmemq):
10893         * fns.c (Fold_memq):
10894         * fns.c (memq_no_quit):
10895         * fns.c (Fassoc):
10896         * fns.c (Fold_assoc):
10897         * fns.c (Fassq):
10898         * fns.c (Fold_assq):
10899         * fns.c (assq_no_quit):
10900         * fns.c (Frassoc):
10901         * fns.c (Fold_rassoc):
10902         * fns.c (Frassq):
10903         * fns.c (Fold_rassq):
10904         * fns.c (rassq_no_quit):
10905         * fns.c (Fdelete):
10906         * fns.c (Fold_delete):
10907         * fns.c (Fdelq):
10908         * fns.c (Fold_delq):
10909         * fns.c (delq_no_quit):
10910         * fns.c (Fremassoc):
10911         * fns.c (Fremassq):
10912         * fns.c (remassq_no_quit):
10913         * fns.c (Fremrassoc):
10914         * fns.c (Fremrassq):
10915         * fns.c (remrassq_no_quit):
10916         * fns.c (Freverse):
10917         * fns.c (mapcar1):
10918         [1].
10919
10920         * frame-msw.c (mswindows_init_frame_1):
10921         * frame-msw.c (mswindows_delete_frame):
10922         Register popups with dialog code so keyboard traversing works.
10923
10924         * frame-tty.c (tty_raise_frame_no_select): [1].
10925
10926         * frame-x.c:
10927         * frame-x.c (x_set_frame_text_value):
10928         * frame-x.c (x_set_frame_properties):
10929         * frame-x.c (x_create_widgets):
10930         [7].
10931
10932         * frame.c:
10933         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10934
10935         * frame.h (wrap_frame): New.
10936         Macro like wrap_device.
10937
10938         * general.c:
10939         * general.c (SYMBOL):
10940         * general.c (syms_of_general):
10941         Major reorg.  This is now just a wrapper and symbols themselves
10942         are listed in general-slots.h.
10943
10944         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10945         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10946
10947         * glyphs-msw.c (mswindows_native_layout_instantiate):
10948         Add DS_CONTROL so keyboard traversal will work.
10949
10950         * glyphs-widget.c:
10951         * glyphs-widget.c (syms_of_glyphs_widget):
10952         Move some symbols to general-slots.h.
10953
10954         * glyphs-x.c:
10955         * glyphs-x.c (xbm_instantiate_1):
10956         * glyphs-x.c (x_xbm_instantiate):
10957         * glyphs-x.c (x_xface_instantiate):
10958         * glyphs-x.c (autodetect_instantiate):
10959         * glyphs-x.c (cursor_font_instantiate):
10960         * glyphs-x.c (x_update_widget):
10961         * glyphs-x.c (x_widget_instantiate):
10962         * glyphs.c (bitmap_to_lisp_data):
10963         * glyphs.c (pixmap_to_lisp_data):
10964         [7].
10965
10966         * glyphs.c (syms_of_glyphs):
10967         [2].
10968
10969         * gui-x.c:
10970         * gui-x.c (print_widget_value):
10971         * gui-x.c (menu_separator_style_and_to_external):
10972         * gui-x.c (add_accel_and_to_external):
10973         * gui-x.c (button_item_to_widget_value):
10974         * gui-x.c (gui_items_to_widget_values_1):
10975         * gui-x.c (gui_items_to_widget_values):
10976         * gui-x.c (syms_of_gui_x):
10977         * gui-x.c (vars_of_gui_x):
10978         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10979         [9].
10980
10981         * gui-x.h:
10982         Muleize, prototype changes matching gui-x.c.
10983
10984         * gui.c:
10985         * gui.c (separator_string_p):
10986         * gui.c (gui_item_add_keyval_pair):
10987         * gui.c (make_gui_item_from_keywords_internal):
10988         * gui.c (signal_too_long_error):
10989         * gui.c (parse_gui_item_tree_item):
10990         * gui.c (syms_of_gui):
10991         * gui.c (vars_of_gui):
10992         * gui.h:
10993         menu-no-selection-hook moved here (used by MSWin).
10994         Move some symbols to general-slots.h.
10995         [6].
10996         [9].
10997
10998         * insdel.c (get_buffer_pos_char):
10999         * insdel.c (get_buffer_range_char):
11000         Add GC comments.
11001
11002         * keymap.c (keymap_lookup_directly):
11003         * keymap.c (keymap_store):
11004         * keymap.c (ensure_meta_prefix_char_keymapp):
11005         * keymap.c (describe_map):
11006         * keymap.h:
11007         Support new button modifiers.
11008
11009         * lisp-disunion.h (wrap_object):
11010         * lisp-disunion.h (XSETOBJ):
11011         Rename make_obj to wrap_object.
11012
11013         * lisp-union.h:
11014         * lisp-union.h (make_int):
11015         * lisp-union.h (make_char):
11016         Support wrap_object.
11017
11018         * lisp.h:
11019         * lisp.h (LIST_LOOP):
11020         * lisp.h (EXTERNAL_LIST_LOOP):
11021         * lisp.h (LIST_LOOP_2):
11022         * lisp.h (EXTERNAL_LIST_LOOP_1):
11023         * lisp.h (EXTERNAL_LIST_LOOP_2):
11024         * lisp.h (EXTERNAL_LIST_LOOP_3):
11025         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11026         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11027         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11028         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11029         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11030         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11031         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11032         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11033         * lisp.h (struct Lisp_Symbol):
11034         * lisp.h (maybe_continuable_error_with_frob):
11035         Fix up section comments.
11036         Add new types for char to indicate usage.
11037         Delete symbols auto-generated from general-slots.h.
11038         Add prototypes for structured error functions.
11039         Add long comments describing looping macros and change interface
11040         so that lvalues are automatically declared.
11041         Add NO_DECLARE macro in case callers want to declare lvalues
11042         themselves.
11043
11044         * lread.c (read_syntax_error):
11045         * lread.c (continuable_read_syntax_error):
11046         * lread.c (read_structure):
11047         * lread.c (sequence_reader):
11048         * lread.c (read_list_conser):
11049         * lread.c (read_compiled_function):
11050         Rename syntax_error and continuable_syntax_error to avoid clash
11051         with same-named structured error functions.
11052
11053         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11054         * menubar-msw.c (populate_menu_add_item):
11055         * menubar-msw.c (populate_or_checksum_helper):
11056         [5].
11057         [9].
11058
11059         * menubar-x.c:
11060         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11061         Mule-ize whole file.
11062
11063         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11064
11065         * mule-charset.c (Fmake_charset):
11066         * mule-wnnfns.c (Fwnn_set_param):
11067         [1].
11068
11069         * ntproc.c (create_child):
11070         * ntproc.c (Fwin32_set_current_locale):
11071         Add comments portending doom.
11072
11073         * objects-msw.c:
11074         * objects-msw.c (old_font_enum_callback_2):
11075         * objects-msw.c (font_enum_callback_1):
11076         * objects-msw.c (mswindows_enumerate_fonts):
11077         [5].
11078
11079         * objects-x.c:
11080         * objects-x.c (allocate_nearest_color):
11081         * objects-x.c (x_parse_nearest_color):
11082         * objects-x.c (x_initialize_color_instance):
11083         * objects-x.c (x_print_color_instance):
11084         * objects-x.c (x_finalize_color_instance):
11085         * objects-x.c (x_valid_color_name_p):
11086         * objects-x.c (x_initialize_font_instance):
11087         * objects-x.c (x_print_font_instance):
11088         * objects-x.c (valid_x_font_name_p):
11089         * objects-x.c (truename_via_FONT_prop):
11090         * objects-x.c (truename_via_random_props):
11091         * objects-x.c (truename_via_XListFonts):
11092         * objects-x.c (x_font_truename):
11093         * objects-x.c (x_font_instance_truename):
11094         * objects-x.c (x_font_instance_properties):
11095         * objects-x.c (x_list_fonts):
11096         * objects-x.c (x_find_charset_font):
11097         Mule-ize entire file.
11098         [7].
11099
11100         * objects-x.h:
11101         Mule-verify.
11102
11103         * print.c:
11104         * print.c (std_handle_out_external):
11105         * print.c (debug_print_no_newline):
11106         * print.c (syms_of_print):
11107         Output to all debugger kinds in debug-print.
11108         Fix console-output code under MSWin to actually work.
11109
11110         * process-nt.c (send_signal):
11111         * process-nt.c (nt_create_process):
11112         Use newer Unicode macros.
11113
11114         * process-unix.c (unix_create_process):
11115         * process-unix.c (unix_canonicalize_host_name):
11116         * process-unix.c (unix_open_network_stream):
11117         [7].
11118
11119         * scrollbar-x.c:
11120         Mule-verify.
11121
11122         * search.c (syms_of_search):
11123         [2].
11124
11125         * select-msw.c (mswindows_destroy_selection):
11126         Use LIST_LOOP_2.
11127
11128         * select-x.c (symbol_to_x_atom):
11129         [7].
11130
11131         * select.c (syms_of_select):
11132         [2].
11133
11134         * sound.c (Fplay_sound_file):
11135         [7].
11136
11137         * specifier.c:
11138         * specifier.c (decode_specifier_type):
11139         * specifier.c (Fvalid_specifier_locale_type_p):
11140         * specifier.c (check_valid_locale_or_locale_type):
11141         * specifier.c (decode_locale):
11142         * specifier.c (decode_locale_type):
11143         * specifier.c (decode_locale_list):
11144         * specifier.c (check_valid_domain):
11145         * specifier.c (decode_specifier_tag_set):
11146         * specifier.c (Fcanonicalize_tag_set):
11147         * specifier.c (Fdefine_specifier_tag):
11148         * specifier.c (Fspecifier_tag_predicate):
11149         * specifier.c (check_valid_inst_list):
11150         * specifier.c (check_valid_spec_list):
11151         * specifier.c (decode_how_to_add_specification):
11152         * specifier.c (check_modifiable_specifier):
11153         * specifier.c (specifier_add_spec):
11154         * specifier.c (boolean_validate):
11155         * specifier.c (display_table_validate):
11156         [9].
11157
11158         * specifier.c (syms_of_specifier):
11159         Move some symbols to general-slots.h.
11160         [2].
11161
11162         * symbols.c:
11163         * symbols.c (Fmapatoms):
11164         * symbols.c (Fapropos_internal):
11165         Add GCPROs.
11166
11167         * symbols.c (set_default_buffer_slot_variable):
11168         * symbols.c (set_default_console_slot_variable):
11169         [1].
11170
11171         * symbols.c (defsymbol_massage_name_1):
11172         * symbols.c (defkeyword_massage_name):
11173         * symbols.c (deferror_1):
11174         * symbols.c (deferror):
11175         * symbols.c (deferror_massage_name_and_message):
11176         * symeval.h:
11177         * symeval.h (DEFSYMBOL):
11178         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11179
11180         * symbols.c (syms_of_symbols):
11181         [2].
11182
11183         * symsinit.h:
11184         * symsinit.h (init_win32): New.
11185         Also new is syms_of_dialog_mswindows.
11186
11187         * syswindows.h:
11188         Add new Unicode macros, missing Cygwin wide-char functions,
11189         convenience conversion macros for Qmswindows_tstr, macros for
11190         encapsulating required MSWin <-> Cygwin filename conversions,
11191         prototype for dynamically-extracted (not in NT 3.51) functions.
11192
11193         * toolbar-x.c:
11194         Mule-verify.
11195
11196         * tooltalk.c (Fadd_tooltalk_message_arg):
11197         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11198         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11199         [7].
11200
11201         * tooltalk.c (syms_of_tooltalk):
11202         [2].
11203
11204         * unexnt.c:
11205         * unexnt.c (unexec):
11206         Fix up headers, declaration of unexec() to be more standard.
11207
11208 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11209
11210         * offix.h: Revert change to guard macros - they're used in offix.c!
11211
11212 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11213
11214         * lisp.h: Defsubred Fdelete.
11215
11216         * console-msw.h:  (msprinter_default_printer): Added.
11217
11218         * console-msw.c (msprinter_canonicalize_console_connection):
11219         (msprinter_canonicalize_device_connection): Added.
11220
11221         * device-msw.c (msprinter_default_printer):
11222         (Fmswingows_get_default_printer):
11223         (signal_enum_priner_error):
11224         (Fmswingows_printer_list): Added.
11225
11226 2000-07-19  Martin Buchholz <martin@xemacs.org>
11227
11228         * XEmacs 21.2.35 is released.
11229
11230 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11231
11232         * select-x.c (x_handle_selection_request):
11233         Text selected in xemacs and pasted into xterm failed to appear.
11234         Spelling fixes and cosmetic changes.
11235
11236 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11237
11238         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11239         XEmacs frame (fix for doubling chars in dialog boxes).
11240
11241 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11242
11243         * select.c (select_convert_in, select_convert_out):
11244         Don't call intern() every time.
11245
11246         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11247         * select.c (vars_of_select): Initialise them.
11248
11249 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11250
11251         * select.c (selection-coercible-types): New.
11252
11253         * select.c (own-selection-internal):
11254         * select.c (get-selection-internal):
11255         MULE bug fix - these should default to COMPOUND_TEXT and not
11256         STRING for MULE. I think.
11257
11258         * select.c (select_convert_out): Use selection-coercible-types
11259         to find types that we can attempt to perform coercions on.
11260
11261 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11262
11263         * mule-wnnfns.c:
11264         * mule-canna.c:
11265         Add coding: cookie to identify encoding.
11266
11267         * mule-canna.c (CANNA_mode_keys): make static.
11268         Use proper prototypes, even for functions of no arguments.
11269         Remove external prototype for Fding().
11270
11271         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11272
11273         * select.c (syms_of_select): Add missing DEFSUBR.
11274
11275 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11276
11277         * select.c (get_selection_internal, own_selection_internal):
11278         Make the type default to STRING, rather than placing a nil type
11279         into Vselection_alist.
11280
11281 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11282
11283         * gpmevent.c (tty_selection_exists_p):
11284         * gpmevent.c (tty_own_selection):
11285         Updated parameter lists.
11286
11287 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11288
11289         * select.h (selection-alist): Removed declaration.
11290
11291         * select.h (get_local_selection):
11292         * select.c (get_local_selection):
11293         Made static.
11294
11295         * select.h (convert_selection): Removed declaration.
11296         * select.c (convert_selection): Removed.
11297         This function belongs in Lisp.
11298
11299         * select.h (select_convert_in): Declare.
11300         * select.h (select_convert_out): Declare.
11301         * select.c (select_convert_in): New.
11302         * select.c (select_convert_out): New.
11303         New conversion functions for other files to call.
11304
11305         * select.h (select_notify_buffer_kill): Declare.
11306         * select.c (select_notify_buffer_kill): New.
11307         New functions that get called from kill-buffer.
11308
11309         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11310         X-specific lisp code.
11311
11312         * select.h: Declare some of the lisp-visible functions for
11313         external use.
11314
11315         * select.c (clean_local_selection_data): Removed. This was
11316         a disgusting function, and previously should have been in
11317         select-x.c in any case. The functionality is now provided
11318         in select-convert-from-integer (select.el).
11319
11320         * select.c (available-selection-types): Fixed stupidity where
11321         INTEGER and ATOM got added twice. Also add STRING when we see an
11322         extent.
11323
11324         * select.c (get-selection-internal): Removed symbol stripping. No
11325         longer causes conversion when data comes from the internal cache.
11326
11327         * select.c (syms_of_select): Added new functions.
11328
11329         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11330         error checking - previously this called abort!
11331
11332         * select-x.c (x_own_selection): Changed comment.
11333
11334         * select-x.c (x_handle_selection_request): Use select_convert_out.
11335         Don't mess with selection-alist; it's an internal variable of select.c.
11336
11337         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11338
11339         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11340         rather than messing with selection-alist.
11341
11342         * select-msw.c (mswindows_get_foreign_selection):
11343         Use TO_INTERNAL_FORMAT rather than hacking.
11344
11345 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11346
11347         * process-unix.c (unix_open_multicast_group):
11348         (unix_open_multicast_group): Remove useless casts.
11349
11350 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11351
11352         * sound.c (Fplay_sound): Fix `unused variable' warning.
11353
11354         * emacs.c (main): Use correct type for _environ on SCO5.
11355
11356 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11357
11358         * console.h (own_selection_method):
11359         * console.h (selection_exists_p_method):
11360         * console.h (available_selection_types_method): New.
11361         * console.h (register_selection_data_type_method): New.
11362         * console.h (selection_data_type_name): New.
11363
11364         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11365         function & alist to track GlobalAlloc()'d handles that need
11366         releasing when the clipboard data gets replaced or emptied.
11367
11368         * event-msw.c (mswindows_wnd_proc): Call it.
11369
11370         * lisp.h, general.c (Qappend): New symbol representing a
11371         `how-to-add' mode.
11372
11373         * select.c (own-selection-internal):
11374         * select.c (selection-exists-p):
11375         * select.c (available-selection-types): New.
11376         * select.c (register-selection-data-type): New.
11377         * select.c (selection-data-type-name): New.  New functions to deal
11378         with device-specific selection data formats.
11379         * select.c (selection-converter-out-alist): Renamed.
11380         * select.c (selection-converter-in-alist): New.
11381         * select.c (selection-appender-alist): New.  Added new alists.
11382         * select.c (syms_of_select, vars_of_select): Added new symbols &
11383         variables.
11384         * select.c (get_local_selection): Split.
11385         * select.c: Removed spurious type checking - selections may now be
11386         of any type, not just strings.
11387         * select.c (own-selection-internal):
11388
11389         * select.h, select.c (convert_selection): New. Created
11390         convert_selection() function based on get_local_selection().
11391         * select.h, select.c (QCF_*): New symbols representing mswindows
11392         clipboard formats.
11393         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11394         symbols representing `how-to-add' modes.
11395
11396         * select-msw.c (x_sym_p): New.
11397         * select-msw.c (symbol_to_ms_cf): New.
11398         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11399         symbols & clipboard formats. Can also handle string names.
11400         * select-msw.c (mswindows_own_selection):
11401         * select-msw.c (mswindows_selection_exists_p):
11402         Added `data-type' parameter. Use it.
11403         * select-msw.c (mswindows_available_selection_types): New.
11404         * select-msw.c (mswindows_register_selection_data_type): New.
11405         * select-msw.c (mswindows_selection_data_type_name): New.
11406         * select-msw.c (mswindows_own_selection):
11407         * select-msw.c (mswindows_get_foreign_selection):
11408         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11409         * select-msw.c (console_create_select_mswindows): Added new methods.
11410         * select-msw.c (mswindows_destroy_selection): New.
11411         * select-msw.c (Vhandle_alist): New list.
11412         * select-msw.c (mswindows_own_selection):
11413
11414         * select-x.c (x_own_selection):
11415         * select-x.c (x_selection_exists_p):
11416         * select-x.c: Added some comments about maybe using new
11417         functionality.
11418         * select-x.c (x_own_selection):
11419
11420         * specifier.c: Remove definition of Qappend (now in general.c)
11421         * specifier.c (syms_of_specifier): Remove Qappend.
11422
11423 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11424
11425         * config.h.in: Add socklen_t.
11426
11427         * s/decosf4-0.h: No special compiler flags needed or desired.
11428         In particular, undefine _BSD for DEC OSF 4.0.
11429
11430 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11431
11432         * redisplay-msw.c (msprinter_frame_output_end): Added.
11433         (console_type_create_redisplay_mswindows): Referred the above.
11434
11435         * frame.c (setup_frame_without_minibuffer): Do not create a
11436         default minibuffer frame on a printer device.
11437
11438         * frame-msw.c (apply_dc_geometry): Added.
11439         (msprinter_start_page):
11440         (msprinter_init_frame_3):
11441         (msprinter_eject_page): Use it.
11442
11443         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11444         and removed residual duplex and orientation properties.
11445
11446 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11447
11448         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11449
11450         * unexalpha.c: Remove system prototypes from C sources!
11451
11452 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11453
11454         * eval.c: Remove references to M-x edit-options in DEFUNs for
11455         `defvar' and `defconst'.
11456
11457 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11458
11459         * config.h.in: Remove SMART_INCLUDE hackery.
11460
11461         PostgreSQL hacking:
11462         * config.h.in: Don't use SMART_INCLUDE.
11463
11464         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11465         * inline.c: Simply #include "postgresql.h"
11466         * postgresql.c:
11467         - Don't use SMART_INCLUDE
11468         - Use simply "const".
11469         - Use standard doc string conventions.
11470         - Use correct type for result of PQstatus.
11471
11472 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11473
11474         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11475
11476         C++ compilation changes.
11477         * config.h.in (EXTERN_C): Define.
11478         * config.h.in (not): This is also a C++ keyword.
11479         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11480         * cm.c: Use EXTERN_C.
11481         * redisplay-tty.c: Use EXTERN_C.
11482         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11483
11484 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11485
11486         * general.c: Remove duplicate definition for Qfunction.
11487
11488 2000-07-08  Ben Wing  <ben@xemacs.org>
11489
11490         * device-msw.c (msprinter_init_device):
11491         * device-msw.c (sync_printer_with_devmode):
11492         * device-msw.c (handle_devmode_changes):
11493         * device-msw.c (print_dialog_worker):
11494         * device-msw.c (Fmsprinter_apply_settings):
11495         * device-msw.c (hash_devmode):
11496         * device-msw.c (Fmsprinter_settings_despecialize):
11497         use Qmswindows_tstr, not Qctext.
11498
11499         * vm-limit.c (check_memory_limits):
11500         avoid infinite loop printing warning messages.
11501
11502 2000-07-05  Craig Lanning  <lanning@scra.org>
11503
11504         * Makefile.in.in: Add support for including the Windows resources
11505         when building with the cygwin and mingw targets.
11506
11507         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11508         not set or not correct.
11509         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11510         (init_initial_directory): Don't try to use $PWD on the
11511         WIN32_NATIVE target.
11512
11513         * s\cygwin32.h:
11514         [[Add -mwindows to eliminate console window.]] not required --ben
11515         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11516         (MAIL_USE_POP): removed; now handled by configure.
11517
11518         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11519         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11520         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11521         (MAIL_USE_POP): removed; now handled by configure.
11522         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11523         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11524         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11525         constant string.
11526         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11527         up from <winsock.h> via systime.h.
11528         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11529         (getpagesize): from Dan Holmsand, added.
11530         Added #endif which was left dangling by Ben's mega patch; added
11531         comment to help prevent this in the future.
11532
11533         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11534
11535 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11536
11537         * console-msw.h (struct mswindows_device): Removed unnecessary
11538         cached device geometry values.
11539         Added update_tick and an accessor macro.
11540         (Lisp_Devmode): Added lrecord declaration.
11541         (struct msprinter_device): Contain devmode as a Lisp object.
11542         Added mswindows_get_selected_frame_hwnd();
11543
11544         * console.h (struct console_methods): Indentation nitpicking.
11545
11546         * device-msw.c (mswindows_init_device): Do not initialize geometry
11547         cache. Initialize update tick.
11548         (mswindows_device_system_metrics): Ask the device for its geometry.
11549         (global_free_2_maybe):
11550         (devmode_to_hglobal):
11551         (handle_printer_changes):
11552         (ensure_not_printing):
11553         (print_dialog_worker):
11554         (Fmsprinter_print_setup_dialog):
11555         (Fmsprinter_print_dialog):
11556         (plist_get_margin):
11557         (plist_set_margin):
11558         (Fmsprinter_page_setup_dialog): Added functions.
11559         (sync_printer_with_devmode):
11560         (handle_devmode_changes):
11561         (Fmsprinter_get_settings):
11562         (Fmsprinter_select_settings):
11563         (Fmsprinter_apply_settings):
11564         (allocate_devmode):
11565         (Fmsprinter_settings_copy):
11566         (Fmsprinter_settings_despecialize):
11567         (print_devmode):
11568         (finalize_devmode):
11569         (equal_devmode):
11570         (hash_devmode): Added functions
11571         (syms_of_device_mswindows): Init devmode lrecord class.
11572
11573         * device.h: Added an exfun for find-device.
11574
11575         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11576         geometry; although, recreate the device compatible DC.
11577
11578         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11579         (msprinter_init_frame_3):
11580         (msprinter_frame_property):
11581         (msprinter_internal_frame_property_p):
11582         (msprinter_frame_properties):
11583         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11584         print job properties (will move to device settings).
11585
11586         * lisp.h: Added symbols.
11587
11588         * general.c (syms_of_general): Declared them.
11589
11590         * hash.c (string_hash): Added.
11591
11592         * lrecord.h (lrecord_type): Added devmode lrecord type.
11593
11594 2000-07-02  Mike Sperber <mike@xemacs.org>
11595
11596         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11597         FreeBSD 4.0.
11598
11599 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11600
11601         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11602         integer.
11603
11604 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11605
11606         * data.c (Fstring_to_number): Don't recognize floating point if
11607         base is not 10.
11608
11609 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11610
11611         * glyphs-widget.c (tab_control_query_geometry):
11612         (widget_query_geometry):
11613         (button_query_geometry):
11614         * glyphs.c (text_query_geometry):
11615         Enforce type correctness.
11616
11617 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11618
11619         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11620         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11621
11622 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11623
11624         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11625         conflicts with gcc's fixincluded version of FOO.h.
11626
11627         * glyphs.h (image_instance_geometry): Remove trailing `,'
11628
11629 2000-06-08  Mike Alexander  <mta@arbortext.com>
11630
11631         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11632         (shove_thread): Don't write the same output twice
11633         (make_ntpipe_output_stream): Increase priority of shove thread
11634         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11635         chance to run
11636         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11637         it.
11638
11639 2000-06-12  Ben Wing  <ben@xemacs.org>
11640
11641         * s\mingw32.h (sigset):
11642         * s\windowsnt.h (sigset):
11643         rename msw_ to mswindows_ for consistency with general convention.
11644
11645 2000-06-12  Ben Wing  <ben@xemacs.org>
11646
11647         * console-msw.c:
11648         * console-msw.c (mswindows_get_console_hwnd):
11649         * console-msw.c (mswindows_ensure_console_allocated):
11650         * console-msw.c (mswindows_hide_console):
11651         * console-msw.c (mswindows_show_console):
11652         * console-msw.c (mswindows_ensure_console_buffered):
11653         * console-msw.c (mswindows_output_console_string):
11654         * console-msw.c (mswindows_windows9x_p):
11655         * console-msw.h:
11656         * device-msw.c (mswindows_get_workspace_coords):
11657         * device-msw.c (mswindows_device_system_metrics):
11658         * dialog-msw.c (mswindows_popup_dialog_box):
11659         * event-msw.c (mswindows_wnd_proc):
11660         * frame-msw.c (mswindows_size_frame_internal):
11661         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11662         * menubar-msw.c (displayable_menu_item):
11663         * menubar-msw.c (mswindows_char_is_accelerator):
11664         * nt.c:
11665         * nt.c (mswindows_sigset):
11666         * nt.c (mswindows_sigrelse):
11667         * nt.c (mswindows_sigpause):
11668         * nt.c (mswindows_raise):
11669         * nt.c (timer_proc):
11670         * ntproc.c:
11671         * ntproc.c (find_child_console):
11672         * ntproc.c (sys_kill):
11673         * print.c:
11674         * print.c (std_handle_out_external):
11675         * process-nt.c (find_child_console):
11676         * process-nt.c (send_signal_the_95_way):
11677         * process-nt.c (ensure_console_window_exists):
11678         * process-nt.c (nt_create_process):
11679         * syssignal.h:
11680         rename msw_ to mswindows_ for consistency with general convention.
11681
11682         * emacs.c:
11683         * dumper.c:
11684         include nt.h, not syswindows.h.
11685
11686         * nt.c (mswindows_fstat):
11687         * nt.c (mswindows_stat):
11688         prefix mswindows_ instead of attempting to directly override the
11689         library functions.  fix declarations.
11690
11691         * nt.h:
11692         include syswindows.h.  move some sysdep.h stuff here.
11693
11694         * ntheap.h:
11695         include syswindows.h, not <windows.h>.
11696
11697         * ntplay.c:
11698         clean up headers.
11699
11700         * sysdep.c:
11701         clean up headers.
11702
11703         * sysdep.c (sys_fstat):
11704         * sysdep.c (sys_stat):
11705         call mswindows versions when appropriate.
11706
11707         * sysdep.h:
11708         move mswin decls to nt.h.
11709
11710         * syswindows.h:
11711         add long comment describing appropriate use of the various windows
11712         headers.
11713
11714 2000-06-11  Ben Wing  <ben@xemacs.org>
11715
11716         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11717
11718 2000-06-10  Ben Wing  <ben@xemacs.org>
11719
11720         * Makefile.in.in (release):
11721         Correction to make sure xemacs.exe always dumped when correct.
11722
11723         * alloca.c:
11724         * balloon_help.c:
11725         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11726
11727         * buffer.c (set_buffer_internal):
11728         [[[[2]]]]: Remove HAVE_FEP code.
11729
11730         * buffer.c (init_initial_directory):
11731         [3].
11732
11733         * bytecode.c:
11734         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11735         individual files.
11736
11737         * callproc.c:
11738         * callproc.c (call_process_cleanup):
11739         * callproc.c (Fold_call_process_internal):
11740         * callproc.c (child_setup):
11741         * callproc.c (getenv_internal):
11742         * callproc.c (init_callproc):
11743         * callproc.c (vars_of_callproc):
11744         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11745         __CYGWIN32__ -> CYGWIN.
11746         DOS_NT -> WIN32_NATIVE.
11747         Remove MSDOS support/references, converting to WIN32_NATIVE
11748           where correct.
11749         __MINGW32__ -> MINGW.
11750         Fix windows.h includes.
11751         Remove bogus HAVE_NTGUI.
11752
11753         * config.h.in:
11754         [2].
11755
11756         * console-msw.c:
11757         mswindows_message_outputted added for use in allowing startup
11758         errors on the console to be seen.
11759
11760         * console-msw.c (msw_ensure_console_allocated):
11761         * console-msw.c (msw_output_console_string):
11762         * console-msw.c (DHEADER):
11763         * console-msw.c (DOPAQUE_DATA):
11764         * console-msw.c (DEVENT):
11765         * console-msw.c (DCONS):
11766         * console-msw.c (DCONSCDR):
11767         * console-msw.c (DSTRING):
11768         * console-msw.c (DVECTOR):
11769         * console-msw.c (DSYMBOL):
11770         * console-msw.c (DSYMNAME):
11771         Fix warnings.
11772
11773         * console-stream.c (stream_init_console):
11774         Fix text/binary problems.
11775
11776         * device-msw.c:
11777         * device-msw.c (mswindows_finish_init_device):
11778         * device-msw.c (mswindows_delete_device):
11779         [1].
11780
11781         * device.c (handle_asynch_device_change):
11782         [3].
11783
11784         * dgif_lib.c:
11785         * dgif_lib.c (DGifOpenFileName):
11786         * dgif_lib.c (DGifOpenFileHandle):
11787         * dgif_lib.c (DGifGetLine):
11788         * dgif_lib.c (DGifGetPixel):
11789         Added config.h/lisp.h, fix up includes.
11790         [1].
11791
11792         * dired-msw.c:
11793         [4].
11794
11795         * dired.c:
11796         * dired.c (file_name_completion):
11797         * dired.c (Ffile_attributes):
11798         * dired.c (syms_of_dired):
11799         [1].
11800
11801         * dumper.c:
11802         * dumper.c (pdump_file_unmap):
11803         * dumper.c (pdump_load):
11804         [1].
11805
11806         * editfns.c:
11807         * editfns.c (Ftemp_directory):
11808         * editfns.c (user_login_name):
11809         * editfns.c (Fuser_real_login_name):
11810         * editfns.c (get_home_directory):
11811         [1].
11812
11813         * elhash.c (finish_marking_weak_hash_tables):
11814         [[[[5]]]]: Fix GCC warnings.
11815
11816         * emacs.c:
11817         * emacs.c (mswindows_handle_hardware_exceptions):
11818         * emacs.c (make_arg_list_1):
11819         * emacs.c (main_1):
11820         * emacs.c (Fkill_emacs):
11821         * emacs.c (Fdump_emacs):
11822         [1].
11823         Fix problems with nested crashes, add long comment.
11824
11825         * event-Xt.c (init_event_Xt_late):
11826         [1].
11827
11828         * event-msw.c:
11829         * event-msw.c (mswindows_dde_callback):
11830         * event-msw.c (mswindows_handle_sticky_modifiers):
11831         * event-msw.c (mswindows_wnd_proc):
11832         [1].
11833         [5].
11834
11835         * events.c (character_to_event):
11836         [1].
11837
11838         * fileio.c:
11839         * fileio.c (Ffile_name_directory):
11840         * fileio.c (Ffile_name_nondirectory):
11841         * fileio.c (directory_file_name):
11842         * fileio.c (Fexpand_file_name):
11843         * fileio.c (Fsubstitute_in_file_name):
11844         * fileio.c (Ffile_name_absolute_p):
11845         * fileio.c (check_executable):
11846         * fileio.c (Ffile_readable_p):
11847         * fileio.c (Ffile_accessible_directory_p):
11848         * fileio.c (Ffile_modes):
11849         * fileio.c (Funix_sync):
11850         * fileio.c (vars_of_fileio):
11851         [1]. [4].
11852
11853         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11854
11855         Expand getdefdir defn.
11856         Fix bogus rename() comment.
11857
11858         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11859         to use standard XEmacs include files, e.g. sysfile.h, rather
11860         than system-specific includes.
11861
11862         * fns.c:
11863         * fns.c (Fsubseq):
11864         [5]. [6].
11865
11866         * frame.c (vars_of_frame):
11867         [1].
11868
11869         * getloadavg.c:
11870         * getloadavg.c (getloadavg):
11871         [1]. [6].
11872         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11873         (We don't use it elsewhere in the code; just add a comment.)
11874
11875         * gif_io.c:
11876         [6].
11877         Add config.h.
11878
11879         * glyphs-msw.c:
11880         * glyphs-msw.c (mswindows_resource_instantiate):
11881         [1].
11882
11883         * glyphs-x.c (x_native_layout_instantiate):
11884         [5].
11885
11886         * gui-msw.c (Fmswindows_shell_execute):
11887         [1].
11888
11889         * insdel.c:
11890         [4].
11891
11892         * lisp.h:
11893         [4]. [5].
11894
11895         * lread.c (locate_file_in_directory_mapper):
11896         [1].
11897
11898         * lstream.c:
11899         [4].
11900
11901         * mem-limits.h:
11902         * mem-limits.h (get_lim_data):
11903         [1].
11904
11905         * menubar-msw.c:
11906         [4].
11907
11908         * ndir.h:
11909         [1].
11910
11911         * nt.c:
11912         * nt.c (getwd):
11913         * nt.c (closedir):
11914         * nt.c (rva_to_section):
11915         * nt.c (mswindows_executable_type):
11916         [1]. [6].
11917         Fix closedir() defn.
11918
11919         * nt.h:
11920         [[[[8]]]]: *_OK defs moved to sysfile.h.
11921
11922         * ntproc.c:
11923         [6]. [7].
11924
11925         * objects-x.c:
11926         [4].
11927
11928         * print.c:
11929         * print.c (std_handle_out_external):
11930         [1]. [4].
11931
11932         * process-nt.c:
11933         * process-nt.c (nt_create_process):
11934         [6].
11935         try to fix process quoting somewhat.
11936
11937         * process-unix.c (unix_create_process):
11938         [1].
11939
11940         * process.c:
11941         * process.c (vars_of_process):
11942         Add Vnull_device.
11943
11944         * process.h:
11945         [1].
11946
11947         * realpath.c:
11948         * realpath.c (xrealpath):
11949         [1].
11950
11951         * redisplay-tty.c (init_tty_for_redisplay):
11952         [3].
11953
11954         * redisplay.c:
11955         [4]. [6].
11956
11957         * scrollbar-msw.c:
11958         [4].
11959
11960         * sheap.c:
11961         * sheap.c (more_static_core):
11962         * sheap.c (report_sheap_usage):
11963         [5]. [6].
11964
11965         * signal.c:
11966         * signal.c (alarm_signal):
11967         [1]. [6].
11968
11969         * sound.c:
11970         [6].
11971
11972         * strftime.c:
11973         * strftime.c (zone_name):
11974         [1]. [5].
11975
11976         * symsinit.h (init_sunpro):
11977         [1].
11978
11979         * syscommctrl.h:
11980         commctrl.h not in Cygwin b20.1.
11981
11982         * sysdep.c:
11983         * sysdep.c (endif):
11984         * sysdep.c (sys_subshell):
11985         * sysdep.c (init_baud_rate):
11986         * sysdep.c (emacs_get_tty):
11987         * sysdep.c (emacs_set_tty):
11988         * sysdep.c (tty_init_sys_modes_on_device):
11989         * sysdep.c (init_system_name):
11990         * sysdep.c (sys_open):
11991         * sysdep.c (interruptible_open):
11992         * sysdep.c (sys_fopen):
11993         * sysdep.c (sys_mkdir):
11994         * sysdep.c (sys_rename):
11995         * sysdep.c (get_process_times_1):
11996         [1]. [6].
11997
11998         * sysdep.h:
11999         [1].
12000
12001         * sysdir.h:
12002         * sysdir.h (DIRENTRY_NONEMPTY):
12003         [1]. [6].
12004
12005         * sysdll.c (dll_init):
12006         * sysdll.h:
12007         [1].
12008
12009         * sysfile.h:
12010         [1]. [6]. [8].
12011         added text/binary defs.
12012
12013         * sysfloat.h:
12014         [1].
12015
12016         * sysproc.h:
12017         * sysproc.h (EDESTADDRREQ):
12018         * sysproc.h (poll_fds_for_input):
12019         [1]. [6].
12020
12021         * syspwd.h:
12022         [6].
12023
12024         * syssignal.h:
12025         [1].
12026
12027         * systime.h:
12028         [1]. [6].
12029
12030         * systty.h:
12031         [1].
12032
12033         * syswindows.h:
12034         [1].
12035         Always define WIN32_LEAN_AND_MEAN.
12036
12037         * unexcw.c (unexec):
12038         [5].
12039
12040         * unexec.c:
12041         * unexec.c (copy_text_and_data):
12042         * unexec.c (adjust_lnnoptrs):
12043         [1].
12044
12045         * unexnt.c:
12046         * unexnt.c (_start):
12047         [1].
12048
12049 2000-06-07  Ben Wing  <ben@xemacs.org>
12050
12051         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12052         was used only as a model.  We've long since extracted any useful
12053         logic or code out of this. (I just did an exhaustive search.)
12054
12055         * s\msdos.h: Removed.
12056
12057         * s\windows95.h: Removed.
12058
12059 2000-06-10  Ben Wing  <ben@xemacs.org>
12060
12061         * s\cygwin32.h:
12062         [1]. [5].
12063         Don't use extern with fun defs.
12064
12065         * s\mingw32.h:
12066         [1]. [7].
12067         Remove nt\inc include.
12068         Remove getdisk, getdefdir. (The former is unused, the latter
12069         expanded in fileio.h.)
12070
12071         * s\windowsnt.h:
12072         * s\windowsnt.h (WIN32_NATIVE):
12073         * s\windowsnt.h (HAVE_STRCASECMP):
12074         [1]. [7].
12075         Add long comment about preprocessor changes.
12076         Remove getdisk, getdefdir. (The former is unused, the latter
12077         expanded in fileio.h.)
12078
12079 2000-06-10  Ben Wing  <ben@xemacs.org>
12080
12081         * m\arm.h:
12082         * m\delta.h:
12083         * m\intel386.h:
12084         * m\sequent.h:
12085         * m\template.h:
12086         * m\windowsnt.h:
12087         [1].
12088         Remove bogus/unused NO_SOCK_SIGIO.
12089
12090 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12091
12092         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12093         not an Emchar.
12094
12095 2000-06-04  Mike Sperber <mike@xemacs.org>
12096
12097         * casetab.c (set_case_table): For `set-standard-case-table',
12098         actually deposit the new case tables where the rest of XEmacs can
12099         see them.
12100
12101 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12102
12103         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12104
12105 2000-06-05  Ben Wing  <ben@xemacs.org>
12106
12107         * callproc.c (child_setup): Don't do close_load_descs() under
12108         MS Windows.  Put in a comment explaining why.
12109
12110 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12111
12112         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12113         Toolkit shell" which breaks `kill-compilation' on Windows NT
12114         native, retaining STDERR handling improvements.
12115
12116 2000-06-01  Andreas Jaeger  <aj@suse.de>
12117
12118         * s/s390.h: Support for S390, based on a patch by Martin
12119         Schwidefsky <schwidefsky@de.ibm.com>.
12120
12121 2000-05-30  Andy Piper  <andy@xemacs.org>
12122
12123         * window.c (allocate_window):
12124         (make_dummy_parent):
12125         (Fset_window_configuration): use new hashtable type.
12126
12127         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12128         (struct image_instantiator_methods):
12129         (struct Lisp_Image_Instance): make instance geometry signed.
12130
12131         * glyphs.c (instantiate_image_instantiator):
12132         (image_instance_query_geometry):
12133         (image_instance_layout):
12134         (image_instance_layout):
12135         (query_string_geometry):
12136         (text_query_geometry):
12137         (image_instantiate):
12138         (image_instantiate):
12139         (cache_subwindow_instance_in_frame_maybe):
12140         (subwindow_query_geometry): make instance geometry signed.
12141
12142         * glyphs-widget.c (widget_query_geometry):
12143         (widget_layout):
12144         (button_query_geometry):
12145         (tree_view_query_geometry):
12146         (tab_control_query_geometry):
12147         (layout_query_geometry):
12148         (layout_layout):
12149         (native_layout_layout): make instance geometry signed.
12150
12151 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12152
12153         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12154         constant.
12155
12156         * general.c (syms_of_general): Add Qfull_assoc symbol.
12157
12158         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12159         correctly.
12160         (decode_weak_list_type): Decode full-assoc type.
12161         (encode_weak_list_type): Encode full-assoc type.
12162         (Fmake_weak_list): Update doc string.
12163
12164 2000-05-30  Andy Piper  <andy@xemacs.org>
12165
12166         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12167
12168         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12169         (decode_hash_table_weakness): ditto.
12170         (Fhash_table_weakness): ditto.
12171         (Fhash_table_type): ditto.
12172         (finish_marking_weak_hash_tables): ditto.
12173         (hash_table_weakness_validate): ditto.
12174         (syms_of_elhash): ditto.
12175
12176 2000-05-28  Martin Buchholz <martin@xemacs.org>
12177
12178         * XEmacs 21.2.34 is released.
12179
12180 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12181
12182         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12183         start cache.
12184         (updating_line_start_cache): Gone.
12185         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12186         generic code to force a minimum of 1 line laid out in the
12187         CMOTION_DISP case.
12188
12189 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12190
12191         * glyphs.c (instantiate_image_instantiator): Check for initialized
12192         height & width no longer special cases IMAGE_NOTHING.
12193         (nothing_instantiate): Set height and width of instance.
12194
12195 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12196
12197         * unexelf.c (unexec): Search for ".data" section.
12198         Initialize new_data2_offset from old_data_index.
12199         Remove redundant check for ElfW.
12200
12201 2000-05-23  Andy Piper  <andy@xemacs.org>
12202
12203         * glyphs.c (get_image_instantiator_governing_domain): allow more
12204         specific domains as the governing domain rather than expecting an
12205         exact match. This fixes problems with layouts.
12206
12207 2000-05-22  Andy Piper  <andy@xemacs.org>
12208
12209         * redisplay-output.c (compare_runes): check for non-images
12210
12211         * glyphs.c (set_glyph_dirty_p): ditto.
12212         (update_glyph_cachel_data): ditto.
12213
12214         * glyphs-widget.c (layout_post_instantiate): ditto.
12215         (layout_post_instantiate): ditto.
12216
12217         * event-msw.c (mswindows_wnd_proc): warning removal.
12218
12219 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12220
12221         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12222
12223         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12224
12225         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12226
12227         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12228         (mswindows_executable_type): mingw32 now has enough headers for
12229         this to work.
12230
12231 2000-05-20  Andy Piper  <andy@xemacs.org>
12232
12233         * console-msw.c (mswindows_output_last_error): ; -> ,
12234
12235 2000-05-12  Andy Piper  <andy@xemacs.org>
12236
12237         * console-msw.c (FROB): compare ints with ints.
12238
12239 2000-05-11  Andy Piper  <andy@xemacs.org>
12240
12241         * glyphs-x.c (x_finalize_image_instance): make minimal build
12242         happy.
12243
12244 2000-05-20  Ben Wing  <ben@xemacs.org>
12245
12246         * event-Xt.c:
12247         * event-Xt.c (vars_of_event_Xt):
12248         move modifier-keys-are-sticky to event-stream.c.
12249
12250         * event-msw.c:
12251         * event-msw.c (mswindows_enqueue_mouse_button_event):
12252         * event-msw.c (key_needs_default_processing_p):
12253         * event-msw.c (XEMSW_LCONTROL):
12254         * event-msw.c (mswindows_handle_sticky_modifiers):
12255         * event-msw.c (FROB):
12256         * event-msw.c (clear_sticky_modifiers):
12257         * event-msw.c (output_modifier_keyboard_state):
12258         * event-msw.c (output_alt_keyboard_state):
12259         * event-msw.c (mswindows_wnd_proc):
12260         * event-msw.c (mswindows_modifier_state):
12261         * event-msw.c (emacs_mswindows_handle_magic_event):
12262         implement sticky modifiers.
12263
12264         * event-stream.c:
12265         * event-stream.c (vars_of_event_stream):
12266         move modifier-keys-are-sticky here.
12267
12268         * lisp.h:
12269         add CHECK_FUNCTION.
12270
12271         * rangetab.c:
12272         implement map-range-table.
12273
12274
12275 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12276
12277         * redisplay-tty.c (reset_tty_modes):
12278         (tty_redisplay_shutdown): Adjust argument type to
12279         tty_frame_output_end.
12280
12281 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12282
12283         * eval.c (Fbacktrace): Don't output a line with only right
12284         parenthesis.
12285
12286 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12287
12288         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12289         (Fpq_reset_poll): Ditto.
12290
12291 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12292
12293         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12294
12295 2000-05-16  Ben Wing  <ben@xemacs.org>
12296
12297         * buffer.c:
12298         * buffer.c (dfc_convert_to/from_internal_format):
12299         * buffer.c (reinit_vars_of_buffer):
12300         Fix conversion functions to allow reentrancy.
12301
12302         * console-msw.c:
12303         * console-msw.c (mswindows_output_last_error):
12304         New fun, generally useful -- output a human-readable
12305         version of GetLastError() on the console.
12306
12307         * console-msw.h:
12308         * console-msw.h (struct mswindows_frame):
12309         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12310
12311         * console-stream.c (stream_output_begin):
12312         * console-stream.c (stream_output_end):
12313         * console-stream.c (stream_output_vertical_divider):
12314         * console-stream.c (stream_clear_region):
12315         * console-stream.c (stream_flash):
12316         * console-stream.c (console_type_create_stream):
12317         Delete blank stream methods, not needed.
12318
12319         * console.h (struct console_methods):
12320         Split begin/end methods into window and frame.
12321
12322         * event-msw.c:
12323         * event-msw.c (mswindows_handle_paint):
12324         * event-msw.c (output_alt_keyboard_state):
12325         * event-msw.c (mswindows_wnd_proc):
12326         * event-msw.c (vars_of_event_mswindows):
12327         Comment about problems with ignored-expose.
12328         Define mswindows-debug-events; not really implemented.
12329
12330         * frame-msw.c (mswindows_init_frame_1):
12331         random cleanups.
12332
12333         * glyphs-msw.c:
12334         * glyphs-msw.c (begin_defer_window_pos):
12335         * glyphs-msw.c (mswindows_unmap_subwindow):
12336         * glyphs-msw.c (mswindows_map_subwindow):
12337         * glyphs-msw.c (mswindows_resize_subwindow):
12338         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12339
12340         * glyphs.c (make_image_instance_1):
12341         Fix crash.
12342
12343         * gutter.c (Fredisplay_gutter_area):
12344         Use new begin/end methods.
12345
12346         * lisp.h (Dynarr_new2):
12347         New creation fun.
12348
12349         * redisplay-msw.c:
12350         * redisplay-msw.c (mswindows_frame_output_begin):
12351         * redisplay-msw.c (mswindows_frame_output_end):
12352         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12353         New begin/end methods -- handle DeferWindowPos.
12354
12355         * redisplay-output.c (redisplay_move_cursor):
12356         * redisplay-output.c (redraw_cursor_in_window):
12357         * redisplay-output.c (redisplay_update_line):
12358         * redisplay-output.c (redisplay_output_window):
12359         New begin/end methods.
12360
12361         * redisplay-tty.c:
12362         * redisplay-tty.c (tty_frame_output_begin):
12363         * redisplay-tty.c (tty_frame_output_end):
12364         * redisplay-tty.c (console_type_create_redisplay_tty):
12365         New begin/end methods.
12366
12367         * redisplay-x.c:
12368         * redisplay-x.c (x_window_output_begin):
12369         * redisplay-x.c (x_window_output_end):
12370         * redisplay-x.c (console_type_create_redisplay_x):
12371         New begin/end methods.
12372
12373         * redisplay.c (redisplay_frame):
12374         * redisplay.c (Fredisplay_echo_area):
12375         New begin/end methods.
12376         use MAYBE_DEVMETH for clear_frame; it may not exist.
12377
12378         * window.h (WINDOW_XFRAME):
12379         WINDOW_XFOO macros -- get locale and decode struct pointer.
12380
12381
12382 2000-05-12  Ben Wing  <ben@xemacs.org>
12383
12384         * emacs.c:
12385         * emacs.c (ensure_no_quitting_from_now_on):
12386         * emacs.c (fatal_error_signal):
12387         * emacs.c (mswindows_handle_hardware_exceptions):
12388         * emacs.c (main):
12389         * emacs.c (Fkill_emacs):
12390         * emacs.c (shut_down_emacs):
12391         * emacs.c (assert_failed):
12392         various improvements in fatal error handling.
12393
12394         * eval.c:
12395         move preparing_for_armageddon to emacs.c.
12396
12397         * lisp.h:
12398         declare fatal_error_in_progress.
12399
12400         * print.c:
12401         * print.c (std_handle_out_external):
12402         * print.c (std_handle_out_va):
12403         * print.c (stderr_out):
12404         * print.c (stdout_out):
12405         use console under mswin when no standard output.
12406         don't do code conversion during fatal error.
12407
12408         * scrollbar.c (Fscrollbar_page_up):
12409         * scrollbar.c (Fscrollbar_page_down):
12410         fix missing else.  reindent.
12411
12412 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12413
12414         Emergency fix.
12415
12416         * glyphs.h (GLYPH_CACHEL_DESCENT):
12417         (GLYPH_CACHEL_DESCENT):
12418         (GLYPH_CACHEL_DESCENT):
12419         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12420         used in case these are inline functions.
12421         Use more absurd values to error check.
12422
12423         include window.h for error check functions.
12424
12425 2000-05-11  Ben Wing  <ben@xemacs.org>
12426
12427         * cmdloop.c (Freally_early_error_handler):
12428         Display message box under windows; otherwise, message will disappear
12429         before it can be viewed.
12430
12431         * console-msw.c:
12432         * console-msw.c (Fmswindows_message_box):
12433         * console-msw.c (FROB):
12434         * console-msw.c (syms_of_console_mswindows):
12435         Define new fun `mswindows-message-box'.
12436         #### I will merge this into `popup-dialog-box'; just give me
12437         a bit of time.
12438
12439         * general.c:
12440         * general.c (syms_of_general):
12441         Some new symbols used in `mswindows-message-box'.
12442
12443         * glyphs.c:
12444         * glyphs.c (Fset_image_instance_property):
12445         put warning in this fun.
12446
12447         * glyphs.h:
12448         * glyphs.h (GLYPH_CACHEL_WIDTH):
12449         * glyphs.h (GLYPH_CACHEL_ASCENT):
12450         * glyphs.h (GLYPH_CACHEL):
12451         * glyphs.h (GLYPH_CACHEL_GLYPH):
12452         define error-checking versions to try to catch a bug i've seen --
12453         redisplay gets in an infinite loop because the glyph width of the
12454         continuation glyph is 65535.
12455
12456         * lisp.h:
12457         Extern message-box stuff.
12458
12459         * window.c (allocate_window):
12460         * window.c (make_dummy_parent):
12461         * window.c (Fset_window_configuration):
12462         Use EQUAL not EQ for subwindow caches to make them work a bit
12463         better. (Something is still very broken.)
12464
12465
12466 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12467
12468         * glyphs.c (image_instantiate): Suppress gcc warnings.
12469         (Fmake_image_instance): Fix doc string.
12470         * specifier.c (Fmake_specifier): Ditto.
12471
12472 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12473
12474         * paths.h.in (PATH_LOCK): Removed.
12475         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12476         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12477
12478 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12479
12480         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12481         Document (featurep '(and xemacs 21.02)).
12482
12483 2000-05-09  Ben Wing  <ben@xemacs.org>
12484
12485         * buffer.c (complex_vars_of_buffer):
12486         update modeline-format doc.
12487
12488         * device.h:
12489         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12490
12491         * emacs.c:
12492         timeline of all released versions of Emacs, for use in creating
12493         authorship comments and in synching up.
12494
12495         * glyphs-widget.c (image_instantiator_buttons):
12496         * glyphs-widget.c (image_instantiator_edit_fields):
12497         * glyphs-widget.c (image_instantiator_combo_box):
12498         * glyphs-widget.c (image_instantiator_scrollbar):
12499         * glyphs-widget.c (image_instantiator_progress_guage):
12500         * glyphs-widget.c (image_instantiator_tree_view):
12501         * glyphs-widget.c (image_instantiator_tab_control):
12502         * glyphs-widget.c (image_instantiator_labels):
12503         * glyphs-widget.c (image_instantiator_layout):
12504         * glyphs-widget.c (image_instantiator_native_layout):
12505         rename decode_domain method to governing_domain.
12506
12507         * glyphs.c:
12508         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12509         * glyphs.c (add_entry_to_device_ii_format_list):
12510         make sure we don't put an entry more than once into the list.
12511         * glyphs.c (check_instance_cache_mapper):
12512         *************************************************************
12513         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12514         HAVE BEEN GETTING.
12515         *************************************************************
12516         * glyphs.c (get_image_instantiator_governing_domain):
12517         clean up, expand on new concept of governing domain.
12518         * glyphs.c (instantiate_image_instantiator):
12519         * glyphs.c (allocate_image_instance):
12520         use governing_domain instead of cache_domain in naming.
12521         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12522         * glyphs.c (make_image_instance_1):
12523         * glyphs.c (Fmake_image_instance):
12524         allow for any domain (not just device), and process the
12525         governing domain correctly.  very big doc fix.
12526         * glyphs.c (Fimage_instance_domain):
12527         new primitive, to retrieve the governing domain of an image instance.
12528         * glyphs.c (image_instantiate):
12529         use new governing_domain stuff.  this fixes a crash you could get
12530         by instantiating certain widget glyphs in frame locales. (should
12531         signal an error instead of crashing.)
12532         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12533         * glyphs.c (Fglyphp): clean up doc.
12534         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12535         * glyphs.c (syms_of_glyphs):
12536         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12537         * glyphs.c (image_instantiator_format_create): add some comments about
12538         bogus code.
12539         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12540         for current-display-table. (Apparently Hrjove implemented in 1998 a
12541         design I wrote up in 1996, but didn't update the doc string.)
12542
12543         * glyphs.h: clean up a doc string.
12544         * glyphs.h (governing_domain):
12545         * glyphs.h (struct image_instantiator_methods):
12546         changes for governing_domain stuff.
12547
12548         * gutter.c:
12549         * gutter.c (Fgutter_specifier_p):
12550         * gutter.c (Fgutter_size_specifier_p):
12551         * gutter.c (Fgutter_visible_specifier_p):
12552         * objects.c:
12553         * objects.c (Fcolor_specifier_p):
12554         * objects.c (Ffont_specifier_p):
12555         * objects.c (Fface_boolean_specifier_p):
12556         doc strings moved to make-*-specifier.
12557
12558         * redisplay.c (add_disp_table_entry_runes_1):
12559         * redisplay.c (generate_fstring_runes):
12560         * redisplay.c (screen):
12561         add random comments and doc strings.
12562
12563         * specifier.c:
12564         * specifier.c (Fmake_specifier):
12565         major overhaul of this doc string.
12566
12567         * specifier.c (Fvalid_specifier_domain_p):
12568         comment about the bogosity of image instances being domains.
12569         * specifier.c (decode_domain):
12570         now non-static, used in glyphs.c.
12571         * specifier.c (specifier_instance):
12572         comment about the bogosity of image instances being domains.
12573         * specifier.c (Fgeneric_specifier_p):
12574         move doc string to make-generic-specifier.
12575         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12576         rebackslashify.
12577
12578         * specifier.h:
12579         * specifier.h (DOMAIN_FRAME):
12580         * specifier.h (DOMAIN_LIVE_P):
12581         * specifier.h (DOMAIN_XDEVICE):
12582         rebackslashify.
12583         add comments about problems with these macros.
12584         prototype for decode_domain.
12585
12586         * toolbar.c:
12587         * toolbar.c (Ftoolbar_specifier_p):
12588         move doc string to `make-toolbar-specifier'.
12589
12590         * window.c (window_unmap_subwindows_cache_mapper):
12591         *************************************************************
12592         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12593         HAVE BEEN GETTING.
12594         *************************************************************
12595
12596 2000-05-09  Andy Piper  <andy@xemacs.org>
12597
12598         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12599
12600         * window.c (Fset_window_configuration): reset the frame subwindow
12601         cache and re-initialize the window subwindow caches.
12602
12603         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12604
12605 2000-05-09  Ben Wing  <ben@xemacs.org>
12606
12607         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12608         DWORD.
12609
12610 2000-04-26  Mike Woolley  <mike@bulsara.com>
12611
12612         * ntheap.c: Changed recreate_heap to limit the amount reserved
12613         for the heap to that which is actually available. Also now
12614         displays a message box (with some dignostics) in the event that
12615         it still can't start.
12616
12617 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12618
12619         * callproc.c (Fold_call_process_internal): GCPRO path
12620
12621 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12622
12623         Patch by Bill Perry.
12624
12625         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12626         back data instead of #ifdef.
12627         (Fscrollbar_page_down): ditto.
12628
12629 2000-05-07  Ben Wing  <ben@xemacs.org>
12630
12631         * buffer.h:
12632         Kludge for defining Qmswindows_tstr.
12633
12634         * nt.c:
12635         * nt.c (open_input_file):
12636         * nt.c (open_output_file):
12637         * nt.c (rva_to_section):
12638         * nt.c (mswindows_executable_type):
12639         Move all memory-mapped-file routines here (some were in unexnt.c,
12640         which is bad because they are used by process-nt.c, and unexnt
12641         won't be around when portable dumping).  Synched the above routines
12642         with FSF 20.6.
12643
12644         * nt.h:
12645         Removed ifdef'd out bogus code.
12646         Fixed some prototypes.
12647
12648         * nt.h (file_data):
12649         * nt.h (OFFSET_TO_RVA):
12650         * nt.h (RVA_TO_OFFSET):
12651         * nt.h (RVA_TO_PTR):
12652         Moved the memory-mapped-file structures, macros and prototypes
12653         here, to parallel nt.c.  ntheap.h should really be removed
12654         entirely, and it's a non-portable-dumper specific file.
12655
12656         * ntheap.h (round_to_next):
12657         Moved the memory-mapped-file structures, macros and prototypes
12658         to nt.h.
12659
12660         * ntproc.c (compare_env):
12661         Moved rva_to_section and mswindows_executable_type to nt.c.
12662         Moved compare_env to process-nt.c.
12663         ntproc.c will die, one day.
12664
12665         * ntproc.c (sys_spawnve):
12666         Account for win32_ -> mswindows_.
12667
12668         * process-nt.c:
12669         * process-nt.c (struct nt_process_data):
12670         * process-nt.c (ensure_console_window_exists):
12671         * process-nt.c (compare_env):
12672         * process-nt.c (nt_create_process):
12673         * process-nt.c (nt_kill_process_by_pid):
12674         * process-nt.c (syms_of_process_nt):
12675         * process-nt.c (vars_of_process_nt):
12676         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12677         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12678         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12679         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12680         Move compare_env here from ntproc.c.
12681
12682         * process.c (Fprocess_send_region):
12683         Takes an optional fourth argument, BUFFER, which should fix some
12684         problems with call-process.
12685
12686         * syscommctrl.h:
12687         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12688
12689         * syswindows.h:
12690         Move ICC_BAR_CLASSES to syscommctrl.h.
12691         Add preliminary macros for MSWindows/Mule.  More to come.
12692
12693         * unexnt.c:
12694         * unexnt.c (unexec):
12695         open_output_file moved to nt.c.
12696
12697
12698 2000-05-05  Andy Piper  <andy@xemacs.org>
12699
12700         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12701         instance from the frame cache also since GC may catch up too late
12702         to make frame deletion sane.
12703
12704 2000-05-04  Andy Piper  <andy@xemacs.org>
12705
12706         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12707         (x_finalize_image_instance): ungcpro on deletion.
12708
12709         * glyphs.c (image_instantiator_format_create): give pointers a
12710         query geometry method so that the geometry is at least set.
12711
12712         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12713         initialize layouts if using widgets.
12714
12715 2000-05-03  Andy Piper  <andy@xemacs.org>
12716
12717         * nt.c: remove bogus reference to sysmmsystem.h
12718
12719         * gui-x.c (popup_selection_callback): fix no selection abort.
12720
12721 2000-05-02  Andy Piper  <andy@xemacs.org>
12722
12723         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12724         (mswindows_widget_instantiate): ditto.
12725
12726         * glyphs-widget.c (initialize_widget_image_instance): initialize
12727         children correctly.
12728         (widget_instantiate): cope with children and items in the same
12729         instance.
12730
12731         * glyphs.c (mark_image_instance): cope with children as a first
12732         class member.
12733         (image_instance_equal): ditto.
12734         (image_instance_hash): ditto.
12735         (image_instance_changed): ditto.
12736
12737 2000-04-30  Andy Piper  <andy@xemacs.org>
12738
12739         * glyphs.c (subwindow_query_geometry): new function. Return some
12740         defaults.
12741         (subwindow_instantiate): don't assign dimensions if none have been
12742         given.
12743         (image_instantiator_format_create): add subwindow_query_geometry.
12744         (print_image_instance): cope with layouts as widgets.
12745
12746 2000-04-29  Andy Piper  <andy@xemacs.org>
12747
12748         * frame.c (delete_frame_internal): call
12749         free_frame_subwindow_instance_cache so that all subwindows are
12750         finalized before their parent.
12751         (mark_frame): remove subwindow_cachels.
12752         (Fmake_frame): remove subwindow_cachel manipulation.
12753         (allocate_frame_core): subwindow_instance_cache is a weak list.
12754         (delete_frame_internal): set subwindow_instance_cache to nil.
12755
12756         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12757         finalization safe.
12758         (mswindows_finalize_image_instance): use the device
12759         not the domain as the domain may have died already.
12760
12761         * glyphs-x.c (x_finalize_image_instance): ditto.
12762         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12763         HEIGHT.
12764
12765         * redisplay-output.c (redisplay_unmap_subwindows): update for
12766         subwindow instance cache as a weak list.
12767         (redisplay_unmap_subwindows_maybe): ditto.
12768         (redisplay_unmap_subwindows_except_us): ditto.
12769
12770         * glyphs.c (unmap_subwindow): error checking will check the domain
12771         so don't deal with it here. Don't use cachels anymore.
12772         (map_subwindow): ditto.
12773         (update_subwindow_cachel_data): remove old accessor names.
12774         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12775         (Fresize_subwindow): don't update cachel.
12776         (mark_subwindow_cachels):
12777         (update_subwindow_cachel_data):
12778         (add_subwindow_cachel):
12779         (get_subwindow_cachel_index):
12780         (update_subwindow_cachel):
12781         (reset_subwindow_cachels):
12782         (mark_subwindow_cachels_as_not_updated): deleted.
12783         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12784         subwindow instance to the frame cache.
12785         (find_matching_subwindow): update for subwindow instance cache as
12786         a weak list.
12787         (update_widget_instances): ditto.
12788         (image_instance_type_to_mask):inlined.
12789         (free_frame_subwindow_instance_cache): new function. finalize all
12790         subwindows that are instantiated.
12791
12792         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12793         of cachel information.
12794         (IMAGE_INSTANCE_DISPLAY_X):
12795         (IMAGE_INSTANCE_DISPLAY_Y):
12796         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12797         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12798         (XIMAGE_INSTANCE_DISPLAY_X):
12799         (XIMAGE_INSTANCE_DISPLAY_Y):
12800         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12801         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12802         remove subwindow_cachel structure and function references.
12803         (image_instance_type_to_mask): inline from glyphs.c
12804
12805         * redisplay.c (redisplay_frame): remove subwindow_cachel
12806         references.
12807
12808         * frame.h (struct frame): remove subwindow_cachels.
12809         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12810
12811         * frameslots.h: add subwindow_instance_cache.
12812
12813         * window.c (replace_window): check subwindow cache of replacement.
12814         (window_unmap_subwindows_cache_mapper):
12815         (window_unmap_subwindows): new functions. Unmap all subwindows
12816         cached on this window.
12817         (mark_window_as_deleted): unmap all subwindows.
12818
12819 2000-04-27  Andy Piper  <andy@xemacs.org>
12820
12821         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12822
12823         * glyphs-widget.c (widget_layout): return something.
12824         (layout_layout): return something. Fail if not initialized.
12825         (layout_query_geometry): ditto.
12826         (image_instantiator_native_layout): new function. Initialized the
12827         native layout type.
12828         (widget_instantiate): don't do layout stuff here.
12829
12830         * glyphs.c (instantiate_image_instantiator): reorded calling or
12831         instantiate and post_instantiate with layout in between.
12832         (image_instance_layout): be more selective about deciding whether
12833         the layout has been done or not.
12834
12835         * glyphs.h (struct image_instantiator_methods): return a value
12836         from layout_method.
12837
12838 2000-04-26  Andy Piper  <andy@xemacs.org>
12839
12840         * glyphs.c (allocate_image_instance): make initial width and
12841         height unspecified. Set initialized to 0.
12842
12843         * syscommctrl.h new file. Encapsulates commctrl.h.
12844
12845         * syswindows.h new file. Encapsulates windows.h.
12846
12847         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12848         * nt.c: ditto.
12849         * console-msw.h: ditto.
12850
12851         * redisplay-tty.c (tty_output_display_block): remove layout references.
12852
12853         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12854         window handle rather than just the frame.
12855
12856         * glyphs.c (mark_image_instance): remove layout references.
12857         (print_image_instance): ditto.
12858         (image_instance_equal): ditto.
12859         (image_instance_hash): ditto.
12860         (decode_image_instance_type): ditto.
12861         (encode_image_instance_type): ditto.
12862         (image_instantiate): ditto.
12863         (allocate_glyph): ditto.
12864         (Fimage_instance_height): ditto.
12865         (Fimage_instance_width): ditto.
12866         (update_subwindow): ditto.
12867
12868         * redisplay-x.c (x_output_display_block): recode for layouts as
12869         widgets.
12870
12871         * redisplay-output.c (redisplay_output_layout): recode for layouts
12872         as widgets.
12873         (compare_runes): remove layout references.
12874
12875         * redisplay-msw.c (mswindows_output_display_block): recode for
12876         layouts as widgets.
12877
12878         * glyphs-widget.c (image_instantiator_layout): remove
12879         layout_possible_dest_types.
12880         (layout_possible_dest_types): deleted.
12881
12882         * glyphs.h (image_instance_type): remove layout references.
12883         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12884         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12885         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12886
12887 2000-04-25  Andy Piper  <andy@xemacs.org>
12888
12889         * glyphs-widget.c (image_instantiator_buttons):
12890         (image_instantiator_edit_fields):
12891         (image_instantiator_combo_box):
12892         (image_instantiator_scrollbar):
12893         (image_instantiator_progress_guage):
12894         (image_instantiator_tree_view):
12895         (image_instantiator_tab_control):
12896         (image_instantiator_labels):
12897         (image_instantiator_layout): call default post_instantiate method.
12898         (widget_post_instantiate): new function. Simply lays out the
12899         widgets.
12900
12901         * glyphs.h (struct image_instantiator_methods): add
12902         post_instantiate method.
12903
12904         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12905         method calls.
12906
12907 2000-04-23  Andy Piper  <andy@xemacs.org>
12908
12909         * glyphs.h (struct image_instantiator_methods): add
12910         decode_domain_method.
12911         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12912         derived from the domain.
12913         (IMAGE_INSTANCE_FRAME): new accessor.
12914         (XIMAGE_INSTANCE_FRAME): ditto.
12915
12916         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12917         instead of _SUBWINDOW_FRAME.
12918         (finalize_image_instance): ditto.
12919         (Fimage_instance_foreground): ditto.
12920         (Fimage_instance_background): ditto.
12921         (image_instantiate): ditto.
12922         (update_subwindow_cachel): ditto.
12923         (update_subwindow): ditto.
12924         (unmap_subwindow): ditto.
12925         (map_subwindow): ditto
12926         (subwindow_instantiate): ditto.
12927         * glyphs-msw.c (mswindows_update_widget): ditto.
12928         (mswindows_progress_gauge_instantiate): ditto.
12929         (mswindows_tab_control_update): ditto.
12930         * glyphs-x.c (x_update_widget): ditto.
12931         (x_widget_instantiate): ditto.
12932         (x_tab_control_instantiate): ditto.
12933         (x_tab_control_update): ditto.
12934         * event-msw.c (mswindows_wnd_proc): ditto
12935
12936         * glyphs-widget.c (image_instantiator_layout): use
12937         subwindow_decode_domain.
12938         (image_instantiator_buttons): ditto.
12939         (image_instantiator_edit_fields): ditto.
12940         (image_instantiator_combo_box): ditto.
12941         (image_instantiator_scrollbar): ditto.
12942         (image_instantiator_progress_guage): ditto.
12943         (image_instantiator_tree_view): ditto.
12944         (image_instantiator_tab_control): ditto.
12945         (image_instantiator_labels): ditto.
12946         (image_instantiator_layout): ditto.
12947
12948         * glyphs.c: add instance error checking to many functions.
12949         (instantiate_image_instantiator): decode device from cache_domain.
12950         (image_instantiate): partially rewrite by using
12951         decode_image_instantiator_domain to determine what domain the
12952         instance needs to be cached in.
12953         (decode_image_instantiator_domain): new function. Determine what
12954         domain the image needs to be cached in.
12955         (check_window_subwindow_cache): new error checking function.
12956         (check_instance_cache_mapper): ditto.
12957         (check_image_instance_structure): ditto.
12958         (subwindow_decode_domain): new function. Encodes a window as a
12959         subwindow's cache domain.
12960         (image_instantiator_format_create): use it for text and
12961         subwindows.
12962
12963 2000-04-21  Andy Piper  <andy@xemacs.org>
12964
12965         * glyphs.c (image_instance_device): new function.
12966         (image_instance_frame): new function.
12967         (image_instance_window): new function.
12968         (image_instance_live_p): new function.
12969
12970         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12971         cache to nil.
12972
12973         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12974         (IMAGE_INSTANCE_DOMAIN): new accessor.
12975         (XIMAGE_INSTANCE_DOMAIN): ditto.
12976
12977         * glyphs-x.c (x_finalize_image_instance): device->domain.
12978
12979         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12980         (mswindows_finalize_image_instance): ditto.
12981
12982         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12983         (gif_instantiate): ditto.
12984         (png_instantiate): ditto.
12985         (tiff_instantiate): ditto.
12986
12987         * glyphs.c (instantiate_image_instantiator): use domain rather
12988         than device.
12989         (mark_image_instance): device -> domain.
12990         (print_image_instance): ditto.
12991         (finalize_image_instance): ditto.
12992         (image_instance_equal): ditto.
12993         (allocate_image_instance): ditto.
12994         (Fcolorize_image_instance): ditto.
12995         (query_string_geometry): ditto.
12996         (image_instantiate): ditto
12997         (query_string_font): ditto.
12998         (image_instantiate): ditto.
12999         (update_subwindow): ditto.
13000         (unmap_subwindow): ditto.
13001         (map_subwindow): ditto.
13002         (subwindow_instantiate): ditto.
13003
13004         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13005         (DOMAIN_FRAME): ditto.
13006         (DOMAIN_WINDOW): ditto.
13007         (DOMAIN_LIVE_P): ditto.
13008         (XDOMAIN_DEVICE): ditto.
13009         (XDOMAIN_FRAME): ditto.
13010         (XDOMAIN_WINDOW): ditto.
13011
13012         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13013         a valid specifier domain.
13014
13015 2000-04-19  Andy Piper  <andy@xemacs.org>
13016
13017         * glyphs-widget.c (syms_of_glyphs_widget): remove
13018         widget-callback-current-channel.
13019         (vars_of_glyphs_widget): ditto.
13020         * glyphs.h: ditto
13021
13022         * gui.c (get_gui_callback): revert to previous behaviour.
13023
13024 2000-04-18  Andy Piper  <andy@xemacs.org>
13025
13026         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13027         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13028         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13029
13030         * glyphs.c (image_instance_equal): add margin_width.
13031         (image_instance_hash): ditto.
13032
13033         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13034         (layout_query_geometry): ditto.
13035         (layout_layout): ditto.
13036         (syms_of_glyphs_widget): add margin-width.
13037         (image_instantiator_layout): allow margin-width.
13038
13039         * glyphs.c (update_widget_instances): make a normal function.
13040         (syms_of_glyphs): remove Qupdate_widget_instances.
13041         * glyphs.h: ditto.
13042
13043         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13044         so that we don't corrupt ideas about the last event or
13045         command. Remove widget-callback-current-channel fiddling.
13046         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13047
13048 2000-05-01  Martin Buchholz <martin@xemacs.org>
13049
13050         * XEmacs 21.2.33 is released.
13051
13052 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13053
13054         * make-src-depend: Allow dots in header file name.
13055
13056 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13057
13058         * mule-charset.h (struct charset_lookup): Add
13059         next_allocated_1_byte_leading_byte and
13060         next_allocated_2_byte_leading_byte.
13061         * mule-charset.c: Move above two variables so that those values
13062         will be dumped.
13063
13064 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13065
13066         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13067         when string length is zero.
13068         (find_charsets_in_emchar_string): Ditto.
13069
13070 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13071
13072         * lisp.h: extern Qdialog and Qmenubar.
13073
13074         * gui-x.c: added events.h.
13075                 also fixed typo which made the file uncompilable.
13076
13077         * general.c: Added Qmenubar and Qdialog
13078
13079 2000-04-28  Ben Wing  <ben@xemacs.org>
13080
13081         * frame-msw.c (mswindows_init_frame_1):
13082         * frame-msw.c (mswindows_mark_frame):
13083         * event-msw.c (mswindows_enqueue_dispatch_event):
13084         * console-msw.h:
13085         * console-msw.h (struct mswindows_frame):
13086         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13087         there are now three hash tables for callbacks.
13088         mswindows_enqueue_dispatch_event is no longer static.
13089
13090         * dialog-x.c (maybe_run_dbox_text_callback):
13091         * dialog-x.c (dbox_descriptor_to_widget_value):
13092         switch to new cons3 form for callbacks.
13093
13094         * glyphs-msw.c (mswindows_register_gui_item):
13095         * glyphs-msw.c (mswindows_widget_instantiate):
13096         * glyphs-msw.c (add_tree_item):
13097         * glyphs-msw.c (add_tab_item):
13098         new image instance parameter, so it can be passed to callback-ex.
13099         respect :callback-ex as well as :callback.
13100
13101         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13102         add :callback-ex.
13103
13104         * glyphs.c (print_image_instance):
13105         prettify, e.g. now prints widget type.
13106
13107         * gui-x.h:
13108         certain funs have new image instance parameter.
13109
13110         * gui.c:
13111         * gui.c (get_gui_callback):
13112         * gui.c (gui_item_add_keyval_pair):
13113         * gui.c (gui_item_init):
13114         * gui.c (gui_add_item_keywords_to_plist):
13115         * gui.c (mark_gui_item):
13116         * gui.c (gui_item_hash):
13117         * gui.c (gui_item_equal):
13118         * gui.c (copy_gui_item):
13119         * gui.c (syms_of_gui):
13120         recognize callback-ex in a number of places.
13121         also, fix the annoying "can't get out of yes-no dialog" bug.
13122
13123         * gui.h:
13124         * gui.h (struct Lisp_Gui_Item):
13125         recognize callback-ex in a number of places.
13126
13127         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13128         new parameter in button_item_to_widget_value.
13129
13130         * glyphs-x.c (x_update_widget):
13131         * glyphs-x.c (x_button_instantiate):
13132         * glyphs-x.c (x_button_update):
13133         * glyphs-x.c (x_progress_gauge_instantiate):
13134         * glyphs-x.c (x_edit_field_instantiate):
13135         * glyphs-x.c (x_combo_box_instantiate):
13136         * glyphs-x.c (x_tab_control_instantiate):
13137         * glyphs-x.c (x_label_instantiate):
13138         new image instance parameter in various places.
13139
13140         * event-Xt.c:
13141         * event-Xt.c (enqueue_Xt_dispatch_event):
13142         this fun gets exported.
13143
13144         * gui-msw.c:
13145         * gui-msw.c (mswindows_handle_gui_wm_command):
13146         handle both :callback and :callback-ex, and generate our own
13147         event because it's one of the callback-ex arguments.
13148
13149         * gui-x.c:
13150         * gui-x.c (popup_selection_callback):
13151         handle both :callback and :callback-ex, and generate our own
13152         event because it's one of the callback-ex arguments.
13153         * gui-x.c (button_item_to_widget_value):
13154         * gui-x.c (gui_items_to_widget_values_1):
13155         * gui-x.c (gui_item_children_to_widget_values):
13156         * gui-x.c (gui_items_to_widget_values):
13157         new image instance parameter in various places.
13158
13159         * fns.c (Freplace_list):
13160         fix small typo in doc string.
13161
13162         * lisp.h:
13163         declare enqueue_Xt_dispatch_event.
13164
13165 2000-04-28  Ben Wing  <ben@xemacs.org>
13166
13167         * buffer.c:
13168         * buffer.c (Frecord_buffer):
13169         * buffer.c (syms_of_buffer):
13170         delete record-buffer-hook.
13171
13172         * fns.c:
13173         * fns.c (Freplace_list):
13174         * fns.c (syms_of_fns):
13175         new primitive replace-list.
13176
13177         * frameslots.h:
13178         slot for old buffer-alist.
13179
13180         * lisp.h:
13181         exfun replace-list.
13182
13183         * redisplay.c:
13184         * redisplay.c (redisplay_frame):
13185         * redisplay.c (syms_of_redisplay):
13186         * redisplay.c (vars_of_redisplay):
13187         new hook buffer-list-changed-hook.
13188         call it.
13189
13190 2000-04-27  Ben Wing  <ben@xemacs.org>
13191
13192         * extents.h: extern in_modeline_generation.
13193
13194         * redisplay.c (generate_formatted_string_db): set
13195         in_modeline_generation.
13196
13197         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13198         flags if in modeline generation.  otherwise frame-modified-tick
13199         is ticked far too often.
13200         Declare in_modeline_generation.
13201
13202 2000-04-26  Ben Wing  <ben@xemacs.org>
13203
13204         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13205         option.
13206         (vars_of_emacs): add quick-build as an error-checking option.
13207         A bit kludgy, but there doesn't seem much point in creating
13208         a real var for this.
13209
13210         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13211
13212 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13213
13214         * redisplay.h (struct display_line): Add a new variable,
13215         line_continuation.
13216
13217         * redisplay.c (create_text_block): Set dl->line_continuation if
13218         the line continues.
13219         (create_string_text_block): Ditto.
13220         (regenerate_window_incrementally): Use line_continuation instead
13221         of searching continuation glyph.
13222         (add_margin_runes): Call add_glyph_rune.
13223         (add_glyph_rune): Handle margin glyph.
13224
13225 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13226
13227         * filelock.c (fill_in_lock_file_name):
13228         ANSIfy.
13229         Check for IS_ANY_SEP instead of '/'.
13230         (lock_file_1):
13231         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13232         Never check errno without first seeing that system call failed.
13233         (unlock_file): Add GCPRO.
13234         (Flock_buffer): Fix docstring.
13235         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13236
13237 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13238
13239         * sysdep.c (get_pty_max_bytes):
13240         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13241         strings longer than 252 bytes.
13242
13243         * md5.c: Unconditionally include ANSI header <limits.h>
13244
13245         * glyphs-x.c (convert_EImage_to_XImage):
13246         * lisp-union.h (union Lisp_Object):
13247         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13248
13249 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13250
13251         * filelock.c (current_lock_owner): Remove unused variable o, p.
13252
13253 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13254
13255         * callint.c: Remove multiply defined symbol Qlet
13256         (syms_of_callint): ditto.
13257
13258 2000-04-14  Andy Piper  <andy@xemacs.org>
13259
13260         * general.c (syms_of_general): add last-command, this-command, let
13261         and funcall.
13262
13263         * lisp.h: declare various symbols.
13264
13265         * glyphs.h: declare Qwidget_callback_current_channel;
13266
13267         * glyphs-widget.c (syms_of_glyphs_widget): add
13268         Qgui_callback_current_channel.
13269         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13270
13271         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13272         widget-callback-current-channel when invoking the interactive
13273         arg. Also bind last-command and next-command when invoking the
13274         widget updates.
13275         * gui-x.c (popup_selection_callback): ditto.
13276
13277         * gui.c (get_gui_callback): massage args so that we are always
13278         calling eval. This allows us to add our own variable bindings
13279         outside.
13280
13281         * glyphs-x.c (x_button_instantiate): use
13282         gui_items_to_widget_values since this is GC safe.
13283         (x_progress_gauge_instantiate): ditto.
13284         (x_edit_field_instantiate): ditto.
13285         (x_label_instantiate): ditto.
13286
13287         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13288         (emacs_Xt_event_widget_focus_out): new function
13289         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13290         focus.
13291         (emacs_Xt_event_add_widget_actions): new function. add focus
13292         functions as actions.
13293         (init_event_Xt_late): use it.
13294
13295 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13296
13297         * event-stream.c (Fdispatch_event): Doc fix.
13298
13299 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13300
13301         * postgresql.c: Remove all references to PQsetenv*.
13302
13303         * postgresql.h: Remove references to PGsetenvHandler object.
13304         * lrecord.h (lrecord_type): Ditto.
13305
13306 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13307
13308         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13309         real_heigh and real_width members, and accessor macros for these.
13310
13311         * glyphs-msw.c (init_image_instance_geometry): New function.
13312         (init_image_instance_from_dibitmap): Use it.
13313         (mswindows_resource_instantiate): Use it.
13314         (init_image_instance_from_xbm_inline): Use it.
13315         (mswindows_initialize_image_instance_mask): Use real bitmap
13316         geometry.
13317         (mswindows_create_resized_bitmap): Ditto.
13318         (mswindows_create_resized_mask): Ditto.
13319
13320         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13321         and bitmap to their surface size.
13322
13323 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13324
13325         * process-unix.c (unix_send_process): Guard against process MIA
13326         after Faccept_process_output.
13327
13328 2000-04-11  Ben Wing  <ben@xemacs.org>
13329
13330         * eval.c (unbind_to_hairy): fix brokenness introduced by
13331         nanosecond speed improvements.
13332
13333 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13334
13335         * sunplay.c (init_device): To play sounds correctly, the device
13336         apparently needs to be initialized at least once by XEmacs.  Make
13337         it so.
13338
13339 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13340
13341         * redisplay.c (add_margin_runes): Add text image glyph
13342           handling.
13343
13344 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13345
13346         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13347         gcc is newer than 2.5.
13348
13349 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13350
13351         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13352
13353         * fns.c (size_bit_vector):
13354         * alloc.c (size_vector):
13355         (make_vector_internal):
13356         (make_bit_vector_internal):
13357         (sweep_bit_vectors_1):
13358         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13359
13360 2000-04-06  Andy Piper  <andy@xemacs.org>
13361
13362         * gmalloc.c (malloc): undo previous change.
13363         (malloc): ditto.
13364         (free): ditto.
13365         (realloc): ditto.
13366
13367 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13368
13369         * line-number.c (buffer_line_number): Revert to former version.
13370
13371 2000-04-06  Andy Piper  <andy@xemacs.org>
13372
13373         * gmalloc.c (malloc): add error checking.
13374         (malloc): ditto.
13375         (free): ditto.
13376         (realloc): ditto.
13377
13378         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13379         button_item_to_widget_value arg.
13380
13381         * glyphs-x.c (x_button_instantiate): add extra
13382         button_item_to_widget_value arg.
13383         (x_progress_gauge_instantiate): ditto.
13384         (x_edit_field_instantiate): ditto.
13385         (x_label_instantiate): ditto.
13386
13387         * gui-x.c (gui_items_to_widget_values_1): add extra
13388         button_item_to_widget_value arg.
13389         (button_item_to_widget_value): add extra menu_item_p arg.
13390
13391         * gui-x.h: change signature of button_item_to_widget_value.
13392
13393         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13394         button_item_to_widget_value arg.
13395
13396 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13397
13398         * buffer.h (struct buffer): auto_save_modified should be long.
13399
13400 2000-04-05  Andy Piper  <andy@xemacs.org>
13401
13402         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13403         type.
13404         (button_query_geometry): give a little more room so that athena
13405         buttons fit.
13406
13407 2000-04-05  Andy Piper  <andy@xemacs.org>
13408
13409         * faces.c (complex_vars_of_faces): The widget face should inherit
13410         the font of the gui-element face.
13411
13412 2000-04-04  Andy Piper  <andy@xemacs.org>
13413
13414         * glyphs-x.c (x_button_update): new function. unconditionally
13415         update a button's state when the instance is dirty.
13416         (image_instantiator_format_create_glyphs_x): add x_button_update.
13417         (x_widget_instantiate): remove old resize cruft.
13418
13419 2000-04-02  Andy Piper  <andy@xemacs.org>
13420
13421         * frame.c (change_frame_size_1): The introduction of gutters means
13422         that we need to allow 0 as a potential frame dimension.
13423
13424 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13425
13426         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13427         image glyph if allow_cursor.
13428         (add_hscroll_rune): Don't allow cursor to border glyph.
13429         (create_text_block): Ditto.
13430
13431         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13432         text not in buffer.
13433         (redisplay_output_layout): Call ensure_face_cachel_complete for
13434         text image glyph.
13435
13436
13437 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13438
13439         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13440
13441         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13442         not in buffer
13443
13444         * redisplay-tty.c (tty_output_display_block): Delete the routine
13445         for text image glyph
13446         * redisplay-x.c (x_output_display_block): ditto
13447         * redisplay-msw.c (mswindows_output_display_block): ditto
13448
13449 2000-02-02  Mike Alexander  <mta@arbortext.com>
13450
13451         Note: Some of these were committed by accident as part of other
13452         patches.
13453
13454         * regex.c (regex_compile): Avoid compiler warnings.
13455
13456         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13457
13458         * nt.h: Declare term_ntproc correctly.
13459
13460         * nt.c: Remove incorrect declaration of get_home_directory which
13461         is declared correctly in lisp.h.
13462
13463         * keymap.c (get_keyelt): Avoid compiler warnings.
13464         (raw_lookup_key_mapper): Avoid compiler warnings.
13465
13466         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13467
13468         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13469
13470         * filemode.c (mode_string): Avoid compiler warnings.
13471
13472         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13473         avoid warning.
13474
13475         * events-mod.h: Undef some things that winuser.h defines differently.
13476
13477         * data.c (Faset): Avoid compiler warnings.
13478
13479         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13480
13481 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13482
13483         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13484         Fall through to simple beep on error.
13485         Replace "extern" by real header file.
13486
13487         * linuxplay.c: Use nativesound.h
13488         (play_sound_data): Return error code. Be less verbose on error.
13489
13490         * sunplay.c: Use nativesound.h
13491         (play_sound_data): Return error code. Be less verbose on error.
13492
13493         * ntplay.c: Use nativesound.h
13494         (play_sound_data): Return fake error code
13495
13496         * sgiplay.c: Use nativesound.h
13497         (play_sound_data): Return error code
13498
13499         * hpplay.c: Use nativesound.h, partially implement
13500         new error code. Break compilation until finished.
13501         (play_sound_data): error code.
13502
13503         * nativesound.h (play_sound_file):
13504           (play_sound_data): Prototype in new header.
13505
13506 2000-03-31  Andy Piper  <andy@xemacs.org>
13507
13508         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13509         for toggle and radio buttons.
13510         (image_instantiator_buttons): use it.
13511
13512 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13513
13514         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13515         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13516         found. Scrollbar event probably belonged to some old config.
13517
13518 2000-03-31  Andy Piper  <andy@xemacs.org>
13519
13520         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13521         than 1.
13522         (initialize_widget_image_instance): default layout to
13523         LAYOUT_HORIZONTAL rather than 0.
13524         (widget_instantiate): reverse the item list at the end rather than
13525         every iteration.
13526         (layout_layout): re-code for the border text at the front of the
13527         item list rather than at the end.
13528         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13529         provided by the user.
13530         (widget_query_geometry): comment.
13531
13532 2000-03-30  Andy Piper  <andy@xemacs.org>
13533
13534         * glyphs-widget.c (image_instantiator_layout): allow standard
13535         widget keywords in layouts.
13536
13537         * gutter.c (output_gutter): cope with nil gutter contents.
13538
13539         * frame.c (Fset_frame_properties): add gutter docs.
13540
13541 2000-03-29  Andy Piper  <andy@xemacs.org>
13542
13543         * toolbar-msw.c (TBSTYLE_FLAT): add.
13544         (mswindows_output_toolbar): minor fiddling.
13545
13546 2000-03-29  Andy Piper  <andy@xemacs.org>
13547
13548         * gutter.c (output_gutter): force gutter size recalculation if
13549         what we are trying to display won't fit.
13550         (update_gutter_geometry): new function. A per-gutter version of
13551         update_frame_gutter_geometry.
13552         (update_frame_gutter_geometry): use it.
13553         (redraw_exposed_gutter): add extra debugging output.
13554
13555 2000-03-28  Mike Alexander  <mta@arbortext.com>
13556
13557         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13558         (pdump_file_unmap): Implement it on Windows
13559         (pdump_file_get): Save alocated handles for pdump_file_unmap
13560
13561 2000-03-28  Andy Piper  <andy@xemacs.org>
13562
13563         * gui.c (get_gui_callback): treat Quit specially.
13564
13565 2000-03-27  Andy Piper  <andy@xemacs.org>
13566
13567         * glyphs.c (image_instantiate): be careful to check in the same
13568         way we assigned.
13569
13570 2000-03-27  Didier Verna  <didier@xemacs.org>
13571
13572         * config.h.in: define the proper SMART_INCLUDE macro.
13573         handle renaming of `foo_h_path' to `foo_h_file'.
13574
13575         * database.c: ditto.
13576
13577         * emacs.c: ditto.
13578
13579         * linuxplay.c: ditto.
13580
13581         * terminfo.c: ditto.
13582
13583         * tooltalk.h: ditto.
13584
13585 2000-03-27  Andy Piper  <andy@xemacs.org>
13586
13587         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13588         gets updated whenever the face might have changed.
13589
13590 2000-03-26  Mike Alexander  <mta@arbortext.com>
13591
13592         * dumper.c (pdump_resource_free): Fix the comment.
13593
13594 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13595
13596         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13597
13598 2000-03-22  Mike Alexander  <mta@arbortext.com>
13599
13600         * dumper.c: Include Windows headers on Windows
13601         (pdump_resource_free): Add a body to the function
13602         (pdump_load): exe_name -> exe_path and add some comments.
13603
13604 2000-03-25  Mike Alexander  <mta@arbortext.com>
13605
13606         * gui.c (copy_gui_item_tree): Return a value in all cases
13607
13608 2000-03-21  Didier Verna  <didier@xemacs.org>
13609
13610         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13611         lwlib/config.h.in.
13612         (SMART_INCLUDE): new macro.
13613         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13614         the proper location.
13615
13616         * postgresql.c: use it.
13617
13618         * inline.c: ditto.
13619
13620 2000-03-24  Andy Piper  <andy@xemacs.org>
13621
13622         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13623         do this.
13624
13625 2000-03-24  Andy Piper  <andy@xemacs.org>
13626
13627         * redisplay-output.c (compare_runes): use image_instance_changed
13628         to detect changes. Do not depend on glyphs_changed, only depend on
13629         dirtiness.
13630          (redisplay_output_layout): add debug messages.
13631         (compare_runes): ditto.
13632
13633         * glyphs.h: declare new functions.
13634         (struct Lisp_Image_Instance): remove percent and associated
13635         accessors.
13636
13637         * gui.h: declare new copying functions.
13638
13639         * gui.c (copy_gui_item_tree): new function.
13640         (copy_gui_item): new function.
13641         (gui_item_id_hash): revert to standard hash.
13642         (gui_item_hash): ditto.
13643         (gui_item_hash_internal): deleted.
13644         (mark_gui_item): mark value.
13645         (gui_item_add_keyval_pair): add value.
13646         (gui_item_init): ditto.
13647         (gui_add_item_keywords_to_plist): ditto.
13648         (gui_item_equal): ditto.
13649         (syms_of_gui): add Q_value.
13650
13651         * glyphs-x.c (x_progress_gauge_update): use pending items and
13652         value for setting the state.
13653         (x_update_widget): don't set items from pending here.
13654
13655         * glyphs-widget.c (update_widget): update items here.
13656         (progress_gauge_set_property): use items for storing value. Put
13657         new value in pending items.
13658
13659         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13660         items for new value. Convert percent -> value.
13661         (mswindows_tab_control_update): don't update items here.
13662
13663         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13664         (update_subwindow): ditto.
13665         (image_instance_changed): new function. Compare hash values and
13666         past and present widget items.
13667         (image_instantiate): We more careful about where we instantiate
13668         things.
13669         (image_instantiate): add error checking.
13670
13671         * gutter.c (syms_of_gutter): use -hook.
13672
13673 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13674
13675         * console-tty.c (Fset_console_tty_input_coding_system): Use
13676         Qkeyboard.
13677         (Fset_console_tty_output_coding_system): Use Qterminal.
13678         (tty_init_console): Use Qkeyboard and Qterminal.
13679
13680 2000-03-21  Ben Wing  <ben@xemacs.org>
13681
13682         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13683         From Mike Alexander <mta@arbortext.com>.
13684
13685 2000-03-21  Ben Wing  <ben@xemacs.org>
13686
13687         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13688         process brokenness.  Proper implementation to come.
13689         * callproc.c:
13690         Rename call-process-internal to old-call-process-internal.
13691         New impl. in process.el.
13692
13693 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13694
13695         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13696
13697 2000-03-20  Andy Piper  <andy@xemacs.org>
13698
13699         * glyphs.c (full_list_hash): make hashes of the same elements in
13700         different orders return different values.
13701
13702 2000-03-20  Martin Buchholz <martin@xemacs.org>
13703
13704         * XEmacs 21.2.32 is released.
13705
13706 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13707
13708         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13709         (DFC_MALLOC_USE_CONVERTED_DATA):
13710         Add aliasing-safe casts to allow use with char* or unsigned char*
13711         lvalues.
13712
13713         * eldap.c (Fldap_open):
13714         (Fldap_search_basic):
13715         (Fldap_add):
13716         (Fldap_modify):
13717         Make C++-compilable.
13718         Make sure GCPRO'ed variables are initialized.
13719         Use temp variables to avoid repeated calls to Flength.
13720
13721 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13722
13723         * sysfile.h:
13724         Make sure PATH_MAX is always defined.
13725         Include limits.h for PATH_MAX.
13726         Deprecate use of MAXPATHLEN.
13727
13728 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13729
13730         * emacs.c: Add reinit_vars_of_fileio.
13731         * symsinit.h: Add reinit_vars_of_fileio.
13732         * fileio.c (reinit_vars_of_fileio): New.
13733         * fileio.c (Fmake_temp_name):
13734         Initialize temp_name random number from microseconds to make
13735         collisions even less likely.  Initialize always at process startup
13736         time.  (make-temp-name) used to return the same file name twice in
13737         a row when PDUMP.
13738         Random stylistic fiddling.
13739         Comment fixes.
13740
13741 2000-03-20  Andy Piper  <andy@xemacs.org>
13742
13743         * glyphs.c (image_instantiate): allow text glyphs to be
13744         instantiated in the minibuffer window.
13745
13746 2000-03-19  Andy Piper  <andy@xemacs.org>
13747
13748         * glyphs.c (image_instance_hash): be careful about which items we
13749         hash on.
13750
13751         * glyphs-widget.c (tab_control_set_property): record into pending
13752         items rather than the actual items.
13753
13754         * glyphs-x.c (x_update_widget): use pending items to update with.
13755
13756         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13757         to update with.
13758
13759         * glyphs.c (mark_image_instance): mark pending items.
13760
13761         * window.c (Fset_window_configuration): record the buffer.
13762         (Fselect_window): totally revert previous change which breaks many
13763         things.
13764
13765 2000-03-18  Andy Piper  <andy@xemacs.org>
13766
13767         * glyphs-msw.c (mswindows_tab_control_update): force selected
13768         item.
13769
13770         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13771         window domain cache, otherwise we get inconsistencies at
13772         startup. There is something fishy at startup which can lead to the
13773         minibuffer being the selected window when the gutter content is
13774         instantiated.
13775
13776         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13777         gcpros.
13778         (parse_gui_item_tree_children): ditto.
13779         (parse_gui_item_tree_item): ditto.
13780
13781         * glyphs.c (Fupdate_widget_instances): return something.
13782
13783 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13784
13785         * window.c (Fselect_window): Undo 2000-03-17 change.
13786
13787 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13788
13789         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13790         against v7.0 libraries.  Insta-coredump city until the postgres
13791         folks fix it.
13792
13793 2000-03-17  Andy Piper  <andy@xemacs.org>
13794
13795         * faces.c (complex_vars_of_faces): don't give the widget face an
13796         inherited background pixmap.
13797
13798         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13799         selected item.
13800
13801         * event-stream.c (Fdispatch_non_command_events): return something.
13802
13803         * gutter.c (output_gutter): use widget face.
13804         (clear_gutter): ditto.
13805
13806         * NEWS: adjust again.
13807
13808         * window.c (Fselect_window): make sure this runs to completion to
13809         avoid oddities with Fset_window_configuration.
13810         (Fcurrent_window_configuration): in general do not save the
13811         minibuffer as the selected window.
13812
13813         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13814
13815 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13816
13817         * emacs.c (Frunning_temacs_p): Revert previous patch.
13818         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13819
13820 2000-03-16  Andy Piper  <andy@xemacs.org>
13821
13822         * glyphs-x.c (x_tab_control_update): if no widget values then
13823         return.
13824
13825         * NEWS: update for new features.
13826
13827         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13828         synthetic event to the native system.
13829         (reinit_vars_of_event_Xt): set force_event_pending to
13830         emacs_Xt_force_event_pending.
13831
13832         * events.h (struct event_stream): add force_event_pending.
13833
13834         * specifier.c (recompute_one_cached_specifier_in_window): add
13835         comment.
13836
13837         * redisplay.c (redisplay_frame): don't call
13838         update_frame_subwindows. Reset subwindow cachels when
13839         subwindows_changed, removing this was an optimization too far.
13840
13841         * redisplay-output.c (compare_runes): reorganize so that we catch
13842         glyph changes when we want them. Set optimize_output when this
13843         would help layouts.
13844         (redisplay_output_layout): remove frame_really_changed, use
13845         optimize_output instead.
13846
13847         * redisplay-msw.c (mswindows_output_display_block): reset
13848         optimize_output after outputting a glyph.
13849         * redisplay-x.c (x_output_display_block): ditto.
13850         * redisplay-tty.c (tty_output_display_block): ditto.
13851
13852         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13853         functions.
13854         (gutter_specs_changed): do specific gutter positions.
13855         (top_gutter_specs_changed): new function. Only update the
13856         specified gutter specs.
13857         (bottom_gutter_specs_changed): ditto.
13858         (left_gutter_specs_changed): ditto.
13859         (right_gutter_specs_changed): ditto.
13860
13861         * gui.c (gui_item_hash_internal): new function, does a real hash.
13862         (gui_item_id_hash): use it.
13863         (gui_item_hash): hash the eval'ed gui_item.
13864
13865         * gui-x.c (popup_selection_callback): send an eval event to call
13866         Fupdate_widget_instances.
13867
13868         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13869         to call Fupdate_widget_instances.
13870
13871         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13872         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13873
13874         * glyphs.c: (update_frame_subwindows): deleted.
13875         (Fupdate_widget_instances): new function for updating the dirty
13876         state of widgets that might have changed.
13877         (syms_of_glyphs): add Qupdate_widget_instances.
13878         (full_list_hash): hash a list completely.
13879         (image_instance_hash): use it for items and properties.
13880
13881         * frame-msw.c (mswindows_size_frame_internal): remove unused
13882         variable.
13883
13884         * faces.h (struct face_cachel): fix comment.
13885
13886         * event-stream.c (Fdispatch_non_command_events): new
13887         function. Process non-command events, forcing an event cycle
13888         beforehand.
13889         (syms_of_event_stream): declare.
13890         (event_stream_force_event_pending): new function. Force an event
13891         on the native event queue so that an event cycle will occur next
13892         time we check.
13893
13894         * event-msw.c:
13895         (struct ntpipe_shove_stream):
13896         (mswindows_enqueue_dispatch_event):
13897         (mswindows_dequeue_dispatch_event):
13898         (mswindows_cancel_dispatch_event):
13899         (mswindows_pump_outstanding_events):
13900         (mswindows_drain_windows_queue):
13901         (mswindows_handle_paint):
13902         (mswindows_wnd_proc):
13903         (mswindows_key_to_emacs_keysym):
13904         (get_process_input_waitable):
13905         (emacs_mswindows_delete_stream_pair): re-indent file.
13906         (mswindows_need_event): do not process further fds if the windows
13907         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13908         fixes the 100% cpu problem.
13909         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13910
13911 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13912
13913         * alloc.h: New.
13914         * dumper.h: New.
13915         * dumper.c: New.
13916
13917         * emacs.c: Moved dump file searching to dumper.c.
13918         (Frunning_temacs_p): Fixed.
13919
13920         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13921         last_lrecord_type_index_assigned.
13922
13923 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13924
13925         * symsinit.h: Added reinit parameter to init_console_stream
13926         declaration.
13927
13928         * lisp.h: Added file parameter to pdump_load declaration.
13929
13930         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13931         support.  Added dump file searching.
13932
13933         * config.h.in: Added EMACS_PROGNAME.
13934
13935         * console-stream.c (init_console_stream): Fix reinitialisation
13936         when running from temacs.
13937
13938         * alloc.c (pdump): Add id support.
13939         (pdump_load): Add file parameter and signature/id support.
13940
13941         * Makefile.in.in: Add full pdump support.
13942
13943 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13944
13945         * postgresql.c: Update documentation to reflect latest code
13946         status.
13947         (print_result): Show tuple counts in printed representation when
13948         appropriate.
13949         (Fpq_put_nbytes): MULE-ize.
13950         (Fpq_get_line_async): Ditto.
13951
13952 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13953
13954         * postgresql.c (Fpq_lo_import): Fix return value.
13955         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13956
13957 2000-03-13  Ben Wing  <ben@xemacs.org>
13958
13959         * alloc.c (pdump_load):
13960         Fix compile warning under mswin.
13961
13962 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13963
13964         * postgresql.c: Mule-ization, bug fixes.
13965         Use PG_CODING to encapsulate coding system name changes.
13966         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13967         (pg-coding-system): Create.
13968
13969         (Fpq_conn_defaults): Mule-ize.
13970         (Fpq_connectdb): Mule-ize & bug fix.
13971         (Fpq_connect_start): Mule-ize.
13972         (Fpq_set_client_encoding): Mule-ize.
13973         (Fpq_finish): Document `DEAD' connection status.
13974         (Fpq_clear): Ditto.
13975         (Fpq_pgconn): Mule-ize.
13976         (Fpq_exec): Mule-ize & bug fix.
13977         (Fpq_send_query): Ditto.
13978         (Fpq_get_result): Ditto.
13979         (Fpq_res_status): Mule-ize.
13980         (Fpq_result_error_message): Mule-ize.
13981         (Fpq_ntuples): fix comments.
13982         (Fpq_fname): Mule-ize.
13983         (Fpq_fnumber): Mule-ize.
13984         (Fpq_ftype): fix comments.
13985         (Fpq_get_value): Mule-ize.
13986         (Fpq_cmd_status): Ditto.
13987         (Fpq_cmd_tuples): Ditto.
13988         (Fpq_oid_value): Ditto.
13989         (Fpq_notifies): Ditto.
13990         (Fpq_lo_import): Ditto.
13991         (Fpq_lo_export): Ditto.
13992         (Fpq_get_line): Ditto.
13993         (Fpq_put_line): Mule-ize and bug fix.
13994         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13995
13996 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13997
13998         * postgresql.c (vars_of_postgresql): Mule-ize.
13999         (Fpq_conn_defaults): Ditto.
14000
14001 2000-03-12  Ben Wing  <ben@xemacs.org>
14002
14003         * alloc.c (Fmake_byte_code):
14004         * alloc.c (debug_string_purity_print):
14005         * alloc.c (pdump_backtrace):
14006         * alloc.c (pdump_get_indirect_count):
14007         * alloc.c (pdump_register_sub):
14008         * alloc.c (pdump_register_object):
14009         * alloc.c (pdump_register_struct):
14010         * alloc.c (pdump_dump_data):
14011         * alloc.c (pdump_reloc_one):
14012         Minor cleanups.
14013
14014         * console-msw.c:
14015         * console-msw.c (GetConsoleHwnd):
14016         * console-msw.c (msw_hide_console):
14017         * console-msw.c (msw_show_console):
14018         * console-msw.c (msw_ensure_console_buffered):
14019         * console-msw.c (msw_output_console_string):
14020         * console-msw.c (console_type_create_mswindows):
14021
14022         a) Added functions to manipulate the console window for use with
14023         shell support.
14024
14025         b) Added support for writing text to the console, which is now
14026         used under Windows when xemacs is not being run non-interactively,
14027         to write text that would otherwise be destined for stdout because
14028         under these circumstances, text written to stdout tends to
14029         disappear and not be seen.
14030
14031         * console-msw.h:
14032         * event-Xt.c:
14033         * event-Xt.c (x_event_to_emacs_event):
14034         * event-Xt.c (describe_event_window):
14035         * events-mod.h (XEMACS_MOD_CONTROL):
14036         * events.c:
14037         * events.c (Fmake_event):
14038         * events.c (character_to_event):
14039         * events.c (event_to_character):
14040         * events.c (format_event_object):
14041         * events.c (Fevent_modifiers):
14042         * events.h:
14043         * events.h (struct key_data):
14044         * events.h (struct button_data):
14045         * events.h (struct misc_user_data):
14046         * frame-x.c (Fcde_start_drag_internal):
14047         * frame-x.c (Foffix_start_drag_internal):
14048         * gpmevent.c (Freceive_gpm_event):
14049         * keymap.c:
14050         * keymap.c (bucky_sym_to_bucky_bit):
14051         * keymap.c (control_meta_superify):
14052         * keymap.c (make_key_description):
14053         * keymap.c (keymap_lookup_directly):
14054         * keymap.c (create_bucky_submap):
14055         * keymap.c (keymap_store):
14056         * keymap.c (define_key_check_and_coerce_keysym):
14057         * keymap.c (define_key_parser):
14058         * keymap.c (define_key_alternate_name):
14059         * keymap.c (Fdefine_key):
14060         * keymap.c (raw_lookup_key_mapper):
14061         * keymap.c (struct map_keymap_unsorted_closure):
14062         * keymap.c (map_keymap_unsorted_mapper):
14063         * keymap.c (map_keymap_sort_predicate):
14064         * keymap.c (map_keymap_sorted):
14065         * keymap.c (accessible_keymaps_mapper_1):
14066         * keymap.c (where_is_recursive_mapper):
14067         * keymap.c (describe_map_mapper):
14068         * keymap.c (describe_map_sort_predicate):
14069         * keymap.c (describe_map):
14070         * keymap.c (complex_vars_of_keymap):
14071         And a number of other files, the key modifier preprocessor
14072         constants that xemacs uses have names that conflict with constants
14073         defined under MS Windows for other purposes, so they were renamed
14074         to begin with the prefix XEMACS_. The variables that hold such
14075         modifiers were changed to consistently be of type int to fix
14076         various compile warnings.
14077
14078         * console.c (complex_vars_of_console):
14079         * device.c:
14080         * device-msw.c:
14081         * device-msw.c (mswindows_finish_init_device):
14082         * device-msw.c (msw_get_workspace_coords):
14083         * device-msw.c (mswindows_device_system_metrics):
14084         and various other files, added support for a new
14085         device property called offset-workspace which returns the position
14086         of the upper left corner of the workspace area and goes along with
14087         the existing size-workspace property.
14088
14089         * dialog-msw.c:
14090         * dialog-msw.c (push_bufbyte_string_as_unicode):
14091         * dialog-msw.c (mswindows_popup_dialog_box):
14092         Added support for XEmacs-style accelerator specifications in
14093         button text.  Note: I didn't add support for this under X Windows,
14094         and somebody needs to do this.
14095
14096         * dialog.c:
14097         * dialog.c (Fpopup_dialog_box):
14098         Documented the support for accelerators that was just mentioned.
14099
14100         editfns.c (get_home_directory): Changed behavior under Windows
14101         when HOME not defined; former behavior was irretrievably broken.
14102
14103         * emacs.c:
14104         * emacs.c (main_1):
14105         * emacs.c (main):
14106         * minibuf.c (clear_echo_area_internal):
14107         * minibuf.c (echo_area_append):
14108         * print.c:
14109         * print.c (std_handle_out_external):
14110         * print.c (std_handle_out_va):
14111         * print.c (fatal):
14112         * print.c (write_string_to_stdio_stream):
14113         * print.c (output_string):
14114         * print.c (debug_print):
14115         * print.c (debug_backtrace):
14116         * print.c (debug_short_backtrace):
14117         Cleaned up the code that prints text to stdout so that this can be
14118         changed to output into a console window instead under MS Windows,
14119         as described above.
14120
14121         * eval.c:
14122         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14123         * eval.c (internal_catch):
14124         * eval.c (unwind_to_catch):
14125         * eval.c (throw_or_bomb_out):
14126         * eval.c (condition_case_1):
14127         * eval.c (signal_1):
14128         * eval.c (check_error_state_sanity):
14129         * eval.c (call_with_suspended_errors_1):
14130         * eval.c (call_with_suspended_errors):
14131         * eval.c (reinit_vars_of_eval):
14132         Added code to catch throw loops and check for a pesky bug that may
14133         be gone now.
14134
14135         * event-msw.c:
14136         * event-msw.c (key_needs_default_processing_p):
14137         * event-msw.c (mswindows_wnd_proc):
14138         * event-msw.c (mswindows_modifier_state):
14139         * event-msw.c (emacs_mswindows_quit_p):
14140         * event-msw.c (vars_of_event_mswindows):
14141         a) Added support for using the alt key to select menu items as is
14142         standard under MS Windows.  This is controlled using the variable
14143         menu-accelerator-enabled, just like under X Windows.  There is an
14144         option on the options menu to turn this support on.  I really
14145         think that it should be on by default under Windows, but I'm not
14146         going to make this change yet.
14147
14148         b)  Added support for dynamic display size changes under Windows.
14149
14150         * event-stream.c:
14151         * event-stream.c (maybe_echo_keys):
14152         * event-stream.c (Fnext_event):
14153         * event-stream.c (command_builder_find_leaf):
14154         * event-stream.c (lookup_command_event):
14155         * event-stream.c (execute_command_event):
14156         * event-stream.c (pre_command_hook):
14157         * event-stream.c (post_command_hook):
14158         * event-stream.c (syms_of_event_stream):
14159         * event-stream.c (vars_of_event_stream):
14160         * event-stream.c (complex_vars_of_event_stream):
14161         * events.h (struct command_builder):
14162
14163         a) Tried to clean up a little bit the horribly written x-specific
14164         accelerator code that crept into this file.  I moved this code
14165         into menubar-x.c where it belongs. I also needed to move the
14166         command builder structure into the file events.h because it is
14167         accessed directly by this accelerator code.  What I didn't do, but
14168         which should be done at some point, is to properly abstract this
14169         code using device methods instead of the kludgy way that it
14170         currently hooks into the event code.
14171
14172         b) Added the lisp variables this-command-properties and
14173         last-command- properties, which should be used to synchronize two
14174         adjacent commands in preference to playing games with the variable
14175         this-command, which is typically what happens.
14176
14177         c) Added some slightly nasty code to hook into the lisp support
14178         for shifted- motion-key selection.  This is actually necessary for
14179         somewhat complicated reasons, which are described in
14180         simple.el. (NB: I think the proper thing would be to have the code
14181         that calls the pre and post command hooks also call out to generic
14182         lisp functions in simple.el, where all built-in stuff could be
14183         added.  I will think about this more.)
14184
14185         * event-unixoid.c (poll_fds_for_input):
14186         * lread.c (readchar):
14187         * redisplay-tty.c (tty_clear_frame):
14188         * redisplay-x.c (x_get_gc):
14189         * signal.c (interrupt_signal):
14190         And a whole bunch of other files: fixed up places that printed
14191         directly to stderr to instead call the function stderr_out so that
14192         the changes I made under Windows work correctly.
14193
14194         * filemode.c (mode_string):
14195         Warning fixes.
14196
14197         * frame-msw.c:
14198         * frame-msw.c (mswindows_size_frame_internal):
14199         Fixed the computation of frame size and position to keep the frame
14200         within the workspace area, rather than within the physical
14201         dimensions of the screen, so that the frame doesn't overlap window
14202         manager decorations, such as the start menu and toolbar, typically
14203         at the bottom of the screen.
14204
14205         * frame.c (vars_of_frame):
14206         Changed the default frame title format under MS Windows to consist
14207         of buffername-XEmacs, which is standard under MS Windows.  I think
14208         it might be a good idea to change this everywhere because I think
14209         it is superior to the current frame title format, but this is the
14210         kind of change that is likely to cause some people to get annoyed,
14211         so I'm not making it.
14212
14213         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14214
14215         * gui-msw.c (mswindows_handle_gui_wm_command):
14216         Fixed compile warnings.
14217
14218         * gui-x.c:
14219         * gui-x.c (strdup_and_add_accel):
14220         * gui-x.c (button_item_to_widget_value):
14221         * gui-x.h:
14222         Added code to automatically put an accelerator onto the beginning
14223         of menu items that don't have one as is now the standard, and is
14224         described more later.  Also fixed things so that the menu item
14225         name can be an evaluated expression, again a new standard.
14226
14227         * gui.c:
14228         * gui.c (gui_item_add_keyval_pair):
14229         * gui.c (make_gui_item_from_keywords_internal):
14230         * gui.c (gui_add_item_keywords_to_plist):
14231         * gui.c (gui_item_accelerator):
14232         * gui.c (gui_name_accelerator):
14233         * gui.c (gui_item_included_p):
14234         * gui.c (gui_item_display_flush_left):
14235         * gui.c (gui_item_display_flush_right):
14236         * gui.c (parse_gui_item_tree_item):
14237         * gui.c (parse_gui_item_tree_children):
14238         * gui.c (parse_gui_item_tree_list):
14239         Mule-ized.  Cleanup.  GCPRO addition.
14240
14241         * line-number.c (buffer_line_number):
14242         * lisp.h:
14243         * lisp.h (EMACS_INT_MAX):
14244         Added the manifest constant EMACS_INT_MIN corresponding to the
14245         existing constant EMACS_INT_MAX.  This is partially to fix compile
14246         warnings under Windows, and partly for cleanliness.
14247
14248         * menubar-msw.c:
14249         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14250         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14251         * menubar-msw.c (displayable_menu_item):
14252         * menubar-msw.c (populate_menu_add_item):
14253         * menubar-msw.c (populate_or_checksum_helper):
14254         * menubar-msw.c (populate_menu):
14255         * menubar-msw.c (update_frame_menubar_maybe):
14256         * menubar-msw.c (prune_menubar):
14257         * menubar-msw.c (msw_char_is_accelerator):
14258         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14259         * menubar-msw.c (mswindows_handle_wm_command):
14260         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14261         * menubar-msw.c (mswindows_handle_wm_initmenu):
14262         * menubar-msw.c (mswindows_update_frame_menubars):
14263         * menubar-msw.c (mswindows_free_frame_menubars):
14264         * menubar-msw.c (mswindows_popup_menu):
14265         Fixed a bug in handling accelerators where an extra character
14266         would be displayed in the menu item.  Also generalized the
14267         function displayable_menu_item because it is now used by the
14268         dialog box code as well.  And finally, added code in the functions
14269         that create the menubar to extract a list of accelerators for the
14270         top level menubar, which is used in the event code to determine
14271         whether a particular alt-key combination should be used to invoke
14272         a menu item, or should be passed through to access the standard
14273         XEmacs keymap binding for this key combination.
14274
14275         Much needed GCPROing.
14276
14277         * menubar-x.c:
14278         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14279         * menubar-x.c (menu_item_descriptor_to_widget_value):
14280         * menubar-x.c (restore_in_menu_callback):
14281         * menubar-x.c (x_popup_menu):
14282         * menubar-x.c (menu_move_up):
14283         * menubar-x.c (menu_move_down):
14284         * menubar-x.c (menu_move_left):
14285         * menubar-x.c (menu_move_right):
14286         * menubar-x.c (menu_select_item):
14287         * menubar-x.c (command_builder_operate_menu_accelerator):
14288         * menubar-x.c (menu_accelerator_junk_on_error):
14289         * menubar-x.c (command_builder_find_menu_accelerator):
14290         * menubar-x.c (Faccelerate_menu):
14291         * menubar.h:
14292         Moved a whole bunch of code here that was previously in
14293         event-stream.c as described above.  There is also code connected
14294         to the new standard of adding an accelerator to the beginning of
14295         menu items that don't have one as described above and below.
14296
14297         * menubar.c:
14298         * menubar.c (menu_parse_submenu_keywords):
14299         * menubar.c (Fmenu_find_real_submenu):
14300         * menubar.c (Fnormalize_menu_item_name):
14301         * menubar.c (syms_of_menubar):
14302         * menubar.c (vars_of_menubar):
14303         * menubar.c (complex_vars_of_menubar):
14304
14305         a) Cleaned up a bunch of documentation and improved it.
14306
14307         b) XEmacs now automatically adds an accelerator onto the beginning
14308         of any menu items that don't have one.  I did this because there
14309         will inevitably be some menu items on the main menubar that don't
14310         have accelerators on them because the package that adds that
14311         particular menu item hasn't yet been fixed up to have accelerators
14312         in them and it looked rather strange to have some items with and
14313         some items without accelerators, especially since even in items
14314         without accelerators, you can, at least under windows, still
14315         access the item through an accelerator corresponding to the first
14316         character in the item's name.  If people don't like this behavior,
14317         I can add a variable to turn it off optionally, but I'm not sure
14318         this is a good idea because we really do need to have accelerators
14319         on all of the menu items, and if a package doesn't like the
14320         accelerators being put on the first character, then it should put
14321         the accelerators where they belong.
14322
14323         c) I made a behavior change, which is that the descriptor that
14324         specifies the text of the menu item, which formerly was just a
14325         string, can now also be an evaluated expression.  This makes this
14326         descriptor parallel with all of the others, which could also be
14327         evaluated expressions.  This also obviates the need for the
14328         keyword :label, which was previously listed in the documentation
14329         as unimplemented, and which was for the same purpose.
14330
14331         d) GCPROing.
14332
14333         * ntproc.c:
14334         * ntproc.c (new_child):
14335         * ntproc.c (sys_spawnve):
14336         * ntproc.c (find_child_console):
14337         * ntproc.c (sys_kill):
14338         Fixed compile warnings.  By the way, this file should really go
14339         away entirely, and this will happen as soon as Kirill makes his
14340         final round of process cleanups, which affect the function
14341         call-process.
14342
14343         * process-nt.c:
14344         * process-nt.c (struct nt_process_data):
14345         * process-nt.c (find_process_from_pid):
14346         * process-nt.c (send_signal_the_nt_way):
14347         * process-nt.c (enable_child_signals):
14348         * process-nt.c (find_child_console):
14349         * process-nt.c (send_signal_the_95_way):
14350         * process-nt.c (nt_finalize_process_data):
14351         * process-nt.c (ensure_console_window_exists):
14352         * process-nt.c (nt_create_process):
14353         * process-nt.c (nt_kill_child_process):
14354         * process-nt.c (nt_kill_process_by_pid):
14355         * process-nt.c (nt_open_network_stream):
14356         * process-nt.c (vars_of_process_nt):
14357         Copied over code from Emacs 20.5 to correctly send signals to sub-
14358         processes under Windows 95.  Also added code to automatically
14359         create and hide console window when a sub-process is created under
14360         Windows 95, which obviates the need for the separate runemacs.exe
14361         executable, and finally implemented some variables that were
14362         implemented in Emacs 20.5, but previously not in XEmacs.  These
14363         include mswindows- start-process-share-console and
14364         mswindows-start-process-inherit-error-mode. (Both of these only
14365         apply to Windows 95.)
14366
14367         * regex.c (regex_compile): Fixed a compile warning.
14368
14369         * select-msw.c:
14370         * select-msw.c (mswindows_own_selection):
14371         * select-msw.c (mswindows_get_foreign_selection):
14372         * select-msw.c (mswindows_disown_selection):
14373         * select-msw.c (console_type_create_select_mswindows):
14374         * select-msw.c (syms_of_select_mswindows):
14375         Cleaned up the file and implemented the device method
14376         selection_exists_p, which had accidentally been left out.  Also
14377         removed four lisp functions that were remnants from before the
14378         time when the selection code was properly device abstracted.
14379         These functions are no longer needed because there are generic
14380         equivalents, and because they were added recently and don't exist
14381         in FSF Emacs, I don't think there's any problem with just deleting
14382         them.
14383
14384         * sysdep.c:
14385         * sysdep.c (sys_subshell):
14386         Fixed a compile warning, although in this case there's probably
14387         something wrong with this code, and it ought to be looked into
14388         more thoroughly by somebody who understands it.
14389
14390         * window.c:
14391         * window.c (Fwindow_text_area_height):
14392         * window.c (Fwindow_width):
14393         * window.c (Fwindow_full_width):
14394         * window.c (Fwindow_pixel_width):
14395         * window.c (debug_print_window):
14396         * window.c (syms_of_window):
14397         Added functions window-text-area-height and window-full-width,
14398         which are functions for returning various width and height
14399         characteristics of a window. (One of these functions is necessary
14400         for making the file dialog box work correctly, and the other one
14401         was added for completeness.)  Also added a table to the
14402         documentation for window-height which describes the entire scheme
14403         for accessing width and height characteristics of a window.
14404
14405 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14406
14407         * nt.c (fstat): Added a comment for another problem with
14408         non-encapsulated [f]stat(), reported by Adrian Aichner
14409         <aichner@ecf.teradyne.com>.
14410
14411 2000-03-11  Andy Piper  <andy@xemacs.org>
14412
14413         * window.c (make_dummy_parent): initialize subwindow instance
14414         cache.
14415         (Fset_window_configuration): zero extent_modiff.
14416
14417 2000-03-10  Andy Piper  <andy@xemacs.org>
14418
14419         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14420         more changes can be triggered.
14421         (Fredisplay_frame): ditto.
14422         (Fredraw_device): ditto.
14423         (Fredisplay_device): ditto.
14424         (redisplay_frame): make non-static.
14425         (redisplay_frame): call update_frame_gutter_geometry outside of
14426         display proper.
14427
14428         * gutter.h: declare update_frame_gutter_geometry.
14429
14430         * redisplay.h: declare redisplay_frame.
14431
14432         * gutter.c (update_frame_gutter_geometry): move geometry changes
14433         in update_frame_gutters here. Geometry changes can only occur
14434         outside of redisplay.
14435         (update_frame_gutters): remove geometry change code.
14436         (Fredisplay_gutter_area): make sure that we are in display when we
14437         update and that we have flushed any size changes.
14438
14439 2000-03-11  Andy Piper  <andy@xemacs.org>
14440
14441         * alloc.c (pdump_dump_data): remove i & count shadows.
14442
14443 2000-02-27  Mike Alexander  <mta@arbortext.com>
14444
14445         * sysdep.h: Declare pdump_read_file
14446
14447         * sysdep.c (pdump_read_file): New function
14448
14449         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14450         dump data
14451
14452 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14453
14454         * lrecord.h: add `lrecord_type_pgsetenv'.
14455
14456 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14457
14458         * symsinit.h: declare (vars|syms)_of* functions.
14459         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14460
14461 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14462
14463         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14464
14465         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14466         GCCs.
14467
14468         * emacs.c (main_1): Call postgres initialization code.
14469
14470         * postgresql.h: New file.  PostgreSQL RDBMS support.
14471         * postgresql.c: New file.
14472
14473 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14474
14475         * redisplay-output.c (redisplay_output_display_block): Disable
14476         redundant code.
14477
14478 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14479
14480         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14481         (Fcanna_henkan_next): Ditto.
14482         (Fcanna_bunsetu_henkou): Ditto.
14483         (Fcanna_henkan_kakutei): Ditto.
14484         (Fcanna_henkan_end): Ditto.
14485         (Fcanna_henkan_quit): Ditto.
14486         (Fcanna_henkan_next): Set retun value correctly.
14487         (c2mu): Use unsigned char instead of signed char.
14488
14489 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14490
14491         * emacs.c (main_1): Always call syms_of_gui.
14492         * inline.c: include gui.h
14493
14494 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14495
14496         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14497         converted to Lisp_Object.
14498         (Qtop_bottom): New variable.
14499         (syms_of_redisplay): Initialize it.
14500         * redisplay.h (Vvisible_bell): Ditto.
14501         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14502         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14503         only flash top and bottom.
14504
14505 2000-03-08  Andy Piper  <andy@xemacs.org>
14506
14507         * buffer.c (Frename_buffer): record new buffer name the right way.
14508
14509 2000-03-08  Andy Piper  <andy@xemacs.org>
14510
14511         * glyphs.c (update_subwindow): increase hash depth so that widget
14512         items get picked up properly.
14513
14514         * redisplay-output.c (compare_runes): increase hash depth so that
14515         widget items get picked up properly.
14516
14517 2000-03-08  Andy Piper  <andy@xemacs.org>
14518
14519         * gutter.c (output_gutter): add some debug.
14520
14521         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14522         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14523         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14524
14525         * redisplay-output.c (compare_runes): use display_hash to
14526         determine if glyphs really are not the same.
14527
14528         * glyphs.c (update_subwindow): check display_hash to see if
14529         anything really needs to be updated. If not then do
14530         nothing. Record the display_hash after updating.
14531         (image_instance_equal): compare the image_instance face also.
14532
14533 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14534
14535         * redisplay.h: Fix comment style.
14536
14537 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14538
14539         * consle-msw.h (struct mswindows_frame):
14540         Added new member paint_pending to indicate whether a WM_PAINT
14541         magic event has been queued for this frame.
14542
14543         * event-msw.c (mswindows_drain_windows_queue):
14544         Don't queue a WM_PAINT magic event if one is already queued.
14545         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14546
14547         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14548
14549 2000-03-07  Didier Verna  <didier@xemacs.org>
14550
14551         * dired.c: #include `regex.h' after `sysfile.h'.
14552
14553 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14554
14555         * sound.c (init_nas_sound): Fix compiler warning.
14556
14557         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14558         (FREE_STRUCT_P):
14559         (MARK_STRUCT_AS_FREE):
14560         (MARK_STRUCT_AS_NOT_FREE):
14561         Make `gcc -fstrict-aliasing' work properly.
14562
14563 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14564
14565         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14566         (mswindows_delete_device): Call CoUnnitialize().
14567
14568         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14569
14570 2000-02-25    <CraigL@DyCon.com>
14571
14572         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14573         <errno.h>.
14574
14575         * sysdep.c: This extern declaration for environ prevents MinGW
14576         from finding the variable in CRTDLL.DLL.
14577
14578         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14579         windows headers.
14580         (SHGFI_EXETYPE): ..
14581         (WM_MOUSEWHEEL): ..
14582         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14583         definitions.
14584         (MMRESULT): Removed, now defined in cygwin's windows headers.
14585         (TIMECAPS): ..
14586         (uid_t,gid_t,pid_t,ssize_t): ..
14587         (_timeb): Removed, MinGW defines both _timeb and timeb.
14588         (HAVE_H_ERRNO): Added.
14589         (HAVE_TZNAME): Added, configure is not detecting this.
14590
14591 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14592
14593         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14594         * syntax.c (syntax_match): Use it.
14595
14596         * cmds.c: Import auto-fill-chars from FSF Emacs.
14597         (Vauto_fill_chars): New variables.
14598         (internal_self_insert): Check Vauto_fill_chars.
14599         (vars_of_cmds):
14600         Declare auto-fill-chars as a Lisp variable and initialize it.
14601
14602 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14603
14604         * fileio.c (Fmake_symbolic_link):
14605         (Ffile_symlink_p):
14606         Run handlers even if local machine doesn't have symlinks.
14607
14608 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14609
14610         * event-msw.c (mswindows_drain_windows_queue):
14611         Don't generate paint magic events for non-XEmacs frames.
14612
14613 2000-03-05  Andy Piper  <andy@xemacs.org>
14614
14615         * redisplay.c (redisplay_frame): generate_displayable_area and
14616         friends assumes that we are not in GC, we therefore have to make
14617         sure that this doesn't happen.
14618
14619         * gutter.c (calculate_gutter_size): generate_displayable_area
14620         assumes that we are not in GC, we therefore have to make sure that
14621         this doesn't happen.
14622
14623 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14624
14625         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14626
14627 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14628
14629         * redisplay.c (regenerate_window): Make sure we set a sane value
14630         for end_pos even if we jump out of the loop.
14631         (regenerate_window): Answer Ben's question :-).
14632         (start_end_of_last_line): Add may_error argument.
14633         (start_of_last_line):
14634         (end_of_last_line): Pass may_error = 0.
14635         (end_of_last_line_may_error): New function.
14636         (pixel_to_glyph_translation): Use it, so we don't crash in
14637         event_to_glyph.
14638
14639 2000-03-04  Andy Piper  <andy@xemacs.org>
14640
14641         * window.h (struct window): add gutter_extent_modiff.
14642
14643         * window.c (allocate_window): zero out gutter_extent_modiff.
14644
14645         * redisplay.h: declare sync_display_line_structs.
14646
14647         * redisplay.c (add_glyph_rune): add a better comment.
14648
14649         * redisplay-output.c (sync_display_line_structs): made non-static.
14650         (compare_runes): remove unneccesary glyph cachel access.
14651
14652         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14653
14654         * gutter.c (output_gutter): don't output the gutter if extent
14655         changes only involve extents in buffers. use 4 sets of display
14656         lines.
14657         (gutter_extent_signal_changed_region_maybe): new function. Mark
14658         extents in gutters as changed.
14659         (update_frame_gutters): use 4 sets of display lines.
14660         (reset_gutter_display_lines): ditto.
14661         (free_frame_gutters): ditto.
14662         (redraw_exposed_gutter): force output of gutters.
14663
14664         * frame.h (struct frame): add 4 sets of gutter display lines.
14665
14666         * extents.c: (extent_changed_for_redisplay): signal changes to
14667         extents in strings in the gutter as well as extents in buffers.
14668
14669 2000-03-02  Andy Piper  <andy@xemacs.org>
14670
14671         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14672
14673         * frame.c (Fmake_frame): make sure the gutters get initialized
14674         after the frame is visible.
14675         (set_frame_selected_window): re-arrange compilation macros a
14676         little.
14677         (change_frame_size_1): mark gutters changed.
14678
14679         * device.c (Fset_device_class): mark gutters changed.
14680
14681 2000-03-01  Andy Piper  <andy@xemacs.org>
14682
14683         * window.c (window_top_frame_gutter_height): deleted.
14684         (window_bottom_frame_gutter_height): ditto.
14685         (window_left_frame_gutter_height): ditto.
14686         (window_right_frame_gutter_height): ditto.
14687         (window_top_gutter_height): don't use them.
14688         (window_bottom_gutter_height): ditto.
14689         (window_left_gutter_width): ditto.
14690         (window_right_gutter_width): ditto.
14691         (Fsplit_window): ditto.
14692         (Fwindow_pixel_edges): don't use border dimensions here.
14693
14694         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14695         (update_scrollbar_instance): ditto.
14696
14697         * redisplay.c (generate_modeline): don't take gutters into account.
14698         (generate_modeline): ditto.
14699         (redisplay_frame): small gutter display optimization.
14700
14701         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14702
14703         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14704         gutters into account.
14705
14706         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14707         for window position and type.
14708
14709         * gutter.c (get_gutter_coords): fix for frame gutters.
14710         (update_frame_gutters): update frame geometry if the gutters have
14711         changed.
14712         (init_frame_gutters): record current gutter geometries.
14713
14714         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14715         var.
14716         (mswindows_widget_instantiate): ditto.
14717
14718         * frame.h (struct frame): add current_gutter_bounds.
14719
14720         * frame.c (change_frame_size_1): position window and minibuffer
14721         appropriately taking into account the frame gutters.
14722
14723         * frame-x.c: (x_initialize_frame_size): take into account the
14724         frame gutters.
14725
14726 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14727
14728         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14729
14730 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14731
14732         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14733
14734 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14735
14736         * file-coding.c (reset_decoding_stream): Clear previous
14737         detection state when autodetect.
14738
14739 2000-02-29  Didier Verna  <didier@xemacs.org>
14740
14741         * extents.c (set_extent_glyph_1): don't require extents to be
14742         attached.
14743
14744 2000-02-27  Andy Piper  <andy@xemacs.org>
14745
14746         * gutter.c (Fset_default_gutter_position): don't default left and
14747         right gutter visibility to t.
14748         (Fset_default_gutter_position): run
14749         default-gutter-position-changed-hook.
14750         (syms_of_gutter): add default-gutter-position-changed-hook.
14751
14752 2000-02-26  Andy Piper  <andy@xemacs.org>
14753
14754         * specifier.c (Fmake_specifier): add gutter references.
14755
14756         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14757
14758         * lisp.h: declare Fvalid_plist_p.
14759
14760         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14761         as changed.
14762         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14763         well as its visibility so that it gets reconstructed.
14764         (construct_window_gutter_spec): new function. Construct a string
14765         to be displayed in the gutter from a plist of strings. Take care
14766         to only use elements that are declared as visible.
14767         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14768         WINDOW_GUTTER.
14769         (gutter_validate): allow plists of strings in the specifier.
14770         (gutter_specs_changed): construct the real_gutter from the gutter
14771         specs using construct_window_gutter_spec.
14772         (gutter_visible_validate): gutter-visible is a new specifier type.
14773         (Fgutter_visible_specifier_p): new function for the new specifier.
14774         (syms_of_gutter): declare gutter-visible and
14775         Fgutter_visible_specifier_p.
14776         (specifier_type_create_gutter): intitalize new gutter-visible
14777         specifier.
14778         (reinit_specifier_type_create_gutter): ditto.
14779         (specifier_vars_of_gutter): use new specifier type for gutter
14780         visibility.
14781         (init_frame_gutters): construct real_gutter correctly.
14782         (Fgutter_specifier_p): beef up documentation.
14783         (Fgutter_size_specifier_p): ditto.
14784
14785         * winslots.h: add real_gutter slots.
14786
14787 2000-02-25  Andy Piper  <andy@xemacs.org>
14788
14789         * device-msw.c: Be kind to older cygwin versions. From Raymond
14790         Toy <toy@rtp.ericsson.se>.
14791
14792         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14793         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14794
14795 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14796
14797         * elhash.c (MARK_OBJ): Practice macro hygiene.
14798
14799 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14800
14801         * miscplay.c: s/__inline__/inline/g;
14802         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14803         (get_device_compdc): INLINE ==> static inline
14804         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14805         find -name '*.h' | \
14806         xargs global-replace \
14807         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14808
14809 2000-02-25  Andy Piper  <andy@xemacs.org>
14810
14811         * window.c (window_top_frame_gutter_height): new function.
14812         (window_top_window_gutter_height): ditto.
14813         (window_top_gutter_height): use them.
14814         (window_bottom_frame_gutter_height): new function.
14815         (window_bottom_window_gutter_height): ditto.
14816         (window_bottom_gutter_height): use them.
14817         (window_left_window_gutter_width): new function.
14818         (window_left_frame_gutter_width): ditto.
14819         (window_left_gutter_width): use them.
14820         (window_right_window_gutter_width): new function.
14821         (window_right_frame_gutter_width): ditto.
14822         (window_right_gutter_width): use them.
14823         (window_pixel_height): new function. calulate window pixel height
14824         with frame gutter involvement.
14825         (Fsplit_window): calculate new sizes taking frame gutters into
14826         account.
14827         (window_char_height_to_pixel_height): don't include frame gutters.
14828         (window_char_height): use window_pixel_height.
14829         (window_pixheight): rename from window_pixel_height.
14830         (change_window_height): use it.
14831         (window_pixel_height_to_char_height): don't include frame gutters.
14832         (window_char_width_to_pixel_width): ditto.
14833
14834 2000-02-25  Andy Piper  <andy@xemacs.org>
14835
14836         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14837         if it is.
14838
14839 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14840
14841         * alloc.c (staticpro):
14842         (staticpro_nodump):
14843         (dumpstruct):
14844         (dumpopaque):
14845         (pdump_wire):
14846         (pdump_wire_list):
14847         (compact_string_chars):
14848         (pdump_dump_wired):
14849         Convert:  if (foo) abort();  ==>  assert (! foo);
14850
14851         * eldap.c (Fldap_search_basic):
14852         (Fldap_add):
14853         (Fldap_modify):
14854         (Fldap_delete):
14855         Fix compiler warnings, and possible crashes if (random) return
14856         value were to be used.
14857
14858 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14859
14860         * device-msw.c: Workaround ResetDC failure.
14861
14862         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14863         applying a devmode.
14864
14865         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14866         (mswindows_text_width): Do not start printer page.
14867
14868         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14869
14870         * glyphs-msw.c: Added image methods to msprinter console and
14871         msprinter-specific image instantiation.
14872
14873 2000-02-20  Mike Alexander  <mta@arbortext.com>
14874
14875         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14876         to avoid crashes when selection-sets-clipboard is on
14877         (mswindows_own_selection): ditto
14878
14879 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14880
14881         * glyphs-msw.c:
14882         * redisplay-msw.c (get_frame_dc):
14883         (get_frame_compdc):
14884         * console-msw.h:
14885         * device-msw.c (mswindows_init_device):
14886         (mswindows_delete_device):
14887         (msprinter_init_device):
14888         (msprinter_delete_device):
14889         * frame-msw.c (mswindows_init_frame_1):
14890         (mswindows_delete_frame):
14891         (msprinter_init_frame_3):
14892         (msprinter_delete_frame): Move compatible DC to device object from
14893         frame object, for both mswindows and msprinter. Only one at a time
14894         is needed, it is a real waste to have one per frame!
14895
14896 2000-02-23  Andy Piper  <andy@xemacs.org>
14897
14898         * glyphs.c: add dynamic width and height elements.
14899         (image_instance_equal): ditto.
14900
14901         * glyphs-widget.c (widget_query_geometry): calculate width and
14902         height dynamically if required.
14903         (initialize_widget_image_instance): initialize dynamic dimensions.
14904         (widget_instantiate): pick-up dynamic dimensions.
14905
14906         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14907         dynamic determination. Add appropriate macros.
14908
14909         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14910         dimensions safe.
14911         (WINDOW_GUTTER_SIZE): ditto.
14912         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14913
14914         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14915         inline.
14916         (get_frame_dc): ditto.
14917
14918         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14919         here.
14920
14921 2000-02-23  Martin Buchholz <martin@xemacs.org>
14922
14923         * XEmacs 21.2.31 is released.
14924
14925 2000-02-22  Ben Wing <ben@xemacs.org>
14926
14927         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14928
14929 2000-02-22  Andy Piper  <andy@xemacs.org>
14930
14931         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14932
14933 2000-02-21  Mike Sperber <mike@xemacs.org>
14934
14935         * .dbxrc:
14936         * .gdbinit:
14937         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14938         variables.
14939
14940 2000-02-21  Mike Sperber <mike@xemacs.org>
14941
14942         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14943
14944 2000-02-21  Martin Buchholz <martin@xemacs.org>
14945
14946         * XEmacs 21.2.30 is released.
14947
14948 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14949
14950         Performance hacking.
14951         * *.c (syms_of_*):
14952         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14953         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14954         * emacs.c (main_1):
14955         * lisp.h (DEFUN):
14956         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14957         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14958         * symeval.h (DEFVAR_SYMVAL_FWD):
14959         * symbols.c (guts_of_unbound_marker):
14960         Make all c_readonly objects also lisp_readonly and marked for life.
14961         * lrecord.h (struct lrecord_implementation):
14962         Document flags better.
14963         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14964         * lrecord.h (DECLARE_LRECORD):
14965         * lrecord.h (XSETRECORD):
14966         * lrecord.h (RECORDP):
14967         * lrecord.h (RECORD_TYPEP):
14968         * lrecord.h (RECORD_MARKER): New.
14969         * lrecord.h (error_check_*):
14970         * lrecord.h (CONCHECK_NONRECORD):
14971         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14972         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14973         * lrecord.h (set_lheader_implementation):
14974         * lrecord.h (enum lrecord_type): New.
14975         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14976         * alloc.c (disksave_object_finalization_1):
14977         * alloc.c (mark_object):
14978         * alloc.c (lrecord_type_index):
14979         * alloc.c (tick_lcrecord_stats):
14980         * alloc.c (Fgarbage_collect):
14981         * alloc.c (init_alloc_once_early):
14982         * alloc.c (pdump_load):
14983         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14984         * alloc.c (lrecord_type_index): Delete.
14985         Make lisp object type indexes be constant.
14986           Makes (byte-compile) 5% faster.
14987         Put all marker functions into their own array.
14988           Makes (garbage-collect) 5% faster.
14989         Optimize SYMBOL_VALUE_MAGIC_P.
14990           Makes (byte-compile) 2-3% faster.
14991         * config.h.in (gc_checking_assert): New.
14992         * alloc.c: Use gc_checking_assert().
14993         * .dbxrc: Make compatible with new object type implementation.
14994         * .gdbinit: Make compatible with new object type implementation.
14995         * alloc.c: Delete all symbols defined only for debugging, such as
14996         Lisp_Type_Vector and lrecord_charset.
14997
14998 2000-02-21  Andy Piper  <andy@xemacs.org>
14999
15000         * gui-msw.c (Fmswindows_shell_execute): fix file location
15001         problems.
15002
15003         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15004         unshowing so that set_window_buffer doesn't undo
15005         kill_buffer_hook's hard work.
15006
15007         * glyphs-widget.c (tab_control_query_geometry): don't count the
15008         first item when calculating geometry.
15009
15010         * glyphs.c (map_subwindow): remove redundant code.
15011         (update_frame_subwindows): be more circumspect about when to
15012         update subwindows.
15013
15014         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15015         when items haven't changed. Update faces if faces have changed as
15016         well as just the widget face.
15017         (x_tab_control_update): Update faces if faces have changed as well
15018         as just the widget face.
15019
15020 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15021
15022         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15023         registration.
15024         (build_syscolor_string): Use mswindows_color_to_string to try to
15025         get a named color.
15026         (mswindows_device_system_metrics): Reverse the foreground and
15027         background colors so that they match the documentation.
15028
15029         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15030         they match the default Windows palette.
15031         (mswindows_color_to_string): New function.
15032
15033 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15034
15035         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15036
15037 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15038
15039         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15040         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15041
15042         * symbols.c (init_symbols_once_early): Removed obsolete
15043         DATA_SEG_BITS related kludge.
15044         (defvar_magic): Ditto.
15045
15046         * malloc.c: Removed obsolete DATA_SEG_BITS
15047         * ralloc.c: Ditto.
15048         * mem-limits.h: Ditto.
15049
15050         * Makefile.in.in: Removed obsolete HAVE_SHM
15051         * emacs.c: Ditto.
15052
15053 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15054
15055         *  device-msw.c (mswindows_delete_device): Free DDE string
15056         handles.
15057
15058 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15059
15060         * keymap.c (get_keyelt):
15061         * unexnt.c (unexec):
15062         * vm-limit.c (memory_warnings):
15063         * ntheap.c (recreate_heap):
15064         * ntheap.h (UNINIT_PTR):
15065         * select-msw.c (Fmswindows_get_clipboard):
15066         (Fmswindows_set_clipboard):
15067         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15068         * objects-msw.c:
15069         * menubar-msw.c (displayable_menu_item):
15070         * glyphs-msw.c:
15071         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15072         * sysdep.c (sys_subshell):
15073         * process-nt.c (nt_create_process):
15074         * nt.c (normalize_filename):
15075         (dostounix_filename):
15076         (unixtodos_filename):
15077         * ntproc.c (win32_executable_type):
15078         * ntplay.c (play_sound_data_1):
15079         (play_sound_file):
15080         * editfns.c (get_home_directory):
15081         * event-msw.c (struct winsock_stream):
15082         (mswindows_dde_callback):
15083         * device-msw.c (msprinter_init_device):
15084         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15085
15086         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15087         mswindows_clear_toolbar were swapped!
15088
15089         * objects-msw.c:(colormap_t):
15090         (fontmap_t):
15091         * emacs.c (struct standard_args): Fixed const jumble.
15092
15093         * glyphs-widget.c (update_widget): Fixed comparison notation.
15094
15095         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15096
15097         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15098         __declspec(noreturn) syntax.
15099
15100 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15101
15102         * eldap.c (Fldap_open):
15103         (Fldap_search_basic):
15104         (Fldap_add):
15105         (Fldap_modify):
15106         Use new coding system conversion macros.
15107
15108 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15109
15110         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15111
15112 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15113
15114         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15115         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15116
15117         * eldap.c (Qadd, Qreplace): New constant symbols
15118         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15119         interruptions by XEmacs signals
15120         Remove unnecessary calls to slow_down_interrupts and
15121         speed_up_interrupts
15122         (Fldap_search_basic): Renamed from Fldap_search_internal
15123         Added new optional parameter VERBOSE that triggers the
15124         display of progress messages
15125         Remove unnecessary calls to slow_down_interrupts and
15126         speed_up_interrupts
15127         LDAP result code analysis rewritten
15128         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15129         (syms_of_eldap): Define the new symbols and functions
15130
15131
15132 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15133
15134         * realpath.c: Determine PATH_MAX maximally portably.
15135
15136         * insdel.c (bytecount_to_charcount): Optimize.
15137         The function used to be optimized for entirely ASCII sequences.
15138         Now it is optimized for successive characters from the same
15139         charset.  This also wins big for _mostly_ ASCII sequences.
15140
15141         * fileio.c (Ffile_truename): convert return from realpath() using
15142         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15143         - Rewrite GCPROing slightly.
15144
15145         * sysdep.c (sys_open): Do filename conversion, like all other
15146         sys_* functions.  Fixes bug:
15147         (let ((file-name-coding-system 'iso-8859-2))
15148            (write-region x y latin2-name))
15149         ==> writes filename using internal encoding.
15150
15151 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15152
15153         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15154         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15155         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15156         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15157         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15158         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15159         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15160         (CONST_IF_NOT_DEBUG): Delete.
15161         * alloc.c (this_one_is_unmarkable): Delete.
15162         (mark_object): Don't check for this_one_is_unmarkable. Use the
15163         c_readonly flag instead.
15164         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15165
15166 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15167
15168         * event-msw.c (mswindows_drain_windows_queue):
15169         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15170         away redundant repaint events.
15171
15172 2000-02-17  Andy Piper  <andy@xemacs.org>
15173
15174         * redisplay.h: declare mark_redisplay_structs.
15175
15176         * redisplay.c (redisplay_window):
15177         (redisplay_frame): don't check subwindows_state_changed.
15178         (mark_redisplay): mark gutters here.
15179
15180         * glyphs.c: (instantiate_image_instantiator): always layout if we
15181         haven't done so already.
15182         (allocate_image_instance): don't mark as dirty.
15183         (update_subwindow): bind inhibit_quit.
15184
15185         * gutter.c (mark_gutters): new function.
15186
15187         * glyphs-x.c (x_update_widget): Always resize to get round a
15188         widget bug.
15189
15190         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15191         breaking absolutely everything.
15192
15193         * gutter.h: declare mark_gutters.
15194
15195 2000-02-16  Martin Buchholz <martin@xemacs.org>
15196
15197         * XEmacs 21.2.29 is released.
15198
15199 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15200
15201         * fns.c (size_bit_vector): Fix computation of the size.
15202
15203 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15204
15205         * *.[ch]: Change CONST to const globally.
15206         find -name '*.[ch]' | \
15207         xargs global-replace \
15208         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15209         - Remove vestigial references to CONST_IS_LOSING
15210
15211 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15212
15213         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15214         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15215         events instead of dispatching them directly.
15216         (mswindows_handle_paint): New function to do repainting.
15217         (mswindows_wnd_proc):
15218         (emacs_mswindows_handle_magic_event): Call above function.
15219
15220 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15221
15222         * objects-msw.c (mswindows_create_font_variant): Return the new
15223         font handle.
15224         (initialize_font_instance): Get font metrics from the underlined
15225         variant of the font to cope with the case where the underlined
15226         font has a bigger descent.
15227
15228 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15229
15230         * gui.c (gui_item_accelerator): Return the first underlined
15231         character in item name.
15232
15233 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15234
15235         * lisp.h: Added Qprinter.
15236
15237         * general.c (syms_of_general): Initialized it.
15238
15239         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15240         (get_frame_dc):
15241         (get_frame_compdc): Made inline.
15242
15243         * console.h (struct console_methods): Added eject_page method.
15244
15245         * frame.h: Added FRAME_DISPLAY_P and friends.
15246         Aligned backslahes in many macros in more readable fashion.
15247         Added page_number to struct frame, and an accessor macro
15248         for it.
15249
15250         * defice.h: Added DEVICE_DISPLAY_P and friends.
15251
15252         * device.c (Fdevice_printer_p): Used these.
15253
15254         * frame.c (allocate_frame_core): Initialize page number.
15255         (Fprint_job_page_number):
15256         (Fprint_job_eject_page): Implemented.
15257
15258         * frame-msw.c (msprinter_eject_page): Added method.
15259         (msprinter_start_page): Added.
15260
15261         * window.c (Fwindow_truncated_p): Fixed docstring.
15262         (Fwindow_last_line_visible_height): Implemented.
15263
15264 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15265
15266         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15267
15268 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15269
15270         * syntax.c (scan_words): Always advance at least one character.
15271
15272 2000-02-13  Andy Piper  <andy@xemacs.org>
15273
15274         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15275         to make sure the glyph is in the cachels.
15276
15277         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15278         global image instance flag.
15279         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15280         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15281
15282         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15283         (Fset_image_instance_property): mark layout as changed.
15284         (invalidate_glyph_geometry_maybe): mark layout as changed.
15285         (glyph_width): use new NEEDS_LAYOUT macro.
15286         (glyph_ascent): ditto.
15287         (glyph_descent): ditto.
15288         (glyph_height): ditto.
15289         (image_instance_layout): mark layout as clean after laying out.
15290         (update_subwindow): don't mark layout as clean here.
15291
15292         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15293         should no longer be needed.
15294
15295         * glyphs-x.c (x_update_widget): sanitize asserts.
15296         (x_finalize_image_instance): sanitize assignment to widgets.
15297
15298         * glyphs-widget.c (widget_instantiate): don't need to clear the
15299         layout flag here.
15300
15301 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15302
15303         * sysdep.c (getcwd): Use standard prototype.
15304         * sysdep.h (getcwd): Use standard prototype.
15305
15306         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15307         (sequence, start, end).
15308         Remove redundant type checking.
15309         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15310         view of `caller-protects') to avoid a crash where the real fix was
15311         found elsewhere.
15312
15313 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15314
15315         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15316
15317         * s/sol2.h: Remove feature macro initialization.
15318
15319         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15320         (vector_hash): New.  Code from internal_hash.
15321         * lrecord.h:
15322         Fix up allocation subsystem comments.
15323
15324         * config.h.in: Add __EXTENSIONS__ for Solaris.
15325
15326         * systime.h (EMACS_GETTIMEOFDAY): New.
15327         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15328         Remove Solaris-specific code.
15329         Use void* for the (ignored) second arg for gettimeofday().
15330
15331         * elhash.c (hash_table_hash): Implement it, finally.
15332         * elhash.c:  Use hashcode_t.
15333
15334         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15335         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15336
15337         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15338         * fns.c (size_bit_vector):
15339         * alloc.c (size_vector):
15340         (make_vector_internal):
15341         (make_bit_vector_internal):
15342         (sweep_bit_vectors_1):
15343         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15344
15345 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15346
15347         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15348         Include strings.h to avoid warnings for bzero and strcasecmp.
15349
15350 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15351
15352         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15353         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15354
15355         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15356         sequence.
15357
15358 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15359
15360         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15361         use a value field instead.
15362         (symbol_value_forward_forward): Use value field.
15363         (DEFVAR_SYMVAL_FWD): Use value field.
15364         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15365         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15366         (DEFVAR_CONST_INT): Ditto.
15367         (DEFVAR_BOOL): Ditto.
15368         (DEFVAR_CONST_BOOL): Ditto.
15369         (DEFVAR_INT_MAGIC): Ditto.
15370         (DEFVAR_BOOL_MAGIC): Ditto.
15371
15372         * symbols.c (guts_of_unbound_marker): Use value field.
15373         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15374         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15375
15376         * lisp.h: Declare dumpopaque and noninteractive1.
15377
15378         * alloc.c (dumpopaque): Added.
15379         (pdump_dump_opaquevec): Added.
15380         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15381         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15382         noninteractive.
15383
15384 2000-02-10  Andy Piper  <andy@xemacs.org>
15385
15386         * glyphs.c (image_instance_layout): if the size changes, mark it
15387         as such.
15388
15389         * redisplay-output.c (redisplay_output_layout): Update the
15390         subwindow here.
15391         (redisplay_output_subwindow): ditto.
15392
15393         * glyphs.c (update_subwindow): make sure we reset flags for
15394         layouts as well as everything else.
15395
15396         * glyphs-widget.c (layout_layout): don't need to set the instances
15397         dimensions here.
15398
15399 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15400
15401         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15402         not HAVE_DLOPEN, which is a lower-level thing.
15403
15404         * .cvsignore: Ignore gmon.out
15405
15406 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15407
15408         * .cvsignore: Ignore portable dumper xemacs.dmp file
15409
15410 2000-02-09  Andy Piper  <andy@xemacs.org>
15411
15412         * redisplay-output.c (redisplay_output_layout): be more clever
15413         about when we output based on the changed flags.
15414
15415         * glyphs.h (struct image_instantiator_methods): add update_method.
15416         (struct Lisp_Image_Instance): add changed flags. Declare new
15417         macros for manipulating them.
15418
15419         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15420         (image_instance_parent_glyph): find an image_instance's parent
15421         glyph or image_instance.
15422         (image_instance_layout): mark the size as changed.
15423         (set_image_instance_dirty_p): new function. mark an image
15424         instance, plus all of its parents, as dirty.
15425         (Fset_image_instance_property): use it.
15426         (Fglyph_animated_timeout_handler): use it.
15427         (update_subwindow): call update_widget and device methods for
15428         update_subwindow. Mark all changed flags as clean.
15429         (Fresize_subwindow): mark size as changed.
15430
15431         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15432         failures.
15433         (x_update_subwindow): only resize subwindows here.
15434         (x_update_widget): new function. Update all changed properties of
15435         a widget.
15436         (x_resize_subwindow): deleted.
15437         (x_widget_set_property): deleted.
15438         (x_progress_gauge_set_property): deleted.
15439         (x_progress_gauge_update): new function. Implement recorded
15440         changes.
15441         (x_tab_control_update): ditto.
15442         (x_tab_control_set_property): deleted.
15443         (console_type_create_glyphs_x): declare new functions.
15444         (image_instantiator_format_create_glyphs_x): ditto.
15445
15446         * glyphs-widget.c (widget_set_property): mark text changed.
15447         (update_widget): new function. Update properties of a widget.
15448         (widget_instantiate): for layouts make sure we set their
15449         children's parent correctly.
15450         (tab_control_set_property): new function. Record changes that will
15451         take place under redisplay's control.
15452         (progress_gauge_set_property): ditto.
15453         (image_instantiator_progress_guage): declare new functions.
15454         (image_instantiator_tab_control): ditto.
15455
15456         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15457         now.
15458         (mswindows_update_widget): new function. Update all properties on
15459         a widget that have changed.
15460         (mswindows_button_update): new function. Update a button's set
15461         state.
15462         (mswindows_tab_control_update): new function. Update the items in
15463         a tab.
15464         (mswindows_tab_control_set_property): deleted.
15465         (mswindows_progress_gauge_update): new function. Update the
15466         progress gauge's progress.
15467         (mswindows_widget_set_property): deleted. This is all done
15468         asynchronously now.
15469         (mswindows_progress_gauge_set_property): ditto.
15470         (console_type_create_glyphs_mswindows): declare new methods.
15471         (image_instantiator_format_create_glyphs_mswindows): ditto.
15472
15473         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15474         (msprinter_set_frame_properties): ditto.
15475
15476         * console.h (struct console_methods): Add update_widget_method.
15477
15478 2000-02-09  Andy Piper  <andy@xemacs.org>
15479
15480         * gui-msw.c (Fmswindows_shell_execute): Make
15481         mswindows-shell-execute industrial strength.
15482
15483 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15484
15485         * lrecord.h: Make macro argument `props' match member function `plist'.
15486         * fns.c (Fget):
15487         * fns.c (Fput):
15488         * fns.c (Fremprop):
15489         * fns.c (Fobject_plist):
15490         * alloc.c:
15491         * symbols.c:
15492         Object property list frobbing cleanup.
15493         - Allow any lisp object (compared with `eq'), not just symbols, as
15494           keys in object plists.
15495         - Move symbol plist frobbing into symbols.c, where it belongs.
15496         - Move string plist frobbing into alloc.c, where it belongs.
15497         - Everything's an lrecord now, so no need to test for symbolp, etc.
15498         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15499
15500         * extents.c: Reorder code to remove declarations.
15501
15502         * frame.h (store_in_alist): Remove useless declaration.
15503
15504 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15505
15506         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15507         * config.h.in: Add HAVE_XCONVERTCASE.
15508
15509 2000-02-07  Andy Piper  <andy@xemacs.org>
15510
15511         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15512         it breaks many things.
15513
15514 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15515
15516         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15517         actually can start a common comment type.
15518         * src/syntax.h (SYNTAX_END_P): ditto for end.
15519
15520 2000-02-07  Martin Buchholz <martin@xemacs.org>
15521
15522         * XEmacs 21.2.28 is released.
15523
15524 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15525
15526         * event-Xt.c (x_keysym_to_character): New.
15527         (maybe_define_x_key_as_self_inserting_character): New.
15528         (x_has_keysym): New.
15529         Auto-define all keys on the keyboard as self-insert-key.
15530
15531 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15532
15533         * menubar.c (vars_of_menubar): A small code simplification.
15534
15535         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15536
15537         * ExternalShell.c:
15538         * ExternalClient.c:
15539         * EmacsShell-sub.c:
15540         * EmacsManager.c:
15541         * EmacsFrame.c:
15542         Use consistent style for specifying X resources.
15543
15544         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15545         This makes (dontusethis-set-symbol-value-handler) actually usable.
15546
15547         * lrecord.h (lrecord_decription_type):
15548         * alloc.c (pdump_register_sub):
15549         (pdump_dump_data):
15550         (pdump_reloc_one):
15551         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15552         Comply with XEmacs coding style.
15553         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15554         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15555
15556         * keymap.c (Faccessible_keymaps):
15557         Make (accessible-keymaps map "\C-h") do the Right Thing.
15558         Make (accessible-keymaps map []) do the Right Thing.
15559         Make (accessible-keymaps map "") do the Right Thing.
15560         (check_keymap_definition_loop): New function.
15561         (keymap_store_internal): Keep luser from shooting self in foot,
15562           via (define-key ctl-x-4-map "p" global-map).
15563         Remove fullness slot from struct Lisp_Keymap, since hash tables
15564         are now reliable.
15565         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15566
15567 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15568
15569         * redisplay.c (init_redisplay): Fix small memory leak.
15570         * elhash.h:
15571         * elhash.c (pdump_reorganize_hash_table):
15572         Rename from reorganize_hash_table. Change prototype.
15573         Reuse the original memory for hentries.  Save 100k.
15574         * alloc.c (PDUMP_READ): new macro.
15575         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15576         * alloc.c: No need to #ifndef before #undef.
15577
15578         * print.c: Allow debug_print() to print readably by modifying
15579         debug_print_readably.  Use consistent variable names.
15580
15581         * .dbxrc: Try to get things to work even if stopped in a function
15582         without source available by explicitly specifying source files.
15583 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15584
15585         * unexnt.c (_start): Removed bogus code which caused loading heap
15586         from differrent executable file.
15587         Removed bogus assignment to _fmode, which caused inconsistencies.
15588
15589 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15590
15591         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15592         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15593         Do not preliminary `#define signal sigset'.
15594
15595         * systime.h: Do not prototype environ on windows nt and cygwin,
15596         this conflicts with system header.
15597
15598         * syssignal.h: Use correct define for WINDOWSNT
15599
15600         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15601         with system header.
15602
15603         * sysdep.c (near start of file): Fixed commentary and rearranged
15604         ifdefs in readable order.
15605         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15606         (start_of_text):
15607         (end_of_text):
15608         (end_of_data): Do not compile in if using PDUMP.
15609
15610         * symsinit.h: Prototyped vars_of_nt().
15611
15612         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15613         (find_child_console): Use it.
15614         (sys_kill): Use it.
15615
15616         * ntheap.h: Do not extern os_subtype.
15617
15618         * ntheap.c (cache_system_info): Do not cache unneeded:
15619         nt_major_version, nt_minor_version and os_subtype.
15620         (recreate_heap): Do not compile in when PDUMPing.
15621
15622         * nt.c (geteuid and friends): Use the new varibale
15623         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15624         (init_user_info): Removed the above mentioned hackery.
15625         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15626         stat has been fixed in the C runtime.
15627         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15628
15629         * file-coding.c (struct file_coding_dump): Do not define
15630         ucs_to_mule_table in the struct if not MULE.
15631         (struct struct lrecord_description fcd_description_1): Do not dump
15632         the above.
15633
15634         * emacs.c (main_1): Call vars_of_nt().
15635         (right before Fdump_emacs_data): Don't need lastfile if using both
15636         portabe dumper and system malloc.
15637
15638         * alloc.c (Fmemory_limit): Conditionalized out.
15639         (pdump): Use OPEN_BINARY for the portable dump file.
15640         (pdump_load): Ditto.
15641
15642 2000-02-02  Mike Alexander  <mta@arbortext.com>
15643
15644         * nt.c (convert_time): Set tm_isdst before calling mktime and
15645         avoid calling it at all if the compiler supports 64 bit integers.
15646         Also initialize utc_base_ft before using it.
15647
15648 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15649
15650         * frame.c (change_frame_size_1): Take f->internal_border_width
15651         into consideration when calculating the width of the frame.
15652
15653 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15654
15655         * window.c (frame_min_height):
15656         (frame_size_valid_p):
15657         (frame_pixsize_valid_p): Added.
15658         (check_frame_size): Generalized.
15659
15660         * window.h: Prototyped the above.
15661
15662         * lisp.h:
15663         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15664         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15665         Deleted Vwin32_* and Vbinary_process_* unused variables.
15666
15667         * device-msw.c (msprinter_init_device): Do not get printer font
15668         list; Added DEVMODE functions.
15669
15670         * frame-msw.c: Added lots of printer code.
15671
15672         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15673         general.c.
15674
15675         * console-msw.h: Added more msprinter device private slots.
15676
15677 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15678
15679         * event-msw.c (key_needs_default_processing_p): Added.
15680         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15681
15682 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15683
15684         * glyphs.c (image_instance_layout): Mark image instance as clean
15685         after layout.
15686         (glyph_dirty_p): Removed redundant function.
15687         (invalidate_glyph_geometry_maybe): Added.
15688         (update_glyph_cachel_data): Call it.
15689
15690         * glyphs.h: Prototyped it.
15691
15692         * redisplay.c (add_glyph_rune): Call it.
15693         (redisplay_window): Reset glyphs cachels when frame faces have
15694         changed, thus forcing recomputation of built-in border glyphs.
15695
15696 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15697
15698         * Makefile.in.in: Make portable dumper and purify play well together.
15699         Add imperfect, but better than nothing, support for pdump.
15700         Remove xemacs.dmp when temacs is re-generated.
15701         Don't ignore errors when dumping xemacs.
15702
15703         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15704
15705 2000-01-28  Andy Piper  <andy@xemacs.org>
15706
15707         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15708         (setup_normal_frame): ditto.
15709         (setup_frame_without_minibuffer): ditto.
15710         (setup_minibuffer_frame): ditto.
15711         (delete_frame_internal): ditto.
15712         (Fmake_frame_invisible): ditto.
15713         (Ficonify_frame): ditto.
15714
15715         * window.h: change Fset_window_buffer signature.
15716
15717         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15718         (Fset_window_buffer): allow recording of buffer if the window is
15719         the selected window.
15720         (window_loop): Use new Fset_window signature.
15721
15722 2000-01-23  Daniel Pittman  <daniel@danann.net>
15723
15724         * config.h.in: Added template for `HAVE_ATHENA_3D'
15725
15726 2000-01-29  Andy Piper  <andy@xemacs.org>
15727
15728         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15729
15730         * gutter.c (output_gutter): Don't output if the window isn't live.
15731
15732 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15733
15734         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15735         of 01/12/00: Moved SetFocus back here where it belongs.
15736
15737 2000-01-23  Andy Piper  <andy@xemacs.org>
15738
15739         * s/cygwin32.h: declare printer things.
15740
15741 2000-01-26  Andy Piper  <andy@xemacs.org>
15742
15743         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15744         Alexander.
15745
15746 2000-01-24  Andy Piper  <andy@xemacs.org>
15747
15748         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15749         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15750
15751         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15752
15753         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15754
15755         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15756
15757         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15758         (mswindows_output_display_block): Avoid local shadows.
15759
15760         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15761         (mswindows_enqueue_mouse_button_event): ditto.
15762         (mswindows_handle_gui_wm_command): remove declaration.
15763
15764         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15765         warnings.
15766
15767         * console-msw.h: Avoid shadows.
15768         (mswindows_get_toolbar_button_text):
15769         (emacs_mswindows_create_stream_pair):
15770         (emacs_mswindows_delete_stream_pair):
15771         (mswindows_handle_toolbar_wm_command): declare.
15772
15773         * device-msw.c (build_syscolor_string): Avoid shadows.
15774
15775 2000-01-23  Andy Piper  <andy@xemacs.org>
15776
15777         * glyphs-widget.c (widget_instantiate): reverse the items for
15778         layouts so that children are in the expected order.
15779
15780 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15781
15782         * ralloc.c: safe_bcopy ==> memmove
15783         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15784         * s/msdos.h: Remove BCOPY macros.
15785         * insdel.c (gap_right): Remove BCOPY conditional code.
15786         * insdel.c (gap_left): Remove BCOPY conditional code.
15787         XEmacs demands a working ANSI C compiler - hence memmove.
15788
15789         * regex.c (regex_compile): Remove accidental use of trigraphs.
15790
15791 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15792
15793         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15794         event timestamp.
15795
15796 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15797
15798         * event-msw.c (mswindows_drain_windows_queue): Added the
15799         parameter.
15800         (mswindows_need_event): Commented the call to
15801         mswindows_drain_windows_queue().
15802         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15803         only.
15804
15805         * console-msw.h: Moved a few function prototypes here from
15806         event-msw.c.
15807
15808         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15809         parameter from unsigned short to unsigned long.
15810         (Fmswindows_shell_execute): Added return value.
15811
15812 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15813
15814         * sysdep.c (init_system_name):
15815           process-unix.c (unix_canonicalized_host_name):
15816         Don't call freeaddrinfo() if getaddrinfo() fails.
15817
15818         * process-unix.c (unix_open_unix_network_stream):
15819         Moved the code to get a port # into address loop.
15820
15821 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15822
15823         * buffer.c (reinit_vars_of_buffer):
15824         The right place to initialize conversion_in_dynarr and
15825         conversion_out_dynarr.
15826
15827         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15828
15829         * process-unix.c (unix_canonicalize_host_name): Muleize.
15830         (unix_open_network_stream): Muleize.
15831
15832         * buffer.h: Fix up prototypes for ralloc.c functions.
15833
15834 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15835         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15836         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15837                 instead of gethostbyname()
15838         * process-unix.c: In unix_canonicalize_host_name() and
15839                 unix_open_network_stream(), add code to use getaddrinfo()
15840                 instead of gethostbyname().
15841
15842 2000-01-27  Daniel Pittman <daniel@danann.net>
15843
15844         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15845         libs when built with flat Athena.
15846
15847 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15848
15849         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15850         Use coding standards for function prototypes.
15851
15852 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15853
15854         * dialog-msw.c (push_lisp_string_as_unicode):
15855         * doc.c (unparesseuxify_doc_string):
15856         * dired.c (Fuser_name_completion_1):
15857         * dired.c (Fuser_name_all_completions):
15858         * dired.c (free_user_cache):
15859         * dired.c (user_name_completion):
15860         * console-x.c (get_display_arg_connection):
15861         * minibuf.c (clear_echo_area_internal):
15862         * minibuf.c (echo_area_append):
15863         * eldap.c (Fldap_open):
15864         * eldap.c (Fldap_search_internal):
15865         * frame-x.c (x_set_frame_text_value):
15866         * frame-x.c (x_set_frame_properties):
15867         * frame-x.c (x_create_widgets):
15868         * redisplay-tty.c (term_get_fkeys_1):
15869         * objects-x.c (x_parse_nearest_color):
15870         * objects-x.c (x_valid_color_name_p):
15871         * objects-x.c (x_initialize_font_instance):
15872         * objects-x.c (x_list_fonts):
15873         * objects-x.c (x_find_charset_font):
15874         * tooltalk.c (Fadd_tooltalk_message_arg):
15875         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15876         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15877         * process-unix.c (unix_create_process):
15878         * ntproc.c (sys_spawnve):
15879         * sound.c (Fplay_sound_file):
15880         * sound.c (Fplay_sound):
15881         * buffer.c (init_initial_directory):
15882         * buffer.c (init_buffer):
15883         * editfns.c (init_editfns):
15884         * editfns.c (Ftemp_directory):
15885         * editfns.c (Fuser_full_name):
15886         * editfns.c (uncache_home_directory):
15887         * editfns.c (get_home_directory):
15888         * editfns.c (Fuser_home_directory):
15889         * editfns.c (Fformat_time_string):
15890         * editfns.c (Fcurrent_time_string):
15891         * gui-x.c (button_item_to_widget_value):
15892         * database.c (Fopen_database):
15893         * event-Xt.c (x_to_emacs_keysym):
15894         * event-Xt.c (x_event_to_emacs_event):
15895         * event-Xt.c (describe_event_window):
15896         * event-msw.c (mswindows_wnd_proc):
15897         * glyphs-eimage.c (jpeg_instantiate):
15898         * glyphs-eimage.c (gif_instantiate):
15899         * glyphs-eimage.c (png_instantiate):
15900         * glyphs-eimage.c (tiff_instantiate):
15901         * glyphs-x.c (xbm_instantiate_1):
15902         * glyphs-x.c (x_xbm_instantiate):
15903         * glyphs-x.c (x_xface_instantiate):
15904         * glyphs-x.c (autodetect_instantiate):
15905         * glyphs-x.c (cursor_font_instantiate):
15906         * glyphs-x.c (x_widget_instantiate):
15907         * glyphs-x.c (x_widget_set_property):
15908         * glyphs-x.c (x_widget_property):
15909         * glyphs-x.c (BUILD_GLYPH_INST):
15910         * print.c (write_string_to_stdio_stream):
15911         * print.c (output_string):
15912         * print.c (Falternate_debugging_output):
15913         * print.c (Fexternal_debugging_output):
15914         * glyphs-msw.c (extract_xpm_color_names):
15915         * glyphs-msw.c (mswindows_xpm_instantiate):
15916         * glyphs-msw.c (bmp_instantiate):
15917         * glyphs-msw.c (resource_name_to_resource):
15918         * glyphs-msw.c (mswindows_resource_instantiate):
15919         * glyphs-msw.c (xbm_instantiate_1):
15920         * glyphs-msw.c (mswindows_xbm_instantiate):
15921         * glyphs-msw.c (mswindows_xface_instantiate):
15922         * glyphs-msw.c (mswindows_widget_instantiate):
15923         * glyphs-msw.c (add_tree_item):
15924         * glyphs-msw.c (add_tab_item):
15925         * glyphs-msw.c (mswindows_combo_box_instantiate):
15926         * glyphs-msw.c (mswindows_widget_property):
15927         * glyphs-msw.c (mswindows_combo_box_property):
15928         * glyphs-msw.c (mswindows_widget_set_property):
15929         * console.c (stuff_buffered_input):
15930         * objects-msw.c (mswindows_initialize_color_instance):
15931         * objects-msw.c (mswindows_valid_color_name_p):
15932         * objects-msw.c (mswindows_list_fonts):
15933         * objects-msw.c (mswindows_font_instance_truename):
15934         * bytecode.c (optimize_compiled_function):
15935         * select-x.c (symbol_to_x_atom):
15936         * select-x.c (x_atom_to_symbol):
15937         * select-x.c (hack_motif_clipboard_selection):
15938         * select-x.c (selection_data_to_lisp_data):
15939         * select-x.c (lisp_data_to_selection_data):
15940         * select-x.c (Fx_get_cutbuffer_internal):
15941         * select-x.c (Fx_store_cutbuffer_internal):
15942         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15943         * buffer.h (TO_INTERNAL_FORMAT): New function.
15944         * emacs.c (make_arg_list_1):
15945         * emacs.c (make_argc_argv):
15946         * emacs.c (main_1):
15947         * emacs.c (Fdump_emacs):
15948         * emacs.c (split_string_by_emchar_1):
15949         * file-coding.h:
15950         * lisp.h:
15951         * lstream.h:
15952         * symsinit.h:
15953         * device-x.c (x_init_device):
15954         * device-x.c (Fx_valid_keysym_name_p):
15955         * device-x.c (Fx_get_font_path):
15956         * device-x.c (Fx_set_font_path):
15957         * glyphs.c (bitmap_to_lisp_data):
15958         * glyphs.c (pixmap_to_lisp_data):
15959         * alloc.c (make_ext_string): Use coding system arguments.  Update
15960         all callers.
15961         * alloc.c (build_string):
15962         * callproc.c (child_setup):
15963         * callproc.c (init_callproc):
15964         * fileio.c (lisp_strerror):
15965         * fileio.c (directory_file_name):
15966         * fileio.c (Fexpand_file_name):
15967         * fileio.c (Ffile_truename):
15968         * fileio.c (Fsysnetunam):
15969         * fileio.c (Fdo_auto_save):
15970         * sysdep.c (sys_readdir):
15971         * tests.c: New file.  Allow adding C tests.
15972         Replace GET_* macros with a more comprehensible and flexible
15973         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15974         Modify all calls.
15975         Any coding system can be used to do format conversion.
15976         Eliminate enum external_data_format.
15977         Eliminate convert_to_external_format.
15978         Eliminate convert_to_internal_format.
15979         Make sure file-name, keyboard, terminal, and ctext are always
15980         defined as coding systems or aliases.  Make
15981         file-name-coding-system, terminal-coding-system, and
15982         keyboard-coding-system magical variables that are equivalent to
15983         defining the corresponding coding system aliases.
15984
15985         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15986         * file-coding.c (Fcoding_system_alias_p): New function.
15987         * file-coding.c (Fcoding_system_aliasee): New function.
15988         * file-coding.c (append_suffix_to_symbol): New function.
15989         * file-coding.c (dangling_coding_system_alias_p): New function.
15990         * file-coding.c (Ffind_coding_system):
15991         * file-coding.c (Fcopy_coding_system):
15992         * file-coding.c (encode_coding_no_conversion):
15993         * file-coding.c (syms_of_file_coding):
15994         * file-coding.c (vars_of_file_coding):
15995         Rewrite coding system alias code.
15996         Allow nested aliases, like symbolic links.
15997         Allow redefinition of coding system aliases.
15998         Prevent existence of dangling coding system aliases.
15999
16000         * dired.c (Fuser_name_completion_1):
16001         * dired.c (Fuser_name_all_completions):
16002         A crash would happen if user did QUIT in the middle of building
16003         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16004
16005         * lisp.h:
16006         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16007
16008         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16009         an unsigned char *.  Update all callers.
16010
16011 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16012
16013         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16014
16015 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16016
16017         * elhash.c (hentry_description): Use more portable definition.
16018         (resize_hash_table): Initialize new hentries using
16019         xnew_array_and_zero, thereby simplifying the code.
16020
16021         * mule-charset.c (make_charset): Make sure entire object is
16022         initialized, to avoid Purify warnings.
16023
16024         * alloc.c (resize_string): Fix unlikely crash with big strings.
16025
16026 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16027
16028         * realpath.c (xrealpath):
16029         Don't call getwd().
16030
16031 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16032
16033         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16034
16035 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16036
16037         * unexelfsgi.c (unexec): Change the way we decide which segment
16038         should be extended.
16039
16040         Assumption that .bss section should be outside the PT_LOADable
16041         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16042         it's present) is inside the 'data' segment. This would fail the
16043         test which was used to find a segment to grow and cover new
16044         heap. Instead of this assumption, I created another one - on IRIX
16045         the segment to grow should start below .bss and it's address
16046         should extent above the end of .bss. Once this segment is
16047         identified, it's grown to accommodate the new heap and new
16048         zero-length .bss section is added at the end of .data2.
16049
16050 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16051
16052         * eval.c (Feval): Wrong number of arguments should use original
16053         function, not the indirect_function version of it.
16054
16055 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16056
16057         * glyphs-x.c (x_button_instantiate): Don't add image if
16058         it is not a pixmap.
16059         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16060         is relative.
16061
16062 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16063
16064         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16065         declaration.
16066         (DEFVAR_INT_MAGIC): Ditto.
16067         (DEFVAR_BOOL_MAGIC): Ditto.
16068         * glyphs.h: Reindent backslash.
16069
16070 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16071
16072         * glyphs-widget.c (layout_query_geometry):
16073         (layout_layout): Use correct types for gheight, gwidth.
16074
16075 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16076
16077         * EmacsManager.c (QueryGeometry): Purified.
16078
16079 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16080
16081         * alloc.c (make_float): Make sure entire object is initialized, to
16082         avoid Purify warnings.
16083         (pdump_register_sub): Remove useless assignment.
16084         (pdump): Use xmalloc, not malloc.
16085         (pdump_load): Use xmalloc, not malloc.
16086
16087 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16088
16089         * callproc.c:
16090         * dired-msw.c:
16091         * fileio.c:
16092         * process-nt.c:
16093         * redisplay-msw.c:
16094         * sysdep.c: Removed redundant #include <windows.h>
16095
16096 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16097
16098         * frame.c (delete_frame_internal): Do not delete device when its
16099         implementation so declares.
16100         (delete_frame_internal): Set device selected frame to nil when
16101         last frame goes away.
16102
16103         * device-msw.c (msprinter_device_system_metrics): Implemented.
16104         (mswindows_device_system_metrics): Added 'device-dpi property.
16105
16106         * device.c: (Fdevice_printer_p): Added.
16107         Added 'offset-workspace device metric.
16108
16109         * console.h (device_metrics): Declared DM_offset_workspace.
16110
16111 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16112
16113         * fileio.c (Ffile_truename): Remove pointless and confusing
16114         initialization of elen.
16115
16116         * glyphs-widget.c: Compiler warning fixes.
16117
16118 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16119
16120         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16121         instead of a Lisp_Object as argument to make it consistent with
16122         the other LIVE_P macros.
16123         (CHECK_LIVE_PROCESS): New macro.
16124
16125         * process.c: Declare Qprocess_live_p.
16126         (Fprocess_live_p): New function.
16127         (create_process): Use PROCESS_LIVE_P.
16128         (read_process_output): Ditto.
16129         (set_process_filter): Ditto.
16130         (Fdelete_process): Ditto.
16131         (kill_buffer_processes): Ditto
16132         (process_send_signal): Use CHECK_LIVE_PROCESS.
16133         (Fprocess_input_coding_system): Check whether process is still
16134         alive (fix PR#1061).
16135         (Fprocess_output_coding_system): Ditto.
16136         (Fprocess_coding_system): Ditto.
16137         (Fset_process_input_coding_system): Ditto.
16138         (Fset_process_output_coding_system): Ditto.
16139
16140 2000-01-23  Andy Piper  <andy@xemacs.org>
16141
16142         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16143         layout and widget.
16144
16145         * glyphs.c (mark_image_instance): take into account changed
16146         image_instance format.
16147         (image_instance_equal): ditto.
16148         (image_instance_hash): ditto.
16149
16150         * glyphs-widget.c (widget_instantiate): Incorporate layout
16151         instantiation here. Delay layout of the layout until later.
16152         (layout_instantiate): deleted.
16153         (layout_query_geometry): new function. get the geometry of a
16154         layout.
16155         (layout_layout): layout a layout dynamically.
16156         (image_instantiator_widget): New function - splitting up
16157         image_instantiator_format_create_glyphs_widget for netwinder
16158         compilation.
16159         (image_instantiator_buttons):
16160         (image_instantiator_edit_fields):
16161         (image_instantiator_combo_box):
16162         (image_instantiator_scrollbar):
16163         (image_instantiator_progress_guage):
16164         (image_instantiator_tree_view):
16165         (image_instantiator_tab_control):
16166         (image_instantiator_labels):
16167         (image_instantiator_layout): ditto.
16168         (image_instantiator_format_create_glyphs_widget): Call preceding
16169         functions.
16170
16171 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16172
16173         * process.c (Fset_process_coding_system):
16174         * device-x.c (Fx_keysym_hash_table):
16175         Docstring fixes.
16176
16177         * lstream.c (Lstream_write): Return documented value, not 0.
16178
16179         * fileio.c (directory_file_name):
16180         (Fsubstitute_in_file_name):
16181         (Fsubstitute_insert_file_contents_internal):
16182         (Fwrite_region_internal):
16183         * emacs.c:
16184         * sysdep.c:
16185         * getloadavg.c:
16186         * systty.h:
16187         Remove vestigial APOLLO-conditional code.
16188
16189 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16190
16191         * getpagesize.h: Add guard macros.
16192         * libsst.h: Add guard macros.
16193         * libst.h: Add guard macros.
16194         * line-number.h: Add guard macros.
16195         * ndir.h: Add guard macros.
16196         * sysfloat.h: Add guard macros.
16197         * sysfile.h: Add guard macros.
16198         * sysproc.h: Add guard macros.
16199         * syswait.h: Add guard macros.
16200         * xintrinsic.h: Add guard macros.
16201         * xintrinsicp.h: Add guard macros.
16202         * xmmanager.h: Add guard macros.
16203         * xmmanagerp.h: Add guard macros.
16204         * xmprimitive.h: Add guard macros.
16205         * xmu.h: Add guard macros.
16206         * gpmevent.h: Add copyright statement. Add guard macros.
16207         * miscplay.h: Add guard macros.
16208         * *.h: Use consistent C-standards-approved guard macro names.
16209
16210         * opaque.c (make_opaque): Switch parameter order.
16211         * opaque.h (make_opaque): Switch parameter order.
16212         Update all callers.
16213         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16214
16215         * config.h.in (type_checking_assert): Added.
16216         (bufpos_checking_assert): Added.
16217
16218 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16219
16220         * alloc.c: Harmless pdump changes.
16221         - Use countof().
16222         - spell alignment correctly.
16223         * sysdep.c: Use countof()
16224
16225 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16226
16227         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16228         initially_selected_for_input() console method, default to 0.
16229         (semi_canonicalize_console_connection): Try to delegate to
16230         canonicalize_console_connection if no such console method.
16231         (canonicalize_console_connection): Vice versa.
16232         (print_console): Do not print nil connection.
16233
16234         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16235         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16236         (XDEVIMPF_FRAMELESS_OK): Added.
16237         (CONSOLE_INHERITS_METHOD): Added.
16238
16239         * console-msw.c (mswindows_canonicalize_console_connection):
16240         Added.
16241         (mswindows_canonicalize_device_connection): Added.
16242
16243         * console-msw.h (struct msprinter_device): Added this struct and
16244         accessor macros.
16245         (mswindows_device): Made fontlist a lisp object.
16246
16247         * device.c (semi_canonicalize_device_connection):  Try to delegate
16248         to canonicalize_device_connection if no such console method.
16249         (canonicalize_device_connection): Vice versa.
16250         (print_device): Do not print nil connection.
16251
16252         * device-msw.c (mswindows_init_device): Call InitCommonControls
16253         when have widgets.
16254         (mswindows_delete_device): Removed fontlist deallocation.
16255         (mswindows_mark_device): Added.
16256
16257         * events.c (event_equal): Added abort() at unreached code.
16258         (event_hash): Ditto.
16259
16260         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16261         fallback tags of Windows devices.
16262
16263         * general.c (syms_of_general): Initialized Qmsprinter.
16264
16265         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16266         of fallback tags of Windows devices.
16267
16268         * lisp.h: Declared Qmsprinter.
16269
16270         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16271         of strings.
16272         (mswindows_list_fonts): Ditto.
16273         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16274         that it can be used by both mswindows and msprinter devices.
16275         (initialize_font_instance): Added.
16276         (mswindows_initialize_font_instance): Use it.
16277         (msprinter_initialize_font_instance): Added.
16278
16279         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16280         and implementation flags check.
16281         (redisplay_without_hooks): Changed the call to the above.
16282         (Fredraw_device): Ditto.
16283         (Fredisplay_device): Ditto.
16284
16285         * redisplay-msw.c (get_frame_dc): Implemented.
16286         (get_frame_compdc): Implemented.
16287         (many functions): Use the two functions above to get device
16288         contexts, ether for a window or a printer.
16289
16290 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16291
16292         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16293         initialization here.
16294         (init_symbols_once_early): Call it.
16295         * emacs.c (main_1): Call it.
16296         * symsinit.h: Declare it.
16297
16298 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16299
16300         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16301         Lisp_Object.
16302         (pdump_backtrace): Ditto.
16303         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16304         (pdump_get_entry): Abort if trying to register a null pointer.
16305         (pdump_dump_data): Cleanup types when relocating.
16306         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16307         (pdump_dump_rtables): Remove bad casts.
16308         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16309         Lisp_Object instead of a EMACS_INT for the hashtable
16310         reorganization.
16311
16312 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16313
16314         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16315
16316         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16317
16318         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16319
16320         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16321
16322 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16323
16324         * faces.h (FACE_STRIKETHRU_P): Added.
16325
16326         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16327         of font variants.
16328
16329         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16330         (mswindows_set_dc_font): New function, aware of font variants,
16331         separated from mswindows_update_dc.
16332
16333         * objects-msw.h (struct mswindows_font_instance_data): Added
16334         definition.
16335
16336         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16337         cached fonts and the data structure.
16338         (mswindows_initialize_font_instance): Added creation of font data
16339         structure.
16340         (mswindows_print_font_instance): Print at least something.
16341         (mswindows_create_font_variant): Implemented.
16342         (mswindows_get_hfont): Implemented.
16343
16344 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16345
16346         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16347         prototyping problem with msvc.
16348
16349         * emacs.c (main_1): added syms_of_gui_mswindows() call
16350
16351         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16352         syms_of_gui_mswindows() function
16353
16354         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16355
16356 2000-01-18  Martin Buchholz <martin@xemacs.org>
16357
16358         * XEmacs 21.2.27 is released.
16359
16360 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16361
16362         * glyphs-eimage.c (struct tiff_error_struct):
16363         (tiff_error_func):
16364         (tiff_warning_func):
16365         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16366
16367         * unexmips.c:
16368         * unexhp9k3.c:
16369         * unexfreebsd.c:
16370         * unexec.c: Remove vestigial Lucid C code.
16371         * unexalpha.c:
16372         * unexaix.c:
16373         * termcap.c:
16374         * libsst.c: Ansify.
16375         Remove declarations of errno and strerror().
16376
16377         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16378
16379         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16380
16381 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16382
16383         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16384         Optimize.
16385
16386 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16387
16388         * md5.c:
16389         * file-coding.c:
16390         * file-coding.h:
16391         Change enum eol_type to eol_type_t.
16392
16393 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16394
16395         * gui.c (get_gui_callback): Check cons before accessing car.
16396
16397 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16398
16399         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16400         (XSETSPECIFIER_TYPE): Ditto.
16401
16402 2000-01-17  Didier Verna  <didier@xemacs.org>
16403
16404         * redisplay.c (generate_fstring_runes): compute string size in
16405         characters, not bytes.
16406
16407 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16408
16409         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16410
16411 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16412
16413         * print.c (print_error_message): Call print_prepare().
16414
16415 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16416
16417         * .dbxrc: Renamed from dbxrc.
16418
16419         * events.c (event_to_character):
16420         Use `assert (foo)' instead of `if (!foo) abort()'
16421
16422         * .gdbinit (xtype): Add documentation.
16423         * .gdbinit (check-temacs): New function.
16424         * .gdbinit (check-xemacs): New function.
16425         * dbxrc (check-xemacs): New function.
16426         * dbxrc (check-xemacs): New function.
16427
16428 2000-01-14  Andy Piper  <andy@xemacs.org>
16429
16430         * glyphs-widget.c (widget_query_geometry): Make sure that we
16431         calculate default dimensions correctly.
16432
16433 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16434
16435         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16436
16437         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16438         pdump_wire'd variable.
16439
16440         * emacs.c: (main_1): Conditionalized calls to
16441         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16442
16443 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16444
16445         * window.c (Fset_window_configuration):
16446         * sysdep.c (_start):
16447         * input-method-motif.c (res):
16448         * event-Xt.c (Xt_process_to_emacs_event):
16449         Simple compiler warning fixes.
16450
16451         * bytecode.c (funcall_compiled_function): Use the original
16452         function symbol on the backtrace list in preference to the
16453         compiled_function object in error messages.
16454
16455 2000-01-13  Andy Piper  <andy@xemacs.org>
16456
16457         * glyphs-x.c (update_widget_face): Make sure we update the widget
16458         background as well as foreground.
16459
16460 2000-01-13  Andy Piper  <andy@xemacs.org>
16461
16462         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16463         fields to subwindow.
16464         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16465         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16466         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16467         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16468
16469         * glyphs-widget.c (check_valid_tab_orientation): new function.
16470         (initialize_widget_image_instance): zero orientation and
16471         justification.
16472         (widget_instantiate): pick up orientation.
16473         (tab_control_query_geometry): return appropriate values for
16474         vertical tabs.
16475
16476         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16477         appropriate creation flags for left, right and bottom tabs.
16478
16479         * s/cygwin32.h: add tab definitions.
16480
16481 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16482
16483         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16484         frame upon hiding a subwindow.
16485         (mswindows_button_instantiate): Changed the push button style to
16486         BS_PUSHBUTTON.
16487         (mswindows_button_instantiate): Removed button BS_NOTIFY
16488         style.
16489         (mswindows_button_instantiate): Removed redundant check for
16490         a disabled gui item.
16491         (mswindows_button_instantiate): Made use of WS_TABSTOP
16492         consistent: "operable" controls (edit, button, tree, scroll) have
16493         this style, "display-only" ones (static, progress gauge) do
16494         not. This style is currently ignored by XEmacs though. Also,
16495         removed the WS_EX_CONTROLPARENT style - it is not for children,
16496         it is for their parents!
16497         (mswindows_edit_field_instantiate): Ditto.
16498         (mswindows_progress_gauge_instantiate): Ditto.
16499         (mswindows_tree_view_instantiate): Ditto.
16500         (mswindows_tab_control_instantiate): Ditto.
16501         (mswindows_scrollbar_instantiate): Ditto.
16502         (mswindows_combo_box_instantiate): Ditto.
16503         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16504         style to the "clip" window.
16505         (mswindows_button_instantiate): Removed compilation warning by
16506         equally typing terms of the ?: operator.
16507
16508 2000-01-12  Didier Verna  <didier@xemacs.org>
16509
16510         * redisplay.c (generate_fstring_runes): new parameter holding the
16511         last modeline-format extent.
16512         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16513         extent, fill the glyph block with it.
16514         (generate_fstring_runes): handle these parameters.
16515         (generate_formatted_string_db): ditto.
16516
16517         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16518         glyphs'extents in the modeline.
16519
16520 1999-01-11  Mike Woolley  <mike@bulsara.com>
16521
16522         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16523         256Mb, as a workaround for the non-starting problem many people
16524         have experienced.
16525
16526 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16527
16528         * console-tty.c (Fset_console_tty_output_coding_system):
16529         Force redrawing tty frame.
16530
16531 2000-01-10  Didier Verna  <didier@xemacs.org>
16532
16533         * redisplay.c (generate_fstring_runes): fix size computation bug.
16534
16535 2000-01-09  William M. Perry <wmperry@aventail.com>
16536
16537         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16538
16539 2000-01-09  Andy Piper  <andy@xemacs.org>
16540
16541         * glyphs-msw.c: index -> i to avoid shadows.
16542         (xbm_create_bitmap_from_data): make static.
16543         (check_valid_string_or_int): deleted.
16544         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16545
16546         * glyphs-x.c (x_update_subwindow): remove unused args.
16547
16548         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16549         back pointer - this is done in allocate_image_instance.
16550         (query_string_font): return Qnil to make the compiler happy.
16551         (unmap_subwindow): set to ~0 to make the compiler happy.
16552         (glyph_query_geometry): comment out until used.
16553         (glyph_layout): ditto.
16554
16555 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16556
16557         * insdel.c (signal_after_change): Remove extraneous unbind_to().